Created
April 24, 2020 10:03
-
-
Save y4code/d0e043fc33f35e5b9ef77c8cb42c761b to your computer and use it in GitHub Desktop.
上班滑水v2ex专用油猴脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name V2EX for work | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author y4code | |
// @match *://*.v2ex.com/* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== | |
(function () { | |
'use strict'; | |
// $('body')[0].style.background = 'black !important' ; | |
document.querySelector('html').style.display='none'; | |
$.each($('*'), (_, element) => { | |
console.log(element.style = | |
'background: black;' | |
+ 'color: green;' | |
+ 'text-shadow: none;' | |
+ '' | |
+ '' | |
); | |
}); | |
$.each($('img'), (_, img) => { | |
console.log(img.style = 'filter: grayscale(1)') | |
}); | |
document.querySelector('html').style.display=''; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment