Created
April 24, 2020 10:03
-
-
Save y4code/d0e043fc33f35e5b9ef77c8cb42c761b to your computer and use it in GitHub Desktop.
Revisions
-
y4code created this gist
Apr 24, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ // ==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=''; })();