Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding user.js syntax #215

Open
ghost opened this issue Aug 28, 2023 · 6 comments
Open

Understanding user.js syntax #215

ghost opened this issue Aug 28, 2023 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@ghost
Copy link

ghost commented Aug 28, 2023

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
Copy link
Contributor

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

@ghost
Copy link
Author

ghost commented Aug 28, 2023

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

@iam-py-test
Copy link
Contributor

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 yokoffing changed the title An question Understanding user.js syntax Aug 28, 2023
@yokoffing
Copy link
Owner

yokoffing commented Aug 28, 2023

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 yokoffing added documentation Improvements or additions to documentation ⬆️ enhancement New feature or request labels Aug 28, 2023
@yokoffing
Copy link
Owner

yokoffing commented Aug 29, 2023

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
Copy link

👀

@yokoffing yokoffing removed the ⬆️ enhancement New feature or request label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants