您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes "This Week in Anime" articles from animenewsnetwork.com
当前为
// ==UserScript== // @name _Anime News Network, remove "This Week in Anime" articles // @description Removes "This Week in Anime" articles from animenewsnetwork.com // @match *://www.animenewsnetwork.com/* // @grant none // @run-at document-idle // @version 0.0.1.20190114124444 // @namespace https://greasyfork.org/users/239478 // ==/UserScript== (function () { 'use strict'; if (!Element.prototype.matches) { Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector; } var getParent = function (node, selector) { while (node && node.parentNode) { node = node.parentNode; if (node.matches(selector)) { return node; } } }; document.querySelectorAll(".thumbnail > a[href*='this-week-in-anime']").forEach(function (v) { var node = getParent(v, '.herald.box'); if (node) { node.remove(); } }); })();