JANDAN_AD_REMOVER

删除jandan.net广告

  1. // ==UserScript==
  2. // @name JANDAN_AD_REMOVER
  3. // @name:en JANDAN_AD_REMOVER
  4. // @namespace 2b079a7c
  5. // @version 1.0
  6. // @icon http://cdn.jandan.net/static/img/favicon.ico
  7. // @description 删除jandan.net广告
  8. // @description:en Remove Ad for jandan.net
  9. // @author 2b079a7c
  10. // @match http*://jandan.net/*
  11. // @match http*://i.jandan.net/*
  12. // @run-at document-idle
  13. // @grant GM_setValue
  14. // @grant GM_getValue
  15. // @grant GM_deleteValue
  16. // @grant GM_addStyle
  17. // @license MIT
  18. // ==/UserScript==
  19.  
  20. (function() {
  21. 'use strict';
  22. var timer;
  23. timer = setInterval(function(){
  24. try{
  25. //Ad conver Remove
  26. document.getElementsByClassName("fc-ab-root")[0].remove()
  27.  
  28. //Width-screen mode
  29. document.getElementById("sidebar").remove()
  30. document.getElementById("body").style.background = "None"
  31. document.getElementById("content").style.width = "100%"
  32. document.querySelectorAll(".row").forEach((ele)=>{ele.style.width = "100%";})
  33. document.querySelectorAll(".row>.text>p img").forEach((ele)=>{ele.style.width = "100%";ele.style.maxHeight="none"});
  34.  
  35. //Auto load gifs
  36. Array.from(document.getElementsByClassName('gif-mask')).forEach( v=> {v.click()})
  37.  
  38. if(timer)
  39. {
  40. clearInterval(timer);
  41. console.log("Jandan AD Removed");
  42. }
  43. }catch{}
  44. },50);
  45.  
  46. })();

QingJ © 2025

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