diff --git a/oldest/8.3.user.js b/oldest/8.3.user.js new file mode 100644 index 000000000..9eb11f485 --- /dev/null +++ b/oldest/8.3.user.js @@ -0,0 +1,3727 @@ +// ==UserScript== +// @name Anti-Adblock Killer | Reek +// @namespace https://userscripts.org/scripts/show/155840 +// @description Anti-Adblock Killer is a userscript aiming to circumvent many protections used on some websites that force the user to disable AdBlockers. +// @author Reek | reeksite.com +// @version 8.3 +// @encoding utf-8 +// @license https://creativecommons.org/licenses/by-nc-sa/4.0/ +// @icon https://raw.github.com/reek/anti-adblock-killer/master/anti-adblock-killer-icon.png +// @homepage https://github.com/reek/anti-adblock-killer#anti-adblock-killer--reek +// @twitterURL https://twitter.com/antiadbkiller +// @supportURL https://github.com/reek/anti-adblock-killer/issues +// @contributionURL https://github.com/reek/anti-adblock-killer#donate +// @updateURL https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer.user.js +// @downloadURL https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer.user.js +// @include http*://* +// @grant unsafeWindow +// @grant GM_addStyle +// @grant GM_getValue +// @grant GM_setValue +// @grant GM_xmlhttpRequest +// @grant GM_registerMenuCommand +// @grant GM_deleteValue +// @grant GM_listValues +// @grant GM_getResourceText +// @grant GM_getResourceURL +// @grant GM_log +// @grant GM_openInTab +// @grant GM_setClipboard +// @grant GM_info +// @grant GM_getMetadata +// @run-at document-start +// ==/UserScript== +/*===================================================== +Thanks +======================================================= + +Donors: M. Howard, Shunjou, Charmine, Kierek93, G. Barnard, H. Young, Seinhor9, ImGlodar, Ivanosevitch, HomeDipo, R. Martin, DrFiZ, Tippy, B. Rohner, P. Kozica, M. Patel, W4rell, Tscheckoff, AdBlock Polska, AVENIR INTERNET, coolNAO, Ben, J. Park, C. Young, J. Bou, M. Cano, J. Jung, A. Sonino, J. Litten, M. Schrumpf, G. Pepe, A. Trufanov, R. Palmer, J. Rautiainen + +Collaborators: InfinityCoding, Couchy, Dindog, Floxflob, U Bless, Watilin, @prdonahue, Hoshie, 3lf3nLi3d, Alexo, Crits, Noname120, Crt32, JixunMoe, Athorcis, Killerbadger, SMed79, Alexander255, Anonsubmitter, RaporLoLpro, Maynak00, Robotex, Vinctux, Blahx, MajkiIT, F4z, Angelsl, Mikhaelk, Marek, Hamsterbacke + +Users: Thank you to all those who use Anti Adblock Killer, who report problems, who write the review, which add to their favorites, making donations, which support the project and help in its development or promote. + +======================================================= +Mirrors +======================================================= + +Github: http://tinyurl.com/mcra3dn +Greasyfork: http://tinyurl.com/puyxrn4 +Openuserjs: http://tinyurl.com/nnqje32 +MonkeyGuts: http://tinyurl.com/ka5fcqm +Userscripts: http://tinyurl.com/q8xcejl + +======================================================= +Documentation +======================================================= + +Greasemonkey: http://tinyurl.com/yeefnj5 +Scriptish: http://tinyurl.com/cnd9nkd +Tampermonkey: http://tinyurl.com/pdytfde +Violentmonkey: http://tinyurl.com/n34wn6j +NinjaKit: http://tinyurl.com/pkkm9ug + +======================================================= +Script +======================================================*/ + +Aak = { + name : 'Anti-Adblock Killer', + version : '8.3', + scriptid : 'gJWEp0vB', + homeURL : 'https://github.com/reek/anti-adblock-killer#anti-adblock-killer--reek', + changelogURL : 'https://github.com/reek/anti-adblock-killer#changelog', + donateURL : 'https://github.com/reek/anti-adblock-killer#donate', + featuresURL : 'https://github.com/reek/anti-adblock-killer#features', + reportURL : 'https://github.com/reek/anti-adblock-killer/wiki/Report-Guide', + twitterURL : 'https://twitter.com/antiadbkiller', + downloadURL : 'https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer.user.js', + subscribeURL : 'abp:subscribe?location=https://raw.github.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt&title=Anti-Adblock%20Killer%20|%20Filters%20for%20Adblockers', + listURL : "https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt", + iconURL : 'https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-icon.png', + excludes : ["360.cn", "amazon.", "apple.com", "ask.com", "baidu.com", "bing.com", "bufferapp.com", "chatango.com", "chromeactions.com", "easyinplay.net", "ebay.com", "facebook.com", "flattr.com", "flickr.com", "ghacks.net", "google.", "imdb.com", "imgbox.com", "imgur.com", "instagram.com", "jsbin.com", "jsfiddle.net", "linkedin.com", "live.com", "mail.ru", "microsoft.com", "msn.com", "paypal.com", "pinterest.com", "preloaders.net", "qq.com", "reddit.com", "reeksite.com", "stackoverflow.com", "tampermonkey.net", "tumblr.com", "twitter.com", "vimeo.com", "wikipedia.org", "w3schools.com", "yahoo.", "yandex.ru", "youtu.be", "youtube.com", "seansik.tv", "xemvtv.net", "vod.pl", "agar.io", "sportsplays.com"], + debug : { + log : true, + exclude : false, + dump : false, + inserted : false, + removed : false + }, + initialize : function () { + // Debug + if (Aak.debug.dump) { + Aak.log(Aak); + Aak.log(Aak.apiSupported()); + Aak.log(Aak.getScriptManager()); + Aak.log(Aak.getBrowser()); + } + // Script Manager + if (Aak.getScriptManager()) { + Aak.registerCommands(); + Aak.update.automatic(); + Aak.listDetect(); + Aak.blockDetect(); + } else { // Native + throw "Sorry! No Native support.."; + } + }, + uw : unsafeWindow || window, + $ : unsafeWindow.$ || unsafeWindow.jQuery || null, + isTopWindow : !(window.top != window.self), + ready : function (callback) { + window.addEventListener('load', callback); + }, + contains : function (string, search) { + return string.indexOf(search) != -1; + }, + log : function (data, method) { + if (Aak.debug.log) { + console = console || unsafeWindow.console; + console[method || 'info']('Aak' + Aak.getVersion(), data); + } + }, + dumpDOM : function (delay) { + setTimeout(function () { + var array = []; + var win = Aak.uw; + for (var k in win) { + var curr = win[k]; + if (typeof curr === 'object') { + try { + array.push(k + ': ' + JSON.stringify(curr)); + } catch (e) { + console.log(k, typeof curr, curr); + } + } + } + document.body.innerHTML = ''; + }, delay || 0); + }, + apiSupported : function () { + if (Aak.isTopWindow) { + // GM API - http://tinyurl.com/yeefnj5 + return { + GM_xmlhttpRequest : typeof GM_xmlhttpRequest != 'undefined', + GM_setValue : typeof GM_setValue != 'undefined', + GM_getValue : typeof GM_getValue != 'undefined', + GM_addStyle : typeof GM_addStyle != 'undefined', + GM_registerMenuCommand : typeof GM_registerMenuCommand != 'undefined', + GM_info : typeof GM_info != 'undefined', + GM_getMetadata : typeof GM_getMetadata != 'undefined', + GM_deleteValue : typeof GM_deleteValue != 'undefined', + GM_listValues : typeof GM_listValues != 'undefined', + GM_getResourceText : typeof GM_getResourceText != 'undefined', + GM_getResourceURL : typeof GM_getResourceURL != 'undefined', + GM_log : typeof GM_log != 'undefined', + GM_openInTab : typeof GM_openInTab != 'undefined', + GM_setClipboard : typeof GM_setClipboard != 'undefined' + } + } + }, + getBrowser : function () { + var ua = navigator.userAgent; + if (Aak.contains(ua, 'Firefox')) { + return "Firefox"; + } else if (Aak.contains(ua, 'MSIE')) { + return "IE"; + } else if (Aak.contains(ua, 'Opera')) { + return "Opera"; + } else if (Aak.contains(ua, 'Chrome')) { + return "Chrome"; + } else if (Aak.contains(ua, 'Safari')) { + return "Safari"; + } else if (Aak.contains(ua, 'Konqueror')) { + return "Konqueror"; + } else if (Aak.contains(ua, 'PaleMoon')) { + return "PaleMoon"; // fork firefox + } else if (Aak.contains(ua, 'Cyberfox')) { + return "Cyberfox"; // fork firefox + } else if (Aak.contains(ua, 'SeaMonkey')) { + return "SeaMonkey"; // fork firefox + } else if (Aak.contains(ua, 'Iceweasel')) { + return "Iceweasel"; // fork firefox + } else { + return ua; + } + }, + getVersion : function () { + return Number(Aak.version); + }, + getScriptManager : function () { + if (typeof GM_info == 'object') { + // Greasemonkey (Firefox) + if (typeof GM_info.uuid != 'undefined') { + return 'Greasemonkey'; + } // Tampermonkey (Chrome/Opera) + else if (typeof GM_info.scriptHandler != 'undefined') { + return 'Tampermonkey'; + } + } else { + // Scriptish (Firefox) + if (typeof GM_getMetadata == 'function') { + return 'Scriptish'; + } // NinjaKit (Safari/Chrome) + else if (typeof GM_setValue != 'undefined' && + typeof GM_getResourceText == 'undefined' && + typeof GM_getResourceURL == 'undefined' && + typeof GM_openInTab == 'undefined' && + typeof GM_setClipboard == 'undefined') { + return 'NinjaKit'; + } else { // Native + return false; + } + } + }, + generateID : function (len) { + var str = ''; + var len = len || 10; + var charset = "abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; + for (var i = 0; i < len; ++i) { + str += charset.charAt(Math.floor(Math.random() * charset.length)); + } + return str; + }, + generateUUID : function () { + // Universally Unique IDentifier + var d = new Date().getTime(); + var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { + var r = (d + Math.random() * 16) % 16 | 0; + d = Math.floor(d / 16); + return (c == 'x' ? r : (r & 0x7 | 0x8)).toString(16); + }); + return uuid; + }, + getUUID : function () { + var name = 'aak-uuid'; + if (Aak.getValue(name) == 'undefined') { + Aak.setValue(name, Aak.generateUUID()); + } + return Aak.getValue(name); + }, + once : function (day, name, callback) { + setTimeout(function () { + var later = isNaN(Aak.getValue(name)) ? 1 : Number(Aak.getValue(name)); + var now = new Date().getTime(); + if (later < now) { + Aak.setValue(name, (now + (day * 24 * 60 * 60 * 1000)).toString()); + callback(); + } + }, 1e3); + }, + go : function (url) { + location.href = url; + }, + refresh : function () { + location.href = location.href; + }, + reload : function () { + location.reload(true); + }, + registerCommands : function () { + Aak.ready(function () { + // Scriptish + // note: No menu command is created when the user script is run in a iframe window. + // doc: http://tinyurl.com/kvvv7yt + if (Aak.isTopWindow && typeof GM_registerMenuCommand != 'undefined') { + GM_registerMenuCommand(Aak.name + ' ' + Aak.getVersion() + ' Homepage', function () { + location.href = Aak.homeURL; + }); + GM_registerMenuCommand(Aak.name + ' ' + Aak.getVersion() + ' Update', Aak.update.manual); + } + }); + }, + notification : function (message, delay) { + if (Aak.isTopWindow) { + // css + // tool: http://csscompressor.com/ + // animate: http://daneden.github.io/animate.css/ + // crimson: #DC143C + Aak.addStyle('#aak-notice{font-family:arial;color:#000;font-variant:small-caps;font-size:14px;border:1px solid #999;border-radius:3px;box-shadow:1px 1px 12px #555;width:400px;max-width:400px;min-height:100px;top:0;left:0;line-height:1.2;z-index:999999;position:fixed;display:block;background-color:#fff;background-image:url(https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-icon.png);background-repeat:no-repeat;background-position:10px center;background-size:80px;margin:10px}#aak-notice-content{background-color:#fff;width:260px;min-height:70px;margin:20px 10px 10px 100px;text-align:left}.aak-notice-ok{float:right;bottom:10px;right:10px;position:absolute;font-size:12px;border:2px solid #DC143C;background-color:#DC143C;color:#FFF;padding:5px 10px;text-decoration:none;-webkit-transition:all .3s;transition:all .3s}.aak-notice-ok:hover{background-color:#FFF;color:#DC143C;text-decoration:none}#aak-notice-close{float:right;top:10px;right:10px;cursor:pointer;width:16px;height:16px;position:absolute}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,100%{-webkit-transition-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transition-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;transform:none}}@keyframes bounceInLeft{0%,60%,75%,90%,100%{-webkit-transition-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transition-timing-function:cubic-bezier(0.215,0.610,0.355,1.000)}0%{opacity:0;-webkit-transform:translate3d(-3000px,0,0);transform:translate3d(-3000px,0,0)}60%{opacity:1;-webkit-transform:translate3d(25px,0,0);transform:translate3d(25px,0,0)}75%{-webkit-transform:translate3d(-10px,0,0);transform:translate3d(-10px,0,0)}90%{-webkit-transform:translate3d(5px,0,0);transform:translate3d(5px,0,0)}100%{-webkit-transform:none;transform:none}}.bounceInLeft{animation-name:bounceInLeft;animation-duration:1s;-webkit-animation-name:bounceInLeft;-webkit-animation-duration:1s}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(20px,0,0);transform:translate3d(20px,0,0)}100%{opacity:0;-webkit-transform:translate3d(-2000px,0,0);transform:translate3d(-2000px,0,0)}}.bounceOutLeft{animation-name:bounceOutLeft;animation-duration:1s;-webkit-animation-name:bounceOutLeft;-webkit-animation-duration:1s}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;-webkit-animation-duration:3s;animation-name:fadeIn;animation-duration:3s}'); + // remove + Aak.removeElement('#aak-notice'); + setTimeout(function () { + Aak.createElement({ + tag : 'div', + id : 'aak-notice', + class : 'bounceInLeft', + html : '
It seems that you have not subscribed to AakList (Anti-Adblock Killer ). Subscribe
', 3e4); + Aak.log("AakList not detected !" + elem.clientHeight, 'warn'); + } else { + Aak.log("AakList detected !"); + } + }, 5e3); + }); + }); + } + }, + openInTab : function (url) { + if (typeof GM_openInTab != 'undefined') { + GM_openInTab(url); + } else { + var newWindow = window.open(url, "_blank"); + newWindow.focus(); + } + }, + request : function (settings) { + // doc: http://tinyurl.com/2t7wbr + settings.url = settings.url || ''; + settings.method = settings.method || 'GET'; + settings.headers = settings.headers || {}; + settings.timeout = settings.timeout || 2e4; // 20s + + if (typeof GM_xmlhttpRequest != 'undefined') { + if (settings.data || settings.method == 'POST') { + settings.method = 'POST'; + settings.data = Aak.serialize(settings.data || {}); + settings.headers = Aak.setProperty(settings.headers, { + 'X-Requested-With' : 'XMLHttpRequest', + 'Content-Type' : 'application/x-www-form-urlencoded' + }); + } + GM_xmlhttpRequest(settings); + } else { + throw "Sorry! No GM XMLHttpRequest support.."; + } + }, + update : { + manual : function () { + if (Aak.isTopWindow) { + Aak.notification('Checking...
', 6e4); + Aak.update.getRemote(); + } + }, + automatic : function () { + if (Aak.isTopWindow) { + Aak.ready(function () { + Aak.once(5, 'aak-checkupdate', function () { + Aak.request({ + url : 'http://reeksite.com/php/get.php?checkupdate', + data : { + scriptid : Aak.scriptid, + uuid : Aak.getUUID(), + version : Aak.getVersion(), + browser : Aak.getBrowser(), + scriptmanager : Aak.getScriptManager() + }, + onload : function (response) { + try { + var res = response.responseText; + var json = JSON && JSON.parse(res); + if (json.update) { + Aak.downloadURL = json.url; + Aak.update.manual(); + } + } catch (e) { + Aak.log(response, 'error'); + } + } + }); + }); + }); + } + }, + getRemote : function () { + Aak.request({ + url : Aak.downloadURL, + onload : function (response) { + var html = 'Failed...
'; + var res = response.responseText; + var status = response.status; + if (status == 200) { + var local = Aak.getVersion(); + var remote = Number(res.match(/@version\s+(\d+\.\d+)/)[1]); + if (local < remote) { + var html = 'Anti-Adblock Killer v' + remote + ' is available.
'; + } else { + var html = 'Anti-Adblock Killer is up to date.
'; + } + } + Aak.getElement('#aak-notice-content').innerHTML = html; + } + }); + } + }, + autoReport : function (system, host, target) { + var host = host || location.host; + var target = target || ''; + if (Aak.getLocal(system) == "undefined") { + Aak.setLocal(system, host); // save + Aak.request({ + url : 'http://reeksite.com/php/get.php?autoreport', + data : { + system : system, + host : host, + target : target + }, + onload : function (response) { + var res = response.responseText; + //Aak.log(res); + } + }); + } + Aak.log(system); + }, + setValue : function (name, value) { + if (typeof GM_setValue !== "undefined") { + GM_setValue(name, value); + } else { + throw "Sorry! No GM Storage support.."; + } + }, + getValue : function (name) { + if (typeof GM_getValue !== "undefined") { + return GM_getValue(name) || 'undefined'; + } else { + throw "Sorry! No GM Storage support.."; + } + }, + setLocal : function (name, value) { + // doc: http://tinyurl.com/8peqwvd + if (typeof localStorage !== "undefined") { + localStorage[name] = value; + } else { + throw "Sorry! No Web Storage support.."; + } + }, + getLocal : function (name) { + if (typeof localStorage !== "undefined") { + return localStorage[name] || 'undefined'; + } else { + throw "Sorry! No Web Storage support.."; + } + }, + setSession : function (name, value) { + // Doc: http://tinyurl.com/8peqwvd + if (typeof sessionStorage !== "undefined") { + sessionStorage[name] = value; + } else { + throw "Sorry! No Web Storage support.."; + } + }, + getSession : function (name) { + if (typeof sessionStorage !== "undefined") { + return sessionStorage[name] || 'undefined'; + } else { + throw "Sorry! No Web Storage support.."; + } + }, + setCookie : function (name, value, time) { + var time = (time) ? time : 365 * 24 * 60 * 60 * 1000; // 1 year + var expires = new Date(); + expires.setTime(new Date().getTime() + time); + document.cookie = name + "=" + encodeURIComponent(value) + ";expires=" + expires.toGMTString() + ";path=/"; + }, + getCookie : function (name) { + var oRegex = new RegExp("(?:; )?" + name + "=([^;]*);?"); + if (oRegex.test(document.cookie)) { + return decodeURIComponent(RegExp["$1"]); + } + }, + stopRedirect : function () { + if ('watch' in window) { + Aak.uw.watch("location", function () {}); + Aak.uw.location.watch("href", function () {}); + } else { + Aak.uw.location = "#"; + throw 'Stop Redirect'; + } + }, + confirmLeave : function () { + window.onbeforeunload = function () { + return ''; + }; + }, + confirmReport : function (elem) { + elem.innerHTML = 'Report'; + elem.title = 'Report issue or anti-adblock'; + elem.onclick = function (e) { + e.preventDefault(); + if (confirm("Do you want to report issue or anti-adblock ?")) { // Clic on OK + location.href = Aak.reportURL; + } else { + location.href = elem.href; + } + } + }, + stopScript : function (e) { + e.preventDefault(); + e.stopPropagation(); + }, + innerScript : function (e) { + return e.target.innerHTML; + }, + addScript : function (code) { + var script = document.createElement('script'); + script.innerHTML = (typeof code === 'function') ? Aak.getFunctionCode(code) : code.toString(); + document.head.appendChild(script); + document.head.removeChild(script); + }, + addExternalScript : function (src) { + var script = document.createElement('script'); + script.src = src; + document.head.appendChild(script); + document.head.removeChild(script); + }, + getFunctionCode : function (fn) { + var str = fn.toString(); + var first = str.indexOf("{") + 1; + var last = str.lastIndexOf("}"); + return str.substr(first, last - first).trim(); + }, + onElement : function (element, callback, repeat) { + var repeat = repeat || 10; + var loop = setInterval(function () { + var elem = Aak.getElement(element); + if (elem) { + callback(); + clearInterval(loop); + } + repeat = (repeat) ? repeat - 1 : clearInterval(loop); + }, 1e3); + }, + addElement : function (str) { // ex: div.ads or span#ads + var split = str.replace('.', ':className:').replace('#', ':id:').split(':'); + Aak.addScript('document.documentElement.appendChild(document.createElement("' + split[0] + '")).' + split[1] + ' = "' + split[2] + '"; document.querySelector("' + str + '").innerHTML = "You need install VLC Web Plugin ! Install
', 30000); + return false; + } + } + this.options.output = 'embed'; + this.insert(); + }, + html5 : function (id, setup) { + /* Video Tag (html5) + note: + https://html5rocks.com/en/tutorials/video/basics/ + http://www.w3schools.com/tags/tag_video.asp + test: + https://www.joomlacontenteditor.net/images/big_buck_bunny.flv + http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4 + http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm + http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv + */ + + this.get(id); + this.attributes = {}; + this.attributes.src = setup.file || setup.src; + this.attributes.id = this.attributes.name = Aak.generateID(); + this.attributes.height = setup.height || this.in.node.clientHeight || "100%"; + this.attributes.width = setup.width || this.in.node.clientWidth || "100%"; + this.attributes.type = this.getMime(this.attributes.src); + this.attributes.controls = 'controls'; + //this.attributes.preload = 'none'; + if (setup.autostart || setup.autoplay) { + //this.attributes.autoplay = 'autoplay'; bug duplicated playing + } + this.options.output = 'html5'; + this.insert(); + } + }, + rules : { + // -------------------------------------------------------------------------------------------- + // Specific + // -------------------------------------------------------------------------------------------- + blogspot : { // No Country Redirect (NCR) + // doc: http://tinyurl.com/odncet7 + // issue: https://github.com/reek/anti-adblock-killer/issues/490 + host : ['.blogspot.'], + onStart : function () { + var blog = location.host.replace('www.', '').split("."); + if (blog[blog.length - 1] != "com") { + Aak.go("http://" + blog[0] + ".blogspot.com/ncr" + location.pathname); + } + } + }, + blogspot_knowlet3389 : { + host : ['knowlet3389.blogspot.'], + onStart : function () { + // + abp rule solution + Aak.addStyle("#gAds { height: 1px; width: 1px; }"); + } + }, + uptobox_uptostream : { + host : ['uptobox.com', 'uptostream.com'], + onStart : function () { + // Old solution [deprecated] + var id = location.pathname.match(/[0-9a-z]{12}/); + if (id != null) { + Aak.addStyle("#" + id[0] + " { height: 12px; }"); + } + // New 12.05.2014 + // + abp rule (alternative solution) + Aak.addStyle("#adblocktrap { height: 12px; }"); + }, + onIdle : function () { + // remove ads + Aak.removeElement('*[src^="http://ads.uptobox.com/"],*[href^="http://ads.uptobox.com/"]'); + }, + onBeforeScript : function (e) { + if (Aak.contains(Aak.innerScript(e), 'window.location = "http://uptobox.com/?op=adblock";')) { + Aak.stopScript(e); + } + } + }, + notre_planete_info : { + host : ['notre-planete.info'], + onStart : function () { + Aak.addStyle("#testpub { height: 51px; }"); + Aak.addStyle("#pub_meh { height: 51px; }"); + }, + onIdle : function () { + /* + abp rule + var pub --> pagead2.googlesyndication.com + */ + //Aak.log(Aak.uw.pub, document.getElementById("pub_meh").clientHeight, Aak.uw.largeur) + } + }, + anisubsia_com : { + host : ['anisubsia.com'], + onStart : function () { + // + abp rule #@#.adsantilok + Aak.addStyle(".adsantilok { height: 5px; }"); + }, + onIdle : function () { + Aak.uw.jAntiBlock = function () {}; + Aak.uw.CekBlok = function () {}; + } + }, + elahmad_com : { + host : ['elahmad.com'], + onStart : function () { + Aak.addStyle("#adblock { height: 1px; }"); + } + }, + multiup_org : { + host : ['multiup.org', 'streamupload.org'], + onStart : function () { + Aak.addStyle("#crazy { height: 3px; }"); + } + }, + mrtzcmp3_net : { + host : ['mrtzcmp3.net'], + onStart : function () { + Aak.addStyle(".rtm_ad { height: 1px; }"); + } + }, + go4up_com : { + host : ['go4up.com'], + onStart : function () { + Aak.addStyle(".myTestAd { height: 1px; }"); + } + }, + bknime_com : { + // issue: https://github.com/reek/anti-adblock-killer/issues/291 + host : ['bknime.com'], + onStart : function () { + Aak.addStyle("#myTestAd { height: 1px; }"); + } + }, + bg_gledai_tv : { + host : ['bg-gledai.tv'], + onStart : function () { + Aak.addStyle(".myAd { height: 1px; }"); + } + }, + thepcspy_com : { // http://thepcspy.com/read/how_to_block_adblock/ + host : ['thepcspy.com'], + onStart : function () { + Aak.addStyle(".myTestAd { height: 1px; }"); + Aak.addStyle(".blocked { display: none; }"); + }, + onIdle : function () { + Aak.removeElement('.blocked'); + } + }, + automobile_sportive_com : { + host : ['automobile-sportive.com'], + onStart : function () { + Aak.addStyle(".myTestAd { height: 51px; display: none; }"); + } + }, + snsw_us : { + host : ['snsw.us'], + onStart : function () { + Aak.addStyle("#ad_1 { height: 1px; }"); + } + }, + urlchecker_net : { + host : ['urlchecker.net'], + onStart : function () { + Aak.addStyle("#adchecker { height: 20px; }"); + } + }, + skiplimite_tv : { + host : ['skiplimite.tv'], + onStart : function () { + Aak.addStyle("div.addthis_native_toolbox + div[id] { height: 12px; }"); + } + }, + filecore_co_nz : { + host : ['filecore.co.nz'], + onStart : function () { + Aak.addStyle(".adsense { height: 5px; }"); + } + }, + interfans_org : { + // test: http://www.interfans.org/forum/ + host : ['interfans.org'], + onStart : function () { + Aak.addStyle(".ad_global_header { height: 1px; display: none; }"); + } + }, + maxdebrideur_com : { + host : ['maxdebrideur.com'], + onStart : function () { + Aak.addStyle(".clear + div[id] { height: 12px; }"); + } + }, + topzone_it : { + host : ['topzone.lt'], + onStart : function () { + Aak.addStyle(".forumAd { height: 1px; display: none; }"); + } + }, + nana10_co_il : { + host : ['.nana10.'], + onStart : function () { + Aak.addStyle("#advert-tracker { height: 1px; }"); + } + }, + plej_tv : { + host : ['plej.tv'], + onStart : function () { + Aak.addStyle(".advert_box { height: 1px; }"); + } + }, + eveskunk_com : { + host : ['eveskunk.com'], + onStart : function () { + // Disable Antiblock 1 + //Aak.addElement('div.adsbygoogle'); // dont work + // + abp rule eveskunk.com#@#.adsbygoogle + Aak.addStyle(".adsbygoogle { height: 5px; }"); + // Disable Antiblock 2 + Aak.addStyle(".container .row .col-lg-12 div[id] { height: 35px; }"); + }, + onIdle : function () { + // Disable Antiblock 1 + document.querySelector('.adsbygoogle').innerHTML = 'You must subscribe to AakList (Anti-Adblock Killer ).Subscribe
', 2e4); + } + } + }, + adworkmedia : { + host : ['adworkmedia.com', 'loxtk.com', 'contentlockingnetworks.com'], + onStart : function () { + // AdWorkMedia - https://www.adworkmedia.com/ + var ref = document.createElement('a'); + ref.href = document.referrer; + var host = location.host; + var path = location.pathname; + if (Aak.contains(path, '/help/removeAB.php') && !Aak.contains(ref.host, host)) { + // Auto report + Aak.autoReport('Adworkmedia', ref.host, host); + // Notification + Aak.notification('You must subscribe to AakList (Anti-Adblock Killer ).Subscribe
', 2e4); + } + } + }, + adworkmediasurvey : { // experimental + host : ['phone-track.net', 'netflixaccount.org', 'watchmovies.just4umedia.com', 'mol.cheatsplanet.net', 'vinestown.com', 'xtreme-downloads.com', 'freevps-hosting.com', 'oneplusoneinvite.blogspot.com', 'fullmovieshd.org', 'timepasss.com', 'miningbeast.com', 'broadcastpuma.co', 'thehyphy.com', 'download-site.org', 'mymobileappz.com', 'garena.cheatsplanet.net', 'full-software-downloads.info', 'amazing-web-host.com', 'watchtvserieonlinehd.blogspot.com', 'watch-latest-movies-online-daily.blogspot.com', 'thecompletewebs.info', 'xpango.com-cheat.in', 'yourepeat.net', 'fullsoftwaredownload.info', 'mypcgamesfreedownload.blogspot.com', 'b-books.info', 'freeudidregistration.com'], + onIdle : function () { + /* + Dont work: + debrideurgratuit.org, ndsroms.altervista.org, pickcrackpasswords.blogspot.com, codespsngratuits.com + + http://www.rushinformation.com/how-to-bypass-surveys-online/ + + They allow survey bypass for all the major hosts like Sharecash,Fileice,Cleanfiles,cash-file,Adwork media,File fire,File flare,Dengee and uploadable + */ + + // Survey + var iframes = document.querySelectorAll('iframe[src*="/gTemplate.php"]'); + //Aak.log(iframes.length,iframes); + + if (iframes.length) { + + // Neutralize Survey functions + for (var i in Aak.uw) { + var fn = Aak.uw[i]; + // Parse all no native functions + if (typeof fn == 'function' && + !/native/.test(fn.toString())) { + + // Disable dynamic functions + if (/_\d+$/.test(i)) { + //Aak.log(i); + Aak.uw[i] = function () {}; + } + // Disable the functions that prevents the removal of the iframe + else if (/location.reload/.test(fn.toString())) { + //Aak.log(i); + Aak.uw[i] = function () {}; + } // Disable static functions + else if (/^(mscrollToTop|scrollToTop|gLoad_split_|gLoad|LockPage|noScrollIE|noScrollNS)$/.test(i)) { + //Aak.log(i); + Aak.uw[i] = function () {}; + } + } + } + + // Unlock page + Aak.uw.onbeforeunload = ""; + document.body.scroll = "yes"; + document.body.style.overflow = 'scroll' + + // Remove Survey Elements + for (var i = 0; i < iframes.length; i++) { + var iframe = iframes[i]; + var container = iframe.parentNode; + var overlay = container.previousSibling; + //Aak.log(i, iframe, container, overlay); + + Aak.removeElement(overlay); + Aak.removeElement(container); + } + } + } + }, + // -------------------------------------------------------------------------------------------- + // Players + // -------------------------------------------------------------------------------------------- + kissanime_com : { + // issue: https://github.com/reek/anti-adblock-killer/issues/451 + // issue: https://github.com/reek/anti-adblock-killer/issues/381 + // issue: https://github.com/reek/anti-adblock-killer/issues/302 + // issue: https://github.com/reek/anti-adblock-killer/issues/257 + // issue: https://github.com/reek/anti-adblock-killer/issues/178 + // issue: https://github.com/reek/anti-adblock-killer/issues/196 + // issue: https://github.com/reek/anti-adblock-killer/issues/56 + host : ['kissanime.com'], + onStart : function () { + // Masking ads + Aak.addStyle('iframe[id^="adsIfrme"], .divCloseBut { display:none; }'); + // Solution 1 + Aak.uw.DoDetect2 = null; + }, + onIdle : function () { + + // Solution 1 abp rule + // @@||kissanime.com^$elemhide + + var divContentVideo = document.querySelector('#divContentVideo'); + + // Solution 2 + if (Aak.uw.DoDetect2) { + Aak.uw.DoDetect2 = null; + Aak.uw.CheckAdImage = null; + Aak.log('Solution 2'); + } //Solution 3 + else if (divContentVideo) { + + var divDownload = document.querySelector('#divDownload').cloneNode(true); + //Aak.log(divDownload,divContentVideo); + + setTimeout(function () { + divContentVideo.innerHTML = ''; + Aak.uw.DoHideFake(); + divContentVideo.appendChild(divDownload); + Aak.removeElement('iframe[id^="adsIfrme"], .divCloseBut'); + Aak.log('Solution 3'); + }, 5500); + } + } + }, + Kisscartoon_me : { + // issue: https://github.com/reek/anti-adblock-killer/issues/488 + host : ['kisscartoon.me'], + onAlways : function () { + Aak.uw.xaZlE = function () {}; + }, + onIdle : function () { + Aak.removeElement('iframe[id^="adsIfrme"]'); + } + }, + exashare_com : { + // by: Watilin + // pull: https://github.com/reek/anti-adblock-killer/pull/519 + // issue: https://github.com/reek/anti-adblock-killer/issues/486 + // issue: https://github.com/reek/anti-adblock-killer/issues/506 + host : ['exashare.com'], + onEnd : function () { + var jwplayer = Aak.uw.jwplayer; + if (jwplayer) { + var setupScript = Array.prototype.filter.call( + document.scripts, + function ($script) { + var source = $script.innerHTML; + return source && Aak.contains(source, "setup"); + })[0]; + + var match = setupScript.innerHTML.match( + /\bjwplayer\s*\(\s*(["'])(.+?)\1\s*\)\s*\.\s*setup\s*\(\s*(\{(?:.|\s)+?\})\s*\)\s*;/); + + var id = match[2]; + var setupStr = match[3]; + + /* We have to “eval” setupStr because JSON.parse doesn't work, + and we have to do it from inside a content function to + avoid exposing elevated API. */ + + var contentFunction = (function () { + // “passing” variables from elevated context (see calls to replace below) + var setupObj = _setupStr_; + var id = "_id_"; + + // Delays execution to let the content script set its timer + setTimeout(function () { + // violently kills all timers + var i = setTimeout(function () {}, 0); + for (; i--; ) { + clearTimeout(i); + clearInterval(i); + } + + // rearms the player + var playerInstance = jwplayer(id).setup(setupObj); + }, 500); + } + .toString() + .replace("_setupStr_", setupStr) + .replace("_id_", id)); + + Aak.addScript("(" + contentFunction + "());"); + } + } + }, + an1me_se : { + // issue: https://github.com/reek/anti-adblock-killer/issues/190 + host : ['an1me.se'], + onIdle : function () { + setTimeout(function () { + Aak.uw.isBlockAds2 = false; + }, 10000); + } + }, + channel4_com : { // research solution + // issue: + host : ['channel4.com'], + onIdle : function () {} + }, + cbs_com : { // research solution + // issue: + host : ['cbs.com'], + onStart : function () { + // + abp rule + //Aak.setCookie('ad-block-counter', 0); + }, + onIdle : function () { + /* + setTimeout(function () { + var player = document.querySelector("#rcpHolder"); + }, 3000); + */ + } + }, + tvcatchup_com : { // research solution + // issue: + host : ['tvcatchup.com'], + onStart : function () { + // + abp rule + //Aak.setCookie('ad-block-counter', 0); + }, + onIdle : function () { + //Aak.setCookie('ad-block-counter', 0); + /* + var ch = { + '1':'bbcone', + '2':'bbctwo', + '3':'itvone', + '4':'chan4', + '5':'five' + } + + var number = location.pathname.split('/')[2]; + + var setup = { // jwv6 rtmp + file : "http://tvcatchup-live.hls.adaptive.level3.net/tvcatchup-201/smil:"+ch[number]+"_desk_wifi.smil/playlist.m3u8", + autostart : true, + live: true, + primary : 'flash' + }; + */ + + } + }, + hqq_tv : { // putlocker.is + host : ['hqq.tv'], + onIdle : function () { + // + abp rule + // http://hqq.tv/player/embed_player.php?vid=R3DGHG3GKXX7&autoplay=no + if ('/player/embed_player.php' == location.pathname) { + document.querySelector('form[id^="form-"]').submit(); + } + } + }, + // Poland + wp_domains : { + // https://github.com/reek/anti-adblock-killer/issues/300 + host : ['biztok.pl', 'wp.tv', 'wp.pl', 'sportowefakty.pl', 'kafeteria.tv', '.wrzuta.pl', 'pudelek.tv', 'komediowo.pl', 'sfora.pl', 'autokrata.pl', 'sportfan.pl', 'wawalove.pl', 'hotmoney.pl', 'aleseriale.pl', 'babol.pl', 'snobka.pl', 'nocoty.pl', 'money.pl'], + onIdle : function () { + //Aak.dumpDOM(3000); + setTimeout(function () { + + var replacePlayerWP = function (mid, player) { + /* Request + http://get.wp.tv/?mid=1661056 + http://wp.tv/player/mid,1661056,embed.json + http://get.wp.tv/?f=2896462.1426329056904.l.webm&rnd=1 + */ + Aak.request({ + url : 'http://wp.tv/player/mid,' + mid + ',embed.json', + onload : function (result) { + try { + var res = result.responseText; + var obj = JSON.parse(res); + Aak.player.html5(player, { + autostart : true, + file : obj.clip.url[0].url + }); + } catch (e) { + console.log('error', result, player); + } + } + }); + } + + var replacePlayerWrzuta = function (key, channel, elem, autostart) { + Aak.request({ + // http://www.wrzuta.pl/npp/embed/wolnapolska2/0I0HQ2mutJc + url : 'http://www.wrzuta.pl/npp/embed/' + channel + '/' + key, + onload : function (result) { + try { + var res = result.responseText; + var obj = JSON.parse(res); + Aak.player.html5(elem, { + autostart : autostart, + file : obj.url[0].url + }); + } catch (e) { + console.log('error', result, player); + } + } + }); + } + + var replacePlayerlivestream = function (lid, elem, autostart) { + Aak.request({ + // http://wp.tv/player/lid,1354,ts,1432569945076,livestream.json + url : 'http://wp.tv/player/lid,' + lid + ',ts,' + Date.now() + ',livestream.json', + onload : function (result) { + try { + var res = result.responseText; + var obj = JSON.parse(res); + Aak.player.html5(elem, { + autostart : autostart, + file : obj.clip.url[0].url[0] + }); + } catch (e) { + console.log(result, 'error', player); + } + } + }); + } + + // Using an external flash player is impossible because protected by crossdomain.xml + var players = document.querySelectorAll('.wp-player'); // #Player0, #Player1, #mainPlayer + if (players.length) { + // fixbug gm_xhr loop request - http://tinyurl.com/pqa9htq + for (var i = 0; i < players.length; i++) { + var player = players[i]; + var parent = player.parentNode; + var script = player.previousSibling; + var titles = document.querySelectorAll('.wp-player .titleCont a.title'); + var embedvideos = document.querySelectorAll('script[src*="/embed_video.js"]'); + console.log(player, parent, script, titles) + + if (embedvideos.length) { + // pudelek.wrzuta.pl: http://tinyurl.com/l8jo5v2 + // pudelek.tv: http://tinyurl.com/klyzh6r + // pudelek.tv (triple): http://tinyurl.com/n9b27o2 + // film.wp.pl: http://tinyurl.com/q7k5bxp + var script = embedvideos[i]; + var key = /key=(\w+)/.exec(script.src)[1]; + var channel = /login=(\w+)/.exec(script.src)[1]; + var autostart = /autoplay/.test(script.src); + replacePlayerWrzuta(key, channel, player, autostart); + Aak.log('embed_video.js') + } else if (script && /lid=/.test(script.innerHTML)) { + // wiadomosci.wp.pl: http://tinyurl.com/pdwx7na + // http://wp.tv/player/lid,1354,ts,1432569945076,livestream.json + // http://get.wp.tv/?lid=1354 + var lid = script.innerHTML.match(/lid[=,]([0-9]+)/); + replacePlayerlivestream(lid, player, true); + Aak.log('livestream lid'); + } else if (titles.length && /mid/.test(titles.href)) { + // sportowefakty.pl: http://tinyurl.com/l6zabcx + var mid = titles[i].href.match(/mid[=,]([0-9]+)/); + Aak.log('title.href') + } else if (parent.id) { + if (parent.dataset.url) { + // wp.tv: http://tinyurl.com/pzde29t + var mid = parent.dataset.url.match(/mid[=,]([0-9]+)/); + Aak.log('parent.dataset.url') + } else { + // kafeteria.tv: http://tinyurl.com/nofp58a + var mid = parent.innerHTML.match(/mid[=,]([0-9]+)/); + Aak.log('parent.innerHTML') + } + } else if (script && script.tagName == 'SCRIPT') { + // film.wp.pl: http://tinyurl.com/mh9onfw + // pudelek.tv (double): http://tinyurl.com/lefvwtx + var mid = script.innerHTML.match(/mid[=,]([0-9]+)/); + Aak.log('script.innerHTML') + } + if (mid != null && mid.length == 2) { + replacePlayerWP(mid[1], player); + } + } + } + + }, 5e3); + } + }, + bitzfree_com : { + // issue: https://github.com/reek/anti-adblock-killer/issues/314 + host : ['bitzfree.com'], + onEnd : function () { + /* fixed by rules + setTimeout(function () { + var elems = document.querySelectorAll('.btc_adresi'); + if (elems.length) { + for (var i = 0; i < elems.length; i++) { // VU2RmhJMkRKSQ + var elem = elems[i]; + Aak.createElement({ + tag : 'span', + html : '', + replace : elem + }); + } + } + }, 1e3); + */ + } + }, + tvn_pl : { + // by: Marek + // fix: http://tinyurl.com/ohbvz4r + // issue. https://github.com/reek/anti-adblock-killer/issues/192 + // test: http://tinyurl.com/mcwtz27 + // proxy: http://www.proxy.xmc.pl + host : ['tvn.pl', 'tvn24.pl', 'player.pl'], + onEnd : function () { + Aak.onElement('#detailEpisode', function () { + /* + var videoURL = 'http://n-2-4.dcs.redcdn.pl/dcs/o2/tvnplayer/vod/14_400_20029_0011/TV_MP4/4c407d87-5d77-4778-81e3-dbc560bbc19b/tv_mp4_2928000.mp4?salt=391F25D2E95781550E7A3BA1730AF412&token=8CC29AECB565397B692D4BDE4B37048742B3BD892212F8B9F1DE0D40D8662C775C82311B35074D38BC4EF8FFDCB15067610BB855955359B8F06C629C44485A42DBFEDAF17A812A67F2ECF4B7996A9B73C754E1089DB4A81BDBF798C23B5EBEEF1C6FA6668FB290EA77013C67FEB0DD5005F90D890ED6B76675487EDB7999CE3C9316D6237B009CC97819E798FE760A0B'; + Aak.player.html5('#detailEpisode', { + autostart : true, + file : videoURL + }); + */ + + var sp = document.location.href.split(/[.,]/); + var id = sp[sp.length - 2]; + // http://player.pl/api/?platform=ConnectedTV&terminal=Samsung&format=json&v=2.0&authKey=ba786b315508f0920eca1c34d65534cd&type=episode&id=34555&sort=newest&m=getItem&deviceScreenHeight=1080&deviceScreenWidth=1920 + Aak.request({ + url : '/api/?platform=ConnectedTV&terminal=Samsung&format=json&v=2.0&authKey=ba786b315508f0920eca1c34d65534cd&type=episode&id=' + id + '&sort=newest&m=getItem&deviceScreenHeight=1080&deviceScreenWidth=1920', + onload : function (result) { + var res = result.responseText; + var o = JSON.parse(res); + console.log(o) + var standardURL = o.item.videos.main.video_content[0].url; + Aak.request({ + url : standardURL, + onload : function (result) { + var videoURL = result.responseText; + Aak.player.html5('#detailEpisode', { + autostart : true, + file : videoURL + }); + } + }); + } + }); + }); + } + }, + ipla_tv : { + // by: Marek + // fix: http://tinyurl.com/ptb4ybg + // issue. https://github.com/reek/anti-adblock-killer/issues/522 + // test1: http://tinyurl.com/pcey4nz + // test2: http://tinyurl.com/prsurdb + host : ['ipla.tv'], + onEnd : function () { + Aak.onElement('#vod-player', function () { + Aak.request({ + url : '/VOD/play-in-ipla/' + location.href.match(/\/vod-(\d+)/)[1], + onload : function (result) { + var res = result.responseText; + var idn = res.match(/ipla:\/\/playvod-1\|([a-z0-9]+)/)[1]; + console.log(idn) + Aak.request({ + url : 'http://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=mipla/23&media_id=' + idn, + onload : function (result) { + var res = result.responseText; + var o = JSON.parse(res); + console.log(o) + if (o.vod.video_hd) + var videoURL = o.vod.video_hd; + else if (o.vod.video) { + var videoURL = o.vod.video; + } else { + var videoURL = o.vod.copies[0].url + } + Aak.player.html5('#vod-player', { + autostart : true, + file : videoURL + }); + } + }); + } + }); + }); + } + }, + // France + playtv_fr : { // research solution + host : ['play.tv', 'playtv.fr'], + onAlways : function () {}, + onEnd : function () { + //Aak.DOMstringify(3000); + //Aak.stopRedirect(); + //Aak.confirmLeave(); + + // http://playtv.fr/television/tooltip/arte/ + /* + http://playtv.fr/player/play/?channel=bfm-tv&language=fr&format=flash&bitrate=0 + rtmpe://37.187.254.104:80/origin01/?files=800|bfm-tv_800,300|bfm-tv_300&dar=ws&t=18ddf1b11ff0fbb24e3ecbecf4748ff821784cd760dd9e1a9ec2ae552e15361cae296b29d00d72a7f56df77544a62c51176a227b5c5c93f30d7050591e8c8271454ccaa94fd2156d0bb32ae87c5c6344d30d84e588a7e7b87cd1ed4c6c728eb9206e06b02187169ba4f07e8a7c14ad15823c0dd860dd286a + + + ;(function(win, doc, app) { + app.Data = app.Data || {}; + app.Data.Remote = app.Data.Remote || {}; + app.Data.Remote.channel = {"alias":"bfm-tv","id":17,"name":"BFM TV","images":{"mini":"\/\/static.playtv.fr\/img\/tv_channels\/17_mini.png","small":"\/\/static.playtv.fr\/img\/tv_channels\/17_small.png","medium":"\/\/static.playtv.fr\/img\/tv_channels\/17_medium.png","source":"\/\/static.playtv.fr\/img\/tv_channels\/17_source.png"},"has_programs":true,"is_adult":false,"has_social_tv":true,"streaming_source":"internal"}; + + })(window, window.document, window.ptv || (window.ptv = {})); + */ + } + }, + rmcsportbfmtv_com : { // webradio + host : ['rmcsport.bfmtv.com'], + onIdle : function () { + + var flashvars = { + urlRadio : "http://mp3lg4.tdf-cdn.com/10160/rmc.mp3", + nom : "live", + categorie : "live", + urlSmart : "" // set empty to remove audio ad + }; + var params = { + wmode : "transparent" + }; + + Aak.uw.swfobject.embedSWF("/swf/RMCLIVE.swf", "liveplayer", "70", "90", "10.0.0", "", flashvars, params); + } + }, + eclypsia_com : { + host : ['eclypsia.com'], + onAlways : function () { + // Solution 1 + // abp rules + + // Solution 2 + Aak.uw.isABActivated = function () { + return false; + }; // Kill antiadblock + Aak.uw.refresh_iframe = function () {}; // Stop ads to be loaded + }, + onEnd : function () { + // Solution 3 + var element = document.querySelector('div[id^="webtv_iframe_"]'); + if (element != null) { + var videoId = element.id.split('_')[2]; + setTimeout(function () { + element.innerHTML = ''; + }, 1000); + } + } + }, + m6web_fr : { + host : ['m6web.fr'], + onEnd : function () { + var player = document.querySelector('object[id$="_flash_api"]'); + var config = document.body.innerHTML.match(/M6.Player.config = ({.+});/); + console.log(config); + if (player != null && config != null) { + var config = JSON.parse(config[1]); + // Replace player + Aak.player.html5(player, { + autostart : true, + file : config.sources[1].src + }); + } + } + }, + gamingroom_tv : { + host : ['gamingroom.tv'], + onAlways : function () { + Aak.uw.adblock_detect = function () {}; + Aak.uw.GR_adblock_hide_video = function () {}; + Aak.uw.adblock_video_msg_start = function () {}; + Aak.uw.adblock_video_msg_stop = function () {}; + Aak.uw.disable_chat = function () {}; + } + }, + // Germany + sat1_de : { // research solution + host : ['sat1.de', 'sat1.ch'], + onStart : function () {}, + onEnd : function () { + /* + + Bad + gp_adBlockStatus emptyAd + abView 1 + abView_X empty + noAbView empty + noAbView_X empty + + OK + No gp_adBlockStatus + abView empty + abView_X empty + noAbView 1 + noAbView_X empty + + Sitemap: http://www.sat1.de/sitemaps/sitemap-videos.xml + Disallow: /videos + http://video.sevenoneintermedia.de/clips/mp4-840/2447000/2447529-840-148668.mp4 + http://www.sat1.de/dynamic/thumbnails/full/2447000/2447529-full-52_88-original.jpg + http://www.sat1.de/tv/die-strengsten-eltern-der-welt/video/58-schlaege-und-make-up-clip + + + Aak.log(Aak.uw); + */ + } + }, + now_domains : { + // issue: https://github.com/reek/anti-adblock-killer/issues/336 + // test: http://tinyurl.com/peeobou + // test: http://jsbin.com/vucobejofo + host : ['voxnow.de', 'rtl-now.rtl.de', 'rtl2now.rtl2.de', 'n-tvnow.de', 'superrtlnow.de', 'rtlnitronow.de', 'nowtv.de'], + onIdle : function () { + /* + Aak.editSWF('#videoplayer', { + delFlashvars : 'abcheck_enabled,adcall,adclasses,adconfig,admeta,adslog,agof,ama,angebot,as,asparts,breakad,connectioncheck,cslog,dev,dimmer,errorlog,feedback,fmsident,gtv,highlights,ivw,ivw_play,js,js_event_function,logo,logo_basewidth,logopos,nielsen,ord,osmf,svm,tile,videoplaza,videoplaza_base_url,videoplaza_share,videoplaza_tag,vpEnvironmentURL,xl' + }); + */ + } + }, + myspass_de : { + host : ['myspass.de'], + onIdle : function () { + // test: http://tinyurl.com/lto9pyd + var videoid = location.pathname.match(/\/(\d+)\/$/); + + if (videoid != null) { + Aak.request({ + url : 'http://www.myspass.de/myspass/includes/apps/video/getvideometadataxml.php?id=' + videoid[1], + onload : function (result) { + var res = result.responseText; + //Aak.log(res); + + // Get video + var parser = new DOMParser(); + var dom = parser.parseFromString(res, "application/xml"); + var file = dom.getElementsByTagName("url_flv").item(0).textContent; + + // Remove elements + Aak.removeElement('div.loadingGif'); + + // Replace player + Aak.player.html5('#player', { + autostart : true, + file : file + }); + + /* + // Replace player + Aak.player.flowplayer('#player', { + clip : { + autoPlay : true, + url : file + } + }); + */ + + /* + // Replace player + Aak.player.jwplayer6('#player', { + autostart : true, + file : file + }); + */ + + /* + // Replace player + Aak.player.plugin('#player', { + autostart : true, + file : file + }); + */ + + /* + // Replace player + Aak.player.videojs('#player', { + autostart : true, + file : file + }); + */ + + /* + // Replace player + Aak.player.external('#jwplayer6','player', { + autostart : true, + // skin: 'lulu', + file : file + }); + */ + + } + }); + } + } + }, + // Nederland + rtlxl_nl : { + // test: http://tinyurl.com/l2zkv3d + host : ['rtlxl.nl', 'rtlnieuws.nl'], + onEnd : function () { + Aak.editSWF('#_rtlosmf0', { + setFlashvars : { + adblock : false + } + }); + } + }, + // Norway + vgtv_no : { + // issue: https://github.com/reek/anti-adblock-killer/issues/367 + // test: http://tinyurl.com/nwp85t + host : ['vgtv.no'], + onEnd : function () { + var prevHash = location.hash; + var regexHash = /#\!\/video\/(\d+)\//; + setInterval(function () { + if (location.hash != prevHash && regexHash.test(location.hash)) { + var prevHash = location.hash; + var id = prevHash.match(regexHash)[1]; + var player = Aak.getElement('object[id^="OoFlash"]'); + Aak.removeElement('div.loader-container'); + Aak.request({ + url : 'http://svp.vg.no/svp/api/v1/vgtv/assets/' + id + '?additional=settings|chapters|cuePoints|externalId|barrels|externalCategoryId|nextAsset&appName=vgtv-website', + onload : function (result) { + var res = result.responseText; + var obj = JSON.parse(res); + console.log(player, obj.streamUrls.mp4) + Aak.player.html5(player, { + autostart : false, + file : obj.streamUrls.mp4 + }); + } + }); + } + }, 1e3); + } + }, + // Italy + rai_tv : { // research solution + host : ['rai.tv'], + onStart : function () {}, + onIdle : function () {} + }, + // TV Stream + youwatch_org : { + // issue: https://github.com/reek/anti-adblock-killer/issues/308#issuecomment-93075240 + host : ['youwatch.org'], + onStart : function () {}, + onEnd : function () { + if (Aak.getElement('#videoyw')) { + Aak.removeElement('#adbuddy-overlay, #adbuddy-no-adb-container'); + Aak.uw.disableAds(null, null, 1); + Aak.uw.player_start(); + } + } + }, + allmyvideos_net : { + host : ['allmyvideos.net'], + onAlways : function () { + Aak.uw.adblocktest = { + present : 0, + sent : 1 + }; + } + }, + ilive_domains : { + host : ['ilive.to', 'streamlive.to'], + onEnd : function () { + if (/^\/embedplayer.php/i.test(location.pathname)) { + setTimeout(function () { + // Skip timer + Aak.uw.removeOverlayHTML(); + }, 1000); + } + } + }, + micast_tv : { + host : ['micast.tv'], + onEnd : function () { + if (/^\/gen\d+.php/.test(location.pathname)) { + setTimeout(function () { + // Skip timer and close ads + Aak.uw.removeOverlayHTML(); + }, 1000); + } + } + }, + pxstream_tv : { + host : ['pxstream.tv'], + onEnd : function () { + if (/^\/embedrouter.php/.test(location.pathname)) { + setTimeout(function () { + // Skip timer and close ads + Aak.uw.closeAd(); + }, 1000); + } + } + }, + sawlive_tv : { + host : ['sawlive.tv'], + onIdle : function () { + if (/^\/embed\/watch\//i.test(location.pathname)) { + // Skip timer and close ads + Aak.uw.display = false; + Aak.uw.closeMyAd(); + } + } + }, + goodcast_co : { + host : ['goodcast.co'], + onIdle : function () { + if (/^\/stream.php/.test(location.pathname)) { + // remove ads allowed by easylist + Aak.uw.$(".advertisement").hide(); + Aak.uw.$('.adsky iframe').attr("src", "about:blank"); + } + } + }, + showsport_tv_com : { + host : ['showsport-tv.com'], + onIdle : function () { + if (/^\/ch.php/.test(location.pathname)) { + // remove ads allowed by easylist + Aak.removeElement('#advertisement, .advertisement'); + } + } + }, + sharecast_to : { + host : ['sharecast.to'], + onIdle : function () { + if (/^\/embed.php/.test(location.pathname)) { + + // Disable popunders + var interval = setInterval(function () { + Aak.setCookie('vid_main', true); + Aak.setCookie('vid_sub', 2); + Aak.setCookie('vid_delay', true); + }, 100); + + setTimeout(function () { + clearInterval(interval); + }, 5000); + + // Remove transparent overlay + Aak.removeElement('#table1'); + } + }, + onBeforeScript : function (e) { + if (Aak.contains(Aak.innerScript(e), 'popundrOpenCloseWindow()')) { + Aak.stopScript(e); + } + } + }, + flowplayer_antiadblock : { + host : ['videofun.me', 'videobug.net', 'video44.net', 'play44.net', 'byzoo.org', 'playbb.me', 'videowing.me', 'videozoo.me', 'easyvideo.me', 'playpanda.net'], + onIdle : function () { + /* + http://www.animetoon.tv/black-lagoon-episode-1 + http://videowing.me/embed?w=718&h=438&video=ongoing/yu-gi-oh_arc-v_-_53.mp4 + http://playbb.me/embed.php?w=718&h=438&vid=at/nw/yu-gi-oh_arc-v_-_53.mp4 + http://videozoo.me/embed.php?w=718&h=438&vid=at/nw/yu-gi-oh_arc-v_-_53.mp4 + http://www.easyvideo.me/gogo/?w=718&h=438&file=yu-gi-oh_arc-v_-_53.mp4&sv=1 + http://playpanda.net/embed.php?w=718&h=438&vid=at/nw/yu-gi-oh_arc-v_-_53.mp4 + */ + + // allow fullscreen when abp is enabled and remove ad layer + // ads blocked by abp rule + if (/^\/(embed|gogo|gplus)/.test(location.pathname)) { + Aak.editSWF('#flowplayer_api', { + setAttributes : { + allowfullscreen : true + } + }); + } + } + }, + str3amtv_domains : { // remove ads + popupwindow + host : ['str3amtv.com', 'futstr3am.2fh.co'], + onIdle : function () { + Aak.removeElement('div[id^="floatLayer"]'); + var anchors = document.querySelectorAll('a[onclick^="window.open"]'); + for (var i in anchors) { + var fn = anchors[i].onclick.toString(); + var re = new RegExp("http://" + location.host + "/[a-z0-9-]+\.php"); + var link = fn.match(re); + var link = link && link[0] || null; + //Aak.log(link); + anchors[i].onclick = null; + anchors[i].href = link; + anchors[i].target = '_self'; + } + } + }, + // -------------------------------------------------------------------------------------------- + // Firefox + // -------------------------------------------------------------------------------------------- + yellowbridge_com : { + host : ['yellowbridge.com'], + onAlways : function () { + Aak.uw.finalizePage = function () { + return; + }; + }, + onBeforeScript : function (e) { + if (Aak.contains(Aak.innerScript(e), 'finalizePage()')) { + Aak.stopScript(e); + } + } + }, + gamespowerita_com : { + host : ['gamespowerita.com'], + onBeforeScript : function (e) { + if (Aak.contains(Aak.innerScript(e), '(document.getElementById("test" + id_2).style.height < 1)') || Aak.contains(Aak.innerScript(e), 'if(typeof(window.google_jobrunner)=="undefined" || document.getElementById("test" + id_2).style.height < 1)') || Aak.contains(Aak.innerScript(e), 'if(typeof(window.google_jobrunner)=="undefined")')) { + Aak.stopScript(e); + } + } + }, + sporttvdireto_com : { // bug auto redirect loop + host : ['sporttvdireto.com', 'tvdesporto.com'], + onStart : function () { + // this solution dont works + // document.getElementById('ads1').clientHeight < 20 + Aak.addElement('div#ads1'); + Aak.addStyle("#ads1 { height: 30px; }"); + }, + onBeforeScript : function (e) { + if (Aak.contains(Aak.innerScript(e), 'location.href = \'http://tvdesporto.com/chorar.php\';')) { + Aak.stopScript(e); + } + } + }, + altervista_zeb89 : { + host : ['zeb89.altervista.org'], + onBeforeScript : function (e) { + // greasemonkey/addons4.js + if (Aak.contains(Aak.innerScript(e), 'typeof GM_addonsStartup !== "undefined"')) { + Aak.stopScript(e); + } + } + }, + // -------------------------------------------------------------------------------------------- + // Generic + // -------------------------------------------------------------------------------------------- + generic : { + host : ['.*?'], + onRemove : function (removedNode) { + if (Aak.debug.removed) { + if (removedNode.src || + removedNode.id || + removedNode.className && + !/^firebug/.test(removedNode.className)) { + // Node removed + Aak.log(removedNode); + } + } + }, + onStart : function () { + + // FuckAdBlock & BlockAdBlock + // site: http://www.sitexw.fr/fuckadblock/ + // repo: https://github.com/sitexw/FuckAdBlock + // repo: https://github.com/sitexw/BlockAdBlock + // note: when fuckadblock.js or blockadblock.js is blocked + // note: added check and clearEvent because http://sh.st/vovHE use a custom version + if (typeof(Aak.uw.fuckAdBlock) === 'undefined' && typeof(Aak.uw.blockAdBlock) === 'undefined') { + Aak.addScript(function () { + fuckAdBlock = blockAdBlock = { + onDetected : function (fn) { + this.on(true, fn); + return this; + }, + onNotDetected : function (fn) { + this.on(false, fn); + return this; + }, + on : function (detected, fn) { + if (!detected) { + fn(); + } + return this; + }, + check : function () {}, + clearEvent : function () {} + }; + }); + } + + }, + onAlways : function () {}, + onIdle : function () { + + /* Alternative solution + // AntiAdblock (Packer) only Zdxd + if (typeof Aak.uw.k == 'function' && + typeof Aak.uw.h == 'function' && + typeof Aak.uw.ShowAdbblock == 'function' && + Aak.contains(Aak.uw.ShowAdbblock.toString(), 'warningMessage.innerHTML=text_detected()')) { + + // Disable + Aak.uw.ShowAdbblock = function () {return;}; + Aak.uw.k = function () {return;}; + Aak.uw.h = function () {return;}; + Aak.autoReport('AntiAdblockPackerZdxd)'); + } + */ + + /* + // Adunblock - http://adunblock.com/ + if (Aak.getCookie('adblock') == 1) { + Aak.setCookie('adblock', 0); + Aak.setCookie('bar_closed', 1); + } + */ + + // Better Stop Adblock + //Aak.uw.audio_file = false; + + // Adbuddy + if (typeof Aak.uw.closeAdbuddy === 'function') { + Aak.uw.closeAdbuddy(); + Aak.autoReport('Adbuddy'); + } + + // AdBlock Alerter (WP) Fix 10.12.2014 + if (Aak.getElement('div.adb_overlay > div.adb_modal_img')) { + // Remove Alert + Allow Scroll + Aak.removeElement('div.adb_overlay'); + Aak.addStyle('html,body {height:auto; overflow: auto;}'); + Aak.autoReport('AdBlockAlerter'); + } + + // Unknow Anti AdBlock system + if (Aak.getElement('#blockdiv') && Aak.contains(Aak.getElement('#blockdiv').innerHTML, 'disable ad blocking or use another browser without any adblocker when you visit')) { + Aak.removeElement('#blockdiv'); + } + + // FuckAdBlock & BlockAdBlock + // by: Angelsl + // pull: https://github.com/reek/anti-adblock-killer/pull/479 + // site: http://www.sitexw.fr/fuckadblock/ + // repo: https://github.com/sitexw/FuckAdBlock + // repo: https://github.com/sitexw/BlockAdBlock + // when FuckAdBlock class exist + if (typeof(Aak.uw.FuckAdBlock) !== 'undefined') { + Aak.addScript(function () { + window.FuckAdBlock.prototype._emitEvent = window.FuckAdBlock.prototype.emitEvent, + window.FuckAdBlock.prototype.emitEvent = function () { + this._emitEvent(!1) + }; + }); + } + if (typeof(Aak.uw.BlockAdBlock) !== 'undefined') { + Aak.addScript(function () { + window.BlockAdBlock.prototype._emitEvent = window.BlockAdBlock.prototype.emitEvent, + window.BlockAdBlock.prototype.emitEvent = function () { + this._emitEvent(!1) + }; + }); + } + + + // Antiblock - http://antiblock.org/ + var styles = document.querySelectorAll('style'); + for (var i = 0; i < styles.length; i++) { + if (styles[i].innerHTML.length) { + var css = styles[i].innerHTML.replace(/[\n\r\t\s]+/g, ""); + var id = /#([0-9a-z]{4,10})\{.*position:fixed\!important;.+document\.documentElement.scrollTop\?document\.documentElement\.scrollTop:document\.body\.scrollTop.+\}#/.exec(css); + if (id != null && id.length == 2) { + Aak.setLocal('AntiblockID', id[1]); + } + } + } + + // Anti-Adblockers + var systems = { + // Plugins WordPress + 'NoAdblock' : '(/plugins/no-adblock/|/blockBlock/blockBlock.jquery.js)', + 'BetterStopAdblock' : '(/plugins/better-stop-adblock/|bsa-script-doctype.js|bsa-script-no-doctype.js)', + 'WordPressAdBlockBlocker' : '/plugins/wordpress-adblock-blocker/', + 'AntiBlockBukssaAyman' : '/plugins/anti-block/', + 'BlockAlyzer' : '/plugins/blockalyzer-adblock-counter/', + 'AdBlockingDetector' : '/plugins/ad-blocking-detector/', + // Plugins Website + 'Adworkmedia' : '(adworkmedia|loxtk|contentlockingnetworks).com/gLoader.php', + 'Adscendmedia' : 'adscendmedia.com/gwjs.php', + 'FuckAdBlock' : '(/fuckadblock.js|/blockadblock.js)', + 'jQueryAdblock' : '/jquery.adblock.js', + 'jQueryAdblockDetector' : '/jquery.adblock-detector.js', + 'AdvertisementJs' : '/advertisement.js', + 'AdvertisementJsMin' : '/advert.js', + 'AdvertisementJsSuffix' : '/advertisement([0-9]+|[\-._][a-z0-9]+)\.js', + 'AdframeJs' : '/adframe.js', + 'AntiAdBuster' : '/anti-ad-buster.js', + 'RTKAntiAdblock' : '/blockcake.js', + 'AdblockDetector' : '/AdblockDetector/handler.min.js', + 'jQueryAntiAdsBlock' : '/jquery.antiadsblock.js', + 'Adbuddy' : '/js/adbuddy.min.js', + 'AntiADsBlocker' : '/aadb/script.js' + } + var scripts = document.scripts; + for (var i = 0; i < scripts.length; i++) { + var script = scripts[i]; + if (script.src) { + for (var key in systems) { + if (new RegExp(systems[key], 'i').test(script.src)) { + //Aak.log(key, location.host, script.src); + Aak.autoReport(key, location.host, script.src); + break; + } + } + } + } + + }, + onInsert : function (insertedNode) { + + // All Nodes + if (Aak.debug.inserted) { + if (insertedNode.src || + insertedNode.id || + insertedNode.className && + !/^firebug/.test(insertedNode.className)) { + // Node inserted + Aak.log(insertedNode); + } + } + + // No-Adblock - http://www.no-adblock.com/ + if (insertedNode.id && + insertedNode.id.length == 4 && + /^[a-z0-9]{4}$/.test(insertedNode.id) && + insertedNode.nodeName == 'DIV' && + insertedNode.firstChild && + insertedNode.firstChild.id && + insertedNode.firstChild.id == insertedNode.id && + Aak.contains(insertedNode.innerHTML, 'no-adblock.com')) { + // Remove + Aak.autoReport('No-Adblock', false, location.href); + Aak.removeElement(insertedNode); + //Aak.log(insertedNode); + } + + // StopAdblock - http://stopadblock.org/downloads/ + if (insertedNode.id && + insertedNode.id.length == 7 && + /^a[a-z0-9]{6}$/.test(insertedNode.id) && + insertedNode.nodeName == 'DIV' && + insertedNode.parentNode && + insertedNode.parentNode.id && + insertedNode.parentNode.id == insertedNode.id + '2' && + Aak.contains(insertedNode.innerHTML, 'stopadblock.org')) { + // Remove + Aak.autoReport('StopAdBlock', false, location.href); + Aak.removeElement(insertedNode); + //Aak.log(insertedNode); + } + + // AntiAdblock (Packer) + var reIframeId = /^(zd|wd)$/; + var reImgId = /^(xd|gd)$/; + var reImgSrc = /\/ads\/banner.jpg/; + var reIframeSrc = /(\/adhandler\/|\/adimages\/|ad.html)/; + + // Communs + if (insertedNode.id && + reImgId.test(insertedNode.id) && + insertedNode.nodeName == 'IMG' && + reImgSrc.test(insertedNode.src) || + insertedNode.id && + reIframeId.test(insertedNode.id) && + insertedNode.nodeName == 'IFRAME' && + reIframeSrc.test(insertedNode.src)) { + + // Variant 1 + if (insertedNode.id == 'xd') { + Aak.autoReport('AntiAdblockPackerZdxd', false, location.href); + } // Variant 2 + else if (insertedNode.id == 'gd') { + Aak.autoReport('AntiAdblockPackerWdgd', false, location.href); + } + // Remove + //Aak.log(insertedNode); + Aak.removeElement(insertedNode); + } + + /* Do not still work + // FuckAdBlock (v3.1.0) - http://github.com/sitexw/FuckAdBlock + var reClass = /(pub_300x250|pub_300x250m|pub_728x90|text-ad|textAd|text_ad|text_ads|text-ads|text-ad-links)/; + var reCss = /width: 1px/; + if (insertedNode.nodeName == 'DIV' && + insertedNode.style.cssText && + reCss.test(insertedNode.style.cssText) && + insertedNode.className && + reClass.test(insertedNode.className)) { + + // Remove + insertedNode.className=''; + Aak.autoReport('FuckAdBlock', false, location.href); + Aak.removeElement(insertedNode); + } + */ + + // Adunblock - http://adunblock.com/ + var reId = /^[a-z]{8}$/; + var reClass = /^[a-z]{8} [a-z]{8}/; + var reBg = /^[a-z]{8}-bg$/; + var reStyle = /top: -?[\d]+px; opacity: [\d]; visibility: visible;/; + var reMessage = /Il semblerait que vous utilisiez un bloqueur de publicité !/; + + // Communs + if (typeof Aak.uw.vtfab != 'undefined' && + typeof Aak.uw.adblock_antib != 'undefined' && + insertedNode.parentNode && + insertedNode.parentNode.nodeName == 'BODY' && + insertedNode.id && + reId.test(insertedNode.id) && + insertedNode.nodeName == 'DIV' && + insertedNode.nextSibling && + insertedNode.nextSibling.className && + insertedNode.nextSibling.nodeName == 'DIV') { + + // Full Screen Message (Premium) + //