Skip to content

Instantly share code, notes, and snippets.

@AstraLuma
Forked from JoelBesada/README.md
Last active August 29, 2015 14:07
Show Gist options
  • Save AstraLuma/8150ab765ff525f135c5 to your computer and use it in GitHub Desktop.
Save AstraLuma/8150ab765ff525f135c5 to your computer and use it in GitHub Desktop.
Backtick: Diigolet

This is a port of Diigo's simple bookmarklet. It just opens a popup to have you bookmark the page.

/* 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');
})();
{
"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