particular pinboard
A modification of the pinboard bookmarklet with enhancements that appeal to my fiddly nature.
- Title is cleaned of extraneous "SEO-junk" through heuristics based on page structure
- Description field is populated with the selected text, or pulled from description tags in page header
- Tags are added according to keyword rules setup by the user.
This bookmarklet is based on an existing modification to the pinboard bookmarklet by Ben Ward. The build file makes variants for "Read Later" and for users of Pinswift on iOS.
Bookmarklets
Building
Run build.sh
to compile the source file into bookmarklet form. You must have UglifyJS and node installed. To install node I recommend homebrew:
brew install node
To install UglifyJS:
npm install uglify-js
Please note the dash between "uglify" and "js". It is possible to install an older version without using the dash that does include the command line tool.
Customization
You can enable or disable various features by modifying the constants at the top of the source file. These should be well documented in source. Of particular interest for users are keyword rules which determine the tags based on the text of the document.
License
This code is public domain. Fork it as the basis for your own particular pinboard and let me know what you discover.