Skip to content

Instantly share code, notes, and snippets.

@6david9
Last active January 20, 2023 04:17
Show Gist options
  • Save 6david9/38337908d37cfb741c4ed1879dff621f to your computer and use it in GitHub Desktop.
Save 6david9/38337908d37cfb741c4ed1879dff621f to your computer and use it in GitHub Desktop.
remove background image.
// ==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