Last active
November 13, 2015 18:49
-
-
Save ajaysolleti/d5bfe8d372a232065e4e to your computer and use it in GitHub Desktop.
Kissanime Autohide Ads
This file contains hidden or 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 Kissanime Autohide Ads | |
// @namespace com.chasevoid.scripts | |
// @description Automatically hide Kissanime Ads by clicking on Hide button | |
// @include http*://kissanime.com/* | |
// @include http*://kissanime.to/* | |
// @include http*://kissmanga.com/* | |
// @version 1 | |
// @author ChaseVoid | |
// @grant none | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js | |
// ==/UserScript== | |
this.$ = this.jQuery = jQuery.noConflict(true); | |
var hideAds = setInterval (function() { | |
jQuery('a').each(function (k, v) { | |
var re = new RegExp('Hide', 'ig'); | |
if (jQuery(this).text().match(re)) { | |
jQuery(this).click(); | |
} | |
}); | |
}, 5000); | |
jQuery(function () { | |
hideAds(); | |
}); | |
GM_registerMenuCommand( "hideAds", hideAds, "h" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment