NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @namespace https://openuserjs.org/users/oldguan // @name MSDN FIX LANG SWITCH // @version 3.0.3 // @author SEIYA GUAN // @license MIT // @include http*://msdn.microsoft.com/* // @include http*://docs.microsoft.com/* // @icon https://docs.microsoft.com/favicon.ico // @grant none // @description 固定语言切换 Fix language switch // ==/UserScript== (function () { 'use strict'; var elements = document.getElementsByClassName("header-holder"); if (elements && elements.length > 0) { var style = { position: "sticky", top: "0px", zIndex: 9999, backgroundColor: getComputedStyle(document.body, null).getPropertyValue("background-color"), boxShadow: "2px 2px 2px 0px #000000ad" }; Object.assign(elements[0].style, style); } })();