mirror of
https://github.com/arkenfox/user.js.git
synced 2025-12-20 21:42:05 +01:00
Updated 3.3 Updater Scripts (markdown)
@@ -8,13 +8,40 @@ Unless you want to use the `user.js` exactly as it is, you **must** follow our n
|
||||
|
||||
### :small_orange_diamond: Mac/Linux
|
||||
|
||||
[Download](https://github.com/ghacksuserjs/ghacks-user.js/raw/master/updater.sh) the `updater.sh` script and save it in your profile folder. It will backup your current `user.js`, download the latest `ghacks user.js` and if it finds a `user-overrides.js` in the same folder it will append that to the `user.js`.
|
||||
[Download](https://github.com/ghacksuserjs/ghacks-user.js/raw/master/updater.sh) the `updater.sh` script and save it in your profile folder. You can run it without any command line arguments and it will backup your current `user.js`, download the latest `ghacks user.js` and if it finds a `user-overrides.js` in the same folder it will append that to the `user.js`.
|
||||
|
||||
Since v1.3 the script compares its version number to the one online. If there is a newer version of `updater.sh` online, it asks you for confirmation to download and run it. 2 command-line parameters are available to change this behavior.
|
||||
Since v1.3 the script compares its version number to the one online. If there is a newer version of `updater.sh` online, it asks you for confirmation to download and run it. 2 command-line parameters are available to change this behavior:
|
||||
|
||||
Available command-line parameters (case-insensitive):
|
||||
- `-donotupdate` to disable the self-update **OR** `-update` to skip the confirmation prompt
|
||||
|
||||
**NEW command-line arguments in v2.0 !! (COMING SOON) ...**
|
||||
```
|
||||
Optional Arguments:
|
||||
-h Show this help message and exit
|
||||
-p PROFILE absolute path to your Firefox profile (if different than the dir of this script)
|
||||
IMPORTANT: if the path include spaces, wrap the entire argument in quotes!
|
||||
-l Choose your Firefox profile from a list. (will auto-select the profile if only 1 exists)
|
||||
-u Update updater.sh and execute silently. Do not seek confirmation.
|
||||
-d Do not look for updates to updater.sh
|
||||
-s Silently update user.js. Do not seek confirmation.
|
||||
-b Only keep one backup of user.js
|
||||
-o OVERRIDE Filename(s) and/or path(s) to override file(s) (if different than user-overrides.js).
|
||||
If used with -p, paths should be relative to PROFILE or absolute paths.
|
||||
If given a directory, all *.js files inside will be appended recursively.
|
||||
You can pass multiple files or directories by passing a comma separated list.
|
||||
IMPORTANT: do not add spaces between files/paths! Ex: -o file1.js,file2.js,dir1
|
||||
IMPORTANT: if any files/paths include spaces, wrap the entire argument in quotes!
|
||||
Ex: -o "override folder"
|
||||
-n Do not append any overrides, even if user-overrides.js exists
|
||||
-c Create a diff file comparing old and new user.js
|
||||
-v Open the resulting user.js file
|
||||
-r Only download user.js to a temporary file and open it
|
||||
|
||||
Deprecated Arguments (they still work for now):
|
||||
-donotupdate Use instead -d
|
||||
-update Use instead -u
|
||||
```
|
||||
|
||||
### :small_orange_diamond: Windows
|
||||
|
||||
|
||||
Reference in New Issue
Block a user