您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove Bento Article Links from Spiegel Homepage
// ==UserScript== // @name Spiegel DisableBentoLinks // @namespace http://www.biermann.org/scripts/spiegel/ // @version 0.9 // @description Remove Bento Article Links from Spiegel Homepage // @author Phil // @match https://www.spiegel.de/ // @grant none // ==/UserScript== (function() { 'use strict'; var badSpans = document.querySelectorAll('a[class="text-black block"][href^="https://www.bento.de/"]') badSpans.forEach((s) => { while(s !== undefined && (s.attributes[1] == undefined || s.attributes[1].nodeValue != "block>topic") ){ s = s.parentElement } if (s !== undefined) { //s.style.backgroundColor = 'rgb(255,0,0)' s.remove() } }) })();