Last active
January 20, 2023 04:17
-
-
Save 6david9/38337908d37cfb741c4ed1879dff621f to your computer and use it in GitHub Desktop.
remove background image.
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 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description remove background image. | |
// @author 6david9 | |
// @match https://*.v2ex.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=v2ex.com | |
// @grant none | |
// @run-at document-idle | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
/* globals jQuery, $, waitForKeyElements */ | |
const elem = document.querySelector("#Wrapper"); | |
elem.style.backgroundColor = "#dee"; | |
elem.style.backgroundRepeat = "no-repeat"; | |
elem.style.backgroundImage = 'none'; | |
$("#Rightbar > div:nth-child(3)").css({"display": "none"}); | |
$("#Rightbar > div:nth-child(4)").css({"display": "none"}); | |
$(".wwads-cn").css({"display": "none"}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment