comScore JavaScript to Edit Webpages | The Mary Sue
The Mary Sue

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

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)

© 2018 The Mary Sue, LLC | About Us | Advertise | Subscription FAQ | Privacy | User Agreement | Disclaimer | Contact | RSS RSS
Dan Abrams, Founder

  1. Mediaite
  2. The Mary Sue
  3. RunwayRiot
  4. Law & Crime
  5. Gossip Cop