Skip to content

Instantly share code, notes, and snippets.

@ajaysolleti
Last active November 13, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajaysolleti/d5bfe8d372a232065e4e to your computer and use it in GitHub Desktop.
Save ajaysolleti/d5bfe8d372a232065e4e to your computer and use it in GitHub Desktop.
Kissanime Autohide Ads
// ==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