您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Automatically hide ads on KissAnime pages. Also automatically hides the beta player ad.
当前为
// ==UserScript== // @name KissAnime Auto Hide // @version 1.0 // @description Automatically hide ads on KissAnime pages. Also automatically hides the beta player ad. // @author G-Rex // @match http://kissanime.ru/* // @match https://kissanime.ru/* // @grant none // @run-at document-end // // @namespace http://greasyfork.icu/users/154522 // ==/UserScript== (function() { 'use strict'; hideAds(); })(); function hideAds() { let hideAnchors = document.querySelectorAll('.divCloseBut a'); for(let i = 0; i < hideAnchors.length; i++) { hideAnchors[i].onclick(); } let videoAd = document.getElementById('videoAd'); if(videoAd) { videoAd.parentNode.removeChild(videoAd); } let videoAdClose = document.getElementsByClassName('videoAdClose'); for(let i = 0; i < hideAnchors.length; i++) { if(videoAdClose[i]) { videoAdClose[i].parentNode.removeChild(videoAdClose[i]); } } }