#1
|
|||
|
|||
Avoid website detect devtools windows
Sorry , this topic may not be related with Jdownloader but I would like some experience developer here for some advice.Hope i didn't broken any rules asking here.
There are a few video stream website which totally block streaming when I trying to inspect the video .m3u8 video at devtools option using either chrome or firefox. Copying the .m3u8 link manually and drop into jdownloader. Does anyone know a way to hide or avoid a website detect devtools widnow open ? Beside disable javasript , any extension for tempermonkey or tricks to disable dev tools checker ? some website i encouter Code:
if ((navigator.userAgent.indexOf("Chrome") != -1 || navigator.userAgent.indexOf("Safari") != -1 || navigator.userAgent.indexOf("MSIE") != -1 || navigator.userAgent.indexOf("coc_coc_browser") != -1)) { var checkStatus; var element = new Image(); Object.defineProperty(element, 'id', { get:function() { checkStatus='on'; throw new Error("Dev tools checker"); } }); setInterval(function check() { checkStatus = 'off'; console.dir(element); if(checkStatus == 'on'){ window.location.href = "**External links are only visible to Support Staff**; } }, 1000); } if (navigator.userAgent.indexOf("Firefox") != -1) { window.addEventListener('devtoolschange', event => { if(event.detail.isOpen == true){ window.location.href = "**External links are only visible to Support Staff**; |
#2
|
|||
|
|||
Block the check script using an adblocker
ex in ublock github,com/gorhill/uBlock/wiki/Resources-Library#no-setinterval-ifjs- Code:
example.com##+js(nosiif, checkStatus) Last edited by ypp; 17.06.2020 at 11:20. |
#3
|
||||
|
||||
Quote:
-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#4
|
|||
|
|||
Quote:
How should I put in my filter list ? Yeh , the video download helper works but I plan to learn more on javascript to obtain .m3u8. Creating a plugin inspect the element and .js is basic. I hope there is a way to disable the detection devtools on website. |
#5
|
||||
|
||||
maybe remove any reference to components that are exiting either exception or changing of url?
window.location.href = "**External links are only visible to Support Staff**; for instance. then the code runs, but does nothing. same with throwing exception. I'm sure it can be done many ways. raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
Thread Tools | |
Display Modes | |
|
|