不知道各位有没有感觉James整的这个顶栏高斯模糊有点丑陋了?
反正我是觉得挺糟糕的,不仅不搭调,而且更雪上加霜的是Firefox会使用CPU来计算高斯模糊..
所以就写了一个油猴脚本关闭这个模糊效果,点击添加:Nodeloc d-header fix
// ==UserScript==
// @name Nodeloc d-header fix
// @namespace https://www.nodeloc.com/t/topic/75176
// @version 1.3
// @description 移除模糊效果并恢复不透明背景色
// @author GuGuan123
// @updateURL https://foo.gv.uy/tampermonkey/nodeloc-header-fix.user.js
// @downloadURL https://foo.gv.uy/tampermonkey/nodeloc-header-fix.user.js
// @match *://www.nodeloc.com/*
// @grant GM_addStyle
// @run-at document-start
// @license MIT
// ==/UserScript==
(function() {
'use strict';
const css = `
header.d-header {
/* 关掉毛玻璃模糊 */
backdrop-filter: none !important;
-webkit-backdrop-filter: none !important;
-moz-backdrop-filter: none !important;
/* 恢复背景颜色 */
background: var(--header_background) !important;
/* 恢复底边线 */
border-bottom: none !important;
box-shadow: var(--shadow-header) !important;
}
`;
if (typeof GM_addStyle !== 'undefined') {
GM_addStyle(css);
} else {
// 兼容性兜底
const style = document.createElement('style');
style.textContent = css;
(document.head || document.documentElement).appendChild(style);
}
})();
挺好,这样就恢复成之前的样式了

