~egrajeda/orgomark

Firefox extension to highlight and bookmark pages via org-protocol.
docs: update README with configuration options
docs: change URL for configuration options
fix: set the correct extension ID provided by Mozilla

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~egrajeda/orgomark
read/write
git@git.sr.ht:~egrajeda/orgomark

You can also use your local clone with git send-email.

#Orgomark

With this extension you can highlight multiple parts of a website and then send them to Emacs via org-protocol.

#Install

To use this extension you must:

If you don't wish to use org-roam-protocol, you will need to change the default configuration (see below).

#Usage

Select some text on any website and you'll see a button show up just next to the selection. Click on it and the selection will be highlighted.

To send your highlights to Emacs click on the bookmark icon in the address bar.

#Configuration

The default configuration is:

{
  "bookmarkUrl": "org-protocol://roam-ref?template=r&ref=$url&title=$title&body=$body"
}

When you click on the bookmark icon, the extension will call bookmarkUrl (after replacing some variables).

Three variables are supported:

  • $url: the current website's URL.
  • $title: the current website's title.
  • $body: all the highlights you've done wrapped in #+begin_quote / #+end_quote.

Optionally, you can use different bookmarkUrl for different websites based on the URL. You can do this by adding a rules property to the configuration:

{
  "bookmarkUrl": "org-protocol://roam-ref?template=r&ref=$url&title=$title&body=$body",
  "rules": [{
    "ifWebsiteUrlMatches": "https://www.goodreads.com",
    "bookmarkUrl": "org-protocol://capture?template=b&title=$title"
  }]
}

With this configuration, if you click on the bookmark icon while on a Goodread's page, you will invoke a different org-protocol handler.

#Icons

Icons by Ankush Syal.

Do not follow this link