移除因为各种原因被加在网页上的灰色滤镜, 通用性良好.
当前为
// ==UserScript==
// @name gray filter remover
// @namespace color
// @version 0.1
// @description 移除因为各种原因被加在网页上的灰色滤镜, 通用性良好.
// @author AndyF
// @license GPL-3.0-or-later
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function addNewStyle(newStyle) {
var styleElement = document.getElementById('styles_remove_gray_filter');
if (!styleElement) {
styleElement = document.createElement('style');
styleElement.type = 'text/css';
styleElement.id = 'styles_remove_gray_filter';
document.getElementsByTagName('head')[0].appendChild(styleElement);
}
styleElement.appendChild(document.createTextNode(newStyle));
}
addNewStyle('* {filter: unset!important;-webkit-filter: unset!important;}');
})();