yokoffing / Betterfox

Firefox user.js for speed, privacy, and security. Your favorite browser, but better.
MIT License
5.29k stars 138 forks source link

Understanding user.js syntax #215

Open ghost opened 1 year ago

ghost commented 1 year ago

First of all, I'm really new to this userjs stuff, please forgive me if my question is stupid, but /& ones like this are not expired before, right? for example

PREF: attempt to remove ugly border drawn around links when clicked [macOS]

//user_pref("accessibility.mouse_focuses_formcontrol", 0);

it's not outdated or expired, is it just something left to the user's choice? or is it outdated?

iam-py-test commented 1 year ago

I think that means this preference is only needed on MacOS systems, but I could be wrong.

ghost commented 1 year ago

@iam-py-test thanks for helping out, it was an example, the question is more general

iam-py-test commented 1 year ago

My guess, is that the [macOS] at the end means it is only relevant to Mac users. [WINDOWS] would mean it is only relevant to Windows users. Any preference which is commented out and says // DEFAULT at the end means Firefox now uses the same value as what the user.js is configuring (that could have been worded better). A line ending in [FF100+] means it is default in Firefox version 100 and later. // DEFAULT FF103+ means the same. // [HIDDEN PREF] means that preference will not show up in about:config.

yokoffing commented 1 year ago

Thank you @iam-py-test for answering while I was offline.

@toprak, I am working on Wiki documentation to handle questions such as these. It's currently a work-in-progress.

yokoffing commented 1 year ago

Adding reminders to myself on what to add to a user.js wiki page from a forum:

Tried commenting out settings in user.js but that did nothing, Even if I remove the user.js file from the profile folder it remains stuffed. Tried turning off all the protection stuff, put an exception in for cookies. Nothing is getting it back to how it was

bookmarks???

Hmm, tried that, but it lost all my bookmarks and logins. :( And it doesn't seem to let me log into my Firefox account to sync them back in? No results for "sync" or "sign in" in Firefox's settings when using Betterfox as the profile. Had to remove it.

Even though there is a guide to install Betterfox I am at a loss and would appreciate some guidance. Step 4 states Close Firefox. With the folder open, move the user.js file into the folder. I presumed that when the user.js file is moved into the folder it would replace the existing file but there is no such file present. So where am I going wrong and what alterations do I need to do for Fastfox?

but then...

Both myself and my partner's PCs use it with Firefox, and neither of us lost anything when applying it.

I just manually applied the flags that the config/version of BetterFox that I chose to go with applied, manually to the Firefox installs on mine and my partners PCs. No issues.

This issue is most likely being caused by the Securefox part of the script when I first installed It I couldn't log into facebook I removed It from the script & It fixed the issue, The script is easy to edit In Notepad just use parts of the script you need for me It's Fastfox & Smoothfox.

The other thing you can do is choose one of the simple configs from the Betterfox page, and it'll take you into the .js file for that config. From there you can manually apply each line that starts with "user_pref" to your about:config page in Firefox by searching for the flag and then setting the value to whatever it is in the Betterfox .js file

Also, from AF https://github.com/arkenfox/user.js/issues/1690#issuecomment-1635172795

CyberDudeJ commented 1 year ago

👀