🏠 返回首頁 

Greasy Fork is available in English.

cleanLinuxQuestionsOrg

clean LinuxQuestions.Org ads


安装此脚本?
  1. // ==UserScript==
  2. // @name cleanLinuxQuestionsOrg
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.18
  5. // @description clean LinuxQuestions.Org ads
  6. // @author mooring@codernotes.club
  7. // @match https://www.linuxquestions.org/*
  8. // @icon https://www.google.com/s2/favicons?domain=linuxquestions.org
  9. // @grant none
  10. // @license MIT
  11. // @run-at document-body
  12. // ==/UserScript==
  13. (function() {
  14. 'use strict';
  15. var css = 'ins[id],ins[class*=google],div[id*=_ad_],td.page[valign="top"] > div[style*=center]{display:none!important}';
  16. var style = document.createElement('style');
  17. style.innerText = css;
  18. document.body.previousElementSibling.appendChild(style)
  19. })();