NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name KissAnime NoAds // @namespace http://tampermonkey.net/ // @version 0.1 // @license MIT // @description Remove ads from KissAnime.ru! // @run-at document-idle // @author xxMrPHDxx // @match https://kissanime.ru/* // ==/UserScript== (function() { 'use strict'; Promise.resolve(document.querySelector("video").src) .then(video_url=>{ let video = document.createElement("video"); video.src = video_url; video.setAttribute("controls",""); return video; }) .then(video_elem=>{ document.body.append(video_elem); return document.querySelectorAll(".barContent > div > div"); }) .then(contents=>{ document.body.innerHTML = ` <style> * { margin: 0; padding: 0; } .wrapper { width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; } #Content { width: 60%; } </style> <div class="wrapper"><div id="Content"></div></div> `; let contentDiv = document.querySelector("div#Content"); contents.forEach(item=>{ if(item.id.substring(0,8) !== "adsIfrme"){ contentDiv.appendChild(item); } }); }); })();