edit: just decoded it and touché
edit: just decoded it and touché
// Here's a cake if you thought about inspecting the code before executing it:
let css = 'font-size: 36px; font-weight: bold; color: red';
console.log("%cNEVER paste code you don't understand into the development console.", css); console.log("%cThis is the best way to compromise your account.", css);
Or just strip the eval and use JS's native base64 decoder:
atob(base64)
Tech companies have long achieved security by simply locking people out of choices that they shouldn't make.
I'm suspecting that Google will soon lock people out of Chrome's developer tools unless they can prove they are a developer (with a certificate that's tied to the website they are debugging)
And they will tell us this is for our own security!