This doesn't count as a normal blog post, but i needed somewhere to put it.
I am a user of dontbreakthechain.com's seinfeldian chain monitoring thingy (as found on lifehacker.com)
and recently switched blogs to posterous, for various social networking and fancy email updating stuffs.
on THIS blog, however, i cannot for the life of me get the javascript badges embedded anywhere in the sidebars. i simply don't know enough html or javascript.
So what i have done is build myself an incredibly simple google chrome extension. (more hacked it together, really)
this is it
however, due to the simple, simple nature of this extension, and my lack of coding expertise, i cannot make it customisable, and thus can't really upload it to the extensions gallery, as it would be no use to anyone else. (all it would take is an options.html with a bit of javascript to edt one tiny bit of the popup.html, but i have no idea how to do this, and no time to learn right now)
So instead i'm telling you how to build your own.
You'll need the Dev or Beta channel of chrome, for extensions alone, and to install your own unpackaged one
http://dev.chromium.org/getting-involved/dev-channel
you can do so by editing this folder here (after unzipping)
or by building from scratch like me.
for an extension, you need a manifest.json
which should contain all this
{ "name": "Don't Break the Chain", "version": "1.0", "description": "Displays the 4 week calendar from dontbreakthechain.com", "browser_action": { "default_icon": "icon.png", "popup": "popup.html" }, "permissions": [ ] }
that is contained as is in the .zip folder and requires no changes to work.
you also need the icon.png that your manifest.json file refers to
this is it
and finally, you'll need your popup.html it should consist of this very short piece of html and javascript (the javascript was taken straight from the "add to blog" page on dontbreakthechain.com)
of course, where it says USERNAME you will need to put your username, or replace the entire <script> section with your own badge from the "add to blog" page
with all 3 of these files in a folder, you need to place it somewhere easy to find
then, comes the installation in chrome
for this you need the DEV channel
go to your options spanner, and select extensions
in the extensions tab, click the plus to get the developer options
then click this button , and navigate to your folder full of extension goodness
it should work perfectly
if it doesn't, check if you missed something out
if it does, p ress the button, navigate to your folder again, and drag and drop the resultant .crx file onto chrome and install
voila!