Hacker News new | ask | show | jobs
by treyp 5453 days ago
if you'd like to cycle through the background images, go to the site and paste this in your URL bar:

  javascript:document.getElementsByTagName('a')[0].onclick=function(e){e.preventDefault();document.body.id=switcher[(switcher.indexOf(document.body.id)+1)%switcher.length]};void(0);
now each time you click the facebook logo, the next background image will load

edit: in related news, it looks like Chrome won't let you paste javascript links into your URL bar. you may need to manually type the 'javascript:' part at the beginning.

1 comments

Interesting. I just did that in Firefox 5 and the following message popped up:

"javascript: and data: URIs typed or pasted in the address bar are disabled to prevent social engineering attacks. Developers can enable them for testing purposes by toggling the "noscript.allowURLBarJS" preference."

I guess that is a new FF5 feature.

EDIT: Oh. That's NoScript, not Firefox. Will read more carefully next time.