Coding - by tobsta weekly
rakushita
Press CTRL+SHIFT+J and a console will come up to the right of the website you are viewing. Click on the text area and then Copy/Paste these chunks of code in and hit enter to see something cool.
This one allows you to click on and edit paragraphs on the webpage:
var p=document.getElementsByTagName('p');for(var c=0;c<p.length;c++){p[c].setAttribute('contenteditable','true')}
This one makes the whole page editable:
var b=document.getElementsByTagName('body');b[0].setAttribute('contenteditable','true');
This one will prompt you asking for something random and then rewrite the page with that random thing:
var ans😛
rompt('Something random?','Type here');document.write(ans);
This one will prompt you for something random and populate all paragraphs with the nonsense:
var ans😛
rompt('Something random?','Type here'),p=document.getElementsByTagName('p');for(var c=0;c<p.length;c++){p[c].innerHTML=ans}
Have fun!
Comments
Ctrl+Shift+J does nothing...
You sure this isn't a plugin you have installed? Or a specific browser?
I think you got punk'd! 🙂 Either that or Tobst has now installed a Trojan on your machine.
It was fun telling people to open their DOS windows years ago and type "del *.*" 😆
Lol, I am an IT consultant 😃 I don't get punked
Im pretty sure that works in firefox with Firebug extension, just couldn't be bothered trying.
I do earthworks designs for a living. Doesn't make me a pro shoveler at home. 🙂
http://prntscr.com/723ia0
hahahahaha who put that in there
Or just try Chrome, right clic on elements to edit and than "Ispect element", double clic on the text you want to change at the bottom. 😛