Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jalbertbowden/f1f280473e7ce418ad4f to your computer and use it in GitHub Desktop.

Select an option

Save jalbertbowden/f1f280473e7ce418ad4f to your computer and use it in GitHub Desktop.
javascript:(function()%7Bvar style%3Ddocument.createElement("style")%3Bstyle.type%3D"text/css"%3Bstyle.innerText%3D"* %7B -webkit-user-select: all !important%3B -moz-user-select: all !important%3B user-select: all !important%3B %7D"%3Bvar head%3Ddocument.getElementsByTagName("head")%5B0%5D%3Bhead.appendChild(style)%3B%7D)()%3B

Installation

  1. Create a new bookmark in your favorite browser and name it "Select All"
  2. Copy the code from the bookmarklet.js file (not source.js, that's just for reference)
  3. Edit your bookmark and paste the bookmarklet.js code you copied into the URL field
  4. Select ALL THE THINGS!
var style = document.createElement("style");
style.type = "text/css";
style.innerText = "* { -webkit-user-select: all !important; -moz-user-select: all !important; user-select: all !important; }";
var head = document.getElementsByTagName("head")[0];
head.appendChild(style);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment