Last active
October 6, 2020 18:52
-
-
Save VottusCode/58cbf37ced19bb21d0db108ac3cead0c to your computer and use it in GitHub Desktop.
Script for Tampermonkey that deletes iframe ads on KissAnime, and the one over the play (beta server)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FuckAdsKA | |
// @version 1.0 | |
// @description my stupid little js script that deletes ads at the Anime watch page | |
// @author Vottus | |
// @match https://kissanime.ru/Anime/* | |
// @require http://code.jquery.com/jquery-3.4.1.min.js | |
// ==/UserScript== | |
/** | |
* As one of the users of KissAnime, | |
* I felt sad when it died. This script will | |
* be kept for nostalgia reasons and to never forget how many ads there were. | |
* | |
* - V | |
**/ | |
// Settings | |
var autoLightsOff = true; | |
$(document).ready(function () { | |
// Forlooping iframes with id 1-20 | |
for (let i = 0;i < 20;i++) { | |
console.log("(FuckAdsKA-forloop) Removed ad iframe " + i); | |
$('#adsIfrme' + i).remove(); | |
} | |
// Removing the ad over player (works only on Beta atm) | |
console.log("(FuckAdsKA) Removed ad over the player"); | |
$("#glx-11565-container").remove(); | |
// Auto lights-off | |
if (autoLightsOff) { | |
console.log("(FuckAdsKA) Automatically turned on Auto Lights-off"); | |
$('#switch').click(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment