Skip to content

Instantly share code, notes, and snippets.

@stugoo
Forked from pmarquees/editPage.js
Created June 5, 2019 10:03
Show Gist options
  • Save stugoo/fa2e9e6f39bbbd6ed92c3686ab77bcb8 to your computer and use it in GitHub Desktop.
Save stugoo/fa2e9e6f39bbbd6ed92c3686ab77bcb8 to your computer and use it in GitHub Desktop.
Edit page (bookmarklet)

Edit this web page

This makes all the text in the current webpage editable until you refresh it! It does that by enabling the designMode flag on your browser.

How to use

  1. Add a new bookmark.
  2. Copy editPage.js and paste it into the URL field of the bookmark.
  3. Save.
  4. Click the bookmark when you are in the page you wish to edit and voilá!
  5. Click on a text element and edit its text
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
javascript: document.body.contentEditable = 'true';
document.designMode = 'on';
void 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment