a chrome extension for loading UI experiments on reddit.com
view the individual plugins for more info
git clone https://github.com/madbook/reddit-prototype-readnext.git
for development you'll also need to:
cd reddit-read-next
npm install
grunt
- go to
chrome://extensions
in chrome. - make sure the
Developer mode
option is checked. - click
Load unpacked extension...
. - browse to the
dist/
folder in this repo's folder.
- for development load the
build/
folder instead!
- go look at reddit!
To pull down the latest, run git pull
in the root folder. If you
are running the
git pull
for development you'll need to rebuild as well.
Then reload the extension:
- go to
chrome://extensions
in chrome. - click the
Reload
link under this extension
npm start
npm start
runs the default grunt task once, then watches the .jsx
and
.less
files used and re-builds. nothing fancy.
I've added a grunt task to automate reloading the plugin. It depends on
chrome-cli. If you have homebrew
,
installing it is easy:
brew install chrome-cli --build-from-source
If you don't want to install chrome-cli
, you'll have to reload the plugin
manually using steps above. You'll probably also get some errors when using
grunt watch
. If they are annoying or causing problems, you can just comment
out the chrome_extension_reload
task in the watch config section of Gruntfile.js
.
each plugin is a folder in the plugins/
directory. the plugin loader will
attempt to load two files:
- plugin.jsx (or plugin.js)
- plugin.less (or plugin.css)
see the test/
and prefs/
plugins for reference until I write a more thorough
description of how plugins should be authored.