- Desde
- 2 Feb 2017
- Mensajes
- 4.144
El código estaba ofuscado para prohibir su fácil reconocimiento , y si creo q hace lo de impedir q usen adblock
[MENTION=9679]cicklow[/MENTION] disculpa la molestia, hay forma de utilizar este script para poder completarlo con el script de popads?
Saludos y gracias
[MENTION=9679]cicklow[/MENTION] nuevamente lo estuve probando pero el popup se abre siempre, esto se puede solucionar?
Saludos
el codigo lo da popads... tiene opciones para colocar las veces que se abre
<script>
(function() {
var was_init = false;
function init_myscript() {
if (was_init) return;
was_init = true;
var c = document.createElement("div");
c.innerHTML = "*";
c.className = "adsbox";
document.body.appendChild(c);
window.setTimeout(function() {
if (0 === c.offsetHeight) {
var l = 0;
var e = "http://google.com/"; //modificar
var m = !0;
document.onclick = function() {
current_count = parseInt((document.cookie.match("noprprekcwvjnqzxscnt=([^;].+?)(;|$)") || [])[1] || 0);
if (!l && 2 > current_count) {
l = 1;
var a = document.createElement("a"),
b = Math.floor(1E12 * Math.random()),
f = Math.random().toString(36).replace(/[^a-zA-Z0-9]+/g, "").substr(0, 10);
a.href = e + "/?" + n.encode(b + "/" + (1316885 + b) + "/" + f);
a.target = "_blank";
document.body.appendChild(a);
b = new MouseEvent("click", {
view: window,
bubbles: !1,
cancelable: !1
});
a.dispatchEvent(b);
a.parentNode.removeChild(a);
a = new Date;
a.setTime(a.getTime() + 86400000);
b_date = (existing_date = unescape((document.cookie.match("noprprekcwvjnqzxsexp=([^;].+?)(;|$)") || [])[1] || "")) ? existing_date : a.toGMTString();
a = "; expires=" + b_date;
document.cookie = "noprprekcwvjnqzxscnt=" + (current_count + 1) + a + "; path=/";
document.cookie = "noprprekcwvjnqzxsexp=" + b_date + a + "; path=/"
}
};
}
Math.random().toString(36).replace(/[^a-zA-Z0-9]+/g, "").substr(0, 10);
var m = !1,
n = {
_0: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
encode: function(b) {
for (var e = "", a, c, f, d, k, g, h = 0; h < b.length;) a = b.charCodeAt(h++), c = b.charCodeAt(h++), f = b.charCodeAt(h++), d = a >> 2, a = (a & 3) << 4 | c >> 4, k = (c & 15) << 2 | f >> 6, g = f & 63, isNaN(c) ? k = g = 64 : isNaN(f) && (g = 64), e = e + this._0.charAt(d) + this._0.charAt(a) + this._0.charAt(k) + this._0.charAt(g);
return e
}
}
}, 100)
}
document.addEventListener("DOMContentLoaded", function() {
init_myscript();
});
window.setTimeout(init_myscript, 50)
})();
</script>
(function() {
var was_init = false;
var _REF = window['location']['href'];
var _CANTPOP = 1; //cantidad de pop
if (_POP_TY == undefined) {
_POP_TY = 1;
};
if (_CANTPOP == undefined || isNaN(_CANTPOP)) {
_CANTPOP = 1;
} else {
_CANTPOP = parseInt(_CANTPOP);
};
/*_POP_UNDER esta variable es para si se abre una nueva ventana (popup) o se usa la ventana actual para el ads y se abre en una nueva pestaña el sitio web*/
if(typeof _POP_UNDER === "undefined" || isNaN(_POP_UNDER)){ _POP_UNDER=0; };
function init_myscript() {
if (was_init) return;
was_init = true;
window.setTimeout(function() {
var l = 0;
var e = 'http://forobeta.com';
var m = !0;
document.onclick = function() {
current_count = parseInt((document.cookie.match("noprprekcwvjnqzxscnt=([^;].+?)(;|$)") || [])[1] || 0);
current_count2 = parseInt((document.cookie.match("noprprekcwvjnqzxscll=([^;].+?)(;|$)") || [])[1] || 0);
if (!l && _CANTPOP > current_count) {
l = 1;
if(_POP_UNDER==1){ document.location = e; }
var a = document.createElement("a"),
b = Math.floor(1E12 * Math.random()),
f = Math.random().toString(36).replace(/[^a-zA-Z0-9]+/g, "").substr(0, 10);
if(_POP_UNDER==1){ a.href = _REF; }else{ a.href = e; }
a.target = "_blank";
document.body.appendChild(a);
b = new MouseEvent("click", {
view: window,
bubbles: !1,
cancelable: !1
});
a.dispatchEvent(b);
a.parentNode.removeChild(a);
a = new Date;
a.setTime(a.getTime() + 86400000);
b_date = (existing_date = unescape((document.cookie.match("noprprekcwvjnqzxsexp=([^;].+?)(;|$)") || [])[1] || "")) ? existing_date : a.toGMTString();
a = "; expires=" + b_date;
document.cookie = "noprprekcwvjnqzxscnt=" + (current_count + 1) + a + "; path=/";
document.cookie = "noprprekcwvjnqzxscll=" + (current_count2 + 1) + a + "; path=/";
document.cookie = "noprprekcwvjnqzxsexp=" + b_date + a + "; path=/"
}
};
Math.random().toString(36).replace(/[^a-zA-Z0-9]+/g, "").substr(0, 10);
var m = !1,
n = {
_0: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
encode: function(b) {
for (var e = "", a, c, f, d, k, g, h = 0; h < b.length;) a = b.charCodeAt(h++), c = b.charCodeAt(h++), f = b.charCodeAt(h++), d = a >> 2, a = (a & 3) << 4 | c >> 4, k = (c & 15) << 2 | f >> 6, g = f & 63, isNaN(c) ? k = g = 64 : isNaN(f) && (g = 64), e = e + this._0.charAt(d) + this._0.charAt(a) + this._0.charAt(k) + this._0.charAt(g);
return e
}
}
}, 100)
}
document.addEventListener("DOMContentLoaded", function() {
init_myscript();
});
window.setTimeout(init_myscript, 50)
})();
lo actualice a:
PHP:(function() { var was_init = false; var _REF = window['location']['href']; var _CANTPOP = 1; //cantidad de pop if (_POP_TY == undefined) { _POP_TY = 1; }; if (_CANTPOP == undefined || isNaN(_CANTPOP)) { _CANTPOP = 1; } else { _CANTPOP = parseInt(_CANTPOP); }; /*_POP_UNDER esta variable es para si se abre una nueva ventana (popup) o se usa la ventana actual para el ads y se abre en una nueva pestaña el sitio web*/ if(typeof _POP_UNDER === "undefined" || isNaN(_POP_UNDER)){ _POP_UNDER=0; }; function init_myscript() { if (was_init) return; was_init = true; window.setTimeout(function() { var l = 0; var e = 'http://forobeta.com'; var m = !0; document.onclick = function() { current_count = parseInt((document.cookie.match("noprprekcwvjnqzxscnt=([^;].+?)(;|$)") || [])[1] || 0); current_count2 = parseInt((document.cookie.match("noprprekcwvjnqzxscll=([^;].+?)(;|$)") || [])[1] || 0); if (!l && _CANTPOP > current_count) { l = 1; if(_POP_UNDER==1){ document.location = e; } var a = document.createElement("a"), b = Math.floor(1E12 * Math.random()), f = Math.random().toString(36).replace(/[^a-zA-Z0-9]+/g, "").substr(0, 10); if(_POP_UNDER==1){ a.href = _REF; }else{ a.href = e; } a.target = "_blank"; document.body.appendChild(a); b = new MouseEvent("click", { view: window, bubbles: !1, cancelable: !1 }); a.dispatchEvent(b); a.parentNode.removeChild(a); a = new Date; a.setTime(a.getTime() + 86400000); b_date = (existing_date = unescape((document.cookie.match("noprprekcwvjnqzxsexp=([^;].+?)(;|$)") || [])[1] || "")) ? existing_date : a.toGMTString(); a = "; expires=" + b_date; document.cookie = "noprprekcwvjnqzxscnt=" + (current_count + 1) + a + "; path=/"; document.cookie = "noprprekcwvjnqzxscll=" + (current_count2 + 1) + a + "; path=/"; document.cookie = "noprprekcwvjnqzxsexp=" + b_date + a + "; path=/" } }; Math.random().toString(36).replace(/[^a-zA-Z0-9]+/g, "").substr(0, 10); var m = !1, n = { _0: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", encode: function(b) { for (var e = "", a, c, f, d, k, g, h = 0; h < b.length;) a = b.charCodeAt(h++), c = b.charCodeAt(h++), f = b.charCodeAt(h++), d = a >> 2, a = (a & 3) << 4 | c >> 4, k = (c & 15) << 2 | f >> 6, g = f & 63, isNaN(c) ? k = g = 64 : isNaN(f) && (g = 64), e = e + this._0.charAt(d) + this._0.charAt(a) + this._0.charAt(k) + this._0.charAt(g); return e } } }, 100) } document.addEventListener("DOMContentLoaded", function() { init_myscript(); }); window.setTimeout(init_myscript, 50) })();
<script>
(function() {
var was_init = false;
var _REF = window['location']['href'];
var _CANTPOP = 1; //cantidad de pop
if (_POP_TY == undefined) {
_POP_TY = 1;
};
if (_CANTPOP == undefined || isNaN(_CANTPOP)) {
_CANTPOP = 1;
} else {
_CANTPOP = parseInt(_CANTPOP);
};
/*_POP_UNDER esta variable es para si se abre una nueva ventana (popup) o se usa la ventana actual para el ads y se abre en una nueva pestaña el sitio web*/
if(typeof _POP_UNDER === "undefined" || isNaN(_POP_UNDER)){ _POP_UNDER=0; };
function init_myscript() {
if (was_init) return;
was_init = true;
window.setTimeout(function() {
var l = 0;
var e = 'http://eldominiodegenaro.com';
var m = !0;
document.onclick = function() {
current_count = parseInt((document.cookie.match("noprprekcwvjnqzxscnt=([^;].+?)(;|$)") || [])[1] || 0);
current_count2 = parseInt((document.cookie.match("noprprekcwvjnqzxscll=([^;].+?)(;|$)") || [])[1] || 0);
if (!l && _CANTPOP > current_count) {
l = 1;
if(_POP_UNDER==1){ document.location = e; }
var a = document.createElement("a"),
b = Math.floor(1E12 * Math.random()),
f = Math.random().toString(36).replace(/[^a-zA-Z0-9]+/g, "").substr(0, 10);
if(_POP_UNDER==1){ a.href = _REF; }else{ a.href = e; }
a.target = "_blank";
document.body.appendChild(a);
b = new MouseEvent("click", {
view: window,
bubbles: !1,
cancelable: !1
});
a.dispatchEvent(b);
a.parentNode.removeChild(a);
a = new Date;
a.setTime(a.getTime() + 86400000);
b_date = (existing_date = unescape((document.cookie.match("noprprekcwvjnqzxsexp=([^;].+?)(;|$)") || [])[1] || "")) ? existing_date : a.toGMTString();
a = "; expires=" + b_date;
document.cookie = "noprprekcwvjnqzxscnt=" + (current_count + 1) + a + "; path=/";
document.cookie = "noprprekcwvjnqzxscll=" + (current_count2 + 1) + a + "; path=/";
document.cookie = "noprprekcwvjnqzxsexp=" + b_date + a + "; path=/"
}
};
Math.random().toString(36).replace(/[^a-zA-Z0-9]+/g, "").substr(0, 10);
var m = !1,
n = {
_0: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
encode: function(b) {
for (var e = "", a, c, f, d, k, g, h = 0; h < b.length;) a = b.charCodeAt(h++), c = b.charCodeAt(h++), f = b.charCodeAt(h++), d = a >> 2, a = (a & 3) << 4 | c >> 4, k = (c & 15) << 2 | f >> 6, g = f & 63, isNaN(c) ? k = g = 64 : isNaN(f) && (g = 64), e = e + this._0.charAt(d) + this._0.charAt(a) + this._0.charAt(k) + this._0.charAt(g);
return e
}
}
}, 100)
}
document.addEventListener("DOMContentLoaded", function() {
init_myscript();
});
window.setTimeout(init_myscript, 50)
})();
</script>
if (_POP_TY == undefined) {
_POP_TY = 1;
};
var _POP_TY = 1;