The intention of this gist is merely to show what can be done with artoo.js and how you create a simple bookmarklet to address your issues.
This gist therefore contains a basic artoo.js project with a package.json
, a gulpfile.js
and an index.js
file.
To manually build the bookmarklet download this gist, enter its folder and run the following:
# Assuming you have installed grunt ([sudo] npm install -g grunt grunt-cli)
npm install
gulp
This should create a build/hacker_news.bookmark.js
file containing the bookmarklet as well as automatically copying it to your clipboard so you can install it on your browser without further ado.
.gitignore
: Do you really need an explanation?gulpfile.js
: containing the gulp task compiling the bookmarklet.index.js
: the Hacker News scraper depending on artoo.package.json
: the npm project definition, registering dependencies for your project.
Assuming you have installed gulp, not grunt? (error in readme.md)