Greasy Fork is available in English.

openload

Remove anti-adblock, ads, popups and timer waits, and show direct download link

< Opiniones de openload

Puntuación: Bueno; el script funciona tal y como promete

§
Publicado: 25/12/2016

Errors?

Script is great, so thanks. Two lines reporting errors though.

Line 26: "Expected an assignment or function call and instead saw an expression" + missing semicolon.

Line 52 (last line): "Expected an assignment or function call and instead saw an expression".

leoncastroAutor
§
Publicado: 25/12/2016

JSHint syntax checker false positive errors. There are not real errors.

See: Conditional operator See: Self invoked function


If you feel better, you can delete those false errors replacing the line 26 with "if-statements":

 function onready(fn){if(document.readyState!='loading') fn(); else document.addEventListener('DOMContentLoaded',fn);}

and deleting the "!" symbol in line 15:

(function(){

Doesn't matter, it will work the same.

§
Publicado: 26/12/2016

Thanks for clarifying. I watch a lot of openload videos, and their constant ad code modifications are a pain in the ass. I switched a couple of adblock filters to allow anything that might trigger anti-adblock, while not completely whitelisting. Combined with your script, it works great. Hopefully it remains that way, or you're cool enough to update if it breaks.

If it's only a couple syntax changes that don't really matter, I would suggest that you might as well change them. The optics of opening the editor and seeing errors, doesn't give a great impression.

Thanks again for sharing.

Publicar respuesta

Inicia sesión para responder.