This is a demonstration of how ablayer can be used to locally augment the functionality of an external site.
It features:
When you run this example you'll be able to browse hackernews via http://localhost:9900.
We overwrite the external news.css with our local ./news.css
The new/seen/read functionality can be found inside ./abtest.js This file will be injected in the of html files that are served via ablayer. This allows us to inject our own functionality.
# Make sure you have ablayer installed globally for easy hacking!
npm install -g ablayer;
git clone https://github.com/j-angnoe/ablayer-hackernews-example;
cd ablayer-hackernews-example;
# Start ablayer in the current directory:
ablayer --url https://news.ycombinator.com --port 9900
# Alternative install and run:
npm install;
npm start;