// It appears Netflix is following (Facebook's lead)[https://news.ycombinator.com/item?id=7222129].
(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$$) {}
})();
// I feel like we're seeing the next generation of engineers pursue ideas that were demonstrated
// bad by the previous. First, we'll disable right-click, you know, "for security reasons." And by
// that we mean "so you can't steal our source code or save our images to your disk (even though you
// can still "View Source" in the browser and download the images in a similar way). Now we'll
// disable the console, you know, "for security reasons."
// Note: the NSA stores your phone conversations (and much more), you know, "for security reasons."
// It's an amazing justification that validates any nefarious behavior. Oh, you'd like to destroy
// my freedoms? Why? "For security reasons." Oh, go right ahead then! Thanks so much for looking
// out for me!
// Google should really patch this. The command line API should be privileged so that third
// parties can't modify how the browser behaves without explicit authorization (i.e. an extension).
// But if you're feeling up to it, you can run the following line via an extension to prevent
// this abuse:
// Object.defineProperty(window, 'console', {configurable: false, value: window.console});
// Crockford has the correct idea when it comes to
// (security in web applications)[https://www.youtube.com/watch?v=zKuFu19LgZA&t=27m15s].
// Cookies with session identifiers should be HTTPS only. Local storage and globals should not store
// sensitive data. API requests can...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.