v2ex-removebg

remove background image.

目前為 2023-11-23 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name v2ex-removebg
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description remove background image.
  6. // @author 6david9
  7. // @match https://*.v2ex.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=v2ex.com
  9. // @grant none
  10. // @run-at document-idle
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. /* globals jQuery, $, waitForKeyElements */
  18.  
  19. const elem = document.querySelector("#Wrapper");
  20. elem.style.backgroundColor = "#dee";
  21. elem.style.backgroundRepeat = "no-repeat";
  22. elem.style.backgroundImage = 'none';
  23.  
  24. $("#Rightbar > div:nth-child(3)").css({"display": "none"});
  25. $("#Rightbar > div:nth-child(4)").css({"display": "none"});
  26. $(".wwads-cn").css({"display": "none"});
  27. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址