Greasy Fork 还支持 简体中文。

cleanMacmillandictionaryComAds

clean macmillandictionary.com ads

  1. // ==UserScript==
  2. // @name cleanMacmillandictionaryComAds
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.12
  5. // @description clean macmillandictionary.com ads
  6. // @author mooring@codernotes.club
  7. // @match *.macmillandictionary.com/*
  8. // @match *.macmillanthesaurus.com/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=macmillandictionary.com
  10. // @grant none
  11. // @license MIT
  12. // @run-at document-body
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17. var css = [
  18. '.limit-max-width > .row:nth-child(2),.limit-max-width > .row:nth-child(4)',
  19. ',[id*="google_ads"]',
  20. ',.left-content .thes-links',
  21. ',.max-90em,#potw+.limit-max-width',
  22. ',.limit-max-width > .center-xs .responsive-img',
  23. '{display:none!important}',
  24. '.floating-search{display:block!important}',
  25. '.col-sm-8,.col-sm-content-with-leftslot{max-width:unset;}'
  26. ].join('')
  27. var style = document.createElement('style'); style.innerText = css;
  28. document.body.appendChild(style)
  29. })();