Last active
February 4, 2020 13:17
-
-
Save d668/54b224f1a9c8e23516beff0ca4b2b783 to your computer and use it in GitHub Desktop.
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 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