Greasy Fork 支持简体中文。

沪江小D清爽器

沪江小D页面广告杀手

// ==UserScript==
// @name         沪江小D清爽器
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  沪江小D页面广告杀手
// @author       乃木流架
// @match        https://dict.hjenglish.com/*
// @icon         https://dict.hjenglish.com/favicon.ico
// @grant        none
// @license      GPL-3.0 License
// ==/UserScript==

(() => {
    'use strict';

    var feedback = document.querySelector('.feedback-link');
    if(feedback) feedback.remove();

    var ad5 = document.querySelector("body > div:nth-child(16)");
    var home = document.querySelector('.home');

    document.querySelectorAll('.ad').forEach(function(item){item.style.display = 'none'});
    if(home) document.querySelector('.search-wrapper').style.padding = '125px 0 200px';
    document.querySelector('.word-details-ads-placeholder').style.display = 'none';

    function adremove() {
        // document.querySelector("body > div:nth-child(16)").remove();
        document.querySelector("body > div:nth-child(17)").remove();
    }

    setTimeout(adremove, 200);
    setTimeout(adremove, 500);

    // Your code here...
})();