<?xml version="1.0"?>
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
<overlay id="ocukimagesOverlay"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:nc="http://home.netscape.com/NC-rdf#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript">
<![CDATA[
function ocukImages() {
//if(window.location.href.indexOf('http://forums.overclockers.co.uk/') == -1)
// return;
var buttons = content.document.evaluate( "//img[starts-with(@src, 'images/buttons')]", content.document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null );
var i = 0;
while ( item = buttons.snapshotItem(i) ) {
item.src = item.src.replace("http://forums.overclockers.co.uk/images/buttons/", "chrome://ocukimages/content/").replace(".gif", ".png");
i++;
}
}
function ocukImagesLoader() {
window._content.addEventListener('load', ocukImages, true);
}
window.addEventListener('load', ocukImagesLoader, true);
]]>
</script>
</overlay>
<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
<RDF:Seq RDF:about="urn:mozilla:package:root">
<RDF:li RDF:resource="urn:mozilla:extension:file:ocukimages"/>
</RDF:Seq>
<RDF:Seq RDF:about="urn:mozilla:overlays">
<RDF:li RDF:resource="chrome://browser/content/browser.xul"/>
<RDF:li RDF:resource="chrome://navigator/content/navigator.xul"/>
</RDF:Seq>
<RDF:Seq RDF:about="chrome://browser/content/browser.xul">
<RDF:li>chrome://ocukimages/content/ocukimagesOverlay.xul</RDF:li>
</RDF:Seq>
<RDF:Seq about="chrome://navigator/content/navigator.xul">
<RDF:li>chrome://ocukimages/content/ocukimagesOverlay.xul</RDF:li>
</RDF:Seq>
<RDF:Description RDF:about="urn:mozilla:extension:file:ocukimages"
chrome:displayName="OcUK Images"
chrome:author="Rob Miller"
chrome:authorURL="http://robm.me.uk/"
chrome:name="ocukimages"
chrome:extension="true"
chrome:description="Replaces the buttons on OcUK with prettier ones.">
</RDF:Description>
</RDF:RDF>
Nim said:Biznatchio's going to have you shot
Very nice work, though. One thing I couldn't see in that script was how it determines what page of the thread is being viewed. Won't it highlight the page's first poster, rather than the thread's?
fini said:If you can get the quick reply working this will be the best extension for firefox evvvver!
fini
fini said:5 stars to this thread - can't wait for 'v1' of this to be ready! Any idea on an ETA - tonight? a week?
fini
Yup, its not hard to missfini said:i assume he means the massive status bar at the bottom.
fini