Angry Flower Onscreen

By Dave Smith Last update Jan 15, 2006 — Installed 448 times.
// ==UserScript==
// @namespace     http://www.dezro.com/userscripts
// @name          Angry Flower Onscreen
// @description   Pops the latest comic into the thingie.
// @include       http://angryflower.com/
// @include       http://www.angryflower.com/
// ==/UserScript==

var first_comic = document.evaluate("//body/table[2]//td[2]//a/img", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;

first_comic.removeAttribute("height");
first_comic.removeAttribute("width");
var index = first_comic.parentNode.href.lastIndexOf(".");
first_comic.src = first_comic.parentNode.href.substring(0, index) + ".gif"