Skip to content

Instantly share code, notes, and snippets.

@d668
Last active February 4, 2020 13:17
Show Gist options
  • Save d668/54b224f1a9c8e23516beff0ca4b2b783 to your computer and use it in GitHub Desktop.
Save d668/54b224f1a9c8e23516beff0ca4b2b783 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name rezka
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include https://rezka*
// @grant none
// ==/UserScript==
function removeIframe(){
document.querySelectorAll("a").forEach(el => {
if(!el.style){
el.style={};
}
el.style.background = 'none';
});
var iframes = document.querySelectorAll('iframe');
for (var i = 0; i < iframes.length; i++) {
iframes[i].src='';
}
var images = document.getElementsByTagName('img');
for (var n = images.length; n--> 0;) {
if(images[n].src.indexOf('static')==-1)
{
images[n].setAttribute("src", "");
}
}
}
(function() {
setInterval(function(){
removeIframe();
}, 1000);
removeIframe();
XMLHttpRequest.prototype._open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url, async, user, password){
if(url.indexOf('/movies/')==-1)
return;
this._open(method, url, async, user, password);
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment