Last active
December 14, 2018 18:12
-
-
Save rmateu/0b520eae06a5ab35e6d66cb97a095b83 to your computer and use it in GitHub Desktop.
Bookmarklet to copy link to Bear.app
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
// Reference // Reference ulysses://x-callback-url/new-sheet?text=document.title sheet&index=2 | |
// Bookmarklet Maker: https://caiorss.github.io/bookmarklet-maker/ | |
var url = document.URL; | |
title = document.title; | |
text = window.getSelection().toString(); | |
mdLink = '[' + title + ']' + '(' + url + ')'; | |
window.location.href = "bear://x-callback-url/" | |
+ "create?text=" | |
+ '%23%23 ' + mdLink | |
+ '%0A' | |
+ ">" + text | |
+ '%0A%0A' | |
+ "&tags=5typos" | |
+ "&new_window=yes" | |
+ "&show_window=no" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment