Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tallykatt/60c6a931b4148d51008cacb1a4646f0d to your computer and use it in GitHub Desktop.
Save tallykatt/60c6a931b4148d51008cacb1a4646f0d to your computer and use it in GitHub Desktop.

Revisions

  1. @willurd willurd revised this gist Jun 4, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installation.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## Installation
    ### Installation

    1. Create a new bookmark in your favorite browser and name it "Select All"
    2. Copy the code from the `bookmarklet_select_all.js` file (not `source.js`, that's just for reference)
  2. @willurd willurd revised this gist Jun 4, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installation.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Installation
    ## Installation

    1. Create a new bookmark in your favorite browser and name it "Select All"
    2. Copy the code from the `bookmarklet_select_all.js` file (not `source.js`, that's just for reference)
  3. @willurd willurd revised this gist Jun 4, 2013. 2 changed files with 2 additions and 2 deletions.
    File renamed without changes.
    4 changes: 2 additions & 2 deletions installation.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Installation

    1. Create a new bookmark in your favorite browser and name it "Select All"
    2. Copy the code from the `select_all_bookmarklet.js` file (not `source.js`, that's just for reference)
    3. Edit your bookmark and paste the `select_all_bookmarklet.js` code you copied into the URL field
    2. Copy the code from the `bookmarklet_select_all.js` file (not `source.js`, that's just for reference)
    3. Edit your bookmark and paste the `bookmarklet_select_all.js` code you copied into the URL field
    4. Select _ALL_ THE THINGS!
  4. @willurd willurd revised this gist Jun 4, 2013. 2 changed files with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installation.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # 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
    2. Copy the code from the `select_all_bookmarklet.js` file (not `source.js`, that's just for reference)
    3. Edit your bookmark and paste the `select_all_bookmarklet.js` code you copied into the URL field
    4. Select _ALL_ THE THINGS!
    File renamed without changes.
  5. @willurd willurd created this gist Jun 4, 2013.
    1 change: 1 addition & 0 deletions bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    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
    6 changes: 6 additions & 0 deletions installation.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # 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!
    5 changes: 5 additions & 0 deletions source.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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);