Greasy Fork

Greasy Fork is available in English.

cleanMacmillandictionaryComAds

clean macmillandictionary.com ads

目前为 2022-08-25 提交的版本,查看 最新版本

// ==UserScript==
// @name         cleanMacmillandictionaryComAds
// @namespace    http://tampermonkey.net/
// @version      0.11
// @description  clean macmillandictionary.com ads
// @author       [email protected]
// @match        *.macmillandictionary.com/*
// @match        *.macmillanthesaurus.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=macmillandictionary.com
// @grant        none
// @license      MIT
// @run-at       document-body
// ==/UserScript==

(function() {
    'use strict';
    var css = [
        '.limit-max-width > .row:nth-child(2),.limit-max-width > .row:nth-child(4)',
        ',[id*="google_ads"]',
        ',.left-content .thes-links',
        '{display:none!important}',
        '.col-sm-8,.col-sm-content-with-leftslot{max-width:unset;}'
    ].join('')
    var style = document.createElement('style'); style.innerText = css;
    document.body.previousElementSibling.appendChild(style)
})();