mirror of
https://github.com/arkenfox/user.js.git
synced 2025-11-08 09:35:26 +01:00
Updated 3.2 Applying Your Changes (markdown)
@@ -10,15 +10,13 @@ We have created some [updater scripts](https://github.com/ghacksuserjs/ghacks-us
|
|||||||
|
|
||||||
Note the caveats below including having to manually reapply any one-char section switches if they differ from our master.
|
Note the caveats below including having to manually reapply any one-char section switches if they differ from our master.
|
||||||
|
|
||||||
> :small_blue_diamond: `user-override.js` [recommended]
|
> :small_blue_diamond: `user-overrides.js` [recommended]
|
||||||
>
|
>
|
||||||
> Create a `user-override.js` file in your profile directory. This acts as the master copy of all your tweaks, and our updater scripts will auto append its contents for you to the end of the `user.js` after it downloads the current `ghacks user.js` master.
|
> Create a `user-overrides.js` file in your profile directory. This acts as the master copy of all your tweaks, and our updater scripts will auto append its contents for you to the end of the `user.js` after it downloads the current `ghacks user.js` master.
|
||||||
|
|
||||||
> :small_blue_diamond: `profile/preferences/*.js` [old method]
|
> :small_blue_diamond: `profile/preferences/*.js` [old method]
|
||||||
>
|
>
|
||||||
> Firefox 58+ no longer supports using `profile/preferences/xxx.js` - [1413413](https://bugzilla.mozilla.org/show_bug.cgi?id=1413413). In FF versions where this is supported, there is no need to append the contents to the `user.js` as they are applied last (after `user.js`) on a Firefox startup.
|
> Firefox 58+ no longer supports using `profile/preferences/xxx.js` - [1413413](https://bugzilla.mozilla.org/show_bug.cgi?id=1413413). In Firefox versions where this is supported, there is no need to append the contents to the `user.js` as they are applied last (after `user.js`) on a Firefox startup.
|
||||||
>
|
|
||||||
> However, you can still use this directory for storing a single, or multiple, *.js files full of your overrides, and our **windows** updater script will still append them to the end of your `user.js`
|
|
||||||
|
|
||||||
### :small_orange_diamond: Example
|
### :small_orange_diamond: Example
|
||||||
|
|
||||||
@@ -36,7 +34,7 @@ user_pref("gfx.downloadable_fonts.woff2.enabled", false);
|
|||||||
user_pref("mathml.disabled", true);
|
user_pref("mathml.disabled", true);
|
||||||
```
|
```
|
||||||
|
|
||||||
- In a `profile/user-override.js` you override them
|
- In a `profile/user-overrides.js` you override them
|
||||||
```js
|
```js
|
||||||
/*** MY OVERRIDES ***/
|
/*** MY OVERRIDES ***/
|
||||||
user_pref("browser.display.use_document_fonts", 1); // 1401
|
user_pref("browser.display.use_document_fonts", 1); // 1401
|
||||||
@@ -44,7 +42,7 @@ user_pref("gfx.downloadable_fonts.woff2.enabled", true); //1405
|
|||||||
user_pref("mathml.disabled", false); // 2663
|
user_pref("mathml.disabled", false); // 2663
|
||||||
```
|
```
|
||||||
|
|
||||||
The next time you update the `profile/user.js` and replace it, all you have to do is append the contents of your existing tweaks from `profile/user-override.js`. Or if you use our updater scripts, it will do this manual step for you as well.
|
The next time you update the `profile/user.js` and replace it, all you have to do is append the contents of your existing tweaks from `profile/user-overrides.js`. Or if you use our updater scripts, it will do this manual step for you as well.
|
||||||
|
|
||||||
### :small_orange_diamond: Caveats
|
### :small_orange_diamond: Caveats
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user