Skip to content

Instantly share code, notes, and snippets.

@fuzzylogicxx
Last active November 4, 2019 17:45
Show Gist options
  • Select an option

  • Save fuzzylogicxx/42bb72645b94db440f55625ea3235cd0 to your computer and use it in GitHub Desktop.

Select an option

Save fuzzylogicxx/42bb72645b94db440f55625ea3235cd0 to your computer and use it in GitHub Desktop.
Bookmarklet for bookmarking and sharing something on my personal website
<!-- Drag me to the browser’s Bookmarks Bar -->
<a class="bookmarklet" href="javascript:(function(){var title = document.getElementsByTagName('title')[0].innerHTML;title = encodeURIComponent(title);var selection = '';if (window.getSelection) {selection = window.getSelection().toString();} else if (document.selection &amp;&amp; document.selection.type != 'Control') {selection = document.selection.createRange().text;}selection = encodeURIComponent(selection);new_window=window.open('https://fuzzylogic.me/bookmarker/?title='+title+'&amp;body='+selection+'&amp;url='+encodeURIComponent(document.location.href),'Bookmarker','resizable,scrollbars,status=0,toolbar=0,menubar=0,titlebar=0,width=680,height=700,location=0');})();">Bookmark on fl.me</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment