lne.es
Test link (required):
http://www.lne.es/
Screenshot of the web page (required):

Screenshot of the console (press F12 to bring up the console) (required):

Add everything else that you believe to be useful below (optional):
Anti Adblock script
<!--
window.onload=function(){setTimeout(function(){
var dispositivo=navigator.userAgent.toLowerCase();
var navegador = navigator.userAgent.toLowerCase();
if(dispositivo.search(/iphone|ipod|ipad|android/)<=-1 && navegador.indexOf('chrome')>=0){
var it=0;
var epi_idUsu=null;
var pr_okfecha=null;
var pr_okScAc=null;
var pr_okE=null;
if(typeof pr_okAd==='undefined'||!pr_okAd){
it=readCookie("pr_okveces");
epi_idUsu=readCookie("person");
pr_okfecha=readCookie("pr_fw");
pr_okScAc=readCookie("pr_okScAc");
pr_okE=readCookie("pr_okE");
if(typeof it==='undefined'){it=1;}else{it++;}
}
if(it==0||pr_okfecha!=null&&pr_okfecha>=fechaWeb&&(epi_idUsu!=null&&pr_okScAc!=null&&pr_okScAc==1||pr_okE==1||epi_idUsu!=null&&pr_okE==2||epi_idUsu!=null&&pr_okE==3))
{
if(pr_okE==1)
{
var node = document.getElementById("pagina");
var newNode = document.createElement("div");
newNode.innerHTML="<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600italic,600,700italic,700' type='text/css' rel='stylesheet' /><link href='/elementosWeb/css/prensaok/prensaOK.css' type='text/css' rel='stylesheet' /><div class='contenedor_adblock'><div class='flotante_adblock'><div class='contenido_adblock_flotante'><div class='bloque_flotante'><div class='prensa_ok_circulo'><img src='/elementosWeb/mediaweb/images1010/prensaok/prensa_ok.png' alt='Prensa OK' /></div><div class='textos_flotante'><div><h3>No bloquees el periodismo de calidad</h3><p>Te recordamos que sigues sin incluirnos en la lista blanca de tu adblocker. Puedes hacerlo desde aquí.</p></div><div><a onclick=\"javascript:utag.link({'eventCat':'ABLBlancaP1Banner','eventAct':'clics','eventLbl':'','eventVal':''});\" class='boton' href='http://micuenta.lne.es/prensaok/agregar_lista_blanca.php?p=1' title='DESBLOQUEAR AHORA'>DESBLOQUEAR AHORA</a></div></div></div></div></div></div>";
node.appendChild(newNode);
}
else if(pr_okE==2)
{
var node = document.getElementById("pagina");
var newNode = document.createElement("div");
newNode.innerHTML="<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600italic,600,700italic,700' type='text/css' rel='stylesheet' /><link href='/elementosWeb/css/prensaok/prensaOK.css' type='text/css' rel='stylesheet' /><div class='contenedor_adblock'><div class='flotante_adblock'><div class='contenido_adblock_flotante'><div class='bloque_flotante'><div class='prensa_ok_circulo'><img src='/elementosWeb/mediaweb/images1010/prensaok/prensa_ok.png' alt='Prensa OK' /></div><div class='textos_flotante'><div><h3>No bloquees el periodismo de calidad</h3><p class='mini'>Con la validación del correo electrónico, sólo podrás acceder al contenido hasta las 24:00 h del día de hoy. Te sugerimos que nos incluyas ya en la lista blanca del adblocker para poder acceder sin restricciones al contenido gratuito la próxima vez.</p></div><div><a onclick=\"javascript:utag.link({'eventCat':'ABLBlancaP2Banner','eventAct':'clics','eventLbl':'','eventVal':''});\" class='boton' href='http://micuenta.lne.es/prensaok/agregar_lista_blanca.php?p=2' title='DESBLOQUEAR AHORA'>DESBLOQUEAR AHORA</a></div></div></div></div></div></div>";
node.appendChild(newNode);
}
}
else
{
var myDate = new Date();myDate.setMonth(myDate.getMonth() + 12);
document.cookie ="pr_okveces="+it+ ";expires="+myDate+";domain=.lne.es;path=/";
document.location='http://micuenta.lne.es/prok/?rt='+(typeof param_registro_tipo==='undefined'?'OTROS':param_registro_tipo)+'&f='+fechaWeb;
}
}
},600);};
function compruebaAdblockPremium()
{
var uUsu = getUsuario();
if(typeof usuario_premium!='undefined' && usuario_premium==1)
{
var pr_okE=readCookie("pr_okE");
if(pr_okE==1||pr_okE==2||pr_okE==3)
{
document.location='http://micuenta.lne.es/prok/?rt='+(typeof param_registro_tipo==='undefined'?'OTROS':param_registro_tipo);
return true;
}
}
return false;
}
//-->
2 ez, just unbind window.onload on DOMContentLoaded.
Filter - lne.es##script:inject(setTimeout-defuser.js, dispositivo)
or
Filter - lne.es##script:inject(abort-on-property-read.js, compruebaAdblockPremium)
No need, just unbind the event handler:
if (a.domCmp(["lne.es"])) {
a.ready(() => {
a.inject(() => {
window.onload = null;
});
});
}
Wouldn't that break any other functionality ? I thought of that first too.
Nope, there can only be one window.onload.
Alright that solves it.
OK my build script is still broken...
It is able to publish the build, but not able to save persistent variable. Also build published from CI doesn't go though review... Interesting...
build published from CI doesn't go though review
Huh??, so it directly gets published without first being reviewed by the Store team ?
Yea, it doesn't say waiting for review on the dashboard. I guess it still need a few minutes for the cache to refresh. Also, I don't think it is ever reviewed by human operator unless it is flagged or something.
If the build script is still broken, how does it manage to publish then ?
It broke after it published it...
OK, got to debug this...
The error report system is good at least... My server complains authentication key is bad... Let me test this on localhost...
OK I think I fixed it...
Yep, that fixed it, some headers were missing and PHP didn't like that.
got v9.13! Was it automated ?
The last 3 versions are actually the same, I'm just bumping version number to test build automation. Build log is available here: https://travis-ci.org/jspenguin2017/uBlockProtector
So it is working ?
Debugging this build script is the biggest pain in the rear, because I can't dump error as it may contain credentials, but finally I did it... Time to go back implementing syntax highlighter...