按自己喜好微调了下样式
// ==UserScript==
// @
name 新版 mdn 样式微调
// @
namespace http://tampermonkey.net/// @
version 0.1
// @
description 新版 mdn 样式微调
// @
match https://developer.mozilla.org/*// @
grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(`
/* 调整排版 */
h1,h2,h3,h4,h5 {
font-weight: 600;
}
#content p,dd,li {
line-height: 1.65em !important;
letter-spacing: 0.1px;
color:#000 !important;
}
#content p {
margin: 2em 0;
}
/* 滚动条去掉圆角变细 */
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-thumb {
border-radius: 0px;
}
/* 调整导航栏位置 */
#sidebar-quicklinks{
padding-top: 2rem !important;
}
/* 去掉左右导航栏上的装饰性字符 */
#root > div > div.article-wrapper > div > aside > section > header > h2,
#sidebar-quicklinks > div > h4{
display: none;
}
/* 去掉社区汉化提示(感谢社区,但这提示实在太占地方了) */
#root > div > div.container > div {
display: none;
}
`)
})();