您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
6/6/2020, 8:28:47 PM
// ==UserScript== // @name AD Hider - kissanime.ru // @namespace Violentmonkey Scripts // @match https://kissanime.ru/Anime/* // @grant none // @version 1.0 // @author Qther // @description 6/6/2020, 8:28:47 PM // ==/UserScript== var observer = new MutationObserver(function(mutations) { if ($(".divCloseBut").length) { console.log("Found it"); for (i = 0; i < document.getElementsByClassName("divCloseBut").length; i++) { document.getElementsByClassName("divCloseBut").item(0).children.item(0).click(); } } }); // Start observing observer.observe(document.body, { childList: true, subtree: true }); $(document).ready(function() { $("button").on("click", function() { $(".divCloseBut").remove(); setTimeout(function() { $("#newContent").append("<p>New element</p>"); }, 1000); }); });