Skip to content

Instantly share code, notes, and snippets.

@jlbruno
Forked from kentbrew/pinmarklet.md
Created May 26, 2020 18:16
Show Gist options
  • Select an option

  • Save jlbruno/98ec477abfacf8e67fd891741331d982 to your computer and use it in GitHub Desktop.

Select an option

Save jlbruno/98ec477abfacf8e67fd891741331d982 to your computer and use it in GitHub Desktop.

Revisions

  1. @kentbrew kentbrew revised this gist Dec 13, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pinmarklet.md
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ In URL, put this:
    * right-click the Pin It bookmarklet you just made and choose __Edit Address__
    * paste in the JavaScript from above

    ### Pinmarklet will Bother You to Install the Pinterest Browser Extension
    ### If You're Running Chrome or Firefox, Pinmarklet will Bother You to Install the Pinterest Browser Extension

    * From time to time you'll see a big banner in the image grid, begging you to please install the extension.
    * If you don't want to install the extension, click the "no, thanks" button to set a two-week cookie.
  2. @kentbrew kentbrew revised this gist Aug 28, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pinmarklet.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ In Name, put this:

    In URL, put this:

    javascript:void((function(d){d.addEventListener('securitypolicyviolation',function(r){alert('ContentSecurityPolicyError!');});e=d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('debug','true');e.setAttribute('src','//assets.pinterest.com/js/max/pinmarklet.js?r='+(Math.random()*99999999));d.body.appendChild(e);}(document)));
    javascript:void((function(d){d.addEventListener('securitypolicyviolation',function(r){alert('ContentSecurityPolicyError!');});e=d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('debug','true');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+(Math.random()*99999999));d.body.appendChild(e);}(document)));

    ### For My Little Friend Safari:

  3. @kentbrew kentbrew revised this gist Apr 12, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pinmarklet.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ In Name, put this:

    In URL, put this:

    javascript:void((function(d){d.addEventListener('securitypolicyviolation',function(r){alert('Nope!');});e=d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('debug','true');e.setAttribute('src','//assets.pinterest.com/js/max/pinmarklet.js?r='+(Math.random()*99999999));d.body.appendChild(e);}(document)));
    javascript:void((function(d){d.addEventListener('securitypolicyviolation',function(r){alert('ContentSecurityPolicyError!');});e=d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('debug','true');e.setAttribute('src','//assets.pinterest.com/js/max/pinmarklet.js?r='+(Math.random()*99999999));d.body.appendChild(e);}(document)));

    ### For My Little Friend Safari:

  4. @kentbrew kentbrew revised this gist Apr 12, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pinmarklet.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ In Name, put this:

    In URL, put this:

    javascript:void((function(d){e=d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+(Math.random()*99999999));d.body.appendChild(e);}(document)));
    javascript:void((function(d){d.addEventListener('securitypolicyviolation',function(r){alert('Nope!');});e=d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('debug','true');e.setAttribute('src','//assets.pinterest.com/js/max/pinmarklet.js?r='+(Math.random()*99999999));d.body.appendChild(e);}(document)));

    ### For My Little Friend Safari:

  5. @kentbrew kentbrew revised this gist Dec 13, 2017. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion pinmarklet.md
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,8 @@ In URL, put this:

    * From time to time you'll see a big banner in the image grid, begging you to please install the extension.
    * If you don't want to install the extension, click the "no, thanks" button to set a two-week cookie.
    * That said: pinning with the extension is much better, especially if you pin a lot. You'll have free hovering Save buttons (which you can turn off in Settings) and you can right-click and pin an image without the intervening wait-for-the-grid / pick-an-image cycle.

    ### Why you Might Want the Extension After All
    * Pinning with the extension is much better, especially if you pin a lot. You'll have free hovering Save buttons (which you can turn off in Settings) and you can right-click and pin an image without the intervening wait-for-the-grid / pick-an-image cycle.
    * Pinning happens right there inline instead of in a pop-up window.
    * You also get Visual Search for free. Right-click the body of the page to search a full screenshot, or choose the hovering selector button to search an individual image.
  6. @kentbrew kentbrew created this gist Aug 2, 2016.
    26 changes: 26 additions & 0 deletions pinmarklet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    # How to recreate your long-lost Pinterest bookmarklet.

    Right-click your bookmarks bar and choose Add Page (Chrome) or New Bookmarklet (Firefox).

    In Name, put this:

    Pin It

    In URL, put this:

    javascript:void((function(d){e=d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+(Math.random()*99999999));d.body.appendChild(e);}(document)));

    ### For My Little Friend Safari:

    * open `about:blank` in a new window (this will help you not have to mess around with favicons later)
    * hit command-D
    * choose __Favorites__ under __Add this page to:__
    * enter Pin It in the __Name__ box
    * right-click the Pin It bookmarklet you just made and choose __Edit Address__
    * paste in the JavaScript from above

    ### Pinmarklet will Bother You to Install the Pinterest Browser Extension

    * From time to time you'll see a big banner in the image grid, begging you to please install the extension.
    * If you don't want to install the extension, click the "no, thanks" button to set a two-week cookie.
    * That said: pinning with the extension is much better, especially if you pin a lot. You'll have free hovering Save buttons (which you can turn off in Settings) and you can right-click and pin an image without the intervening wait-for-the-grid / pick-an-image cycle.