repeat: change back-button color

User Help for Mozilla Firefox
Post Reply
rickety_goodman
Posts: 94
Joined: September 23rd, 2005, 11:20 pm

repeat: change back-button color

Post by rickety_goodman »

Back in 2011, I asked for help changing the back-button color in FF4.0.
A moderator IDed as "smsmith" provided the solution:
provide a "chrome" folder in "application data/mozilla/firefox/profiles/*.default"
and insert a text file called "userChrome.css" in that folder with the
following text:
@namespace url("http://www.mozilla.org/keymaster/gateke ... s.only.xul");
#back-button:not([disabled="true"]):not([open="true"]):not(:active){
background-color: green !important;
}
That worked.
I now want to do the same thing in FF52, but that technique doesn't work.

Any suggestions?

FF32 (32-bit), XP SP3
User avatar
the-edmeister
Posts: 32249
Joined: February 25th, 2003, 12:51 am
Location: Chicago, IL, USA

Re: repeat: change back-button color

Post by the-edmeister »

Do you have the name of the Profile folder correct?

You may not be using a Profile with "*.default" in the name.


.
A mind is a terrible thing to waste. Mine has wandered off and I'm out looking for it.
rickety_goodman
Posts: 94
Joined: September 23rd, 2005, 11:20 pm

Re: repeat: change back-button color

Post by rickety_goodman »

According to "Help>Troubleshooting>Profile Folder" it is
s1w00m4e.default-1460684940484
which is where I put the "chrome" folder with the
userChrome.css text file inside it.
Again, the text file has:

@namespace url("http://www.mozilla.org/keymaster/gateke ... s.only.xul");

#back-button:not([disabled="true"]):not([open="true"]):not(:active){
background-color: green !important;
}

(I even tried inserting that empty line to see if that would help)

Again, the complete destination is C:\Documents and Settings\{.user.}\Application Data\Mozilla\Firefox\Profiles\s1w00m4e.default-1460684940484\chrome

Besides "chrome", the other folders in the ".default" folder are:

bookmarkbackups
crashes
datareporting
extensions
gmp
gmp-eme-adobe
gmp-gmpopenh264
healthreport
jetpack
minidumps
saved-telemetry-pings
sessionstore-backups
storage
weave
webapps

Is that any help?
rickety_goodman
Posts: 94
Joined: September 23rd, 2005, 11:20 pm

Re: repeat: change back-button color

Post by rickety_goodman »

Oops,my original post should say "FF52 (32-bit)", not FF32.
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: repeat: change back-button color

Post by therube »

Worked for me.
(Quite ugly the way/what it highlights, but...)

If you had anything else in the userChrome.css, rename the existing, recreate using just the code you show & test.
(You'll need to close & restart FF.)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
rickety_goodman
Posts: 94
Joined: September 23rd, 2005, 11:20 pm

Re: repeat: change back-button color

Post by rickety_goodman »

Since it still isn't working for me, can you confirm the following:
if there are NO PAGES to go back to, the "Back" button should be
light gray.
If there are previous pages in the stack (the "Back" button has
somewhere to go), the "Back" button should be green instead of
black.
Is that what you're seeing?

I had to create the chrome folder and the userChrome.css text file
from scratch using the information that I listed above.
So that's all there is.
I copied the sentences in the "userChrome.css" file directly
from the answer that "smsmith" gave me in 2011.
It was for use with FF4 and it worked back then.
Those two sentences are all that exists in the "userChrome.css"
file since it didn't exist until I created it.
(I've restarted the whole computer 2 or 3 times since then, so
FF52 HAS been restarted).
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: repeat: change back-button color

Post by therube »

1.Before
> NO PAGES to go back to, the "Back" button should be light gray.

Right.

2.After
> If there are previous pages in the stack (the "Back" button has somewhere to go), the "Back" button should be green

Right.

Image
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: repeat: change back-button color

Post by therube »

Just for kicks, SeaMonkey.
While I do use a userChrome.css to color tabs & whatnot, I don't think I do anything to the back button, so it goes green by default.

Image
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
rickety_goodman
Posts: 94
Joined: September 23rd, 2005, 11:20 pm

Re: repeat: change back-button color

Post by rickety_goodman »

I found the problem.

There have been several updates in a row to FF during which
they screwed up my font specs. I temporarily adjusted the
system appearance settings to accomodate the changes.
So I've been seeing "userChrome.css" whenever I look in
the "chrome" directory.
After I finished screwing with the system fonts and FF
settings so that I can, once again, read web pages without
my glasses, I discovered that at some point a ".txt"
extension was tacked onto the end of "userChrome.css"
producing the filename "userChrome.css.txt".
The font sizes and screen resolution on my monitor were
dropping the ".txt" from view unless I tried to edit the name
field to change the name.

Instead of renaming it and trying a new one, I simply
dropped the ".txt" extension off of the end.

Now that it's working, I understand why you called it "ugly".
The original "back arrow" in FF4 had a circle that was no
bigger than the zone height of the address bar and the
color change only made that small circle turn green.
Now that they've put that giant circle around the "back"
button and no longer restrain the effect to just the circle,
you're left with a giant green "blob" in the top left
corner of your screen instead of a small green circle
with an arrow in it which is what showed up in FF4.

I'll live with it, though, since it makes it easier to see
if I can go back a page without having to drag the mouse
all the way across the page and click on it just to find out.

Thanks for your help.
User avatar
Frank Lion
Posts: 21177
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom
Contact:

Re: repeat: change back-button color

Post by Frank Lion »

rickety_goodman wrote:I'll live with it, though, since it makes it easier to see
if I can go back a page without having to drag the mouse
all the way across the page and click on it just to find out.
Hi, I can tell that this stuff is fairly new to you, so I'll not do any explanation on this.

Just use this instead -

Code: Select all

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/*Franks Green Back Button...*/
#back-button:not([disabled="true"]):not([open="true"]):not(:active) .toolbarbutton-icon {
	background-color: rgba(25,179,48,0.9) !important;}
and you're done.

I've also toned down the bright green and if you want a more subtle effect, then change the 0.9 in the code to 0.6 or lower.
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)
.
rickety_goodman
Posts: 94
Joined: September 23rd, 2005, 11:20 pm

Re: repeat: change back-button color

Post by rickety_goodman »

Thanks very much. That's exactly what I was looking for.
Depending on what page I'm on and what I do on that page,
I might left-click the back arrow or I might use <Alt>+(left arrow).
In both cases, it's nice to be able to simply look up and see if
the previous page you were looking at is one step away in the
stack, or if you have been transferred away to a new page
with a new stack.

I keep trying to find a style sheet "Dummies" page where I
can read-up on the commands that you and "smsmith"
are using in FF, but so far, I'm coming up empty handed.

Again, thanks.
User avatar
Frank Lion
Posts: 21177
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom
Contact:

Re: repeat: change back-button color

Post by Frank Lion »

rickety_goodman wrote:Thanks very much.
No problem.
I keep trying to find a style sheet "Dummies" page where I
can read-up on the commands that you and "smsmith"
are using in FF, but so far, I'm coming up empty handed.

Again, thanks.
Try this - http://forums.mozillazine.org/viewtopic ... #p13274933

If you only rarely need to adjust something though, it's probably easier just to ask here.
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)
.
Post Reply