AWEmpire Promo Tool bypasses NoScript and hard to block
Posted: Fri Nov 20, 2009 5:19 am
Ok, there seems too be an issue that is currently being looked at that is resulting a diffcult to block measure that AdultWebmaster Empire seems to have done knowing this add-on is used on firefox, some how they managed to work around the last issue that the bookmarklet: (javascript:setCookie("popundr", 100*365*24*60*60000);void(0) , is no longer working, some how they are on to us and well not sure if this maybe the right place to find another fix around this, here is the official overhauled code they managed to rig this time, BTW this is their promo tool code,
If there is a code to or bookmarklet that can be used to work around this problem, then let me know,
Code: Select all
function aweDoOpen(url) {
if (awePuShown === true) {
return true;
}
var aweWindow = window.open(url, "ljPu", "toolbar,status,resizable,scrollbars,menubar,location,height=680,width=790");
window.setTimeout(window.focus, 500);
if (aweWindow) {
aweWindow.blur();
awePuShown = true;
}
return aweWindow;
}
function aweSetCookie(name, value, time) {
var expires = new Date;
expires.setTime(expires.getTime() + time);
document.cookie = name + "=" + value + "; expires=" + expires.toGMTString() + "; path=/";
}
function aweGetCookie(name) {
var cookies = document.cookie.toString().split("; ");
var cookie, c_name, c_value;
for (var n = 0; n < cookies.length; n++) {
cookie = cookies[n].split("=");
c_name = cookie[0];
c_value = cookie[1];
if (c_name == name) {
return c_value;
}
}
return null;
}
function aweCheckTarget(e) {
var cookieValue = aweGetCookie("popundr");
var isRefDenied = aweCheckIsRefDenied();
if (isRefDenied === true) {
aweSetCookie("popundr", 1, 3600000);
return;
}
if (cookieValue === null) {
aweDoOpen("http://promo.awempire.com/tr/?id=14");
aweSetCookie("popundr", 1, 86400000);
}
}
function aweCheckIsRefDenied() {
return false;
}
function aweInitPu() {
if (document.attachEvent) {
document.attachEvent("onclick", aweCheckTarget);
} else if (document.addEventListener) {
document.addEventListener("click", aweCheckTarget, false);
}
}
var awePuShown = false;
function aweDoOpen(url) {
if (awePuShown === true) {
return true;
}
var aweWindow = window.open(url, "ljPu", "toolbar,status,resizable,scrollbars,menubar,location,height=680,width=790");
window.setTimeout(window.focus, 500);
if (aweWindow) {
aweWindow.blur();
awePuShown = true;
}
return aweWindow;
}
function aweSetCookie(name, value, time) {
var expires = new Date;
expires.setTime(expires.getTime() + time);
document.cookie = name + "=" + value + "; expires=" + expires.toGMTString() + "; path=/";
}
function aweGetCookie(name) {
var cookies = document.cookie.toString().split("; ");
var cookie, c_name, c_value;
for (var n = 0; n < cookies.length; n++) {
cookie = cookies[n].split("=");
c_name = cookie[0];
c_value = cookie[1];
if (c_name == name) {
return c_value;
}
}
return null;
}
function aweCheckTarget(e) {
var cookieValue = aweGetCookie("popundr");
var isRefDenied = aweCheckIsRefDenied();
if (isRefDenied === true) {
aweSetCookie("popundr", 1, 3600000);
return;
}
if (cookieValue === null) {
aweDoOpen("http://promo.awempire.com/tr/?id=14");
aweSetCookie("popundr", 1, 86400000);
}
}
function aweCheckIsRefDenied() {
return false;
}
function aweInitPu() {
if (document.attachEvent) {
document.attachEvent("onclick", aweCheckTarget);
} else if (document.addEventListener) {
document.addEventListener("click", aweCheckTarget, false);
}
}
aweInitPu();