
-----------------------------------
Dragon20942
Sun Mar 29, 2015 6:52 pm

Interesting Javascript
-----------------------------------
Any idea why this doesn't work anymore? http://compsci.ca/v3/viewtopic.php?t=27363

variable concatenation
You guys might get a kick out of this



-----------------------------------
Zren
Sun Mar 29, 2015 8:02 pm

RE:Interesting Javascript
-----------------------------------
Probably an increase in browser security against bookmarklets (javascript executed in the url bar).

Open up the browser's console and try running it there (Ctrl+Shift+J on chrome).

-----------------------------------
Tony
Sun Mar 29, 2015 9:10 pm

RE:Interesting Javascript
-----------------------------------
Zren is likely right, JavaScript security is a big issue. At some point Facebook attempted to even disable browser's console ( http://stackoverflow.com/questions/21692646/how-does-facebook-disable-the-browsers-integrated-developer-tools ) because too many people were falling for a scam that involved them running arbitrary javascript on their logged in account (this effectively gives your account away).

That particular piece of Javascript (from 4+ years ago) no longer works (at least not in Chrome), but if you poke around the explanation link, you can probably fix it.


$=
This now behaves differently, but you also get a lot more different characters from a string then just "false".

Previously they were coding only with letters from "false", "true", and "object".

-----------------------------------
melissarubbe
Mon May 04, 2015 2:38 am

Re: RE:Interesting Javascript
-----------------------------------
Probably an increase in browser security against bookmarklets (javascript executed in the url bar).

Open up the browser's console and try running it there (Ctrl+Shift+J on chrome).

Does this code can be apply for firefox as well?

-----------------------------------
Zren
Mon May 04, 2015 9:45 am

RE:Interesting Javascript
-----------------------------------
Opening developer tools is usually F12 on any browser. The console should be somewhere in there. If not, it'll be somewhere in the menu.
