views:

33

answers:

1

I put this in my userchrome.css in my profile directory.

#stop-button[disabled="true"] { display:none; }
#stop-button:not([disabled]) + #reload-button { display:none; }

but only the 1st line works not the 2nd one.

+1  A: 

Get the "Stop-or-Reload Button" extension. Or if you want to manually edit userChrome.css, you can use this, courtesy of Improve Firefox:

/* Remove Forward button when there's nothing to go forward to */
#forward-button[disabled="true"] { display: none }
/* Remove Stop button when there's no page loading */
#stop-button[disabled="true"] { display: none }
Javier Badia
As I do not like executing any foreign code; I cannot use your first suggestion.Also the code you gave does not do anything about the refresh button I originally asked about in the question.Actually the code I gave does work(according to lifehacker) for firefox 3.5, but the 2nd line does not work in firefox 3.6.
GlassGhost
It doesn't work? That's weird. Anyway, why can't you use the extension? I've been using it for a long time and it's not like it's a virus. IIRC, you can see the source if you open the .xpi file (it's like a .zip file).
Javier Badia