您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
沪江小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... })();