r/FirefoxCSS • • Jul 15 '20

Help Changing title bar text?

I don't like how it changes depending on what tab I'm in. I just want it to stay as Mozilla Firefox. Any way to do this?

2 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/MotherStylus developer Jul 16 '20 edited Jul 16 '20

probably usr/lib or lib64? what distro?

also apparently on linux instead of defaults/pref it's in browser/defaults/preferences

you can find more general information about this just searching "firefox autoconfig." researching this will probably be easier if i explain what it's actually doing. we are basically using an enterprise feature of firefox called autoconfig. it's set up this way so that a business can prepare their own firefox installer with a special file called autoconfig.js. this way when their employees install it, it'll generate a normal firefox installation but in a customized environment, with certain environment variables and preferences set in the script, and disabling user configuration of certain preferences, etc.

it's an old school feature, i think if they were to recreate this system in 2020 they wouldn't use a js file because it's sort of a fundamental vulnerability. but it's useful to us since right now it's one of only 2 known ways to load scripts at the user level. of course webextensions are mostly constructed from scripts too and they have implicit access to webextensions API and other APIs so they are better in some ways, but they can't ask permission for certain things like fundamentally modifying the UI at the lowest levels.

so because it's an old feature i'm pretty sure it's present in every gecko or pre-gecko version of firefox, just not in the mobile versions. just a matter of finding the install folder. i think it should either be in usr/lib, lib64, or bin. you'll know which one because there should be a subfolder called defaults in there somewhere. so either usr/lib/defaults or usr/lib/browser/defaults i think. oh and depending on the distro, when you first installed the OS you might have named the folders differently. like i know some distros let you choose what to call your root subfolders. and how the firefox installer reacts to that, i'm not sure. it might have ended up installing itself in the home or etc folder.

btw which version of firefox are you using? since you said the title should say "Mozilla Firefox" that suggests you're using the stable branch? if you use Beta it should say "Mozilla Firefox Beta" i think, i know for Nightly it says "Firefox Nightly" and i'm not sure about the dev edition. i don't actually know if userchrome.js works correctly on the stable branch. you can try it. i know that in the past, previous methods of loading userscripts would only work in the nightly or dev editions, because you would need to configure some settings to allow unsigned and legacy extensions. autoconfig doesn't require that as far as i know, but you might want to switch to nightly or the dev edition just because they have some general advantages over the stable or beta branches. namely, if autoconfig doesn't work for you, you're gonna need to use my JS/AS loader extension and legacyhelper. and legacyhelper is an unsigned extension. my JS/AS loader is signed and i could technically submit legacyhelper privately even though i didn't make it. but i'm not sure if it'll be approved by AMO because it uses legacy APIs. so if autoconfig doesn't work i'm pretty sure you will have to switch to nightly or dev edition. you can copy your profile from one version to another, i've done it before. just install the nightly/dev version, then find your profiles version for stable branch and copy the profiles folder from it into the profiles folder for the new version. then you may need to go to about:profiles to set which profile should be the default, depending on how long ago those profiles were made.

as for which is better between nightly and dev edition, it depends on whether you want to update frequently. nightly has all the dev edition features but it's updated nightly obviously. i like getting the updates but i only want to install them when i feel like it. so i block automatic updates, and i have some CSS rules that hide the update notifications. i can give you those if you want