by matt_heimer · 12y ago · 0 comments
Since this only applies to Chrome, so do the instructions:
1) Open netflix.com
2) Open developer tools.
3) Go to Sources tab.
4) Click on the tiny icon for "Show Navigator" on the left.
5) Find the JavaScript file that has: (function(){try{var $_console$$=console;Object.defineProperty(window,"console",{get:function(){if($_console$$._commandLineAPI)throw"Sorry, for security reasons, the script console is deactivated on netflix.com";return $_console$$},set:function($val$$){$_console$$=$val$$}})}catch($ignore$$){}})();
For me this is cdn1.nflxext.com/FilePackageGetter/sharedSystem/pkg-nflxsrc-*
6) For me the offending line is line 3. Click on the line number, this will set a breakpoint.
7) Reload the page, now the Script will pause before running line 3.
8) Switch to the Console tab.
9) Run: Object.defineProperty(window, "console", {configurable: false});
10) Switch back to the Sources tab and press the resume script button or F8.
11) Enjoy console access again.
The only thing Netflix's 'security' measure does is make me respect the company a bit less. Who, precisely is this going to hurt? A serious "attacker" is going to be stopped for about 15 seconds. It might stymie some kid trying to learn about front-end web dev. Good job Netflix!
Sites with a large number of inexperienced users (including children) have to think about these things.
They're not trying to lock out web-developers, but normal users that would otherwise never open the developer tools.
I just tried it now on my FB account and it looks like they didn't touch my console. My guess is that I've been developing apps on FB since 2007 and maybe i already disabled that via something long ago.
Just look at those "Forward this email or Bill Gates will kill MSN/sell your children/make the moon landing fake!" things that used to go around. People fell for them.