fix to update title at initial load
|
|
I modified the script a little to also change the title when you first open GReader. Seems to work as expected now. function mangle_greader_title(prop, oldval, newval) {
if (matches = newval.match(/Google Reader \((\d+\+?)\)/)) {
newval = "(" + matches[1] + ") Google Reader";
}
return (newval);
}
document.title = mangle_greader_title(null, null, document.title);
unsafeWindow.document.watch('title', mangle_greader_title);
|