Mottr.am

Pinboard & Conkeror

on

If you use the Pinboard bookmarking service and the Conkeror web browser (not to be confused with the Konqueror web browser) this ‘webjump’ might come in handy:

define_webjump("pinboard", function (url) {
    if (url) {
        return "http://pinboard.in/add?next=same&url=" + url;
    } else {
        return "javascript:document.location.href='http://pinboard.in/add?next=same&url='+encodeURIComponent(document.location.href)+'&description='+encodeURIComponent(document.getSelection())+'&title='+encodeURIComponent(document.title);";
   }
}, $argument = "optional");

To use it, add the above to your .conkerorrc file, restart Conkeror, then, while browsing, hit g and start typing pinboard. At this point, you can feed it an URL and hit return–in which case the pinboard form will appear for you to fill in–or just hit return, in which case the pinboard form will appear already filled with the URL and title of the page you were browsing, as well as any highlighted text.