您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes Sponsored Content panels from the main page
// ==UserScript== // @name The Blaze - Remove sponsored content // @namespace edzep.scripts // @version 1.0.3 // @author EdZep at HSX // @description Removes Sponsored Content panels from the main page // @include *theblaze.com // @include http://www.theblaze.com* // @grant GM_log // ==/UserScript== (function() { 'use strict'; var findSponsorPanels = document.evaluate("//article[@data-feed-type='story' and .//span[@class='feed-author' and contains(.,'Sponsor')]]", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); var panelCount = findSponsorPanels.snapshotLength; //GM_log(panelCount); for(var i=0; i<panelCount; i++) { var target = findSponsorPanels.snapshotItem(i); target.parentNode.removeChild(target); } })();