1
0
mirror of https://github.com/arkenfox/user.js.git synced 2026-06-16 01:12:52 +05:30

Compare commits

...

256 Commits

Author SHA1 Message Date
Thorin-Oakenpants 226af6f679 69 final 2019-10-20 22:20:50 +00:00
Thorin-Oakenpants 7f2c92f654 webgl.dxgl.enabled 2019-10-15 09:28:52 +00:00
Thorin-Oakenpants 5b82afd5bd webgl.dxgl.enabled, closes #814 2019-10-15 09:27:44 +00:00
Thorin-Oakenpants d7b1877a1f browser.sessionhistory.max_entries see #808 2019-10-14 01:14:50 +00:00
Thorin-Oakenpants 1b6239eab8 remove 0804, closes #808
if anyone can show me how this stops history leaks, then I'll put it back with a note saying it's been broken since FF61
2019-10-14 01:13:27 +00:00
Thorin-Oakenpants ad0187122d some SB were reinstated, closes #806 2019-10-07 16:20:03 +00:00
Thorin-Oakenpants 624e50faac replace ` with ' 2019-10-05 17:51:34 +00:00
Thorin-Oakenpants a9e9392172 add some SB back, see #803 2019-10-05 17:47:25 +00:00
Thorin-Oakenpants 201210111e char fix 2019-10-05 15:12:21 +00:00
Thorin-Oakenpants 53f8578749 see #807 2019-10-05 15:09:19 +00:00
Thorin-Oakenpants dc4d9e4dae revamp 0200s (#807), closes #0806
- split geo related vs language/locale related
- rip out intl.locale.requested
- rip out intl.regional_prefs.use_os_locales
- add intl.charset.fallback.override
2019-10-06 04:04:41 +13:00
Thorin-Oakenpants e1b0eae740 goodbye http and other stuff (#801)
* goodbye http and other stuff

* dead link

* put back asmjs [1] ref

* 0805 test

* typo

* 1222 refs

* 1222 FF version

FYI: https://bugzilla.mozilla.org/show_bug.cgi?id=629558

* 2684: security delay ref

* ESR stuff

* ping ref

* 2684 ref

* 0606: give the standard it's correct name

https://html.spec.whatwg.org/multipage/links.html#hyperlink-auditing

* 0805 test instructions

* tweakin'
2019-09-21 16:20:10 +00:00
Thorin-Oakenpants be0ccf6460 2300: service workers, closes #786 2019-09-17 12:43:50 +12:00
Thorin-Oakenpants 7c0a327b06 cache, closes #778 2019-09-16 15:25:30 +00:00
Thorin-Oakenpants a35cba3914 2651: android UI breakage, closes #795 2019-09-12 16:22:09 +00:00
Thorin-Oakenpants e16425310f 0320+0321: redundant prefs, #793 2019-09-12 15:52:46 +00:00
Thorin-Oakenpants d503d96db0 0320+0321: redundant prefs, closes #793 2019-09-12 15:50:54 +00:00
Thorin-Oakenpants 335299a0cf browser.cache.disk_cache_ssl 2019-09-09 21:45:33 +00:00
Thorin-Oakenpants 7311cfdf84 remove 1002, closes #792 2019-09-09 21:43:50 +00:00
rusty-snake 3a9440aeea 0707: Add mode 5 (#789) 2019-09-08 11:38:37 +00:00
Thorin-Oakenpants 3210ab0ca8 370: pocket -> 5000s, closes #787 2019-09-07 07:22:32 +00:00
Thorin-Oakenpants 2c734612f6 ummm .. beta
OK, did that all back to front... alpha is when we're working on the diffs .. beta is when we finished it
2019-09-04 21:40:04 +00:00
Thorin-Oakenpants a12dd83b1f 69-alpha, fixes #766 2019-09-04 21:36:50 +00:00
earthlng 44d9ceaf05 various tidyups 2019-09-04 01:40:33 +12:00
Thorin-Oakenpants be9d9ac9ca 2701: tidyup 2019-09-03 03:34:16 +00:00
Thorin-Oakenpants 66cdb72927 FF69: deprecated 2019-09-02 07:07:50 +00:00
Thorin-Oakenpants 953b96431e 4000: RFP info re 1330467
it rode the train in 69... after a bumpy ride in 68 where it was backed out. Note: it still has some issues. Suggest users wipe the site permissions once upgraded to 69
2019-09-02 06:45:30 +00:00
Thorin-Oakenpants 4d72ad90b0 2701: cookies default FF69+ 2019-09-02 18:33:00 +12:00
Thorin-Oakenpants cccb5b10b4 plugin.sessionPermissionNow.intervalInMinutes 2019-09-01 21:06:10 +00:00
Thorin-Oakenpants 810045eb39 1802: remove intervalInMinues
with `plugins.click_to_play` deprecated in FF69, no-one here is sure if `intervalInMinutes` still applies to Flash or even works, and no-one here cares about Flash. Happy to let Mozilla just keep restricting it more and more until it's deprecated in early 2020. Note: we already disable flash anyway in pref 1803.
2019-09-01 21:03:53 +00:00
Thorin-Oakenpants b47982bb9a 2030: again 2019-09-01 20:32:53 +00:00
Thorin-Oakenpants 0691b8babe 2032: fix description
from earthlng 
> it blocks **all media** autoplay "until in foreground", not just audio.
> Source: https://dxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/browser-custom-element.js#1141
2019-09-01 19:22:28 +00:00
Thorin-Oakenpants 8d1c95c650 2030: autoplay changes
When ESR60 hits end of life, we should remove that value 2
2019-09-01 19:16:36 +00:00
Thorin-Oakenpants 19484e1a56 2805: see #774 2019-09-01 14:47:17 +00:00
Thorin-Oakenpants 755ebf88fb start 69 commits 2019-09-01 06:27:24 +00:00
Thorin-Oakenpants d26ea4f39e 68 final 2019-08-31 14:51:08 +00:00
Thorin-Oakenpants a0f3da208f 0390: better reference
- EFF has pretty pictures and stuff and explains the issues (replaces wikipedia which people can still search for)
- tor issue doesn't hold anything important (out it goes)
- moz wiki page I'll leave in for the bugzilla links if someone wants to research how it's all meant to work
2019-08-28 16:33:06 +00:00
Thorin-Oakenpants 5166811bd5 1003: closes #772 2019-08-21 13:01:12 +00:00
Thorin-Oakenpants 86bfdd1470 tweak: middlemouse.paste for Linux 2019-08-21 04:08:40 +00:00
Thorin-Oakenpants 90ef9e63eb oophs I meant 68-beta 2019-08-19 04:54:30 +00:00
Thorin-Oakenpants f2200fd442 68-alpha (for earthlng diffs) 2019-08-19 04:52:53 +00:00
Thorin-Oakenpants aff595b6ea 1704: remove the obvious 2019-08-04 19:17:38 +00:00
Thorin-Oakenpants 6618bf5f76 media.autoplay.allow-muted, closes #756 2019-07-23 14:02:26 +00:00
Thorin-Oakenpants 9aa8e27ef4 68 deprecated 2019-07-17 10:09:39 +00:00
Thorin-Oakenpants 9c782fbf57 2032: add default 2019-07-15 17:07:35 +00:00
Thorin-Oakenpants 931462b30b RFP stuff
https://hg.mozilla.org/mozilla-central/rev/c96e81ba64f3#l1.14
2019-07-15 16:16:39 +00:00
Thorin-Oakenpants 217553b367 dom.forms.datetime
https://bugzilla.mozilla.org/show_bug.cgi?id=1492587
2019-07-15 15:54:23 +00:00
Aeriem 469bbc1ab3 remove 0864 (#760)
https://bugzilla.mozilla.org/show_bug.cgi?id=1492587
2019-07-16 03:49:14 +12:00
Thorin-Oakenpants 11dcc54b61 0321 tweak
`url` and `discover` prefs stop the recommendations, the `enabled` pref hides the leftover recommended section and "Find more add-ons" button
2019-07-09 03:16:40 +00:00
claustromaniac d40d7dbabd 0805 test info 2019-06-30 10:32:38 -03:00
Thorin-Oakenpants b80c515e88 2010: WebGL setup tag #605 2019-06-29 02:52:41 +00:00
Thorin-Oakenpants ed735f875c 2001: WebRTC setup tag #605 2019-06-29 02:44:37 +00:00
Thorin-Oakenpants 55b720faec letterboxing, add setup tag see #728 2019-06-28 05:30:43 +00:00
Thorin-Oakenpants 31567c7938 0321: recommendations discovery in about:addons 2019-06-28 05:00:19 +00:00
Thorin-Oakenpants 8f939c91fe 0320: UI change : get add-ons->recommendations 2019-06-28 04:47:55 +00:00
Thorin-Oakenpants 27bd07d496 5000s: userChrome / userContent 2019-06-28 04:22:50 +00:00
Thorin-Oakenpants 42281a9e52 2212: popup events 2019-06-28 04:15:54 +00:00
Thorin-Oakenpants 8f40c97fd1 the return of the jedi
https://bugzilla.mozilla.org/show_bug.cgi?id=1444133
2019-06-28 04:11:46 +00:00
Thorin-Oakenpants 9642452c48 Update troubleshooting-help.md (#749) 2019-06-28 02:30:10 +12:00
Thorin-Oakenpants 8f1c3018ca Update user-js.md (#750) 2019-06-28 02:29:58 +12:00
claustromaniac f85eb9d0c2 update issue templates 2019-06-26 23:09:01 -03:00
earthlng 408a992893 Update .gitattributes 2019-06-26 13:32:12 +00:00
Thorin-Oakenpants 23c884a5f8 prefs no longer hidden 2019-06-26 10:14:24 +00:00
Thorin-Oakenpants 51089fbad9 start 68-alpha 2019-06-26 10:12:48 +00:00
Thorin-Oakenpants 83b4ada670 67 archive 2019-06-26 09:05:08 +00:00
claustromaniac 7df6c676be Update issue templates 2019-06-25 18:59:58 -03:00
Thorin-Oakenpants e338186953 4500 fix alignment 2019-06-15 16:47:25 +00:00
Thorin-Oakenpants fa61a7c25b 1202: cleanup
I don't think we need a 4 yr old article to explain the concept of `.min` (or `.max`), it's pretty self explanatory (and SSL 3 is obsolete). Three lines of text culled, and one of the remaining http links eliminated as a bonus. Enjoy the saved bytes and mouse-scrolling.
2019-06-15 16:34:29 +00:00
claustromaniac dafd0894e6 refactoring, mostly
De-duplicates many lines because the -ESR and -RFPalts options require too much boilerplate garbage. The script was unreadable enough without repeating code.

I don't think these changes deserve opening yet another PR, but please let me know if you disagree.
2019-06-12 18:30:08 -03:00
Thorin-Oakenpants 06cf53d63e layout.css.font-loading-api.enabled #744, #731 2019-06-12 13:35:05 +00:00
Thorin-Oakenpants fc545b4d27 remove 1406 css font loading api #744, #731 2019-06-12 13:33:58 +00:00
earthlng 3c5f58b812 Update updater.bat 2019-06-12 10:52:46 +00:00
claustromaniac 7d7f580bfc add -RFPalts option (#745) 2019-06-12 10:51:25 +00:00
Thorin-Oakenpants ca5d6b3317 1402: inactive prefs for default fonts, #744 2019-06-11 15:50:08 +00:00
Thorin-Oakenpants 9e7f9de56f remove 1402, see #744 2019-06-11 15:47:34 +00:00
Thorin-Oakenpants 8a204b5db0 font.blacklist.underline_offset, #744 2019-06-11 15:10:44 +00:00
Thorin-Oakenpants 690a93b71d remove: 1407, see #744 2019-06-11 15:09:24 +00:00
claustromaniac 0da3835a49 updater.bat -ESR option (#742) 2019-06-11 12:43:27 +00:00
Thorin-Oakenpants a92c4086bb 2622: middlemouse.paste, closes #735 2019-06-10 00:38:20 +00:00
Thorin-Oakenpants 9b7771fe76 1401: document fonts => active, see #731
- https://github.com/ghacksuserjs/ghacks-user.js/issues/731#issuecomment-500255686
- reverting my change from last release
2019-06-10 00:06:15 +00:00
Thorin-Oakenpants 2265b73521 1406: css.font-loading-api=> inactive, closes #731 2019-06-09 23:56:40 +00:00
Thorin-Oakenpants 01aae1b346 2426: IntersectionObserver=> inactive, closes #737 2019-06-09 23:29:58 +00:00
Thorin-Oakenpants c2dbdcd4ec toolkit.telemetry.cachedClientID, #739 2019-06-07 17:51:49 +00:00
Thorin-Oakenpants f53b996cfa toolkit.telemetry.cachedClientID, closes #739
Read the linked issue
2019-06-07 17:49:42 +00:00
Thorin-Oakenpants a633622d11 67-beta 2019-05-28 14:45:07 +00:00
Thorin-Oakenpants caaf76e3fb remove 2705 2019-05-28 14:42:44 +00:00
Thorin-Oakenpants 8811a28c56 2705: document.cookie max lifetime
https://bugzilla.mozilla.org/show_bug.cgi?id=1529836
2019-05-28 14:04:09 +00:00
Thorin-Oakenpants fdc9db9a08 1600s revamp
- no need to enforce defaults (except the second cross-origin) = less items in prefs and about:support
- simplify header info
- add in that you need an extension for real control: i.e for most people, e.g I use uMatrix and have never can to whitelist anything. Kolanich has been on settings of 2 for years and only found one broken site: these are anecdotal and don;t reflect the real world: which is why the settings are pretty relaxed
- move the broken info out of header and onto the pref in a setup tag
- reference: https://github.com/ghacksuserjs/ghacks-user.js/issues/716#issuecomment-488527274
- thanks Kolanich and 🐈
2019-05-26 08:43:12 +00:00
Thorin-Oakenpants c079c3c632 0110: clean up 2019-05-26 06:07:41 +00:00
Thorin-Oakenpants 6f76a9bfd2 2030 new default 2019-05-26 05:51:13 +00:00
Thorin-Oakenpants dfab1516ef FF67+ deprecated 2019-05-26 05:33:57 +00:00
Thorin-Oakenpants 57339d09b1 2618 -> RFP ALTs 2019-05-26 05:16:17 +00:00
Thorin-Oakenpants ed23a88c08 save 87bytes 2019-05-24 22:50:24 +00:00
Thorin-Oakenpants dae1087082 2660 enabledScopes, closes #729 2019-05-23 21:11:45 +00:00
Thorin-Oakenpants 7a103b0c23 FPI: 1330467 backed out
now that stable has landed.. I'll leave the text in place
2019-05-21 22:23:23 +00:00
Thorin-Oakenpants 5d5a9acaa4 FPI: 69+ isolate pdfjs range-based requests 2019-05-14 06:48:49 +00:00
Thorin-Oakenpants 76c476ee3c 2204: replace [test]
old test: https://developer.mozilla.org/samples/domref/fullscreen.html
- for me the video comes up as "no video with supported format and mime type", so may not be practical for all users
2019-05-12 13:52:53 +00:00
Thorin-Oakenpants b3c6561ba8 2203: change [test]
It's the same test (thanks gk)
2019-05-12 13:44:12 +00:00
Thorin-Oakenpants a4c2bb80aa 2429 remove default tag 2019-05-12 02:48:06 +00:00
Thorin-Oakenpants a173d30d4e RFP 68+ isolate site permissions 2019-05-10 22:34:24 +00:00
Thorin-Oakenpants fc801db06a RFP stuff 2019-05-08 15:43:41 +00:00
Thorin-Oakenpants 61ce537f20 Delete exceptions03.png 2019-05-08 09:19:55 +00:00
Thorin-Oakenpants 7a766cd2a7 Delete exceptions02.png 2019-05-08 09:19:45 +00:00
Thorin-Oakenpants 842a78692e Delete exceptions01.png 2019-05-08 09:19:32 +00:00
Thorin-Oakenpants 540f5ce868 FF68+ letterboxing changes 2019-05-08 05:18:16 +00:00
Thorin-Oakenpants be7c50c198 spring cleaning, part 3: closes #716 2019-05-05 17:33:16 +00:00
Thorin-Oakenpants 473e88c784 spring cleaning, part 3: see #716 2019-05-05 17:28:47 +00:00
Thorin-Oakenpants da4cfce10f RFP: OS spoof changes FF68+ 2019-05-03 13:19:55 +00:00
Thorin-Oakenpants 2a30436905 moar fixups 2019-05-03 07:49:47 +00:00
Thorin-Oakenpants 7f6d7c6a52 fixups 2019-05-03 07:48:12 +00:00
Thorin-Oakenpants 720253eca3 dom.imagecapture.enabled 2019-05-03 07:36:55 +00:00
Thorin-Oakenpants 7394f2f553 2027: remove, #716
default false since forever
2019-05-03 07:36:04 +00:00
Thorin-Oakenpants ccec62f66b SB reporting URLs, closes #710
- the two reportURLs required the user to actively opt to send a report
- the other five reporting URLs use Mozilla domains, which is not a problem. Not entirely sure if they get used or how, don't care
- the dataSharingURL is not needed, the corresponding .enabled pref is sufficent
2019-05-03 02:09:35 +00:00
Thorin-Oakenpants 329719fe25 0400s: more cleanup, see #710 2019-05-03 02:03:56 +00:00
Thorin-Oakenpants 57f4bd46e9 spring cleaning, closes #716 2019-05-03 00:41:08 +00:00
Thorin-Oakenpants 59a85bcdda spring cleaning, part 2: see #716
- 0910 same as default for desktop. Android is the opposite, must be for a reason. Android is not really my concern.
- 1005: always been inactive: one less warning to deal with
- 1008: always been inactive. defaults are 60, 60
2019-05-03 00:35:04 +00:00
Thorin-Oakenpants dab27cd143 spring cleaning, part 1: see #716
All of these are the same as default, checked back to ESR60 and Ff60. Except 2211 which is not considered an issue by TB for example, and it doesn't enhance anything IMO
2019-05-03 00:09:05 +00:00
Thorin-Oakenpants 1ff14e31c0 1201: TLS max -> inactive
Lets be consistent, we don't make min active as it alters your FP, and the risk is super low (updated the telemetry stat: down from 2% to 0.5%). Default max is now 4 anyway (don't care about ESR - they should be using the v60 archive).
2019-05-02 00:47:14 +00:00
Thorin-Oakenpants c55ecbd8b2 0701: IPv6, MOAR info 2019-05-02 00:30:27 +00:00
Thorin-Oakenpants 99eb835e7a merge 0603 + 0608
- also remove reference which is pretty much useless
2019-04-30 14:26:48 +00:00
Thorin-Oakenpants 1e0b3d74f9 browser.urlbar.userMadeSearchSuggestionsChoice
- a user can click the one-off prompt when they first see it
- it's also set when you go changing search suggestions in options
2019-04-30 13:51:13 +00:00
Thorin-Oakenpants 7bb0bfefe1 combine search suggestions, add tag, see #609
also remove `browser.urlbar.userMadeSearchSuggestionsChoice`
2019-04-30 13:46:41 +00:00
Thorin-Oakenpants f1d28f3878 pedantic aphabetical sorting 2019-04-30 10:10:59 +00:00
Thorin-Oakenpants 57618a31dc fixups 2019-04-30 10:05:03 +00:00
Thorin-Oakenpants 600f9677e9 1820+1825+1830 changes, closes #709 2019-04-30 09:10:42 +00:00
Thorin-Oakenpants 0d40613268 2 x update prefs, see #709 2019-04-30 08:26:59 +00:00
Thorin-Oakenpants 11f40f8a84 1800s remove: gmp/cdm update prefs, see #709 2019-04-30 08:25:06 +00:00
Thorin-Oakenpants c3a74a7c6e 2615: remove obsolete note
1445942 was resolved in FF66
2019-04-30 07:21:08 +00:00
Thorin-Oakenpants 4dd40bddcc 2 x gmp openh264 2019-04-29 18:22:39 +00:00
Thorin-Oakenpants 9da3cf4be8 1840: openh264: remove, see #709
Instead of being inactive, remove this. WebRTC is already blocked. And it can also be controlled by 1820. Redundant and does nothing extra for privacy, security etc
2019-04-29 18:21:01 +00:00
Thorin-Oakenpants 50869a734f [setup-*] always goes after [notes] 2019-04-29 18:13:47 +00:00
Thorin-Oakenpants bb788682c9 fixup: remove duplicate pref 2019-04-29 17:44:53 +00:00
Thorin-Oakenpants 50afeb1861 0205: -> inactive, closes #0707 2019-04-29 17:14:23 +00:00
Thorin-Oakenpants 0eb107abf3 3 x plugin prefs, see #714 2019-04-29 11:14:50 +00:00
Thorin-Oakenpants 675577fb8d 1800: remove redundant flash prefs, closes #714 2019-04-29 11:12:05 +00:00
Thorin-Oakenpants b28677a594 1825: widevine update to inactive, see #709
- at worse, the update pref causes a security risk. I'll leave it in for now
2019-04-29 06:32:47 +00:00
Thorin-Oakenpants 48f3dfec84 browser.safebrowsing.downloads.remote.url 2019-04-29 05:31:17 +00:00
Thorin-Oakenpants 59930d4697 0402, remove redundant pref, see #709 2019-04-29 05:29:53 +00:00
Thorin-Oakenpants 579aa3aa9c 0402: tidy up, see #710 2019-04-29 05:27:16 +00:00
Thorin-Oakenpants ed687fc7ca 1820: update -> inactive, see #709
At best disabling the background update of gmp means not only an extra item for those who wish to use it (e.g widevine, netflix) to have to deal with, but also a time delay in getting the actual download. At worst, it could cause users to use an old dll (security risk).

I will leave it in, for now, but am seriously considering removing it, so don't cry if I do.
2019-04-29 05:06:43 +00:00
Thorin-Oakenpants ce3d5a8cbe 24 inactive SB+TP prefs, see #710 2019-04-29 04:52:58 +00:00
Thorin-Oakenpants 8ffbd81813 remove SB & TP see #710
- SB: disabling it nothing to enhance privacy/security etc if changed from default
- SB: I will not provide the prefs or encourage users to disable these, especially given that there is a UI
- SB: the urls are redundant
- SB: note: the binary checks stays
- TP section is out of date (or soon will be), I'm not maintaining it, it has a UI and is best handled there
2019-04-29 04:30:59 +00:00
Thorin-Oakenpants 4119be3a86 typo 2019-04-28 13:10:04 +00:00
Thorin-Oakenpants 8d874401fa pre FF61 deprecated -> archive
This is all archived in the sticky at the end of the first post
2019-04-28 12:56:27 +00:00
Thorin-Oakenpants b4a4856223 3 x GMP prefs, see #709 2019-04-28 11:12:11 +00:00
Thorin-Oakenpants 8a86097997 1820s: GMP: remove three prefs, see #709 2019-04-28 11:10:15 +00:00
Thorin-Oakenpants 7a9763d129 2740: add setup tag etc, closes #706 2019-04-28 04:30:38 +00:00
Thorin-Oakenpants a39516ff0e case consistency when using service worker* 2019-04-28 04:02:19 +00:00
Thorin-Oakenpants 3e5e1bfdd2 2740 -> inactive, see #706 2019-04-28 03:48:55 +00:00
Thorin-Oakenpants 7b667db766 2304 + 2305 -> inactive, see #706 2019-04-28 03:37:07 +00:00
Thorin-Oakenpants 8f1a489e36 3 update prefs, see #708 2019-04-28 02:58:35 +00:00
Thorin-Oakenpants 6f8d0263df 0303 + 0304 + 0305: remove, closes #708 2019-04-28 02:55:45 +00:00
Thorin-Oakenpants 25b8b404fb 2305+2306: musical chairs #706 2019-04-27 19:02:14 +00:00
Thorin-Oakenpants 528d0de6b4 2305: permission also applies to push 2019-04-27 17:39:53 +00:00
Thorin-Oakenpants c9c1671e4a 2010+2012: simplify WebGL, closes #699 2019-04-27 16:18:48 +00:00
Thorin-Oakenpants 8765231de0 0801: keyword.enabled, closes #702
- explain pitfalls, add keyword tip, add setup tag
- given the searchbar is hidden by default in new FF installs, a lot of people could find this incredibly annoying (not being able to hit enter), including users who have changed their search engine - hence the setup tag
2019-04-27 16:12:25 +00:00
Thorin-Oakenpants e6017af4bd 3 disk cache prefs
see https://github.com/ghacksuserjs/ghacks-user.js/commit/053808ba971dc308640d2f1646fb6dbb126d6c0e
2019-04-27 14:06:48 +00:00
Thorin-Oakenpants 053808ba97 1001: remove dead wood
- these are not needed, you can view your cache in about:cache, or look at your `profile/cache2` folder (at least for portable Firefox), the remaining pref is enough to achieve the desired result
- browser.cache.disk.smart_size.first_run is set internally (for me it got automatically reset to modified false)
- the other two prefs are just more things for users to have deal with if they want to use disk cache
2019-04-27 14:03:02 +00:00
Thorin-Oakenpants 2d0182ce6e 1001: add setup tag
- remove tag from section header (chrome)
- add tag to pref (perf)
- mention that we clear on close
2019-04-27 13:53:02 +00:00
Thorin-Oakenpants 98f65da430 remove dead setup tags 2019-04-27 07:33:30 +00:00
Thorin-Oakenpants 6a0c44d0a4 2517: should be warning, not setup
If it's inactive then it's a warning. We can still go through the js and add setup-harden tags for a few inactive items, which I will do
2019-04-27 07:03:28 +00:00
Thorin-Oakenpants 882d25f725 2610: SVG: should be warning, not setup 2019-04-27 07:00:40 +00:00
Thorin-Oakenpants c3210d1be9 1241: insecure passive: add setup tag 2019-04-27 06:55:58 +00:00
Thorin-Oakenpants d4f7590c83 2212: add setup tag
- doesn't need any more than that. users can fiddle with it to find what works for them: I'm sure this breaks a lot of website "features"
2019-04-24 08:39:11 +00:00
Thorin-Oakenpants d6ccf7ba64 0860 form history: add setup tag / warning
- Used setup-web since it relates to actual web pages, even though it doesn't break them
- Added the tag because it's an item that is likely to get attention / troubleshooting
- Added a warning tag to make the risk more apparent.
- Slight edit to the 2803 references
2019-04-24 08:12:31 +00:00
Thorin-Oakenpants 0922215670 1840 openh264 -> inactive
WebRTC is already disabled
2019-04-24 07:46:47 +00:00
Thorin-Oakenpants f849e1c602 WOFF2 -> inactive 2019-04-24 06:39:59 +00:00
Thorin-Oakenpants 986c900193 RFP tidy up 2019-04-23 05:50:35 +00:00
Thorin-Oakenpants b8367959da mathml: a better test 2019-04-23 05:33:06 +00:00
Thorin-Oakenpants b05cfc32de HTTP2 tweak 2019-04-23 04:04:22 +00:00
Thorin-Oakenpants 358ddfdfce pdfjs - add setup tag 2019-04-22 15:38:26 +00:00
Thorin-Oakenpants 8a68fc48c5 pdfjs.enableWebGL 2019-04-22 15:21:16 +00:00
Thorin-Oakenpants 87959d621c 2010: remove pdf webgl
it's default false, and I want to simplify webgl 2010+2012
2019-04-22 15:20:16 +00:00
Thorin-Oakenpants 8b07fd57d0 canvas.capturestream.enabled 2019-04-22 14:35:51 +00:00
Thorin-Oakenpants 4989928c1e 2026: remove (canvas.capture*)
Disabled back when first added as a stop gap measure, never checked on since. TB has this at true, so I think we can get rid of it
2019-04-22 14:34:07 +00:00
Thorin-Oakenpants c2775a3441 0860 form history info, closes #691 2019-04-22 14:15:58 +00:00
Thorin-Oakenpants 50d31a7aa2 2701 cookies add setup-web tag 2019-04-22 13:31:15 +00:00
Thorin-Oakenpants 9fbe3080c5 2651: add setup-chrome tag 2019-04-22 13:28:07 +00:00
Thorin-Oakenpants 8a98cd1890 tidying up 2019-04-22 13:12:47 +00:00
Thorin-Oakenpants 2d62b9f729 2654 (open with) -> inactive 2019-04-22 12:23:39 +00:00
Thorin-Oakenpants bb7f8df647 2650 -> inactive 2019-04-22 12:16:33 +00:00
Thorin-Oakenpants 373602f0f0 mathml -> inactive 2019-04-22 12:12:30 +00:00
Thorin-Oakenpants e56665ecd1 HWA -> inactive 2019-04-22 12:05:21 +00:00
Thorin-Oakenpants 59d056de27 document fonts -> inactive 2019-04-22 12:00:46 +00:00
Thorin-Oakenpants d41372a7f0 2421 should be a warning
it's not setup tag, because any change (it is inactive) does not help performance, in fact the opposite
2019-04-22 11:50:01 +00:00
Thorin-Oakenpants f62f781645 HTTP2 -> inactive 2019-04-22 11:41:34 +00:00
Thorin-Oakenpants 408d1d0e26 FPI 68+ change 2019-04-19 05:54:57 +00:00
Thorin-Oakenpants d491cf1e89 readme changes 2019-04-19 02:11:21 +00:00
Thorin-Oakenpants ca0f2a5a88 0302b-> inactive: ext auto-updates closes #690 2019-04-19 01:39:07 +00:00
Thorin-Oakenpants fd10c35049 0606 some default info 2019-04-17 03:31:27 +00:00
Thorin-Oakenpants 6ed3581cb0 5000s: CRF 67+ 2019-04-15 16:31:17 +00:00
Thorin-Oakenpants c2034617f0 2429 default true 67+ 2019-04-15 14:59:23 +00:00
Thorin-Oakenpants 6231d6ebed 5000s add new about:config warning pref 2019-04-15 14:54:55 +00:00
Thorin-Oakenpants 411805b05c 2618 no longer hidden 67+ 2019-04-15 14:49:22 +00:00
Thorin-Oakenpants 8c12f4bb14 1840 no longer hidden 67+ 2019-04-15 14:46:39 +00:00
Thorin-Oakenpants e3349d0f07 2212 defaults [67+ change] 2019-04-15 14:17:52 +00:00
Thorin-Oakenpants 92082621d6 start 67 commits 2019-04-15 14:15:54 +00:00
Thorin-Oakenpants 54f86f4be6 Update user.js 2019-04-15 12:55:15 +00:00
Thorin-Oakenpants 585415b534 RFP: prefers-color-scheme 67+ 2019-04-11 02:02:26 +00:00
Thorin-Oakenpants 99586c4a3b enabled scopes breakage info, closes #674 2019-04-08 14:24:41 +00:00
earthlng 8419b4d71b autoplay option "Prompt" was removed in FF66 (#686)
* autoplay option "Prompt" was removed in FF66
source: https://hg.mozilla.org/integration/autoland/rev/2e48b6769911
2019-04-09 01:44:11 +12:00
Thorin-Oakenpants 79e316a26f 2618: better info, #682 2019-04-03 10:50:59 +00:00
Thorin-Oakenpants 26a70f3cd7 2618: setup-chrome tag, closes #682 2019-04-03 10:43:44 +00:00
Thorin-Oakenpants bee47f33cd 66-beta 2019-03-27 04:35:42 +00:00
earthlng 2fcec590b4 Update user.js (#676)
- to avoid confusion with the setting tag, split the prefs into separate numbers, thus shove 2031->2031, reuse 2031
- remove the default value notation as Mozilla will roll out default change gradually to users
2019-03-26 19:05:55 +00:00
Thorin-Oakenpants 3c4b312cc7 2030: default didn't change
not putting the setup-web tag back in, as users now have site exceptions
2019-03-19 19:58:15 +00:00
Thorin-Oakenpants 0354895a2e 2030: add [setting] for autoplay 2019-03-19 09:00:39 +00:00
Thorin-Oakenpants 462db2062c 2030: remove setup tag
If Firefox see fit to set this as 1 by now, then breakage is probably rare, and I'm not encouraging users to reduce security/privacy etc from default
2019-03-17 22:43:27 +00:00
earthlng d9e24e5095 Update user.js (#667) 2019-03-18 07:07:15 +13:00
Thorin-Oakenpants b1aa1f5619 2030: default change 2019-03-16 22:51:58 +00:00
Thorin-Oakenpants a349662f69 66 deprecated prefs 2019-03-16 22:44:24 +00:00
Thorin-Oakenpants 28a7226235 4510: clarify this is the chrome 2019-03-16 22:36:31 +00:00
Thorin-Oakenpants 97f08ad3cd 4504: RFP letterboxing, closes #659 2019-03-16 22:34:45 +00:00
Thorin-Oakenpants 68584a3397 some 2505+RFP clarity, closes #661 2019-03-13 15:15:23 +00:00
Thorin-Oakenpants 8b4f45774a 4607+RFP clarity, closes #656 2019-03-13 14:46:33 +00:00
Thorin-Oakenpants f8428dcc0a a better test
- more metrics covered/displayed
- test page site is https
2019-03-07 14:55:03 +00:00
Thorin-Oakenpants 6d6cd5f410 2802 applies to 2803, closes #658 2019-03-05 03:26:39 +00:00
Thorin-Oakenpants eae8434853 start 66 commits 2019-02-26 07:53:21 +00:00
Thorin-Oakenpants 2cff24f12e 65 final 2019-02-26 05:42:32 +00:00
Thorin-Oakenpants 60be8be5ec UNC and extensions, closes #651 2019-02-17 03:51:44 +00:00
Thorin-Oakenpants 981dd83c15 clarify themes info, closes #648 2019-02-17 16:34:34 +13:00
Thorin-Oakenpants 5c703f0262 65-beta 2019-02-09 10:05:45 +00:00
Thorin-Oakenpants de0ebbed21 0343: even MOAR clarification 2019-02-08 11:38:17 +00:00
Thorin-Oakenpants e448015704 0343: clarify where
TAAR is extension recommendations in the "Add-ons Manager" (not sure how it's displayed)
CFR is extension recommendations as you browse the web, via a drop down panel
2019-02-07 16:55:04 +00:00
Thorin-Oakenpants d3b1ed45ad RFP: UA spoof is now 60+8's 2019-02-07 15:14:08 +00:00
earthlng ed140425ea move shit around 2019-02-08 03:41:23 +13:00
Thorin-Oakenpants 3847f97f41 some more 65+ diffs, #610 2019-02-07 13:41:15 +00:00
Thorin-Oakenpants d81e8ae583 i need a break 2019-02-07 11:11:16 +00:00
Thorin-Oakenpants 7a8381d894 typo 2019-02-07 11:01:31 +00:00
Thorin-Oakenpants 649699ad22 0609: disable connectivity service #610 2019-02-07 11:00:07 +00:00
Thorin-Oakenpants 1d5289dd94 RFP 67+ 2019-02-06 16:59:28 +00:00
Thorin-Oakenpants 74c8f294d6 0306: extension metadata, closes #615 2019-02-05 04:51:07 +00:00
Thorin-Oakenpants a0508eccf6 capital letter after [note] 2019-02-04 13:41:56 +00:00
Thorin-Oakenpants 25acd9f63e 2703 again
- description needs to stay changed from just cookies since it also clears site data
- keep the info about n days out of it, it's just messy (ESR users should be on version 60)
- get the values correct (I mixed them up earlier)
- fixup [setting] path
- leave in one (of two) extra [notes] I previously added
2019-02-04 13:40:45 +00:00
Thorin-Oakenpants 74a08114a8 2701: refix setting 2019-02-04 13:28:29 +00:00
Thorin-Oakenpants 71ffc661b2 2701 again 2019-02-04 13:26:19 +00:00
Thorin-Oakenpants e432a22693 0306: moar info #615
see https://github.com/ghacksuserjs/ghacks-user.js/issues/615#issuecomment-460243162 - checking for updates is not a trigger, having an update **and** applying it is
2019-02-04 13:08:41 +00:00
Thorin-Oakenpants f06c78f897 update cookie settings info 2019-02-05 02:00:19 +13:00
Thorin-Oakenpants 847eb80877 0306 => inactive, closes #615
whatever we thought it may have done in the past, it doesn't do that now as far as we know. And it's not an issue since we allow extension update-CHECKs anyway.
2019-02-04 06:39:29 +00:00
Thorin-Oakenpants ec0e58099f pointer events -> RFP ALTS 2019-02-01 13:53:04 +00:00
Thorin-Oakenpants e6eb473071 dom.storage_access.enabled
regardless of this pref setting: the permissions.sqlite file will still be abused to store a flag for this for every single site you connect to (as third party?) - fun.
2019-02-01 13:41:00 +00:00
Thorin-Oakenpants f1b892bc1c clean up "Firefox Data Collection & Use" (#627)
* clean up "Firefox Data Collection & Use"
  - telemetry prefs to 330's
  - Firefox Data Collection & Use prefs to 340's (but leave crash reports in 350s)
  - move `app.shield.optoutstudies.enabled` to 330's - this is an internal pref which controls if you get the system addon
  - make notes that `datareporting.healthreport.uploadEnabled` controls studies and ext recommendations
  - split crash reports better to reflex the UI setting
2019-02-02 00:57:22 +13:00
Thorin-Oakenpants 524b5f79dc setting changes re cookies 2019-01-31 18:42:59 +00:00
Thorin-Oakenpants 24f2e1d982 disable storage access api
see: https://old.reddit.com/r/firefox/comments/alnn3f/storageaccessapi_permissions/effg5tp/
2019-01-31 16:16:59 +00:00
Thorin-Oakenpants c6060e5645 storage access api 2019-01-31 16:03:39 +00:00
Thorin-Oakenpants d0b8a08a4b browser.urlbar.maxHistoricalSearchSuggestions
default 0 in ESR60 and FF60+
2019-01-30 16:16:12 +00:00
Thorin-Oakenpants f047fe93c0 remove 0850f
`browser.urlbar.maxHistoricalSearchSuggestions` is default 0 is FF60 thru to FF66. It is also default 0 in ESR60.1 thru 60.5. (at least on Windows)

IDK if this has ever been used, maybe android, in which case it's probably useful?
2019-01-30 16:14:39 +00:00
Thorin-Oakenpants 6147fed61c and the rest of the 0850's
The location bar dropdown cannot be disabled via prefs except with css, in which case the whole thing is hidden regardless of he above prefs. So there is no point in making any of them active. This is also in line with what we can achieve with relaxed and hardened tags / sticky issues - that is we can find a better balance, Shoulder surfers is a low risk, not even Tor Browser disables this stuff. People need to take responsibility and/or use common sense. Sure, we can leave em in for users to know about and enable if they want. End of story.

userChrome.css code is
```css
/* locationbar dropdown FF65+ */
#PopupAutoCompleteRichResult {display: none!important;}
```
2019-01-30 15:44:08 +00:00
Thorin-Oakenpants 54f79604da Make Firefox Great Again (#626)
* location bar changes
* if the dropdown is going to be used, then no point hiding search engines on the bottom line
2019-01-30 15:06:32 +00:00
Thorin-Oakenpants 2f351fa5ce 0702: http2 websockets
might as well add it: needs t be taken into consideration when looking at the whole http2 thing. Will be interesting to see what Tor Browser does with it in ESR68
2019-01-30 14:09:39 +00:00
Thorin-Oakenpants 5dc3ea66cd browser.contentblocking.enabled
only existed for FF63+64, default true anyway
2019-01-30 12:38:07 +00:00
earthlng d9a87b3ac4 FF65 removals (#624) 2019-01-30 12:27:53 +00:00
Thorin-Oakenpants 95b75a065d up date info on what cookies control #622 2019-01-30 10:23:42 +00:00
claustromaniac 8c96432eb8 Update updater.sh (#618)
Closes #616 + #617
2019-01-25 14:28:00 +00:00
Thorin-Oakenpants 1c09ec36e3 0306: extra info, closes #615 2019-01-18 04:24:13 +00:00
Thorin-Oakenpants f1e6d164f7 start 65 commits 2019-01-17 05:19:11 +00:00
11 changed files with 730 additions and 979 deletions
+1
View File
@@ -13,3 +13,4 @@
.gitattributes export-ignore .gitattributes export-ignore
*.yml export-ignore *.yml export-ignore
/wikipiki export-ignore /wikipiki export-ignore
/.github export-ignore
+18
View File
@@ -0,0 +1,18 @@
---
name: Tools
about: Report issues with the updaters, the troubleshooter, or any other tools.
title: ''
labels: ''
assignees: ''
---
<!--
Please specify:
- the name of the file (i.e. updater.bat, updater.sh)
- steps to reproduce the issue
- actual result
- expected result
Blank out this field before typing, or start typing after the next line.
-->
@@ -0,0 +1,29 @@
---
name: Troubleshooting help
about: Ask for help to solve problems with user.js
title: ''
labels: ''
assignees: ''
---
Before you proceed...
- Keep reading this. Seriously.
- Note that we do not support forks (i.e. IceCat, Pale Moon, WaterFox, etc).
- Make sure you searched for the `[Setup` tags in the `user.js`.
- Search the GitHub repository. The information you need is most likely here already.
- Check out our [troubleshooting](https://github.com/ghacksuserjs/ghacks-user.js/wiki/1.4-Troubleshooting) wiki page, including steps to see if the problem is caused by the `user.js` or an extension.
See also:
- Extension breakage due to prefs [issue 391](https://github.com/ghacksuserjs/ghacks-user.js/issues/391)
- Prefs vs Recommended Extensions: Co-Existance+Enhancement | Conflicts [issue 350](https://github.com/ghacksuserjs/ghacks-user.js/issues/350)
- The extension CSP header modification game [issue 664](https://github.com/ghacksuserjs/ghacks-user.js/issues/664)
If you still need help, help us help you by providing relevant information:
- browser version
- Steps to Reproduce (STR)
- actual result
- expected result
- anything else you deem worth mentioning
Clear all of this when you're ready to type.
+15
View File
@@ -0,0 +1,15 @@
---
name: user.js
about: Suggest changes to user.js
title: ''
labels: ''
assignees: ''
---
We value feedback in general, but we value feedback from informed users more. There is no need for you to be an expert to participate (most of us aren't), but we hope that you at least understand our decisions before questioning them. We discuss all changes openly, and we do not make changes lightly. So, if you don't understand why we decided to add/remove/change a certain pref, search the repo. The answer is most certainly here.
If some change we made took you by surprise (in the wrong way), remember that keeping track of changes is your responsibility. Watch the repo, read the [changelogs](https://github.com/ghacksuserjs/ghacks-user.js/issues?utf8=✓&q=is%3Aissue+label%3Achangelog), compare [releases](https://github.com/ghacksuserjs/ghacks-user.js/releases) as you update your copy of user.js, or use any other method you prefer.
Clear all of this when you're ready to type.
+96 -1
View File
@@ -1,7 +1,7 @@
/*** /***
This will reset the preferences that have been removed completely from the ghacks user.js. This will reset the preferences that have been removed completely from the ghacks user.js.
Last updated: 12-Dec-2018 Last updated: 15-October-2019
For instructions see: For instructions see:
https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts] https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
@@ -117,6 +117,101 @@
'media.peerconnection.use_document_iceservers', 'media.peerconnection.use_document_iceservers',
'media.peerconnection.video.enabled', 'media.peerconnection.video.enabled',
'media.navigator.video.enabled', 'media.navigator.video.enabled',
/* 65-beta */
'browser.contentblocking.enabled',
'browser.urlbar.maxHistoricalSearchSuggestions',
/* 67-beta */
'app.update.service.enabled',
'app.update.silent',
'app.update.staging.enabled',
'browser.cache.disk.capacity',
'browser.cache.disk.smart_size.enabled',
'browser.cache.disk.smart_size.first_run',
'browser.cache.offline.insecure.enable',
'browser.safebrowsing.downloads.remote.url',
'browser.safebrowsing.provider.google.reportMalwareMistakeURL',
'browser.safebrowsing.provider.google.reportPhishMistakeURL',
'browser.safebrowsing.provider.google.reportURL',
'browser.safebrowsing.provider.google4.dataSharing.enabled',
'browser.safebrowsing.provider.google4.dataSharingURL',
'browser.safebrowsing.provider.google4.reportMalwareMistakeURL',
'browser.safebrowsing.provider.google4.reportPhishMistakeURL',
'browser.safebrowsing.provider.google4.reportURL',
'browser.safebrowsing.reportPhishURL',
'browser.sessionhistory.max_total_viewers',
'browser.urlbar.filter.javascript',
'canvas.capturestream.enabled',
'dom.imagecapture.enabled',
'dom.popup_maximum',
'gfx.offscreencanvas.enabled',
'javascript.options.shared_memory',
'media.gmp-gmpopenh264.autoupdate',
'media.gmp-gmpopenh264.enabled',
'media.gmp-manager.updateEnabled',
'media.gmp-manager.url',
'media.gmp-manager.url.override',
'media.gmp.trial-create.enabled',
'media.gmp-widevinecdm.autoupdate',
'network.cookie.leave-secure-alone',
'network.cookie.same-site.enabled',
'network.dnsCacheEntries',
'network.dnsCacheExpiration',
'network.proxy.autoconfig_url.include_path',
'pdfjs.enableWebGL',
'plugin.default.state',
'plugin.defaultXpi.state',
'plugin.scan.plid.all',
'security.data_uri.block_toplevel_data_uri_navigations',
'security.insecure_field_warning.contextual.enabled',
'security.insecure_password.ui.enabled',
'signon.autofillForms.http',
'signon.storeWhenAutocompleteOff',
'xpinstall.whitelist.required',
/* 67-beta: Blocklist, SB & TP cleanup: these were all inactive */
'browser.safebrowsing.downloads.remote.block_dangerous',
'browser.safebrowsing.downloads.remote.block_dangerous_host',
'browser.safebrowsing.blockedURIs.enabled',
'browser.safebrowsing.provider.google.gethashURL',
'browser.safebrowsing.provider.google.updateURL',
'browser.safebrowsing.provider.google4.gethashURL',
'browser.safebrowsing.provider.google4.updateURL',
'browser.safebrowsing.provider.mozilla.gethashURL',
'browser.safebrowsing.provider.mozilla.updateURL',
'browser.urlbar.userMadeSearchSuggestionsChoice',
'privacy.trackingprotection.annotate_channels',
'privacy.trackingprotection.enabled',
'privacy.trackingprotection.lower_network_priority',
'privacy.trackingprotection.pbmode.enabled',
'services.blocklist.addons.collection',
'services.blocklist.gfx.collection',
'services.blocklist.onecrl.collection',
'services.blocklist.plugins.collection',
'services.blocklist.update_enabled',
'urlclassifier.trackingTable',
/* 68-beta */
'dom.forms.datetime',
'font.blacklist.underline_offset',
'font.name.monospace.x-unicode',
'font.name.monospace.x-western',
'font.name.sans-serif.x-unicode',
'font.name.sans-serif.x-western',
'font.name.serif.x-unicode',
'font.name.serif.x-western',
'layout.css.font-loading-api.enabled',
'toolkit.telemetry.cachedClientID',
/* 69-beta */
'plugin.sessionPermissionNow.intervalInMinutes',
/* 70-beta */
'browser.cache.disk_cache_ssl',
'browser.sessionhistory.max_entries',
'extensions.getAddons.discovery.api_url',
'extensions.htmlaboutaddons.discover.enabled',
'extensions.webservice.discoverURL',
'intl.locale.requested',
'intl.regional_prefs.use_os_locales',
'dom.push.connection.enabled',
'dom.push.serverURL',
'webgl.dxgl.enabled',
/* reset parrot: check your open about:config after running the script */ /* reset parrot: check your open about:config after running the script */
'_user.js.parrot' '_user.js.parrot'
] ]
+43 -8
View File
@@ -3,10 +3,10 @@ TITLE ghacks user.js updater
REM ## ghacks-user.js updater for Windows REM ## ghacks-user.js updater for Windows
REM ## author: @claustromaniac REM ## author: @claustromaniac
REM ## version: 4.6 REM ## version: 4.10
REM ## instructions: https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts REM ## instructions: https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts
SET v=4.7 SET v=4.10
VERIFY ON VERIFY ON
CD /D "%~dp0" CD /D "%~dp0"
@@ -22,6 +22,8 @@ IF /I "%~1"=="-multioverrides" (SET _multi=1)
IF /I "%~1"=="-merge" (SET _merge=1) IF /I "%~1"=="-merge" (SET _merge=1)
IF /I "%~1"=="-updatebatch" (SET _updateb=1) IF /I "%~1"=="-updatebatch" (SET _updateb=1)
IF /I "%~1"=="-singlebackup" (SET _singlebackup=1) IF /I "%~1"=="-singlebackup" (SET _singlebackup=1)
IF /I "%~1"=="-esr" (SET _esr=1)
IF /I "%~1"=="-rfpalts" (SET _rfpalts=1)
SHIFT SHIFT
GOTO parse GOTO parse
:endparse :endparse
@@ -82,7 +84,7 @@ ECHO:
ECHO: ######################################## ECHO: ########################################
ECHO: #### user.js Updater for Windows #### ECHO: #### user.js Updater for Windows ####
ECHO: #### by claustromaniac #### ECHO: #### by claustromaniac ####
ECHO: #### v!v! #### ECHO: #### v!v! ####
ECHO: ######################################## ECHO: ########################################
ECHO: ECHO:
SET /A "_line=0" SET /A "_line=0"
@@ -131,6 +133,14 @@ CALL :message "Retrieving latest user.js file from github repository..."
PowerShell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js', 'user.js.new')" PowerShell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js', 'user.js.new')"
) >nul 2>&1 ) >nul 2>&1
IF EXIST user.js.new ( IF EXIST user.js.new (
IF DEFINED _rfpalts (
CALL :message "Activating RFP Alternatives section..."
CALL :activate user.js.new "[SETUP-non-RFP]"
)
IF DEFINED _esr (
CALL :message "Activating ESR section..."
CALL :activate user.js.new ".x still uses all the following prefs"
)
IF DEFINED _multi ( IF DEFINED _multi (
FORFILES /P user.js-overrides /M *.js >nul 2>&1 FORFILES /P user.js-overrides /M *.js >nul 2>&1
IF NOT ERRORLEVEL 1 ( IF NOT ERRORLEVEL 1 (
@@ -196,7 +206,7 @@ IF NOT DEFINED _log (
) )
EXIT /B EXIT /B
REM ########### Message Function ########### ::::::::::::::: Message :::::::::::::::
:message :message
SETLOCAL DisableDelayedExpansion SETLOCAL DisableDelayedExpansion
IF NOT "2"=="%_log%" (ECHO:) IF NOT "2"=="%_log%" (ECHO:)
@@ -205,7 +215,28 @@ IF NOT "2"=="%_log%" (ECHO:)
ENDLOCAL ENDLOCAL
GOTO :EOF GOTO :EOF
REM ############ Merge function ############ ::::::::::::::: Activate Section :::::::::::::::
:activate
:: arg1 = file
:: arg2 = line substring
SETLOCAL DisableDelayedExpansion
(
FOR /F "tokens=1,* delims=:" %%G IN ('FINDSTR /N "^" "%~1"') DO (
SET "_temp=%%H"
SETLOCAL EnableDelayedExpansion
IF "!_temp:%~2=!"=="!_temp!" (
ENDLOCAL & ECHO:%%H
) ELSE (
ECHO://!_temp:~2!
ENDLOCAL
)
)
)>updatertempfile
MOVE /Y updatertempfile "%~1" >nul
ENDLOCAL
GOTO :EOF
::::::::::::::: Merge :::::::::::::::
:merge :merge
SETLOCAL DisableDelayedExpansion SETLOCAL DisableDelayedExpansion
FOR /F tokens^=2^,^*^ delims^=^'^" %%G IN ('FINDSTR /R /C:"^user_pref[ ]*\([ ]*[\"'].*[\"'][ ]*,.*\)[ ]*;" "%~1"') DO (SET "[%%G]=%%H") FOR /F tokens^=2^,^*^ delims^=^'^" %%G IN ('FINDSTR /R /C:"^user_pref[ ]*\([ ]*[\"'].*[\"'][ ]*,.*\)[ ]*;" "%~1"') DO (SET "[%%G]=%%H")
@@ -244,11 +275,13 @@ MOVE /Y updatertempfile "%~1" >nul
ENDLOCAL ENDLOCAL
GOTO :EOF GOTO :EOF
REM ############### Help ################## ::::::::::::::: Help :::::::::::::::
:showhelp :showhelp
MODE 80,46 MODE 80,54
CLS CLS
CALL :message "Available arguments (case-insensitive):" CALL :message "Available arguments (case-insensitive):"
CALL :message " -esr"
ECHO: Activate ESR related preferences
CALL :message " -log" CALL :message " -log"
ECHO: Write the console output to a logfile (user.js-update-log.txt) ECHO: Write the console output to a logfile (user.js-update-log.txt)
CALL :message " -logP" CALL :message " -logP"
@@ -272,7 +305,9 @@ ECHO: Run without user input.
CALL :message " -singleBackup" CALL :message " -singleBackup"
ECHO: Use a single backup file and overwrite it on new updates, instead of ECHO: Use a single backup file and overwrite it on new updates, instead of
ECHO: cumulative backups. This was the default behaviour before v4.3. ECHO: cumulative backups. This was the default behaviour before v4.3.
CALL :message " -updatebatch" CALL :message " -rfpAlts"
ECHO: Activate RFP Alternatives section
CALL :message " -updateBatch"
ECHO: Update the script itself on execution, before the normal routine. ECHO: Update the script itself on execution, before the normal routine.
CALL :message "" CALL :message ""
PAUSE PAUSE
+6 -3
View File
@@ -2,7 +2,7 @@
## ghacks-user.js updater for macOS and Linux ## ghacks-user.js updater for macOS and Linux
## version: 2.4 ## version: 2.5
## Author: Pat Johnson (@overdodactyl) ## Author: Pat Johnson (@overdodactyl)
## Additional contributors: @earthlng, @ema-pe, @claustromaniac ## Additional contributors: @earthlng, @ema-pe, @claustromaniac
@@ -227,7 +227,7 @@ update_updater () {
fi fi
mv "${tmpfile}" "${SCRIPT_DIR}/updater.sh" mv "${tmpfile}" "${SCRIPT_DIR}/updater.sh"
chmod u+x "${SCRIPT_DIR}/updater.sh" chmod u+x "${SCRIPT_DIR}/updater.sh"
"${SCRIPT_DIR}/updater.sh" "$@ -d" "${SCRIPT_DIR}/updater.sh" "$@" -d
exit 1 exit 1
} }
@@ -334,6 +334,9 @@ update_userjs () {
echo -e "Status: ${GREEN}A diff file was created:${NC} ${PWD}/${diffname}" echo -e "Status: ${GREEN}A diff file was created:${NC} ${PWD}/${diffname}"
else else
echo -e "Warning: ${ORANGE}Your new user.js file appears to be identical. No diff file was created.${NC}" echo -e "Warning: ${ORANGE}Your new user.js file appears to be identical. No diff file was created.${NC}"
if [ $BACKUP = 'multiple' ]; then
rm $bakname &>/dev/null
fi
fi fi
rm $past_nocomments $current_nocomments $pastuserjs &>/dev/null rm $past_nocomments $current_nocomments $pastuserjs &>/dev/null
fi fi
@@ -416,7 +419,7 @@ if [ $# != 0 ]; then
fi fi
show_banner show_banner
update_updater update_updater $@
getProfilePath # updates PROFILE_PATH or exits on error getProfilePath # updates PROFILE_PATH or exits on error
cd "$PROFILE_PATH" && update_userjs cd "$PROFILE_PATH" && update_userjs
+522 -967
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB