[Greasemonkey] sidebar replace
Greg B
googlinggreg at gmail.com
Fri Jun 17 17:23:27 EDT 2005
Can anyone help me with this? ( I'm new to greasemonkey)
I'm trying to change a sidebar on a website to a different sidebar
depending on what user is logged in. The script isn't complete,
though.
here's the script:
var userIdentity1, sidebarA1;
// bub250 is the username
// randomfriend.phtml?user= is the html that comes before where it
shows the username
userIdentity1 = if
(document.body.innerHTML(randomfriend.phtml?user=bub250) != null) {
// http://www.somethingelse.com/img.gif is the name of the sidebar to replace
sidebarA1 = document.getElementById(http://www.somethingelse.com/img.gif);
// http://www.something.com/img.gif is the filename for the image to
replace the sidebar.
sidebarA1[0].src = "http://www.something.com/img.gif"
}
--
Gmail isn't even out yet, and half the world is using it!
More information about the Greasemonkey
mailing list