7

I've been trying to get a video source from a web site but when I open the dev tools to do so, It shows me this message: "Dont open Developer Tools".

So far I have tried:

  • Turn off javascript ->doesn't work, doesn't load the video.

  • Find the function:

olplayer.src({type:"application/x-mpegURL",src:"https://127.0.0.1/no_video.mp4.m3u8"});
document.body.innerHTML="";
document.write(" Dont open Developer Tools. ");
throw new Error(" Dont open Developer Tools. ");
self.location.replace('https:'+window.location.href.substring(window.location.protocol.length));

set a breakpoint and reload, run:

Object.defineProperty(window, "console", {configurable: false});

Any ideas how to bypass this protection?

Chumpocomon
  • 661
  • 1
  • 6
  • 12
Unnamed10110
  • 107
  • 1
  • 1
  • 6

2 Answers2

4

You are probably talking about a video hosted on hqq.tv. Their code uses a check() function which does all the nasty magic to block all hacking attempts, so the easiest way to bypass the protection altogether is to disable this function.

Since recently, Chrome supports local overrides for javascript code (I found out about this from this SO thread). A bit nicer explanation on how this works can be found on Medium.

So I went ahead and located the check() function (in my case it was hqq.tv/js/embed.129.js) and added it to Overrides. In the overridden version I found the check() function and added return true; to its beginning:

function check(){return true; var element=new Image(); ...

However, this only disables the Dev Tool protection, but doesn't make your life much easier in terms of saving the video. My own solution doesn't work on hqq.tv, nor had I any luck with the solution suggested on videohelp forum. However, I was able to capture the stream using Stream Recorder Chrome extension.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Vlad Nikiforov
  • 6,052
  • 1
  • 12
  • 18
0

I Found a bypass for the detection, use FireBug Lite extension for chrome (or the browser u prefer). It bypasses the detection because it is an extension

Jesse de gans
  • 1,432
  • 1
  • 14
  • 27
  • The site I'm trying to open dev tools on, refuses to load if FireBug is installed... – Sujal Singh Oct 13 '22 at 06:56
  • Damn new ways.. what if firebug is already open before you load it or open after you load it? – Jesse de gans Oct 18 '22 at 10:09
  • 1
    Tried both ways didn't work, but anyways I figured out a way to open dev tools (by using a proxy to manipulate the javascript file that prevents me from opening dev tools) – Sujal Singh Oct 18 '22 at 10:46