For anyone suffering from election withdrawl
Replaces the posts on Facebook and Twitter with posts from r/the_donald ¯\_(ツ)_/¯
Created for TerribleHack V
For content_scripts, there is a function called getArticleForIndex
that returns an article object with properties text
, image
, and link
.
Thus, to add additional websites:
- In
manifest.json
, add a newcontent_scripts
line with a new Javascript file corresponding to the website you are adding. You must havejs/jquery.js
,js/content_shared.js
,js/NEW_WEBSITE.js
,js/main.js
, in that order. - In
NEW_WEBSITE.js
, implement a functionupdate
that updates the contents of the website using the article returned fromgetArticleForIndex(index)
.