cleanW3SchoolsAds

clean w3schools.com ads,there is no ads , no right side bar , no bottom guide bar, and no ads in page, just the information you need

  1. // ==UserScript==
  2. // @name cleanW3SchoolsAds
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.19
  5. // @description clean w3schools.com ads,there is no ads , no right side bar , no bottom guide bar, and no ads in page, just the information you need
  6. // @author mooring@codernotes.club
  7. // @match https://*.w3schools.com/*
  8. // @match http://*.w3schools.com/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=w3schools.com
  10. // @grant none
  11. // @license MIT
  12. // @run-at document.body
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17. let css=`
  18. [data-google-query-id],
  19. [class*="showcase"],.showcasebackend,.showcasebootcamp,.showcasesubs,
  20. #right,#internalCourses,#mainLeaderboard,#skyscraper,#tryitLeaderboard,
  21. #midcontentadcontainer,#footer,#getdiploma,.ga-featured
  22. {
  23. display:none!important;width:0!important;height:0!important;
  24. min-width:0!important;min-height:0!important;
  25. transform:scale(0.0001) translate3d(-99999px,-9999px,0px);
  26. }
  27. .w3-col.l10{width:98%!important}
  28. .trytopnav{top:0!important}
  29. #container{top:48px!important}
  30. `
  31. var style = document.createElement('style'); style.innerText = css;
  32. document.body.appendChild(style)
  33. // Your code here...
  34. })();

QingJ © 2025

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