// ==UserScript== // @name KissAnime Auto Hide // @namespace http://tampermonkey.net/ // @version 0.1 // @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 // @downloadURL none // ==/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]); } } }