JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 17.06.2020, 01:46
jdcuser jdcuser is offline
Mega Loader
 
Join Date: Nov 2017
Posts: 64
Default 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**;
There are a lot of search results on ways to detect devtools or console open but not the opposite.
Reply With Quote
  #2  
Old 17.06.2020, 11:16
ypp ypp is offline
DSL Light User
 
Join Date: Jan 2019
Posts: 30
Default

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.
Reply With Quote
  #3  
Old 17.06.2020, 14:25
pspzockerscene's Avatar
pspzockerscene pspzockerscene is online now
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,913
Default

Quote:
Originally Posted by jdcuser View Post
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.
Trythe browser addon "Video DownloadHelper".

-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #4  
Old 19.06.2020, 18:02
jdcuser jdcuser is offline
Mega Loader
 
Join Date: Nov 2017
Posts: 64
Default

Quote:
Originally Posted by ypp View Post
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)
I am not able to do it as the code checkStatus or debugger are included in vidembed.abc.html in vidembed.abc.js
How should I put in my filter list ?
Quote:
Originally Posted by pspzockerscene View Post
Trythe browser addon "Video DownloadHelper".

-psp-
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.
Reply With Quote
  #5  
Old 19.06.2020, 20:35
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,611
Default

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. :]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 16:46.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.