This is a port of Diigo's simple bookmarklet. It just opens a popup to have you bookmark the page.
-
-
Save AstraLuma/8150ab765ff525f135c5 to your computer and use it in GitHub Desktop.
Backtick: Diigolet
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
/* NOTE: Comments need to be in multiline format like this, instead of "// Comment" */ | |
(function(){ | |
var url = location.href; | |
var title = document.title || url; | |
var desc = (window.getSelection ? window.getSelection().toString() : | |
document.getSelection ? document.getSelection() : | |
document.selection.createRange().text); | |
window.open( | |
'https://www.diigo.com/post?url=' | |
+encodeURIComponent(url) | |
+'&title=' | |
+encodeURIComponent(title) | |
+'&desc=' | |
+encodeURIComponent(desc) | |
+'&client=simplelet#main', | |
'_blank', | |
'menubar=no,height=580,width=608,toolbar=no,scrollbars=no,status=no'); | |
})(); |
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
{ | |
"name": "Diigo: Bookmark", | |
"description": "Bookmark in Diigo (pop-up window)", | |
"icon": "https://www.diigo.com/images/v6/logo-small.png", | |
"link": "https://gist.github.com/astronouth7303/8150ab765ff525f135c5" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment