Created
January 8, 2014 00:54
-
-
Save ltrebing/8309761 to your computer and use it in GitHub Desktop.
A Delicious bookmarklet that opens an old-style new tab (or window) instead of putting a fancy inline frame thing on the page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(e,t){window.open(%22https://delicious.com/save?url=%22+encodeURIComponent(e.location.href)+%22&title=%22+encodeURIComponent(e.document.title)+%22¬e=%22+encodeURIComponent(%22%22+e.getSelection()?e.getSelection():e.document.getSelection?e.document.getSelection():e.document.createRange().text)+%22&v=1.1%22,%22_blank%22);})(window) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using Safari 7 (OS X Mavericks), the Delicious bookmarklet requires the user to log in each and every time, because Apple made the cookie privacy settings more restrictive (cf. https://twitter.com/Delicious/status/397885830959620097).
Some people (including me) believe that Delicious’ recommended workaround (which consists of allowing all third-party cookies) is not an excellent idea. Alas, it turns out the limitation is not tied to bookmarklets in general (which is what Delicious claimed) but to inline frames (thanks to https://twitter.com/paulozoom/status/402216802656079872 for the hint). So why not rewrite their fancy inline frame bookmarklet into a more traditional one that simply opens a new tab? This Gist is the result of attempt at doing exactly this, and it even seems to be working as intended.
Any ideas for improvements are of course highly welcome!