NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name palimas.com fix // @namespace deadmeat@ŧrash-mail.com // @description removes malicious links from palimas.com // @match http://palimas.tv/ // @match http://palimas.tv/* // @match http://palimas.com/ // @match http://palimas.com/* // @version 1.1.4 // @grant none // @updateURL https://openuserjs.org/meta/Jeddunk/palimas.com_fix.meta.js // ==/UserScript== var a = document.getElementsByTagName("a"); for (i = 0; i < a.length; i++) { var onclick = a[i].getAttributeNode("onclick"); if (onclick !== null) { if (onclick.value == "window.open('http://prpops.com/p/lmdo/direct')") { a[i].removeAttribute("onclick"); } } /*var onclick = a[i].getAttributeNode("onclick"); var href = a[i].getAttributeNode("href"); if (href.value == "http://prpops.com/p/9vyv/direct") { var video = onclick.value; var regex = /video.php\?id=[0-9]+/.exec(video); a[i].setAttribute("href", regex); a[i].removeAttribute("onclick"); }*/ }