Edit Webpage Content on the Fly and Play Pranks with This Handy Bit of JavaScript

This article is over 13 years old and may contain outdated information

Recommended Videos

Call us immature, but we just had far too much fun playing with a simple JavaScript trick that allows you to edit the text of most webpages as you see it. Go to a webpage, paste

javascript:document.body.contentEditable=’true’;
document.designMode=’on’; void 0

in the address bar, and hit enter. For the majority of sites, this will allow you to mess with the content of the site as you see it, most notably giving you the ability to delete text and replace it with whatever you want. Sarah Palin’s Facebook page and celebrities’ Twitter pages just got a whole lot more interesting! We thank Mr. Kanye West for bringing this trick to our attention.

(h/t Reddit. title pic “via” @kanyewest)


The Mary Sue is supported by our audience. When you purchase through links on our site, we may earn a small affiliate commission. Learn more about our Affiliate Policy
Author