Compare commits
733 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3d76c74c80 | ||
![]() |
9bba5788aa | ||
![]() |
c25187332e | ||
![]() |
80fa110f49 | ||
![]() |
b8f18a3d91 | ||
![]() |
eae5762d29 | ||
![]() |
c6cfa10c0b | ||
![]() |
bc6a2ba145 | ||
![]() |
f906f7f3b4 | ||
![]() |
11582f905a | ||
![]() |
ff5c959cb9 | ||
![]() |
23caf69614 | ||
![]() |
6446d73cf5 | ||
![]() |
47cbf5b974 | ||
![]() |
9655743d8c | ||
![]() |
c2f191448c | ||
![]() |
33a84b608c | ||
![]() |
4a510a4b4c | ||
![]() |
e4dd5aa428 | ||
![]() |
fd72683abe | ||
![]() |
f95c6829fe | ||
![]() |
fc25163763 | ||
![]() |
29bb5a35f0 | ||
![]() |
96210522d8 | ||
![]() |
d94d68245f | ||
![]() |
e2681baec3 | ||
![]() |
35e8def0b1 | ||
![]() |
3fdcb28b8f | ||
![]() |
f54d632da5 | ||
![]() |
6e79d1bba6 | ||
![]() |
56f51203bf | ||
![]() |
bd2e5b8d1d | ||
![]() |
f0513b7e64 | ||
![]() |
336300a274 | ||
![]() |
50af4b9af4 | ||
![]() |
3f6fcc13f0 | ||
![]() |
1e6e211a06 | ||
![]() |
dfd5589c3d | ||
![]() |
ba173d4920 | ||
![]() |
61a9f9d37a | ||
![]() |
576da2e236 | ||
![]() |
f1831e947b | ||
![]() |
915f39959c | ||
![]() |
4d78abf2bf | ||
![]() |
6151d664ac | ||
![]() |
47f152ac90 | ||
![]() |
84d515abfc | ||
![]() |
c34531b67e | ||
![]() |
04e6e77439 | ||
![]() |
bc5add9450 | ||
![]() |
b117916207 | ||
![]() |
2f4b93a18f | ||
![]() |
d50c772d7d | ||
![]() |
7a1d0a92af | ||
![]() |
f2e4a79ca0 | ||
![]() |
c84c419544 | ||
![]() |
bdaa2867b9 | ||
![]() |
e2e8c4ea8f | ||
![]() |
d13f39d9f9 | ||
![]() |
ca022d8c2d | ||
![]() |
7388485063 | ||
![]() |
8259191167 | ||
![]() |
b99dd27de8 | ||
![]() |
62a68f0814 | ||
![]() |
be376afc1e | ||
![]() |
f5e54b4a70 | ||
![]() |
7135907b2f | ||
![]() |
12ca83b550 | ||
![]() |
e4a85c30c1 | ||
![]() |
45d23f8d75 | ||
![]() |
40e8e1acbe | ||
![]() |
6789dc7fef | ||
![]() |
5eaa8196e2 | ||
![]() |
cc0f05388f | ||
![]() |
5a366493e0 | ||
![]() |
365e76bc9f | ||
![]() |
a93047e6c9 | ||
![]() |
8a65c5a7ba | ||
![]() |
60dd839081 | ||
![]() |
f4187632fa | ||
![]() |
51f3fdbd87 | ||
![]() |
db04bc44f2 | ||
![]() |
4e3a64b5a1 | ||
![]() |
958acf9c2e | ||
![]() |
95ecd3e328 | ||
![]() |
4bc98005ec | ||
![]() |
3f09afdee0 | ||
![]() |
3c73bc1e56 | ||
![]() |
e38f02bc22 | ||
![]() |
74be763f60 | ||
![]() |
5780b6d197 | ||
![]() |
06bfef8fd1 | ||
![]() |
d040b95ed2 | ||
![]() |
61f01f81fd | ||
![]() |
2b2e151f45 | ||
![]() |
ff8d63f7e4 | ||
![]() |
848290898d | ||
![]() |
05abe82136 | ||
![]() |
0dba33688f | ||
![]() |
6e53e841f7 | ||
![]() |
ecb63e82c9 | ||
![]() |
ded7c01a08 | ||
![]() |
996881aef1 | ||
![]() |
4b4248157a | ||
![]() |
a5e75c4bd3 | ||
![]() |
c6ab6c4b48 | ||
![]() |
ceacc9dd74 | ||
![]() |
d466cf694e | ||
![]() |
3fcc711c5a | ||
![]() |
c21b9faefc | ||
![]() |
1a899966a9 | ||
![]() |
36c942e887 | ||
![]() |
662eddbc21 | ||
![]() |
ea139e3ef8 | ||
![]() |
d6b26e7558 | ||
![]() |
7ff46e02dd | ||
![]() |
4ff931781a | ||
![]() |
9aae0a62b0 | ||
![]() |
eb98f06d69 | ||
![]() |
81561840a1 | ||
![]() |
64bc683c3f | ||
![]() |
b4225baaf2 | ||
![]() |
e00497fd51 | ||
![]() |
d9af90d05f | ||
![]() |
0d83307b14 | ||
![]() |
4f3f789f28 | ||
![]() |
6b6ed86b6c | ||
![]() |
382b9181df | ||
![]() |
ba052105de | ||
![]() |
4bd17611df | ||
![]() |
41468d0d0b | ||
![]() |
a98b73c64e | ||
![]() |
58e2618b9d | ||
![]() |
d61da93aad | ||
![]() |
562127be87 | ||
![]() |
917e3fe1aa | ||
![]() |
89bee0e361 | ||
![]() |
4c74f1bffb | ||
![]() |
0d9de9174a | ||
![]() |
45043537d8 | ||
![]() |
cc7ca9d0fa | ||
![]() |
10044fcaf7 | ||
![]() |
ac0820a5dc | ||
![]() |
83b6d64e67 | ||
![]() |
b5bf2ee017 | ||
![]() |
09d62d2302 | ||
![]() |
7a4676fe2d | ||
![]() |
bc2aba3829 | ||
![]() |
926a2d4ac8 | ||
![]() |
ab7380c93b | ||
![]() |
06b8d8bfa3 | ||
![]() |
7016c2050d | ||
![]() |
2787da7f90 | ||
![]() |
7e18f8b473 | ||
![]() |
d2510b014d | ||
![]() |
87bd8683fa | ||
![]() |
d48d3ad29a | ||
![]() |
6675225ec4 | ||
![]() |
bb56056a68 | ||
![]() |
93f0ff89c8 | ||
![]() |
7811e912f4 | ||
![]() |
238f1545f4 | ||
![]() |
c269ac9f7d | ||
![]() |
78297132b4 | ||
![]() |
8de87de050 | ||
![]() |
8bc25b552d | ||
![]() |
c8c86262d7 | ||
![]() |
f836e55363 | ||
![]() |
8cdb30cc08 | ||
![]() |
54810e333f | ||
![]() |
7ec13c0323 | ||
![]() |
af109d4696 | ||
![]() |
460951df9e | ||
![]() |
93874bda43 | ||
![]() |
4ebabbb569 | ||
![]() |
1f0dc1853d | ||
![]() |
13e5fe17b1 | ||
![]() |
ec7cb6a491 | ||
![]() |
d9f49bdf1f | ||
![]() |
d5bc6715cd | ||
![]() |
8860c90abf | ||
![]() |
4d5abd6cc3 | ||
![]() |
de28689e76 | ||
![]() |
5d508e4242 | ||
![]() |
1fc43574d6 | ||
![]() |
83602baa38 | ||
![]() |
0634a568ef | ||
![]() |
97322d6e8b | ||
![]() |
f7bba92c71 | ||
![]() |
fe75baa79f | ||
![]() |
72cc4d176e | ||
![]() |
7e1b92567c | ||
![]() |
fec5168203 | ||
![]() |
b60a888da3 | ||
![]() |
ec595c3b95 | ||
![]() |
9d61992c8c | ||
![]() |
fd860e6c69 | ||
![]() |
d1d20b897a | ||
![]() |
cf0102f71e | ||
![]() |
4dc5372257 | ||
![]() |
c2ddfd60bf | ||
![]() |
47de4f520b | ||
![]() |
27977a16ad | ||
![]() |
4b393b9b12 | ||
![]() |
6027aaa45d | ||
![]() |
cbfb8abf15 | ||
![]() |
58d0161b67 | ||
![]() |
6b351a9458 | ||
![]() |
c9e4cac618 | ||
![]() |
34bd3c5a04 | ||
![]() |
2f88ca2e40 | ||
![]() |
e2e7f9c647 | ||
![]() |
f8932dced1 | ||
![]() |
17beb468f1 | ||
![]() |
bd59131d3e | ||
![]() |
0f8217ad60 | ||
![]() |
1515897449 | ||
![]() |
ba92918d38 | ||
![]() |
094356e073 | ||
![]() |
7d68a32971 | ||
![]() |
85438d00e4 | ||
![]() |
a764149520 | ||
![]() |
535346df87 | ||
![]() |
412c8f9f94 | ||
![]() |
380a88ee57 | ||
![]() |
8404e8a59c | ||
![]() |
6381b1aeb9 | ||
![]() |
5cdea955e7 | ||
![]() |
b37df0bcfe | ||
![]() |
044e3e76e8 | ||
![]() |
1c6d633144 | ||
![]() |
278336196c | ||
![]() |
76c1aad4be | ||
![]() |
e5c128804c | ||
![]() |
c9956d85b1 | ||
![]() |
524823fd05 | ||
![]() |
283bfd744a | ||
![]() |
a1b4aa6000 | ||
![]() |
a308878b11 | ||
![]() |
453fcd32cb | ||
![]() |
a264eebcb5 | ||
![]() |
908638c9dc | ||
![]() |
7e80231ac5 | ||
![]() |
6df03e1a74 | ||
![]() |
4b437771fa | ||
![]() |
4043467ad9 | ||
![]() |
5ac8fd8f70 | ||
![]() |
2cf20c56a7 | ||
![]() |
3b52557143 | ||
![]() |
2a9cf32f45 | ||
![]() |
08395de188 | ||
![]() |
4ac17eaf78 | ||
![]() |
b5a3b54d3f | ||
![]() |
38dc90a947 | ||
![]() |
80f69a6f3d | ||
![]() |
498a25c759 | ||
![]() |
64e8dfad0a | ||
![]() |
5ec4fef4ed | ||
![]() |
881a2d22eb | ||
![]() |
76c8ecd10d | ||
![]() |
677b81765f | ||
![]() |
9f43d48a32 | ||
![]() |
6077d09b9f | ||
![]() |
7144f8b7f8 | ||
![]() |
778421cad4 | ||
![]() |
35ccaff58e | ||
![]() |
69132b588f | ||
![]() |
51748ea25a | ||
![]() |
269cf965bd | ||
![]() |
b177c73f0d | ||
![]() |
613e55ae8c | ||
![]() |
3697bd8d3a | ||
![]() |
9f08c7c0f4 | ||
![]() |
05b7d61735 | ||
![]() |
e31a6876e6 | ||
![]() |
47be7ba42f | ||
![]() |
033977fe10 | ||
![]() |
ab42deb541 | ||
![]() |
8a22a90804 | ||
![]() |
c55e6dcd68 | ||
![]() |
cf379bcce0 | ||
![]() |
2b26cd4f41 | ||
![]() |
8bfee5b59f | ||
![]() |
04d648d55b | ||
![]() |
7cdc76ecf9 | ||
![]() |
aded0707a4 | ||
![]() |
2a011f1053 | ||
![]() |
213467d91b | ||
![]() |
da0c291127 | ||
![]() |
27ce48f319 | ||
![]() |
37ded2a519 | ||
![]() |
c9bdceb8d6 | ||
![]() |
95136382e1 | ||
![]() |
78d953bfda | ||
![]() |
2d3d8ae5b0 | ||
![]() |
cef08b63f1 | ||
![]() |
a8e95e7310 | ||
![]() |
5ab3c47b6b | ||
![]() |
45c52b6620 | ||
![]() |
93f6aea06a | ||
![]() |
00fa8f1b50 | ||
![]() |
ac84da2af4 | ||
![]() |
f19d850845 | ||
![]() |
7264271063 | ||
![]() |
dc63a752a5 | ||
![]() |
a70c312938 | ||
![]() |
2ce269362e | ||
![]() |
29ad768a22 | ||
![]() |
679648b33e | ||
![]() |
783786290d | ||
![]() |
e7e6cfffe8 | ||
![]() |
08e9fb35fd | ||
![]() |
fdc9376c69 | ||
![]() |
41c3c0ec26 | ||
![]() |
d7208ccf34 | ||
![]() |
77410bf86d | ||
![]() |
1d63e836ee | ||
![]() |
668e843fce | ||
![]() |
51e388ae86 | ||
![]() |
e7872b193b | ||
![]() |
8d6ee7c0c7 | ||
![]() |
7d1e244f5a | ||
![]() |
dcc736bb85 | ||
![]() |
68568c1abf | ||
![]() |
1b33f574bb | ||
![]() |
568a05ad7d | ||
![]() |
c45094fdd9 | ||
![]() |
c3b7f7538c | ||
![]() |
4b38e20f14 | ||
![]() |
d19d4ba784 | ||
![]() |
dd112a167d | ||
![]() |
92b7fb81d0 | ||
![]() |
404d1d466a | ||
![]() |
06e5de4332 | ||
![]() |
eb4363dc18 | ||
![]() |
5c93ebb54f | ||
![]() |
b8f3d93a5c | ||
![]() |
f53f01823f | ||
![]() |
18dbb56a3d | ||
![]() |
cc8674c16d | ||
![]() |
f394fd0290 | ||
![]() |
f24899fcac | ||
![]() |
a7ba61c0d4 | ||
![]() |
babb9f3682 | ||
![]() |
b22e349d44 | ||
![]() |
bb48fe4ebe | ||
![]() |
44a8088481 | ||
![]() |
4c8c9bc01f | ||
![]() |
3bb9fc713f | ||
![]() |
b761a9dd32 | ||
![]() |
0da2ecdb4d | ||
![]() |
31e864c16c | ||
![]() |
acc1376c37 | ||
![]() |
939d75e5eb | ||
![]() |
3b573bf9f0 | ||
![]() |
a231c1e90e | ||
![]() |
f229a3cb75 | ||
![]() |
981462ee54 | ||
![]() |
d940ffb3c6 | ||
![]() |
a6d20eaf5b | ||
![]() |
b93a5e334c | ||
![]() |
c98606430c | ||
![]() |
12c0631900 | ||
![]() |
efcceaf2c3 | ||
![]() |
9018577a3e | ||
![]() |
6968b9a369 | ||
![]() |
ada31d4f50 | ||
![]() |
d973e11714 | ||
![]() |
b6d7b2bff5 | ||
![]() |
74f804a056 | ||
![]() |
f0b5e3649d | ||
![]() |
9cc132e69d | ||
![]() |
9419e2faab | ||
![]() |
0566ded651 | ||
![]() |
ba9b3c217b | ||
![]() |
79c5539edb | ||
![]() |
cfd7cd01d1 | ||
![]() |
da9f912862 | ||
![]() |
9930cfbc07 | ||
![]() |
7738e320d5 | ||
![]() |
9b8735a87a | ||
![]() |
6c10e03ce5 | ||
![]() |
7ad3bb9e61 | ||
![]() |
5dcf639d33 | ||
![]() |
2da3b0192f | ||
![]() |
ada8158caf | ||
![]() |
2071939c5e | ||
![]() |
f082278217 | ||
![]() |
abe37add6e | ||
![]() |
bc07ca94c0 | ||
![]() |
728c962684 | ||
![]() |
ca99add006 | ||
![]() |
f771027138 | ||
![]() |
8f1c0044b9 | ||
![]() |
87cd828b5b | ||
![]() |
46ccd9f654 | ||
![]() |
b1927f9de1 | ||
![]() |
b592e0e592 | ||
![]() |
3b6cd93749 | ||
![]() |
3a24c01f03 | ||
![]() |
b7c80841a9 | ||
![]() |
95645f59a3 | ||
![]() |
9138e342fd | ||
![]() |
692ed70ea9 | ||
![]() |
3430507ae4 | ||
![]() |
844f3ce9c8 | ||
![]() |
03ffb90186 | ||
![]() |
5f9bb59b95 | ||
![]() |
7163efdd1e | ||
![]() |
65fb24ff1b | ||
![]() |
612cfbf313 | ||
![]() |
4596d721e6 | ||
![]() |
911206eed5 | ||
![]() |
cb5cdca99d | ||
![]() |
e54ae46537 | ||
![]() |
7c978d4e70 | ||
![]() |
d905b4387d | ||
![]() |
c31c825a74 | ||
![]() |
6505a9fefd | ||
![]() |
de74f812ee | ||
![]() |
82bb3f987d | ||
![]() |
a35a616de7 | ||
![]() |
ecf99bf9e7 | ||
![]() |
cfaf354fe3 | ||
![]() |
0b51e98d91 | ||
![]() |
fa51251235 | ||
![]() |
21fcd0bd35 | ||
![]() |
96d558dd0c | ||
![]() |
b6e8dcab81 | ||
![]() |
fa78c53114 | ||
![]() |
2f6b14ab6e | ||
![]() |
2dd455ef83 | ||
![]() |
306610da8e | ||
![]() |
59ac1727f7 | ||
![]() |
c974b3252d | ||
![]() |
480933484f | ||
![]() |
0cbd8a13a3 | ||
![]() |
ae6c76fe54 | ||
![]() |
1f098f2eaf | ||
![]() |
11977e7017 | ||
![]() |
27dd6aa62d | ||
![]() |
c570e4fdbd | ||
![]() |
da58f84fa6 | ||
![]() |
755a45505f | ||
![]() |
9d74cb9526 | ||
![]() |
8c9d0bbe72 | ||
![]() |
0152b38b8b | ||
![]() |
e6cf90146a | ||
![]() |
63d1258f2e | ||
![]() |
46bab27f94 | ||
![]() |
2cfbba1472 | ||
![]() |
c980bda695 | ||
![]() |
feaa1c3e99 | ||
![]() |
aa1c2145bb | ||
![]() |
335ee84540 | ||
![]() |
5c37d50f4e | ||
![]() |
77abf35761 | ||
![]() |
fa85c9da5b | ||
![]() |
cf53982086 | ||
![]() |
91cbc1e09a | ||
![]() |
a7e4268d8b | ||
![]() |
699eacf1fd | ||
![]() |
0189438e46 | ||
![]() |
94712f59a3 | ||
![]() |
ef93a754ce | ||
![]() |
c6ddda1aa3 | ||
![]() |
ccbca41e2d | ||
![]() |
5b0d173078 | ||
![]() |
d6186819f4 | ||
![]() |
ea0eb85404 | ||
![]() |
8dc43cfdc2 | ||
![]() |
f7bee988de | ||
![]() |
f2fe7f02b0 | ||
![]() |
accef19af4 | ||
![]() |
910d7004c6 | ||
![]() |
07cccd5386 | ||
![]() |
ac52886ea8 | ||
![]() |
c45780d79b | ||
![]() |
e14732aad3 | ||
![]() |
26d4768447 | ||
![]() |
9f99885272 | ||
![]() |
0adfddd1e2 | ||
![]() |
f591a8adf8 | ||
![]() |
0e10a820d9 | ||
![]() |
c90341dded | ||
![]() |
d5ccf4693b | ||
![]() |
e89f9a5d89 | ||
![]() |
a56ba85936 | ||
![]() |
421f1e361c | ||
![]() |
2391874e04 | ||
![]() |
4779ea7850 | ||
![]() |
c367beabe3 | ||
![]() |
e1d336a178 | ||
![]() |
ee3e5f0186 | ||
![]() |
42b7650d42 | ||
![]() |
f61d4a0d38 | ||
![]() |
7fe9784bf8 | ||
![]() |
ed05c64482 | ||
![]() |
16c3658040 | ||
![]() |
515d6ff874 | ||
![]() |
fc65052286 | ||
![]() |
6a107d4d2f | ||
![]() |
eff4b74130 | ||
![]() |
2532ddcc18 | ||
![]() |
44e22835c1 | ||
![]() |
1f545312fd | ||
![]() |
637e5964db | ||
![]() |
26bca612d7 | ||
![]() |
6fdda5fb62 | ||
![]() |
ed5b158777 | ||
![]() |
4c4270f1d7 | ||
![]() |
af51631597 | ||
![]() |
ae0c980d25 | ||
![]() |
3e4c56cf27 | ||
![]() |
18112f9ae8 | ||
![]() |
c8eee094e0 | ||
![]() |
78a7c194eb | ||
![]() |
f606c8b866 | ||
![]() |
9c98972d14 | ||
![]() |
75a03df0f7 | ||
![]() |
76019e6fbe | ||
![]() |
3c2bd930c3 | ||
![]() |
ed993d5502 | ||
![]() |
22d2d702be | ||
![]() |
8dacf6e91f | ||
![]() |
fbe1d48fe2 | ||
![]() |
5fd7f6de7e | ||
![]() |
592b959c24 | ||
![]() |
c6f53c8768 | ||
![]() |
38d772e4c8 | ||
![]() |
cfce521919 | ||
![]() |
a5ab3e23d6 | ||
![]() |
b3eee6c9fd | ||
![]() |
8d6d17d46b | ||
![]() |
9a37e1340c | ||
![]() |
f1e0203ef4 | ||
![]() |
726d5bde30 | ||
![]() |
f9f0fffd27 | ||
![]() |
93840ca181 | ||
![]() |
99aa5af356 | ||
![]() |
0358fdac8b | ||
![]() |
815c3026b5 | ||
![]() |
5ed3047b7a | ||
![]() |
e16ede1cdf | ||
![]() |
6905187b3e | ||
![]() |
172118e61b | ||
![]() |
8452edb94b | ||
![]() |
0f6957bbd4 | ||
![]() |
8c2bcc0352 | ||
![]() |
bc832575d8 | ||
![]() |
c4b7e07691 | ||
![]() |
58fb1db838 | ||
![]() |
2809854802 | ||
![]() |
091a71aade | ||
![]() |
117ab133b1 | ||
![]() |
c4a06c4689 | ||
![]() |
0d27689c64 | ||
![]() |
771e57480a | ||
![]() |
f8fd03482d | ||
![]() |
10cc1224d0 | ||
![]() |
52926cca7a | ||
![]() |
be64819ce7 | ||
![]() |
24c228df92 | ||
![]() |
892b3d9d69 | ||
![]() |
df21798b81 | ||
![]() |
46d03279d3 | ||
![]() |
fe0af3bb34 | ||
![]() |
84997386c1 | ||
![]() |
1a389c0214 | ||
![]() |
d0060fed3c | ||
![]() |
3d18af19e3 | ||
![]() |
b5b04454e0 | ||
![]() |
618f7bed3f | ||
![]() |
488a825626 | ||
![]() |
aaf6cb33d7 | ||
![]() |
77ecef8be3 | ||
![]() |
4be0a80720 | ||
![]() |
f573200aa8 | ||
![]() |
48f258ff53 | ||
![]() |
b9100488cb | ||
![]() |
9d78e050ee | ||
![]() |
b07cf1f03d | ||
![]() |
683ef63b37 | ||
![]() |
05580f5e99 | ||
![]() |
ecc62554e5 | ||
![]() |
f6e6de8444 | ||
![]() |
f69d92e6dd | ||
![]() |
3edc48da56 | ||
![]() |
868882ae33 | ||
![]() |
ff9bf76e52 | ||
![]() |
4bc5b89cfe | ||
![]() |
bb1e5bfd54 | ||
![]() |
27d72eda9e | ||
![]() |
07117c65c1 | ||
![]() |
919d4bfe96 | ||
![]() |
e38e253c25 | ||
![]() |
14aaec71fb | ||
![]() |
c0780df24d | ||
![]() |
0ea1605642 | ||
![]() |
bd384622db | ||
![]() |
3366e0aa16 | ||
![]() |
dff5bb478a | ||
![]() |
d455c500a6 | ||
![]() |
b90e72370c | ||
![]() |
dd162d9f48 | ||
![]() |
d7c276b3fe | ||
![]() |
394b691599 | ||
![]() |
ba83c555cc | ||
![]() |
b695468c7e | ||
![]() |
deae6e14f9 | ||
![]() |
97c5378e52 | ||
![]() |
d2dd0c2ab4 | ||
![]() |
8c7149c6a5 | ||
![]() |
d2da48c215 | ||
![]() |
7e71b6663c | ||
![]() |
94c83519f2 | ||
![]() |
e7d20867cb | ||
![]() |
55ae994972 | ||
![]() |
f0945743b7 | ||
![]() |
ee35d7c70d | ||
![]() |
fe1b03bd2a | ||
![]() |
187692af66 | ||
![]() |
b6e2a3f64f | ||
![]() |
6f7e09ad43 | ||
![]() |
4ddf60cf32 | ||
![]() |
24777c9ac2 | ||
![]() |
615ebeda2f | ||
![]() |
4139630635 | ||
![]() |
a542701ba5 | ||
![]() |
e67a0c868d | ||
![]() |
1afd52de6e | ||
![]() |
64f34f1471 | ||
![]() |
5f3e3b2691 | ||
![]() |
1ce1f74494 | ||
![]() |
03f558b09c | ||
![]() |
cd9fc110b0 | ||
![]() |
7619e312de | ||
![]() |
5d2c5de11c | ||
![]() |
e1022c2e72 | ||
![]() |
e431b324c8 | ||
![]() |
18ad40a5c6 | ||
![]() |
315de066ec | ||
![]() |
85273d0f19 | ||
![]() |
ef293b57a7 | ||
![]() |
79d316fd22 | ||
![]() |
ed60588473 | ||
![]() |
07c128a190 | ||
![]() |
5b1d56933b | ||
![]() |
34cfcedc1b | ||
![]() |
f9146fdf24 | ||
![]() |
a1cdbc8324 | ||
![]() |
cd07641a9d | ||
![]() |
9c02949e04 | ||
![]() |
1ef62a1036 | ||
![]() |
5672bc8cc8 | ||
![]() |
df1732745d | ||
![]() |
30daf8640c | ||
![]() |
4074a37e1d | ||
![]() |
97043b0ce1 | ||
![]() |
42ea484017 | ||
![]() |
3f6340b69c | ||
![]() |
884e84a4cb | ||
![]() |
560acfc94f | ||
![]() |
fb263f5624 | ||
![]() |
19b392b83d | ||
![]() |
2db76c95c3 | ||
![]() |
b6fbf77dde | ||
![]() |
a4ba22e912 | ||
![]() |
163e18ce6d | ||
![]() |
a13027905e | ||
![]() |
8f76d9439f | ||
![]() |
f0980b5cb8 | ||
![]() |
450c9a9e0f | ||
![]() |
6acfdaccbd | ||
![]() |
a0e0a2a6c9 | ||
![]() |
f67e729197 | ||
![]() |
19526b573c | ||
![]() |
b0221ec838 | ||
![]() |
a3611b7cf8 | ||
![]() |
bff1e84afa | ||
![]() |
1d31da40ec | ||
![]() |
0d57cfc44a | ||
![]() |
0cfb2fb06d | ||
![]() |
d5f297ed42 | ||
![]() |
c13dbdf40d | ||
![]() |
6173104a9e | ||
![]() |
0c79b8b45b | ||
![]() |
895f8d01d5 | ||
![]() |
65dfad5c76 | ||
![]() |
fdaf22780f | ||
![]() |
16756646bb | ||
![]() |
e4f80225d8 | ||
![]() |
67eec9c85c | ||
![]() |
539750d2f2 | ||
![]() |
d91226ed55 | ||
![]() |
301fcd059d | ||
![]() |
1cc9a08a18 | ||
![]() |
5d1857ddd8 | ||
![]() |
226af6f679 | ||
![]() |
7f2c92f654 | ||
![]() |
5b82afd5bd | ||
![]() |
d7b1877a1f | ||
![]() |
1b6239eab8 | ||
![]() |
ad0187122d | ||
![]() |
624e50faac | ||
![]() |
a9e9392172 | ||
![]() |
201210111e | ||
![]() |
53f8578749 | ||
![]() |
dc4d9e4dae | ||
![]() |
e1b0eae740 | ||
![]() |
be0ccf6460 | ||
![]() |
7c0a327b06 | ||
![]() |
a35cba3914 | ||
![]() |
e16425310f | ||
![]() |
d503d96db0 | ||
![]() |
335299a0cf | ||
![]() |
7311cfdf84 | ||
![]() |
3a9440aeea | ||
![]() |
3210ab0ca8 | ||
![]() |
2c734612f6 | ||
![]() |
a12dd83b1f | ||
![]() |
44d9ceaf05 | ||
![]() |
be9d9ac9ca | ||
![]() |
66cdb72927 | ||
![]() |
953b96431e | ||
![]() |
4d72ad90b0 | ||
![]() |
cccb5b10b4 | ||
![]() |
810045eb39 | ||
![]() |
b47982bb9a | ||
![]() |
0691b8babe | ||
![]() |
8d1c95c650 | ||
![]() |
19484e1a56 | ||
![]() |
755ebf88fb |
38
.github/ISSUE_TEMPLATE/troubleshooting-help.md
vendored
@ -1,29 +1,31 @@
|
|||||||
---
|
---
|
||||||
name: Troubleshooting help
|
name: Troubleshooting help
|
||||||
about: Ask for help to solve problems with user.js
|
about: Ask for help to solve problems with user.js
|
||||||
title: ''
|
title: 'follow instructions or this will be closed as invalid'
|
||||||
labels: ''
|
labels: ''
|
||||||
assignees: ''
|
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:
|
Issues will be closed as invalid if you do not troubleshoot first, or if you ignore the required info in the template.
|
||||||
- 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:
|
We do not support forks or no-longer supported releases.
|
||||||
- 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.
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
🟥 https://github.com/arkenfox/user.js/wiki/5.2-Troubleshooting
|
||||||
|
- [ ] I have read the troubleshooting guide, done the checks and confirmed this is caused by arkenfox
|
||||||
|
- _unchecked issues ~~may~~ will be closed as invalid_
|
||||||
|
|
||||||
|
🟪 REQUIRED INFO
|
||||||
|
- Browser version & OS:
|
||||||
|
- Steps to Reproduce (STR):
|
||||||
|
- Expected result:
|
||||||
|
- Actual result:
|
||||||
|
- Console errors and warnings:
|
||||||
|
- Anything else you deem worth mentioning:
|
||||||
|
|
||||||
|
---
|
||||||
|
2
.github/ISSUE_TEMPLATE/user-js.md
vendored
@ -9,7 +9,7 @@ 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.
|
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.
|
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/arkenfox/user.js/issues?utf8=✓&q=is%3Aissue+label%3Achangelog), compare [releases](https://github.com/arkenfox/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.
|
Clear all of this when you're ready to type.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2017 ghacksuserjs
|
Copyright (c) 2020 arkenfox
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
35
README.md
@ -1,27 +1,26 @@
|
|||||||
### ![][b] user.js
|
### 🟪 user.js
|
||||||
A `user.js` is a configuration file that can control hundreds of Firefox settings. For a more technical breakdown and explanation, you can read more on the [overview](https://github.com/ghacksuserjs/ghacks-user.js/wiki/1.1-Overview) wiki page.
|
A `user.js` is a configuration file that can control Firefox settings - for a more technical breakdown and explanation, you can read more in the [wiki](https://github.com/arkenfox/user.js/wiki/2.1-User.js)
|
||||||
|
|
||||||
### ![][b] ghacks user.js
|
### 🟩 the arkenfox user.js
|
||||||
The `ghacks user.js` is a **template** which aims to provide as much privacy and enhanced security as possible, and to reduce tracking and fingerprinting as much as possible - while minimizing any loss of functionality and breakage (but it will happen).
|
|
||||||
|
|
||||||
Everyone, experts included, should at least read the [implementation](https://github.com/ghacksuserjs/ghacks-user.js/wiki/1.3-Implementation) wiki page, as it contains important information regarding a few `ghacks user.js` settings.
|
[](https://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
Note that we do *not* recommend connecting over Tor on Firefox. Use the [Tor Browser](https://www.torproject.org/projects/torbrowser.html.en) if your [threat model](https://www.torproject.org/about/torusers.html.en) calls for it, or for accessing hidden services.
|
The `arkenfox user.js` is a **template** which aims to provide as much privacy and enhanced security as possible, and to reduce tracking and fingerprinting as much as possible - while minimizing any loss of functionality and breakage (but it will happen).
|
||||||
|
|
||||||
Also be aware that this `user.js` is made specifically for Firefox. Using it as-is in other Gecko-based browsers can be counterproductive, especially in the Tor Browser.
|
Everyone, experts included, should at least read the [wiki](https://github.com/arkenfox/user.js/wiki), as it contains important information regarding a few `user.js` settings. There is also an [interactive current release](https://arkenfox.github.io/gui/), thanks to [icpantsparti2](https://github.com/icpantsparti2).
|
||||||
|
|
||||||
Sitemap: [Releases](https://github.com/ghacksuserjs/ghacks-user.js/releases), [changelogs](https://github.com/ghacksuserjs/ghacks-user.js/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3Achangelog), [Wiki](https://github.com/ghacksuserjs/ghacks-user.js/wiki), [stickies](https://github.com/ghacksuserjs/ghacks-user.js/issues?q=is%3Aissue+is%3Aopen+label%3A%22sticky+topic%22). [diffs](https://github.com/ghacksuserjs/ghacks-user.js/issues?q=is%3Aissue+label%3Adiffs)
|
Note that we do *not* recommend connecting over Tor on Firefox. Use the [Tor Browser](https://www.torproject.org/projects/torbrowser.html.en) if your [threat model](https://2019.www.torproject.org/about/torusers.html) calls for it, or for accessing hidden services.
|
||||||
|
|
||||||
### ![][b] acknowledgments
|
Also be aware that the `arkenfox user.js` is made specifically for desktop Firefox. Using it as-is in other Gecko-based browsers can be counterproductive, especially in the Tor Browser.
|
||||||
Literally thousands of sources, references and suggestions. That said...
|
|
||||||
|
|
||||||
* Martin Brinkmann at [ghacks](https://www.ghacks.net/) <sup>1</sup>
|
### 🟧 sitemap
|
||||||
* The ghacks community and commentators
|
|
||||||
* [12bytes](https://12bytes.org/articles/tech/firefox/firefoxgecko-configuration-guide-for-privacy-and-performance-buffs)
|
|
||||||
* The 12bytes article now uses this user.js and supplements it with an additional JS hosted at [GitLab](https://gitlab.com/labwrat/Firefox-user.js/tree/master)
|
|
||||||
|
|
||||||
<sup>1</sup> The ghacks user.js was an independent project by [Thorin-Oakenpants](https://github.com/Thorin-Oakenpants) started in early 2015 and was [first published](https://www.ghacks.net/2015/08/18/a-comprehensive-list-of-firefox-privacy-and-security-settings/) at ghacks in August 2015. With Martin Brinkmann's blessing, it will keep the ghacks name.
|
- [releases](https://github.com/arkenfox/user.js/releases)
|
||||||
|
- [changelogs](https://github.com/arkenfox/user.js/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3Achangelog)
|
||||||
|
- [wiki](https://github.com/arkenfox/user.js/wiki)
|
||||||
|
- [stickies](https://github.com/arkenfox/user.js/issues?q=is%3Aissue+is%3Aopen+label%3A%22sticky+topic%22)
|
||||||
|
- [diffs](https://github.com/arkenfox/user.js/issues?q=is%3Aissue+label%3Adiffs)
|
||||||
|
- [common questions and answers](https://github.com/arkenfox/user.js/issues?q=is%3Aissue+label%3Aanswered)
|
||||||
|
|
||||||
### ![][b] [](https://opensource.org/licenses/MIT)
|
### 🟥 acknowledgments
|
||||||
|
Literally thousands of sources, references and suggestions. Many thanks, and much appreciated.
|
||||||
[b]: /wikipiki/bullet01.png
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
theme: jekyll-theme-midnight
|
theme: jekyll-theme-midnight
|
||||||
title: ghacks-user.js
|
title: user.js
|
||||||
description: An ongoing comprehensive user.js template for configuring and hardening Firefox privacy, security and anti-fingerprinting
|
description: An ongoing comprehensive user.js template for configuring and hardening Firefox privacy, security and anti-fingerprinting
|
||||||
|
@ -3,17 +3,19 @@ TITLE prefs.js cleaner
|
|||||||
|
|
||||||
REM ### prefs.js cleaner for Windows
|
REM ### prefs.js cleaner for Windows
|
||||||
REM ## author: @claustromaniac
|
REM ## author: @claustromaniac
|
||||||
REM ## version: 2.2
|
REM ## version: 2.8
|
||||||
|
|
||||||
CD /D "%~dp0"
|
CD /D "%~dp0"
|
||||||
|
|
||||||
|
IF /I "%~1"=="-unattended" (SET _ua=1)
|
||||||
|
|
||||||
:begin
|
:begin
|
||||||
ECHO:
|
ECHO:
|
||||||
ECHO:
|
ECHO:
|
||||||
ECHO ########################################
|
ECHO ########################################
|
||||||
ECHO #### prefs.js cleaner for Windows ####
|
ECHO #### prefs.js cleaner for Windows ####
|
||||||
ECHO #### by claustromaniac ####
|
ECHO #### by claustromaniac ####
|
||||||
ECHO #### v2.2 ####
|
ECHO #### v2.8 ####
|
||||||
ECHO ########################################
|
ECHO ########################################
|
||||||
ECHO:
|
ECHO:
|
||||||
CALL :message "This script should be run from your Firefox profile directory."
|
CALL :message "This script should be run from your Firefox profile directory."
|
||||||
@ -22,16 +24,22 @@ CALL :message "This will allow inactive preferences to be reset to their default
|
|||||||
ECHO This Firefox profile shouldn't be in use during the process.
|
ECHO This Firefox profile shouldn't be in use during the process.
|
||||||
CALL :message ""
|
CALL :message ""
|
||||||
TIMEOUT 1 /nobreak >nul
|
TIMEOUT 1 /nobreak >nul
|
||||||
CHOICE /C SHE /N /M "Start [S] Help [H] Exit [E]"
|
|
||||||
CLS
|
IF NOT DEFINED _ua (
|
||||||
IF ERRORLEVEL 3 (EXIT /B)
|
CHOICE /C SHE /N /M "Start [S] Help [H] Exit [E]"
|
||||||
IF ERRORLEVEL 2 (GOTO :showhelp)
|
CLS
|
||||||
|
IF ERRORLEVEL 3 (EXIT /B)
|
||||||
|
IF ERRORLEVEL 2 (GOTO :showhelp)
|
||||||
|
)
|
||||||
IF NOT EXIST "user.js" (CALL :abort "user.js not found in the current directory." 30)
|
IF NOT EXIST "user.js" (CALL :abort "user.js not found in the current directory." 30)
|
||||||
IF NOT EXIST "prefs.js" (CALL :abort "prefs.js not found in the current directory." 30)
|
IF NOT EXIST "prefs.js" (CALL :abort "prefs.js not found in the current directory." 30)
|
||||||
|
CALL :strlenCheck
|
||||||
CALL :FFcheck
|
CALL :FFcheck
|
||||||
|
|
||||||
CALL :message "Backing up prefs.js..."
|
CALL :message "Backing up prefs.js..."
|
||||||
SET "_time=%time: =0%"
|
FOR /F "delims=" %%# IN ('powershell -command get-date -format "{yyyyMMdd_HHmmss}"') DO @SET ldt=%%#
|
||||||
COPY /B /V /Y prefs.js "prefs-backup-%date:/=-%_%_time::=.%.js"
|
COPY /B /V /Y prefs.js "prefs-backup-%ldt%.js"
|
||||||
|
|
||||||
CALL :message "Cleaning prefs.js..."
|
CALL :message "Cleaning prefs.js..."
|
||||||
CALL :cleanup
|
CALL :cleanup
|
||||||
CALL :message "All done!"
|
CALL :message "All done!"
|
||||||
@ -50,6 +58,21 @@ ECHO:
|
|||||||
ECHO: %~1
|
ECHO: %~1
|
||||||
ECHO:
|
ECHO:
|
||||||
GOTO :EOF
|
GOTO :EOF
|
||||||
|
REM ### string length Check Function ####
|
||||||
|
:strlenCheck
|
||||||
|
SET /a cnt=0
|
||||||
|
setlocal ENABLEDELAYEDEXPANSION
|
||||||
|
FOR /F "tokens=1,* delims=:" %%G IN ('FINDSTR /N "^" prefs.js') DO (
|
||||||
|
ECHO:%%H >nul
|
||||||
|
SET /a cnt += 1
|
||||||
|
IF /I "%%G" NEQ "!cnt!" (
|
||||||
|
ECHO:
|
||||||
|
CALL :message "ERROR: line !cnt! in prefs.js is too long."
|
||||||
|
(CALL :abort "Aborting ..." 30)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
endlocal
|
||||||
|
GOTO :EOF
|
||||||
REM ####### Firefox Check Function ######
|
REM ####### Firefox Check Function ######
|
||||||
:FFcheck
|
:FFcheck
|
||||||
TASKLIST /FI "IMAGENAME eq firefox.exe" 2>NUL | FIND /I /N "firefox.exe">NUL
|
TASKLIST /FI "IMAGENAME eq firefox.exe" 2>NUL | FIND /I /N "firefox.exe">NUL
|
||||||
@ -101,7 +124,7 @@ ECHO add-ons disabled. Then, restart it again normally, and see if the
|
|||||||
CALL :message " problems were solved."
|
CALL :message " problems were solved."
|
||||||
ECHO:
|
ECHO:
|
||||||
CALL :message "If you are able to identify the cause of your issues, please bring it up"
|
CALL :message "If you are able to identify the cause of your issues, please bring it up"
|
||||||
ECHO on ghacks-user.js GitHub repository.
|
ECHO on arkenfox user.js GitHub repository.
|
||||||
ECHO:
|
ECHO:
|
||||||
ECHO:
|
ECHO:
|
||||||
PAUSE
|
PAUSE
|
||||||
|
140
prefsCleaner.sh
Normal file → Executable file
@ -2,37 +2,83 @@
|
|||||||
|
|
||||||
## prefs.js cleaner for Linux/Mac
|
## prefs.js cleaner for Linux/Mac
|
||||||
## author: @claustromaniac
|
## author: @claustromaniac
|
||||||
## version: 1.1
|
## version: 2.1
|
||||||
|
|
||||||
## special thanks to @overdodactyl and @earthlng for a few snippets that I stol..*cough* borrowed from the updater.sh
|
## special thanks to @overdodactyl and @earthlng for a few snippets that I stol..*cough* borrowed from the updater.sh
|
||||||
|
|
||||||
currdir=$(pwd)
|
## DON'T GO HIGHER THAN VERSION x.9 !! ( because of ASCII comparison in update_prefsCleaner() )
|
||||||
|
|
||||||
|
readonly CURRDIR=$(pwd)
|
||||||
|
|
||||||
## get the full path of this script (readlink for Linux, greadlink for Mac with coreutils installed)
|
## get the full path of this script (readlink for Linux, greadlink for Mac with coreutils installed)
|
||||||
sfp=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null)
|
SCRIPT_FILE=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null)
|
||||||
|
|
||||||
## fallback for Macs without coreutils
|
## fallback for Macs without coreutils
|
||||||
if [ -z "$sfp" ]; then sfp=${BASH_SOURCE[0]}; fi
|
[ -z "$SCRIPT_FILE" ] && SCRIPT_FILE=${BASH_SOURCE[0]}
|
||||||
|
|
||||||
## change directory to the Firefox profile directory
|
|
||||||
cd "$(dirname "${sfp}")"
|
AUTOUPDATE=true
|
||||||
|
QUICKSTART=false
|
||||||
|
|
||||||
|
## download method priority: curl -> wget
|
||||||
|
DOWNLOAD_METHOD=''
|
||||||
|
if command -v curl >/dev/null; then
|
||||||
|
DOWNLOAD_METHOD='curl --max-redirs 3 -so'
|
||||||
|
elif command -v wget >/dev/null; then
|
||||||
|
DOWNLOAD_METHOD='wget --max-redirect 3 --quiet -O'
|
||||||
|
else
|
||||||
|
AUTOUPDATE=false
|
||||||
|
echo -e "No curl or wget detected.\nAutomatic self-update disabled!"
|
||||||
|
fi
|
||||||
|
|
||||||
fQuit() {
|
fQuit() {
|
||||||
## change directory back to the original working directory
|
## change directory back to the original working directory
|
||||||
cd "${currdir}"
|
cd "${CURRDIR}"
|
||||||
echo -e "\n$2"
|
[ "$1" -eq 0 ] && echo -e "\n$2" || echo -e "\n$2" >&2
|
||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fUsage() {
|
||||||
|
echo -e "\nUsage: $0 [-ds]"
|
||||||
|
echo -e "
|
||||||
|
Optional Arguments:
|
||||||
|
-s Start immediately
|
||||||
|
-d Don't auto-update prefsCleaner.sh"
|
||||||
|
}
|
||||||
|
|
||||||
|
download_file() { # expects URL as argument ($1)
|
||||||
|
declare -r tf=$(mktemp)
|
||||||
|
|
||||||
|
$DOWNLOAD_METHOD "${tf}" "$1" &>/dev/null && echo "$tf" || echo '' # return the temp-filename or empty string on error
|
||||||
|
}
|
||||||
|
|
||||||
fFF_check() {
|
fFF_check() {
|
||||||
# there are many ways to see if firefox is running or not, some more reliable than others
|
# there are many ways to see if firefox is running or not, some more reliable than others
|
||||||
# this isn't elegant and might not be future-proof but should at least be compatible with any environment
|
# this isn't elegant and might not be future-proof but should at least be compatible with any environment
|
||||||
while [ -e webappsstore.sqlite-shm ]; do
|
while [ -e lock ]; do
|
||||||
echo -e "\nThis Firefox profile seems to be in use. Close Firefox and try again.\n"
|
echo -e "\nThis Firefox profile seems to be in use. Close Firefox and try again.\n" >&2
|
||||||
read -p "Press any key to continue."
|
read -r -p "Press any key to continue."
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## returns the version number of a prefsCleaner.sh file
|
||||||
|
get_prefsCleaner_version() {
|
||||||
|
echo "$(sed -n '5 s/.*[[:blank:]]\([[:digit:]]*\.[[:digit:]]*\)/\1/p' "$1")"
|
||||||
|
}
|
||||||
|
|
||||||
|
## updates the prefsCleaner.sh file based on the latest public version
|
||||||
|
update_prefsCleaner() {
|
||||||
|
declare -r tmpfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/prefsCleaner.sh')"
|
||||||
|
[ -z "$tmpfile" ] && echo -e "Error! Could not download prefsCleaner.sh" && return 1 # check if download failed
|
||||||
|
|
||||||
|
[[ $(get_prefsCleaner_version "$SCRIPT_FILE") == $(get_prefsCleaner_version "$tmpfile") ]] && return 0
|
||||||
|
|
||||||
|
mv "$tmpfile" "$SCRIPT_FILE"
|
||||||
|
chmod u+x "$SCRIPT_FILE"
|
||||||
|
"$SCRIPT_FILE" "$@" -d
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
fClean() {
|
fClean() {
|
||||||
# the magic happens here
|
# the magic happens here
|
||||||
prefs="@@"
|
prefs="@@"
|
||||||
@ -41,7 +87,7 @@ fClean() {
|
|||||||
if [[ "$line" =~ $prefexp && $prefs != *"@@${BASH_REMATCH[1]}@@"* ]]; then
|
if [[ "$line" =~ $prefexp && $prefs != *"@@${BASH_REMATCH[1]}@@"* ]]; then
|
||||||
prefs="${prefs}${BASH_REMATCH[1]}@@"
|
prefs="${prefs}${BASH_REMATCH[1]}@@"
|
||||||
fi
|
fi
|
||||||
done <<< "`grep -E \"$prefexp\" user.js`"
|
done <<< "$(grep -E "$prefexp" user.js)"
|
||||||
|
|
||||||
while IFS='' read -r line || [[ -n "$line" ]]; do
|
while IFS='' read -r line || [[ -n "$line" ]]; do
|
||||||
if [[ "$line" =~ ^$prefexp ]]; then
|
if [[ "$line" =~ ^$prefexp ]]; then
|
||||||
@ -54,34 +100,72 @@ fClean() {
|
|||||||
done < "$1" > prefs.js
|
done < "$1" > prefs.js
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fStart() {
|
||||||
|
if [ ! -e user.js ]; then
|
||||||
|
fQuit 1 "user.js not found in the current directory."
|
||||||
|
elif [ ! -e prefs.js ]; then
|
||||||
|
fQuit 1 "prefs.js not found in the current directory."
|
||||||
|
fi
|
||||||
|
|
||||||
|
fFF_check
|
||||||
|
mkdir -p prefsjs_backups
|
||||||
|
bakfile="prefsjs_backups/prefs.js.backup.$(date +"%Y-%m-%d_%H%M")"
|
||||||
|
mv prefs.js "${bakfile}" || fQuit 1 "Operation aborted.\nReason: Could not create backup file $bakfile"
|
||||||
|
echo -e "\nprefs.js backed up: $bakfile"
|
||||||
|
echo "Cleaning prefs.js..."
|
||||||
|
fClean "$bakfile"
|
||||||
|
fQuit 0 "All done!"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
while getopts "sd" opt; do
|
||||||
|
case $opt in
|
||||||
|
s)
|
||||||
|
QUICKSTART=true
|
||||||
|
;;
|
||||||
|
d)
|
||||||
|
AUTOUPDATE=false
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
## change directory to the Firefox profile directory
|
||||||
|
cd "$(dirname "${SCRIPT_FILE}")"
|
||||||
|
|
||||||
|
# Check if running as root and if any files have the owner as root/wheel.
|
||||||
|
if [ "${EUID:-"$(id -u)"}" -eq 0 ]; then
|
||||||
|
fQuit 1 "You shouldn't run this with elevated privileges (such as with doas/sudo)."
|
||||||
|
elif [ -n "$(find ./ -user 0)" ]; then
|
||||||
|
printf 'It looks like this script was previously run with elevated privileges,
|
||||||
|
you will need to change ownership of the following files to your user:\n'
|
||||||
|
find . -user 0
|
||||||
|
fQuit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ "$AUTOUPDATE" = true ] && update_prefsCleaner "$@"
|
||||||
|
|
||||||
echo -e "\n\n"
|
echo -e "\n\n"
|
||||||
echo " ╔══════════════════════════╗"
|
echo " ╔══════════════════════════╗"
|
||||||
echo " ║ prefs.js cleaner ║"
|
echo " ║ prefs.js cleaner ║"
|
||||||
echo " ║ by claustromaniac ║"
|
echo " ║ by claustromaniac ║"
|
||||||
echo " ║ v1.1 ║"
|
echo " ║ v2.1 ║"
|
||||||
echo " ╚══════════════════════════╝"
|
echo " ╚══════════════════════════╝"
|
||||||
echo -e "\nThis script should be run from your Firefox profile directory.\n"
|
echo -e "\nThis script should be run from your Firefox profile directory.\n"
|
||||||
echo "It will remove any entries from prefs.js that also exist in user.js."
|
echo "It will remove any entries from prefs.js that also exist in user.js."
|
||||||
echo "This will allow inactive preferences to be reset to their default values."
|
echo "This will allow inactive preferences to be reset to their default values."
|
||||||
echo -e "\nThis Firefox profile shouldn't be in use during the process.\n"
|
echo -e "\nThis Firefox profile shouldn't be in use during the process.\n"
|
||||||
|
|
||||||
|
[ "$QUICKSTART" = true ] && fStart
|
||||||
|
|
||||||
|
echo -e "\nIn order to proceed, select a command below by entering its corresponding number.\n"
|
||||||
|
|
||||||
select option in Start Help Exit; do
|
select option in Start Help Exit; do
|
||||||
case $option in
|
case $option in
|
||||||
Start)
|
Start)
|
||||||
if [ ! -e user.js ]; then
|
fStart
|
||||||
fQuit 1 "user.js not found in the current directory."
|
|
||||||
elif [ ! -e prefs.js ]; then
|
|
||||||
fQuit 1 "prefs.js not found in the current directory."
|
|
||||||
fi
|
|
||||||
|
|
||||||
fFF_check
|
|
||||||
bakfile="prefs.js.backup.$(date +"%Y-%m-%d_%H%M")"
|
|
||||||
mv prefs.js "${bakfile}" || fQuit 1 "Operation aborted.\nReason: Could not create backup file $bakfile"
|
|
||||||
echo -e "\nprefs.js backed up: $bakfile"
|
|
||||||
echo "Cleaning prefs.js..."
|
|
||||||
fClean "$bakfile"
|
|
||||||
fQuit 0 "All done!"
|
|
||||||
;;
|
;;
|
||||||
Help)
|
Help)
|
||||||
|
fUsage
|
||||||
echo -e "\nThis script creates a backup of your prefs.js file before doing anything."
|
echo -e "\nThis script creates a backup of your prefs.js file before doing anything."
|
||||||
echo -e "It should be safe, but you can follow these steps if something goes wrong:\n"
|
echo -e "It should be safe, but you can follow these steps if something goes wrong:\n"
|
||||||
echo "1. Make sure Firefox is closed."
|
echo "1. Make sure Firefox is closed."
|
||||||
@ -90,10 +174,12 @@ select option in Start Help Exit; do
|
|||||||
echo "4. Rename or copy your latest backup to prefs.js."
|
echo "4. Rename or copy your latest backup to prefs.js."
|
||||||
echo "5. Run Firefox and see if you notice anything wrong with it."
|
echo "5. Run Firefox and see if you notice anything wrong with it."
|
||||||
echo "6. If you do notice something wrong, especially with your extensions, and/or with the UI, go to about:support, and restart Firefox with add-ons disabled. Then, restart it again normally, and see if the problems were solved."
|
echo "6. If you do notice something wrong, especially with your extensions, and/or with the UI, go to about:support, and restart Firefox with add-ons disabled. Then, restart it again normally, and see if the problems were solved."
|
||||||
echo -e "If you are able to identify the cause of your issues, please bring it up on ghacks-user.js GitHub repository.\n"
|
echo -e "If you are able to identify the cause of your issues, please bring it up on the arkenfox user.js GitHub repository.\n"
|
||||||
;;
|
;;
|
||||||
Exit)
|
Exit)
|
||||||
fQuit 0
|
fQuit 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
fQuit 0
|
||||||
|
165
scratchpad-scripts/arkenfox-cleanup.js
Normal file
@ -0,0 +1,165 @@
|
|||||||
|
/***
|
||||||
|
This will reset the preferences that since FF91 have been
|
||||||
|
- removed from the arkenfox user.js
|
||||||
|
- deprecated by Mozilla but listed in the arkenfox user.js in the past
|
||||||
|
|
||||||
|
There is an archived version at https://github.com/arkenfox/user.js/issues/123
|
||||||
|
if you want the full list since jesus
|
||||||
|
|
||||||
|
Last updated: 5-March-2025
|
||||||
|
|
||||||
|
Instructions:
|
||||||
|
- [optional] close Firefox and backup your profile
|
||||||
|
- [optional] disable your network connection [1]
|
||||||
|
- start Firefox
|
||||||
|
- load about:config and press Ctrl+Shift+K to open the Web Console for about:config
|
||||||
|
- using about:config is important, so the script has the right permissions
|
||||||
|
- paste this script
|
||||||
|
- if you edited the list of prefs in the script, make sure the last pref does not have a trailing comma
|
||||||
|
- hit enter
|
||||||
|
- check the Info output to see which prefs were reset
|
||||||
|
- restart
|
||||||
|
- some prefs require a restart
|
||||||
|
- a restart will reapply your user.js
|
||||||
|
- [optional] re-enable your network connection
|
||||||
|
|
||||||
|
[1] Blocking Firefox from the internet ensures it cannot act on your reset preferences in the
|
||||||
|
period before you restart it, such as app and extension auto-updating, or downloading unwanted
|
||||||
|
components (GMP etc). It depends on what you're resetting and how long before you restart.
|
||||||
|
|
||||||
|
***/
|
||||||
|
|
||||||
|
(() => {
|
||||||
|
|
||||||
|
if ('undefined' === typeof(Services)) return alert('about:config needs to be the active tab!');
|
||||||
|
|
||||||
|
const aPREFS = [
|
||||||
|
/* DEPRECATED */
|
||||||
|
/* 129-140 */
|
||||||
|
'webchannel.allowObject.urlWhitelist', // 132
|
||||||
|
/* 116-128 */
|
||||||
|
'browser.contentanalysis.default_allow', // 127
|
||||||
|
'browser.messaging-system.whatsNewPanel.enabled', // 126
|
||||||
|
'browser.ping-centre.telemetry', // 123
|
||||||
|
'dom.webnotifications.serviceworker.enabled', // 117
|
||||||
|
'javascript.use_us_english_locale', // 119
|
||||||
|
'layout.css.font-visibility.private', // 118
|
||||||
|
'layout.css.font-visibility.resistFingerprinting', // 116
|
||||||
|
'layout.css.font-visibility.standard', // 118
|
||||||
|
'layout.css.font-visibility.trackingprotection', // 118
|
||||||
|
'network.dns.skipTRR-when-parental-control-enabled', // 119
|
||||||
|
'permissions.delegation.enabled', // 118
|
||||||
|
'security.family_safety.mode', // 117
|
||||||
|
'widget.non-native-theme.enabled', // 127
|
||||||
|
/* 103-115 */
|
||||||
|
'browser.cache.offline.enable', // 115
|
||||||
|
'extensions.formautofill.heuristics.enabled', // 114
|
||||||
|
'network.cookie.lifetimePolicy', // 103 [technically removed in 104]
|
||||||
|
'privacy.clearsitedata.cache.enabled', // 114
|
||||||
|
'privacy.resistFingerprinting.testGranularityMask', // 114
|
||||||
|
'security.pki.sha1_enforcement_level', // 103
|
||||||
|
/* 92-102 */
|
||||||
|
'browser.urlbar.suggest.quicksuggest', // 95
|
||||||
|
'dom.securecontext.whitelist_onions', // 97
|
||||||
|
'dom.storage.next_gen', // 102
|
||||||
|
'network.http.spdy.enabled', // 100
|
||||||
|
'network.http.spdy.enabled.deps',
|
||||||
|
'network.http.spdy.enabled.http2',
|
||||||
|
'network.http.spdy.websockets',
|
||||||
|
'layout.css.font-visibility.level', // 94
|
||||||
|
'security.ask_for_password', // 102
|
||||||
|
'security.csp.enable', // 99
|
||||||
|
'security.password_lifetime', // 102
|
||||||
|
'security.ssl3.rsa_des_ede3_sha', // 93
|
||||||
|
|
||||||
|
/* REMOVED */
|
||||||
|
/* 129-140 */
|
||||||
|
'dom.securecontext.allowlist_onions',
|
||||||
|
'network.http.referer.hideOnionSource',
|
||||||
|
'privacy.clearOnShutdown.cache',
|
||||||
|
'privacy.clearOnShutdown.cookies',
|
||||||
|
'privacy.clearOnShutdown.downloads',
|
||||||
|
'privacy.clearOnShutdown.formdata',
|
||||||
|
'privacy.clearOnShutdown.history',
|
||||||
|
'privacy.clearOnShutdown.offlineApps',
|
||||||
|
'privacy.clearOnShutdown.sessions',
|
||||||
|
'privacy.cpd.cache',
|
||||||
|
'privacy.cpd.cookies',
|
||||||
|
'privacy.cpd.formdata',
|
||||||
|
'privacy.cpd.history',
|
||||||
|
'privacy.cpd.offlineApps',
|
||||||
|
'privacy.cpd.sessions',
|
||||||
|
/* 116-128 */
|
||||||
|
'browser.fixup.alternate.enabled',
|
||||||
|
'browser.taskbar.previews.enable',
|
||||||
|
'browser.urlbar.dnsResolveSingleWordsAfterSearch',
|
||||||
|
'geo.provider.network.url',
|
||||||
|
'geo.provider.network.logging.enabled',
|
||||||
|
'geo.provider.use_gpsd',
|
||||||
|
'media.gmp-widevinecdm.enabled',
|
||||||
|
'network.protocol-handler.external.ms-windows-store',
|
||||||
|
'privacy.partition.always_partition_third_party_non_cookie_storage',
|
||||||
|
'privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage',
|
||||||
|
'privacy.partition.serviceWorkers',
|
||||||
|
/* 103-115 */
|
||||||
|
'beacon.enabled',
|
||||||
|
'browser.startup.blankWindow',
|
||||||
|
'browser.newtab.preload',
|
||||||
|
'browser.newtabpage.activity-stream.feeds.discoverystreamfeed',
|
||||||
|
'browser.newtabpage.activity-stream.feeds.snippets',
|
||||||
|
'browser.region.network.url',
|
||||||
|
'browser.region.update.enabled',
|
||||||
|
'browser.search.region',
|
||||||
|
'browser.ssl_override_behavior',
|
||||||
|
'browser.tabs.warnOnClose',
|
||||||
|
'devtools.chrome.enabled',
|
||||||
|
'dom.disable_beforeunload',
|
||||||
|
'dom.disable_open_during_load',
|
||||||
|
'dom.netinfo.enabled',
|
||||||
|
'dom.vr.enabled',
|
||||||
|
'extensions.formautofill.addresses.supported',
|
||||||
|
'extensions.formautofill.available',
|
||||||
|
'extensions.formautofill.creditCards.available',
|
||||||
|
'extensions.formautofill.creditCards.supported',
|
||||||
|
'middlemouse.contentLoadURL',
|
||||||
|
'network.http.altsvc.oe',
|
||||||
|
/* 92-102 */
|
||||||
|
'browser.urlbar.trimURLs',
|
||||||
|
'dom.caches.enabled',
|
||||||
|
'dom.storageManager.enabled',
|
||||||
|
'dom.storage_access.enabled',
|
||||||
|
'dom.targetBlankNoOpener.enabled',
|
||||||
|
'network.cookie.thirdparty.sessionOnly',
|
||||||
|
'network.cookie.thirdparty.nonsecureSessionOnly',
|
||||||
|
'privacy.firstparty.isolate.block_post_message',
|
||||||
|
'privacy.firstparty.isolate.restrict_opener_access',
|
||||||
|
'privacy.firstparty.isolate.use_site',
|
||||||
|
'privacy.window.name.update.enabled',
|
||||||
|
'security.insecure_connection_text.enabled',
|
||||||
|
|
||||||
|
/* IMPORTANT: last active pref must not have a trailing comma */
|
||||||
|
/* reset parrot: check your open about:config after running the script */
|
||||||
|
'_user.js.parrot'
|
||||||
|
];
|
||||||
|
|
||||||
|
console.clear();
|
||||||
|
|
||||||
|
let c = 0;
|
||||||
|
for (const sPname of aPREFS) {
|
||||||
|
if (Services.prefs.prefHasUserValue(sPname)) {
|
||||||
|
Services.prefs.clearUserPref(sPname);
|
||||||
|
if (!Services.prefs.prefHasUserValue(sPname)) {
|
||||||
|
console.info('reset', sPname);
|
||||||
|
c++;
|
||||||
|
} else console.warn('failed to reset', sPname);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
focus();
|
||||||
|
|
||||||
|
const d = (c==1) ? ' pref' : ' prefs';
|
||||||
|
alert(c ? 'successfully reset ' + c + d + "\n\nfor details check the console" : 'nothing to reset');
|
||||||
|
|
||||||
|
return 'all done';
|
||||||
|
|
||||||
|
})();
|
@ -1,59 +0,0 @@
|
|||||||
/***
|
|
||||||
This will reset the preferences that are under sections 4600 & 4700 in the ghacks user.js
|
|
||||||
up to and including release 60-beta. These are the prefs that are no longer necessary,
|
|
||||||
or they conflict with, privacy.resistFingerprinting if you have that enabled.
|
|
||||||
|
|
||||||
For instructions see:
|
|
||||||
https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
|
||||||
***/
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
let ops = [
|
|
||||||
/* section 4600 */
|
|
||||||
'dom.maxHardwareConcurrency',
|
|
||||||
'dom.enable_resource_timing',
|
|
||||||
'dom.enable_performance',
|
|
||||||
'device.sensors.enabled',
|
|
||||||
'browser.zoom.siteSpecific',
|
|
||||||
'dom.gamepad.enabled',
|
|
||||||
'dom.netinfo.enabled',
|
|
||||||
'media.webspeech.synth.enabled',
|
|
||||||
'media.video_stats.enabled',
|
|
||||||
'dom.w3c_touch_events.enabled',
|
|
||||||
'media.ondevicechange.enabled',
|
|
||||||
'webgl.enable-debug-renderer-info',
|
|
||||||
/* section 4700 */
|
|
||||||
'general.useragent.override',
|
|
||||||
'general.buildID.override',
|
|
||||||
'general.appname.override',
|
|
||||||
'general.appversion.override',
|
|
||||||
'general.platform.override',
|
|
||||||
'general.oscpu.override',
|
|
||||||
/* reset parrot: check your open about:config after running the script */
|
|
||||||
'_user.js.parrot'
|
|
||||||
]
|
|
||||||
|
|
||||||
if("undefined" === typeof(Services)) {
|
|
||||||
alert("about:config needs to be the active tab!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let c = 0;
|
|
||||||
for (let i = 0, len = ops.length; i < len; i++) {
|
|
||||||
if (Services.prefs.prefHasUserValue(ops[i])) {
|
|
||||||
Services.prefs.clearUserPref(ops[i]);
|
|
||||||
if (!Services.prefs.prefHasUserValue(ops[i])) {
|
|
||||||
console.log("reset", ops[i]);
|
|
||||||
c++;
|
|
||||||
} else { console.log("failed to reset", ops[i]); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
focus();
|
|
||||||
|
|
||||||
let d = (c==1) ? " pref" : " prefs";
|
|
||||||
if (c > 0) {
|
|
||||||
alert("successfully reset " + c + d + "\n\nfor details check the Browser Console (Ctrl+Shift+J)");
|
|
||||||
} else { alert("nothing to reset"); }
|
|
||||||
|
|
||||||
})();
|
|
@ -1,189 +0,0 @@
|
|||||||
/***
|
|
||||||
This will reset the preferences that have been deprecated by Mozilla
|
|
||||||
and used in the ghacks user.js up to and including release 60-beta
|
|
||||||
|
|
||||||
It is in reverse order, so feel free to remove sections that do not apply
|
|
||||||
|
|
||||||
For instructions see:
|
|
||||||
https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
|
||||||
***/
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
let ops = [
|
|
||||||
/* deprecated */
|
|
||||||
|
|
||||||
/* ESR52.x users can remove sections 53-60 but it is not
|
|
||||||
crucial as your user.js will reinstate them */
|
|
||||||
/* 60 */
|
|
||||||
'browser.newtabpage.directory.source',
|
|
||||||
'browser.newtabpage.enhanced',
|
|
||||||
'browser.newtabpage.introShown',
|
|
||||||
'extensions.shield-recipe-client.enabled',
|
|
||||||
'extensions.shield-recipe-client.api_url',
|
|
||||||
'browser.newtabpage.activity-stream.enabled',
|
|
||||||
'dom.workers.enabled',
|
|
||||||
'view_source.tab',
|
|
||||||
/* 59 */
|
|
||||||
'intl.locale.matchOS',
|
|
||||||
'general.useragent.locale',
|
|
||||||
'datareporting.healthreport.about.reportUrl',
|
|
||||||
'dom.flyweb.enabled',
|
|
||||||
'security.mixed_content.use_hsts',
|
|
||||||
'security.mixed_content.send_hsts_priming',
|
|
||||||
'network.http.referer.userControlPolicy',
|
|
||||||
'security.xpconnect.plugin.unrestricted',
|
|
||||||
'media.getusermedia.screensharing.allowed_domains',
|
|
||||||
'camera.control.face_detection.enabled',
|
|
||||||
'dom.disable_window_status_change',
|
|
||||||
'dom.idle-observers-api.enabled',
|
|
||||||
/* 58 */
|
|
||||||
'browser.crashReports.unsubmittedCheck.autoSubmit',
|
|
||||||
/* 57 */
|
|
||||||
'social.whitelist',
|
|
||||||
'social.toast-notifications.enabled',
|
|
||||||
'social.shareDirectory',
|
|
||||||
'social.remote-install.enabled',
|
|
||||||
'social.directories',
|
|
||||||
'social.share.activationPanelEnabled',
|
|
||||||
'social.enabled',
|
|
||||||
'media.eme.chromium-api.enabled',
|
|
||||||
'devtools.webide.autoinstallFxdtAdapters',
|
|
||||||
'browser.casting.enabled',
|
|
||||||
'browser.bookmarks.showRecentlyBookmarked',
|
|
||||||
/* 56 */
|
|
||||||
'extensions.screenshots.system-disabled',
|
|
||||||
'extensions.formautofill.experimental',
|
|
||||||
/* 55 */
|
|
||||||
'geo.security.allowinsecure',
|
|
||||||
'browser.selfsupport.enabled',
|
|
||||||
'browser.selfsupport.url',
|
|
||||||
'browser.newtabpage.directory.ping',
|
|
||||||
'browser.formfill.saveHttpsForms',
|
|
||||||
'browser.formautofill.enabled',
|
|
||||||
'dom.enable_user_timing',
|
|
||||||
'dom.keyboardevent.code.enabled',
|
|
||||||
'browser.tabs.animate',
|
|
||||||
'browser.fullscreen.animate',
|
|
||||||
/* 54 */
|
|
||||||
'browser.safebrowsing.reportMalwareMistakeURL',
|
|
||||||
'browser.safebrowsing.reportPhishMistakeURL',
|
|
||||||
'media.eme.apiVisible',
|
|
||||||
'dom.archivereader.enabled',
|
|
||||||
/* 53 */
|
|
||||||
'security.tls.unrestricted_rc4_fallback',
|
|
||||||
'plugin.scan.Acrobat',
|
|
||||||
'plugin.scan.Quicktime',
|
|
||||||
'plugin.scan.WindowsMediaPlayer',
|
|
||||||
'media.getusermedia.screensharing.allow_on_old_platforms',
|
|
||||||
'dom.beforeAfterKeyboardEvent.enabled',
|
|
||||||
/* End of ESR52.x section */
|
|
||||||
|
|
||||||
/* 52 */
|
|
||||||
'network.http.sendSecureXSiteReferrer',
|
|
||||||
'media.gmp-eme-adobe.enabled',
|
|
||||||
'media.gmp-eme-adobe.visible',
|
|
||||||
'media.gmp-eme-adobe.autoupdate',
|
|
||||||
'dom.telephony.enabled',
|
|
||||||
'dom.battery.enabled',
|
|
||||||
/* 51 */
|
|
||||||
'media.block-play-until-visible',
|
|
||||||
'dom.vr.oculus050.enabled',
|
|
||||||
'network.http.spdy.enabled.v3-1',
|
|
||||||
/* 50 */
|
|
||||||
'browser.usedOnWindows10.introURL',
|
|
||||||
'plugins.update.notifyUser',
|
|
||||||
'browser.safebrowsing.enabled',
|
|
||||||
'security.ssl3.ecdhe_ecdsa_rc4_128_sha',
|
|
||||||
'security.ssl3.ecdhe_rsa_rc4_128_sha',
|
|
||||||
'security.ssl3.rsa_rc4_128_md5',
|
|
||||||
'security.ssl3.rsa_rc4_128_sha',
|
|
||||||
'plugins.update.url',
|
|
||||||
/* 49 */
|
|
||||||
'loop.enabled',
|
|
||||||
'loop.server',
|
|
||||||
'loop.feedback.formURL',
|
|
||||||
'loop.feedback.manualFormURL',
|
|
||||||
'loop.facebook.appId',
|
|
||||||
'loop.facebook.enabled',
|
|
||||||
'loop.facebook.fallbackUrl',
|
|
||||||
'loop.facebook.shareUrl',
|
|
||||||
'loop.logDomains',
|
|
||||||
'dom.disable_window_open_feature.scrollbars',
|
|
||||||
'dom.push.udp.wakeupEnabled',
|
|
||||||
/* 48 */
|
|
||||||
'browser.urlbar.unifiedcomplete',
|
|
||||||
/* 47 */
|
|
||||||
'toolkit.telemetry.unifiedIsOptIn',
|
|
||||||
'datareporting.healthreport.about.reportUrlUnified',
|
|
||||||
'browser.history.allowPopState',
|
|
||||||
'browser.history.allowPushState',
|
|
||||||
'browser.history.allowReplaceState',
|
|
||||||
/* 46 */
|
|
||||||
'datareporting.healthreport.service.enabled',
|
|
||||||
'datareporting.healthreport.documentServerURI',
|
|
||||||
'datareporting.policy.dataSubmissionEnabled.v2',
|
|
||||||
'browser.safebrowsing.appRepURL',
|
|
||||||
'browser.polaris.enabled',
|
|
||||||
'browser.pocket.enabled',
|
|
||||||
'browser.pocket.api',
|
|
||||||
'browser.pocket.site',
|
|
||||||
'browser.pocket.oAuthConsumerKey',
|
|
||||||
/* 45 */
|
|
||||||
'browser.sessionstore.privacy_level_deferred',
|
|
||||||
/* 44 */
|
|
||||||
'browser.safebrowsing.provider.google.appRepURL',
|
|
||||||
'security.tls.insecure_fallback_hosts.use_static_list',
|
|
||||||
'dom.workers.sharedWorkers.enabled',
|
|
||||||
'dom.disable_image_src_set',
|
|
||||||
/* 43 */
|
|
||||||
'browser.safebrowsing.gethashURL',
|
|
||||||
'browser.safebrowsing.updateURL',
|
|
||||||
'browser.safebrowsing.malware.reportURL',
|
|
||||||
'browser.trackingprotection.gethashURL',
|
|
||||||
'browser.trackingprotection.updateURL',
|
|
||||||
'pfs.datasource.url',
|
|
||||||
'browser.search.showOneOffButtons',
|
|
||||||
/* 42 and earlier */
|
|
||||||
'privacy.clearOnShutdown.passwords', // 42
|
|
||||||
'full-screen-api.approval-required', // 42
|
|
||||||
'browser.safebrowsing.reportErrorURL', // 41
|
|
||||||
'browser.safebrowsing.reportGenericURL', // 41
|
|
||||||
'browser.safebrowsing.reportMalwareErrorURL', // 41
|
|
||||||
'browser.safebrowsing.reportMalwareURL', // 41
|
|
||||||
'browser.safebrowsing.reportURL', // 41
|
|
||||||
'plugins.enumerable_names', // 41
|
|
||||||
'network.http.spdy.enabled.http2draft', // 41
|
|
||||||
'camera.control.autofocus_moving_callback.enabled', // 37
|
|
||||||
'privacy.donottrackheader.value', // 36
|
|
||||||
'network.websocket.enabled', // 35
|
|
||||||
'dom.network.enabled', // 31
|
|
||||||
'pageThumbs.enabled', // 25
|
|
||||||
|
|
||||||
/* reset parrot: check your open about:config after running the script */
|
|
||||||
'_user.js.parrot'
|
|
||||||
]
|
|
||||||
|
|
||||||
if("undefined" === typeof(Services)) {
|
|
||||||
alert("about:config needs to be the active tab!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let c = 0;
|
|
||||||
for (let i = 0, len = ops.length; i < len; i++) {
|
|
||||||
if (Services.prefs.prefHasUserValue(ops[i])) {
|
|
||||||
Services.prefs.clearUserPref(ops[i]);
|
|
||||||
if (!Services.prefs.prefHasUserValue(ops[i])) {
|
|
||||||
console.log("reset", ops[i]);
|
|
||||||
c++;
|
|
||||||
} else { console.log("failed to reset", ops[i]); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
focus();
|
|
||||||
|
|
||||||
let d = (c==1) ? " pref" : " prefs";
|
|
||||||
if (c > 0) {
|
|
||||||
alert("successfully reset " + c + d + "\n\nfor details check the Browser Console (Ctrl+Shift+J)");
|
|
||||||
} else { alert("nothing to reset"); }
|
|
||||||
|
|
||||||
})();
|
|
@ -1,234 +0,0 @@
|
|||||||
/***
|
|
||||||
This will reset the preferences that have been removed completely from the ghacks user.js.
|
|
||||||
|
|
||||||
Last updated: 16-July-2019
|
|
||||||
|
|
||||||
For instructions see:
|
|
||||||
https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.1-Resetting-Inactive-Prefs-[Scripts]
|
|
||||||
***/
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
let ops = [
|
|
||||||
/* removed in ghacks user.js v52-57 */
|
|
||||||
/* 52-alpha */
|
|
||||||
'browser.search.reset.enabled',
|
|
||||||
'browser.search.reset.whitelist',
|
|
||||||
/* 54-alpha */
|
|
||||||
'browser.migrate.automigrate.enabled',
|
|
||||||
'services.sync.enabled',
|
|
||||||
'webextensions.storage.sync.enabled',
|
|
||||||
'webextensions.storage.sync.serverURL',
|
|
||||||
/* 55-alpha */
|
|
||||||
'dom.keyboardevent.dispatch_during_composition', // default is false anyway
|
|
||||||
'dom.vr.oculus.enabled', // covered by dom.vr.enabled
|
|
||||||
'dom.vr.openvr.enabled', // ditto
|
|
||||||
'dom.vr.osvr.enabled', // ditto
|
|
||||||
'extensions.pocket.api', // covered by extensions.pocket.enabled
|
|
||||||
'extensions.pocket.oAuthConsumerKey', // ditto
|
|
||||||
'extensions.pocket.site', // ditto
|
|
||||||
/* 56-alpha: none */
|
|
||||||
/* 57-alpha */
|
|
||||||
'geo.wifi.xhr.timeout', // covered by geo.enabled
|
|
||||||
'browser.search.geoip.timeout', // ditto
|
|
||||||
'media.webspeech.recognition.enable', // default is false anyway
|
|
||||||
'gfx.layerscope.enabled', // default is false anyway
|
|
||||||
/* 58-alpha */
|
|
||||||
// excluding these e10 settings
|
|
||||||
// 'browser.tabs.remote.autostart',
|
|
||||||
// 'browser.tabs.remote.autostart.2',
|
|
||||||
// 'browser.tabs.remote.force-enable',
|
|
||||||
// 'browser.tabs.remote.separateFileUriProcess',
|
|
||||||
// 'extensions.e10sBlocksEnabling',
|
|
||||||
// 'extensions.webextensions.remote',
|
|
||||||
// 'dom.ipc.processCount',
|
|
||||||
// 'dom.ipc.shims.enabledWarnings',
|
|
||||||
// 'dom.ipc.processCount.extension',
|
|
||||||
// 'dom.ipc.processCount.file',
|
|
||||||
// 'security.sandbox.content.level',
|
|
||||||
// 'dom.ipc.plugins.sandbox-level.default',
|
|
||||||
// 'dom.ipc.plugins.sandbox-level.flash',
|
|
||||||
// 'security.sandbox.logging.enabled',
|
|
||||||
'dom.presentation.controller.enabled',
|
|
||||||
'dom.presentation.discoverable',
|
|
||||||
'dom.presentation.discovery.enabled',
|
|
||||||
'dom.presentation.enabled',
|
|
||||||
'dom.presentation.receiver.enabled',
|
|
||||||
'dom.presentation.session_transport.data_channel.enable',
|
|
||||||
/* 59-alpha */
|
|
||||||
'browser.stopReloadAnimation.enabled',
|
|
||||||
'browser.tabs.insertRelatedAfterCurrent',
|
|
||||||
'browser.tabs.loadDivertedInBackground',
|
|
||||||
'browser.tabs.loadInBackground',
|
|
||||||
'browser.tabs.selectOwnerOnClose',
|
|
||||||
'browser.urlbar.clickSelectsAll',
|
|
||||||
'browser.urlbar.doubleClickSelectsAll',
|
|
||||||
'media.flac.enabled',
|
|
||||||
'media.mediasource.enabled',
|
|
||||||
'media.mediasource.mp4.enabled',
|
|
||||||
'media.mediasource.webm.audio.enabled',
|
|
||||||
'media.mediasource.webm.enabled',
|
|
||||||
'media.mp4.enabled',
|
|
||||||
'media.ogg.enabled',
|
|
||||||
'media.ogg.flac.enabled',
|
|
||||||
'media.opus.enabled',
|
|
||||||
'media.raw.enabled',
|
|
||||||
'media.wave.enabled',
|
|
||||||
'media.webm.enabled',
|
|
||||||
'media.wmf.amd.vp9.enabled',
|
|
||||||
'media.wmf.enabled',
|
|
||||||
'media.wmf.vp9.enabled',
|
|
||||||
'ui.submenuDelay',
|
|
||||||
/* 60-beta - these were all at default anyway */
|
|
||||||
'device.storage.enabled',
|
|
||||||
'general.useragent.compatMode.firefox',
|
|
||||||
'network.dns.blockDotOnion',
|
|
||||||
'network.stricttransportsecurity.preloadlist',
|
|
||||||
'security.block_script_with_wrong_mime',
|
|
||||||
'security.fileuri.strict_origin_policy',
|
|
||||||
'security.sri.enable',
|
|
||||||
/* 61-beta */
|
|
||||||
'browser.laterrun.enabled',
|
|
||||||
'browser.offline-apps.notify',
|
|
||||||
'browser.rights.3.shown',
|
|
||||||
'browser.slowStartup.maxSamples',
|
|
||||||
'browser.slowStartup.notificationDisabled',
|
|
||||||
'browser.slowStartup.samples',
|
|
||||||
'browser.storageManager.enabled',
|
|
||||||
'dom.allow_scripts_to_close_windows',
|
|
||||||
'dom.disable_window_flip',
|
|
||||||
'network.http.fast-fallback-to-IPv4',
|
|
||||||
'offline-apps.quota.warn',
|
|
||||||
'services.blocklist.signing.enforced',
|
|
||||||
/* 62-beta */
|
|
||||||
'browser.urlbar.autoFill.typed',
|
|
||||||
'security.tls.version.fallback-limit',
|
|
||||||
/* 63-beta */
|
|
||||||
'extensions.webextensions.keepStorageOnUninstall',
|
|
||||||
'extensions.webextensions.keepUuidOnUninstall',
|
|
||||||
'privacy.trackingprotection.ui.enabled',
|
|
||||||
/* 64-beta */
|
|
||||||
'browser.eme.ui.enabled',
|
|
||||||
'browser.sessionstore.max_windows_undo',
|
|
||||||
'network.auth.subresource-img-cross-origin-http-auth-allow',
|
|
||||||
'media.peerconnection.ice.tcp',
|
|
||||||
'media.peerconnection.identity.enabled',
|
|
||||||
'media.peerconnection.identity.timeout',
|
|
||||||
'media.peerconnection.turn.disable',
|
|
||||||
'media.peerconnection.use_document_iceservers',
|
|
||||||
'media.peerconnection.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.enabled',
|
|
||||||
'browser.safebrowsing.downloads.remote.block_dangerous',
|
|
||||||
'browser.safebrowsing.downloads.remote.block_dangerous_host',
|
|
||||||
'browser.safebrowsing.downloads.remote.block_potentially_unwanted',
|
|
||||||
'browser.safebrowsing.downloads.remote.block_uncommon',
|
|
||||||
'browser.safebrowsing.blockedURIs.enabled',
|
|
||||||
'browser.safebrowsing.malware.enabled',
|
|
||||||
'browser.safebrowsing.phishing.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',
|
|
||||||
/* reset parrot: check your open about:config after running the script */
|
|
||||||
'_user.js.parrot'
|
|
||||||
]
|
|
||||||
|
|
||||||
if("undefined" === typeof(Services)) {
|
|
||||||
alert("about:config needs to be the active tab!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let c = 0;
|
|
||||||
for (let i = 0, len = ops.length; i < len; i++) {
|
|
||||||
if (Services.prefs.prefHasUserValue(ops[i])) {
|
|
||||||
Services.prefs.clearUserPref(ops[i]);
|
|
||||||
if (!Services.prefs.prefHasUserValue(ops[i])) {
|
|
||||||
console.log("reset", ops[i]);
|
|
||||||
c++;
|
|
||||||
} else { console.log("failed to reset", ops[i]); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
focus();
|
|
||||||
|
|
||||||
let d = (c==1) ? " pref" : " prefs";
|
|
||||||
if (c > 0) {
|
|
||||||
alert("successfully reset " + c + d + "\n\nfor details check the Browser Console (Ctrl+Shift+J)");
|
|
||||||
} else { alert("nothing to reset"); }
|
|
||||||
|
|
||||||
})();
|
|
@ -1,65 +1,10 @@
|
|||||||
|
/*** arkenfox user.js troubleshooter.js v1.6.3 ***/
|
||||||
/*** ghacks-user.js troubleshooter.js v1.5.2 ***/
|
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
if("undefined" === typeof(Services)) {
|
if ("undefined" === typeof(Services)) return alert('about:config needs to be the active tab!');
|
||||||
alert("about:config needs to be the active tab!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getMyList(arr) {
|
const aPREFS = [
|
||||||
let aRet = [];
|
|
||||||
let dummy = 0;
|
|
||||||
for (let i = 0, len = arr.length; i < len; i++) {
|
|
||||||
if (Services.prefs.prefHasUserValue(arr[i])) {
|
|
||||||
dummy = Services.prefs.getPrefType(arr[i]);
|
|
||||||
switch (dummy) {
|
|
||||||
case 32: // string (see https://dxr.mozilla.org/mozilla-central/source/modules/libpref/nsIPrefBranch.idl#31)
|
|
||||||
dummy = Services.prefs.getCharPref(arr[i]);
|
|
||||||
aRet.push({'name':arr[i],'value': dummy,'type':32});
|
|
||||||
break;
|
|
||||||
case 64: // int
|
|
||||||
dummy = Services.prefs.getIntPref(arr[i]);
|
|
||||||
aRet.push({'name':arr[i],'value': dummy,'type':64});
|
|
||||||
break;
|
|
||||||
case 128: // boolean
|
|
||||||
dummy = Services.prefs.getBoolPref(arr[i]);
|
|
||||||
aRet.push({'name':arr[i],'value': dummy,'type':128});
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
console.log("error detecting pref-type for '"+arr[i]+"' !");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return aRet;
|
|
||||||
}
|
|
||||||
|
|
||||||
function reapply(arr) {
|
|
||||||
for (let i = 0, len = arr.length; i < len; i++) {
|
|
||||||
switch (arr[i].type) {
|
|
||||||
case 32: // string
|
|
||||||
Services.prefs.setCharPref(arr[i].name, arr[i].value);
|
|
||||||
break;
|
|
||||||
case 64: // int
|
|
||||||
Services.prefs.setIntPref(arr[i].name, arr[i].value);
|
|
||||||
break;
|
|
||||||
case 128: // boolean
|
|
||||||
Services.prefs.setBoolPref(arr[i].name, arr[i].value);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
console.log("error re-appyling value for '"+arr[i].name+"' !"); // should never happen
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function myreset(arr) {
|
|
||||||
for (let i = 0, len = arr.length; i < len; i++) {
|
|
||||||
Services.prefs.clearUserPref(arr[i].name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let ops = [
|
|
||||||
|
|
||||||
/* known culprits */
|
/* known culprits */
|
||||||
'network.cookie.cookieBehavior',
|
'network.cookie.cookieBehavior',
|
||||||
@ -71,9 +16,7 @@
|
|||||||
|
|
||||||
/* Storage + Cache */
|
/* Storage + Cache */
|
||||||
'browser.cache.offline.enable',
|
'browser.cache.offline.enable',
|
||||||
'dom.indexedDB.enabled',
|
|
||||||
'dom.storage.enabled',
|
'dom.storage.enabled',
|
||||||
'browser.storageManager.enabled',
|
|
||||||
'dom.storageManager.enabled',
|
'dom.storageManager.enabled',
|
||||||
|
|
||||||
/* Workers, Web + Push Notifications */
|
/* Workers, Web + Push Notifications */
|
||||||
@ -88,7 +31,6 @@
|
|||||||
/* Fonts */
|
/* Fonts */
|
||||||
'browser.display.use_document_fonts',
|
'browser.display.use_document_fonts',
|
||||||
'font.blacklist.underline_offset',
|
'font.blacklist.underline_offset',
|
||||||
'gfx.downloadable_fonts.woff2.enabled',
|
|
||||||
'gfx.font_rendering.graphite.enabled',
|
'gfx.font_rendering.graphite.enabled',
|
||||||
'gfx.font_rendering.opentype_svg.enabled',
|
'gfx.font_rendering.opentype_svg.enabled',
|
||||||
'layout.css.font-loading-api.enabled',
|
'layout.css.font-loading-api.enabled',
|
||||||
@ -101,12 +43,10 @@
|
|||||||
'dom.IntersectionObserver.enabled',
|
'dom.IntersectionObserver.enabled',
|
||||||
'dom.popup_allowed_events',
|
'dom.popup_allowed_events',
|
||||||
'full-screen-api.enabled',
|
'full-screen-api.enabled',
|
||||||
'geo.wifi.uri',
|
|
||||||
'intl.accept_languages',
|
'intl.accept_languages',
|
||||||
'javascript.options.asmjs',
|
'javascript.options.asmjs',
|
||||||
'javascript.options.wasm',
|
'javascript.options.wasm',
|
||||||
'permissions.default.shortcuts',
|
'permissions.default.shortcuts',
|
||||||
'security.csp.experimentalEnabled',
|
|
||||||
|
|
||||||
/* Hardware */
|
/* Hardware */
|
||||||
'dom.vr.enabled',
|
'dom.vr.enabled',
|
||||||
@ -114,8 +54,8 @@
|
|||||||
|
|
||||||
/* Audio + Video */
|
/* Audio + Video */
|
||||||
'dom.webaudio.enabled',
|
'dom.webaudio.enabled',
|
||||||
'media.autoplay.enabled',
|
|
||||||
'media.autoplay.default', // FF63+
|
'media.autoplay.default', // FF63+
|
||||||
|
'media.autoplay.blocking_policy', // FF78+
|
||||||
|
|
||||||
/* Forms */
|
/* Forms */
|
||||||
'browser.formfill.enable',
|
'browser.formfill.enable',
|
||||||
@ -142,13 +82,11 @@
|
|||||||
|
|
||||||
/* Plugins + Flash */
|
/* Plugins + Flash */
|
||||||
'plugin.default.state',
|
'plugin.default.state',
|
||||||
'plugin.defaultXpi.state',
|
|
||||||
'plugin.sessionPermissionNow.intervalInMinutes',
|
|
||||||
'plugin.state.flash',
|
'plugin.state.flash',
|
||||||
|
|
||||||
/* unlikely to cause problems */
|
/* unlikely to cause problems */
|
||||||
'browser.tabs.remote.allowLinkedWebInFileUriProcess',
|
|
||||||
'dom.popup_maximum',
|
'dom.popup_maximum',
|
||||||
|
'geo.provider.network.url',
|
||||||
'layout.css.visited_links_enabled',
|
'layout.css.visited_links_enabled',
|
||||||
'mathml.disabled',
|
'mathml.disabled',
|
||||||
'network.auth.subresource-http-auth-allow',
|
'network.auth.subresource-http-auth-allow',
|
||||||
@ -156,60 +94,117 @@
|
|||||||
'network.protocol-handler.external.ms-windows-store',
|
'network.protocol-handler.external.ms-windows-store',
|
||||||
'privacy.trackingprotection.enabled',
|
'privacy.trackingprotection.enabled',
|
||||||
'security.data_uri.block_toplevel_data_uri_navigations',
|
'security.data_uri.block_toplevel_data_uri_navigations',
|
||||||
|
'privacy.window.name.update.enabled', // FF82+
|
||||||
|
|
||||||
'last.one.without.comma'
|
'last.one.without.comma'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
// any runtime-set pref that everyone will have and that can be safely reset
|
||||||
|
const oFILLER = { type: 64, name: 'app.update.lastUpdateTime.browser-cleanup-thumbnails', value: 1580000000 };
|
||||||
|
|
||||||
// reset prefs that set the same value as FFs default value
|
function getMyList(arr) {
|
||||||
let aTEMP = getMyList(ops);
|
const aRet = [];
|
||||||
myreset(aTEMP);
|
for (const sPname of arr) {
|
||||||
reapply(aTEMP);
|
if (Services.prefs.prefHasUserValue(sPname)) {
|
||||||
|
const ptype = Services.prefs.getPrefType(sPname);
|
||||||
const aBACKUP = getMyList(ops);
|
switch (ptype) {
|
||||||
//console.log(aBACKUP.length, "user-set prefs from our list detected and their values stored.");
|
case 32: // string (see https://dxr.mozilla.org/mozilla-central/source/modules/libpref/nsIPrefBranch.idl#31)
|
||||||
|
aRet.push({'type':ptype,'name':sPname,'value':Services.prefs.getCharPref(sPname)});
|
||||||
let myArr = aBACKUP;
|
break;
|
||||||
let found = false;
|
case 64: // int
|
||||||
let aDbg = [];
|
aRet.push({'type':ptype,'name':sPname,'value':Services.prefs.getIntPref(sPname)});
|
||||||
focus();
|
break;
|
||||||
myreset(aBACKUP); // reset all detected prefs
|
case 128: // boolean
|
||||||
if (confirm("all detected prefs reset.\n\n!! KEEP THIS PROMPT OPEN AND TEST THE SITE IN ANOTHER TAB !!\n\nIF the problem still exists, this script can't help you - click cancel to re-apply your values and exit.\n\nClick OK if your problem is fixed.")) {
|
aRet.push({'type':ptype,'name':sPname,'value':Services.prefs.getBoolPref(sPname)});
|
||||||
aDbg = myArr;
|
break;
|
||||||
reapply(aBACKUP);
|
default:
|
||||||
myreset(myArr.slice(0, parseInt(myArr.length/2)));
|
console.log("error detecting pref-type for '"+sPname+"' !");
|
||||||
while (myArr.length >= 2) {
|
|
||||||
alert("NOW TEST AGAIN !");
|
|
||||||
if (confirm("if the problem still exists click OK, otherwise click cancel.")) {
|
|
||||||
myArr = myArr.slice(parseInt(myArr.length/2));
|
|
||||||
if (myArr.length == 1) {
|
|
||||||
alert("The problem is caused by more than 1 pref !\n\nNarrowed it down to "+ aDbg.length.toString() +" prefs, check the console ...");
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
myArr = myArr.slice(0, parseInt(myArr.length/2));
|
|
||||||
aDbg = myArr;
|
|
||||||
if (myArr.length == 1) { found = true; break; }
|
|
||||||
}
|
}
|
||||||
reapply(aBACKUP);
|
|
||||||
myreset(myArr.slice(0, parseInt(myArr.length/2))); // reset half of the remaining prefs
|
|
||||||
}
|
}
|
||||||
reapply(aBACKUP);
|
return aRet;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
reapply(aBACKUP);
|
function reapply(arr) {
|
||||||
|
for (const oPref of arr) {
|
||||||
|
switch (oPref.type) {
|
||||||
|
case 32: // string
|
||||||
|
Services.prefs.setCharPref(oPref.name, oPref.value);
|
||||||
|
break;
|
||||||
|
case 64: // int
|
||||||
|
Services.prefs.setIntPref(oPref.name, oPref.value);
|
||||||
|
break;
|
||||||
|
case 128: // boolean
|
||||||
|
Services.prefs.setBoolPref(oPref.name, oPref.value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
console.log("error re-appyling value for '"+oPref.name+"' !"); // should never happen
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function myreset(arr) {
|
||||||
|
for (const oPref of arr) Services.prefs.clearUserPref(oPref.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
function resetAllMatchingDefault(arr) {
|
||||||
|
const aTmp = getMyList(arr);
|
||||||
|
myreset(aTmp);
|
||||||
|
reapply(aTmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _main(aALL) {
|
||||||
|
const _h = (arr) => Math.ceil(arr.length/2);
|
||||||
|
|
||||||
|
let aTmp = aALL, aDbg = aALL;
|
||||||
|
reapply(aALL);
|
||||||
|
myreset(aTmp.slice(0, _h(aTmp)));
|
||||||
|
while (aTmp.length) {
|
||||||
|
alert('NOW TEST AGAIN !');
|
||||||
|
if (confirm('if the problem still exists click OK, otherwise click Cancel.')) {
|
||||||
|
aTmp = aTmp.slice(_h(aTmp));
|
||||||
|
} else {
|
||||||
|
aTmp = aTmp.slice(0, _h(aTmp));
|
||||||
|
aDbg = aTmp; // update narrowed down list
|
||||||
|
if (aDbg.length == 1) break;
|
||||||
|
}
|
||||||
|
reapply(aALL);
|
||||||
|
myreset(aTmp.slice(0, _h(aTmp))); // reset half of the remaining prefs
|
||||||
|
}
|
||||||
|
reapply(aALL);
|
||||||
|
|
||||||
|
if (aDbg.length == 1) return alert("narrowed it down to:\n\n"+aDbg[0].name+"\n");
|
||||||
|
if (aDbg.length == aALL.length) {
|
||||||
|
const msg = "Failed to narrow it down beyond the initial "+aALL.length+" prefs. The problem is most likely caused by at least 2 prefs!\n\n" +
|
||||||
|
"Either those prefs are too far apart in the list or there are exactly 2 culprits and they just happen to be at the wrong place.\n\n" +
|
||||||
|
"In case it's the latter, the script can add a dummy pref and you can try again - Try again?";
|
||||||
|
if (confirm(msg)) return _main([...aALL, oFILLER]);
|
||||||
|
} else if (aDbg.length > 10 && confirm("Narrowed it down to "+aDbg.length+" prefs. Try narrowing it down further?")) {
|
||||||
|
return _main(aDbg.reverse());
|
||||||
|
}
|
||||||
|
|
||||||
|
alert("Narrowed it down to "+ aDbg.length.toString() +" prefs, check the console ...");
|
||||||
|
console.log('The problem is caused by 2 or more of these prefs:');
|
||||||
|
for (const oPref of aDbg) console.log(oPref.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
resetAllMatchingDefault(aPREFS); // reset user-set prefs matching FFs default value
|
||||||
|
|
||||||
|
const aBAK = getMyList(aPREFS);
|
||||||
|
//console.log(aBAK.length, "user-set prefs from our list detected and their values stored.");
|
||||||
|
|
||||||
|
const sMsg = "all detected prefs reset.\n\n" +
|
||||||
|
"!! KEEP THIS PROMPT OPEN AND TEST THE SITE IN ANOTHER TAB !!\n\n" +
|
||||||
|
"IF the problem still exists, this script can't help you - click Cancel to re-apply your values and exit.\n\n" +
|
||||||
|
"Click OK if your problem is fixed.";
|
||||||
|
|
||||||
|
focus();
|
||||||
|
myreset(aBAK);
|
||||||
|
if (!confirm(sMsg)) {
|
||||||
|
reapply(aBAK);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
_main(aBAK);
|
||||||
if (found) {
|
|
||||||
alert("narrowed it down to:\n\n"+myArr[0].name+"\n");
|
|
||||||
myreset(myArr); // reset the culprit
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
console.log("the problem is caused by a combination of the following prefs:");
|
|
||||||
for (let i = 0, len = aDbg.length; i < len; i++) {
|
|
||||||
console.log(aDbg[i].name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
52
updater.bat
@ -1,12 +1,12 @@
|
|||||||
@ECHO OFF & SETLOCAL EnableDelayedExpansion
|
@ECHO OFF & SETLOCAL EnableDelayedExpansion
|
||||||
TITLE ghacks user.js updater
|
TITLE arkenfox user.js updater
|
||||||
|
|
||||||
REM ## ghacks-user.js updater for Windows
|
REM ## arkenfox user.js updater for Windows
|
||||||
REM ## author: @claustromaniac
|
REM ## author: @claustromaniac
|
||||||
REM ## version: 4.10
|
REM ## version: 4.20
|
||||||
REM ## instructions: https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts
|
REM ## instructions: https://github.com/arkenfox/user.js/wiki/5.1-Updater-[Options]#-windows
|
||||||
|
|
||||||
SET v=4.10
|
SET v=4.19
|
||||||
|
|
||||||
VERIFY ON
|
VERIFY ON
|
||||||
CD /D "%~dp0"
|
CD /D "%~dp0"
|
||||||
@ -23,11 +23,19 @@ 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"=="-esr" (SET _esr=1)
|
||||||
IF /I "%~1"=="-rfpalts" (SET _rfpalts=1)
|
|
||||||
SHIFT
|
SHIFT
|
||||||
GOTO parse
|
GOTO parse
|
||||||
:endparse
|
:endparse
|
||||||
|
|
||||||
|
FOR /F %%i IN ('PowerShell -Command "[Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12'"') DO (
|
||||||
|
IF "%%i" == "False" (
|
||||||
|
CALL :message "Your PowerShell version doesn't support TLS1.2 ^!"
|
||||||
|
ECHO: Instructions to update PowerShell are on the arkenfox wiki
|
||||||
|
PAUSE
|
||||||
|
EXIT
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
IF DEFINED _updateb (
|
IF DEFINED _updateb (
|
||||||
REM The normal flow here goes from phase 1 to phase 2 and then phase 3.
|
REM The normal flow here goes from phase 1 to phase 2 and then phase 3.
|
||||||
IF NOT "!_myname:~0,9!"=="[updated]" (
|
IF NOT "!_myname:~0,9!"=="[updated]" (
|
||||||
@ -51,9 +59,7 @@ IF DEFINED _updateb (
|
|||||||
CALL :message "Updating script..."
|
CALL :message "Updating script..."
|
||||||
REM Uncomment the next line and comment out the PowerShell call for testing.
|
REM Uncomment the next line and comment out the PowerShell call for testing.
|
||||||
REM COPY /B /Y "!_myname!.bat" "[updated]!_myname!.bat" >nul
|
REM COPY /B /Y "!_myname!.bat" "[updated]!_myname!.bat" >nul
|
||||||
(
|
CALL :psdownload https://raw.githubusercontent.com/arkenfox/user.js/master/updater.bat "[updated]!_myname!.bat"
|
||||||
PowerShell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/updater.bat', '[updated]!_myname!.bat')"
|
|
||||||
) >nul 2>&1
|
|
||||||
IF EXIST "[updated]!_myname!.bat" (
|
IF EXIST "[updated]!_myname!.bat" (
|
||||||
START /min CMD /C "[updated]!_myname!.bat" !_myparams!
|
START /min CMD /C "[updated]!_myname!.bat" !_myparams!
|
||||||
) ELSE (
|
) ELSE (
|
||||||
@ -100,7 +106,10 @@ IF NOT EXIST user.js (
|
|||||||
)
|
)
|
||||||
:exitloop
|
:exitloop
|
||||||
IF NOT "!_name!"=="" (
|
IF NOT "!_name!"=="" (
|
||||||
IF /I NOT "!_name!"=="!_name:ghacks=!" (
|
SET "_tempvar="
|
||||||
|
IF /I NOT "!_name!"=="!_name:ghacks=!" SET _tempvar=1
|
||||||
|
IF /I NOT "!_name!"=="!_name:arkenfox=!" SET _tempvar=1
|
||||||
|
IF !_tempvar! EQU 1 (
|
||||||
CALL :message "!_name! !_version:~2!,!_date!"
|
CALL :message "!_name! !_version:~2!,!_date!"
|
||||||
) ELSE (CALL :message "Current user.js version not recognised.")
|
) ELSE (CALL :message "Current user.js version not recognised.")
|
||||||
) ELSE (CALL :message "Current user.js version not recognised.")
|
) ELSE (CALL :message "Current user.js version not recognised.")
|
||||||
@ -108,7 +117,7 @@ IF NOT EXIST user.js (
|
|||||||
ECHO:
|
ECHO:
|
||||||
IF NOT DEFINED _ua (
|
IF NOT DEFINED _ua (
|
||||||
CALL :message "This batch should be run from your Firefox profile directory."
|
CALL :message "This batch should be run from your Firefox profile directory."
|
||||||
ECHO: It will download the latest version of ghacks user.js from github and then
|
ECHO: It will download the latest version of arkenfox user.js from github and then
|
||||||
CALL :message "append any of your own changes from user-overrides.js to it."
|
CALL :message "append any of your own changes from user-overrides.js to it."
|
||||||
CALL :message "Visit the wiki for more detailed information."
|
CALL :message "Visit the wiki for more detailed information."
|
||||||
ECHO:
|
ECHO:
|
||||||
@ -129,14 +138,8 @@ IF DEFINED _log (
|
|||||||
)
|
)
|
||||||
IF EXIST user.js.new (DEL /F "user.js.new")
|
IF EXIST user.js.new (DEL /F "user.js.new")
|
||||||
CALL :message "Retrieving latest user.js file from github repository..."
|
CALL :message "Retrieving latest user.js file from github repository..."
|
||||||
(
|
CALL :psdownload https://raw.githubusercontent.com/arkenfox/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
|
|
||||||
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 (
|
IF DEFINED _esr (
|
||||||
CALL :message "Activating ESR section..."
|
CALL :message "Activating ESR section..."
|
||||||
CALL :activate user.js.new ".x still uses all the following prefs"
|
CALL :activate user.js.new ".x still uses all the following prefs"
|
||||||
@ -174,8 +177,8 @@ IF EXIST user.js.new (
|
|||||||
IF DEFINED _singlebackup (
|
IF DEFINED _singlebackup (
|
||||||
MOVE /Y user.js user.js.bak >nul
|
MOVE /Y user.js user.js.bak >nul
|
||||||
) ELSE (
|
) ELSE (
|
||||||
SET "_time=!time: =0!"
|
FOR /F "delims=" %%# IN ('powershell -command get-date -format "{yyyyMMdd_HHmmss}"') DO @SET ldt=%%#
|
||||||
MOVE /Y user.js "user-backup-!date:/=-!_!_time::=.!.js" >nul
|
MOVE /Y user.js "user-backup-!ldt!.js" >nul
|
||||||
)
|
)
|
||||||
REN user.js.new user.js
|
REN user.js.new user.js
|
||||||
CALL :message "Update complete."
|
CALL :message "Update complete."
|
||||||
@ -215,6 +218,13 @@ IF NOT "2"=="%_log%" (ECHO:)
|
|||||||
ENDLOCAL
|
ENDLOCAL
|
||||||
GOTO :EOF
|
GOTO :EOF
|
||||||
|
|
||||||
|
::::::::::::::: Download :::::::::::::::
|
||||||
|
:psdownload
|
||||||
|
(
|
||||||
|
PowerShell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object Net.WebClient).DownloadFile('%~1', '%~2')"
|
||||||
|
) >nul 2>&1
|
||||||
|
GOTO :EOF
|
||||||
|
|
||||||
::::::::::::::: Activate Section :::::::::::::::
|
::::::::::::::: Activate Section :::::::::::::::
|
||||||
:activate
|
:activate
|
||||||
:: arg1 = file
|
:: arg1 = file
|
||||||
@ -305,8 +315,6 @@ 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 " -rfpAlts"
|
|
||||||
ECHO: Activate RFP Alternatives section
|
|
||||||
CALL :message " -updateBatch"
|
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 ""
|
||||||
|
304
updater.sh
@ -1,18 +1,24 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
## ghacks-user.js updater for macOS and Linux
|
## arkenfox user.js updater for macOS and Linux
|
||||||
|
|
||||||
## version: 2.5
|
## version: 4.0
|
||||||
## Author: Pat Johnson (@overdodactyl)
|
## Author: Pat Johnson (@overdodactyl)
|
||||||
## Additional contributors: @earthlng, @ema-pe, @claustromaniac
|
## Additional contributors: @earthlng, @ema-pe, @claustromaniac, @infinitewarp
|
||||||
|
|
||||||
## DON'T GO HIGHER THAN VERSION x.9 !! ( because of ASCII comparison in update_updater() )
|
## DON'T GO HIGHER THAN VERSION x.9 !! ( because of ASCII comparison in update_updater() )
|
||||||
|
|
||||||
|
# Check if running as root
|
||||||
|
if [ "${EUID:-"$(id -u)"}" -eq 0 ]; then
|
||||||
|
printf "You shouldn't run this with elevated privileges (such as with doas/sudo).\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
readonly CURRDIR=$(pwd)
|
readonly CURRDIR=$(pwd)
|
||||||
|
|
||||||
sfp=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null)
|
SCRIPT_FILE=$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null)
|
||||||
if [ -z "$sfp" ]; then sfp=${BASH_SOURCE[0]}; fi
|
[ -z "$SCRIPT_FILE" ] && SCRIPT_FILE=${BASH_SOURCE[0]}
|
||||||
readonly SCRIPT_DIR=$(dirname "${sfp}")
|
readonly SCRIPT_DIR=$(dirname "${SCRIPT_FILE}")
|
||||||
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
@ -41,28 +47,28 @@ ESR=false
|
|||||||
|
|
||||||
# Download method priority: curl -> wget
|
# Download method priority: curl -> wget
|
||||||
DOWNLOAD_METHOD=''
|
DOWNLOAD_METHOD=''
|
||||||
if [[ $(command -v 'curl') ]]; then
|
if command -v curl >/dev/null; then
|
||||||
DOWNLOAD_METHOD='curl'
|
DOWNLOAD_METHOD='curl --max-redirs 3 -so'
|
||||||
elif [[ $(command -v 'wget') ]]; then
|
elif command -v wget >/dev/null; then
|
||||||
DOWNLOAD_METHOD='wget'
|
DOWNLOAD_METHOD='wget --max-redirect 3 --quiet -O'
|
||||||
else
|
else
|
||||||
echo -e "${RED}This script requires curl or wget.\nProcess aborted${NC}"
|
echo -e "${RED}This script requires curl or wget.\nProcess aborted${NC}"
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
show_banner () {
|
show_banner() {
|
||||||
echo -e "${BBLUE}\n"
|
echo -e "${BBLUE}
|
||||||
echo ' ############################################################################'
|
############################################################################
|
||||||
echo ' #### ####'
|
#### ####
|
||||||
echo ' #### ghacks user.js ####'
|
#### arkenfox user.js ####
|
||||||
echo ' #### Hardening the Privacy and Security Settings of Firefox ####'
|
#### Hardening the Privacy and Security Settings of Firefox ####
|
||||||
echo ' #### Maintained by @Thorin-Oakenpants and @earthlng ####'
|
#### Maintained by @Thorin-Oakenpants and @earthlng ####
|
||||||
echo ' #### Updater for macOS and Linux by @overdodactyl ####'
|
#### Updater for macOS and Linux by @overdodactyl ####
|
||||||
echo ' #### ####'
|
#### ####
|
||||||
echo ' ############################################################################'
|
############################################################################"
|
||||||
echo -e "${NC}\n"
|
echo -e "${NC}\n"
|
||||||
echo -e "Documentation for this script is available here: ${CYAN}https://github.com/ghacksuserjs/ghacks-user.js/wiki/3.3-Updater-Scripts${NC}\n"
|
echo -e "Documentation for this script is available here: ${CYAN}https://github.com/arkenfox/user.js/wiki/5.1-Updater-[Options]#-maclinux${NC}\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
@ -70,123 +76,101 @@ show_banner () {
|
|||||||
#########################
|
#########################
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo -e "${BLUE}\nUsage: $0 [-h] [-p PROFILE] [-u] [-d] [-s] [-n] [-b] [-c] [-v] [-r] [-e] [-o OVERRIDE]\n${NC}" 1>&2 # Echo usage string to standard error
|
echo
|
||||||
echo 'Optional Arguments:'
|
echo -e "${BLUE}Usage: $0 [-bcdehlnrsuv] [-p PROFILE] [-o OVERRIDE]${NC}" 1>&2 # Echo usage string to standard error
|
||||||
echo -e "\t-h,\t\t Show this help message and exit."
|
echo -e "
|
||||||
echo -e "\t-p PROFILE,\t Path to your Firefox profile (if different than the dir of this script)"
|
Optional Arguments:
|
||||||
echo -e "\t\t\t IMPORTANT: if the path include spaces, wrap the entire argument in quotes."
|
-h Show this help message and exit.
|
||||||
echo -e "\t-l, \t\t Choose your Firefox profile from a list"
|
-p PROFILE Path to your Firefox profile (if different than the dir of this script)
|
||||||
echo -e "\t-u,\t\t Update updater.sh and execute silently. Do not seek confirmation."
|
IMPORTANT: If the path contains spaces, wrap the entire argument in quotes.
|
||||||
echo -e "\t-d,\t\t Do not look for updates to updater.sh."
|
-l Choose your Firefox profile from a list
|
||||||
echo -e "\t-s,\t\t Silently update user.js. Do not seek confirmation."
|
-u Update updater.sh and execute silently. Do not seek confirmation.
|
||||||
echo -e "\t-b,\t\t Only keep one backup of each file."
|
-d Do not look for updates to updater.sh.
|
||||||
echo -e "\t-c,\t\t Create a diff file comparing old and new user.js within userjs_diffs. "
|
-s Silently update user.js. Do not seek confirmation.
|
||||||
echo -e "\t-o OVERRIDE,\t Filename or path to overrides file (if different than user-overrides.js)."
|
-b Only keep one backup of each file.
|
||||||
echo -e "\t\t\t If used with -p, paths should be relative to PROFILE or absolute paths"
|
-c Create a diff file comparing old and new user.js within userjs_diffs.
|
||||||
echo -e "\t\t\t If given a directory, all files inside will be appended recursively."
|
-o OVERRIDE Filename or path to overrides file (if different than user-overrides.js).
|
||||||
echo -e "\t\t\t You can pass multiple files or directories by passing a comma separated list."
|
If used with -p, paths should be relative to PROFILE or absolute paths
|
||||||
echo -e "\t\t\t\t Note: If a directory is given, only files inside ending in the extension .js are appended"
|
If given a directory, all files inside will be appended recursively.
|
||||||
echo -e "\t\t\t\t IMPORTANT: do not add spaces between files/paths. Ex: -o file1.js,file2.js,dir1"
|
You can pass multiple files or directories by passing a comma separated list.
|
||||||
echo -e "\t\t\t\t IMPORTANT: if any files/paths include spaces, wrap the entire argument in quotes."
|
Note: If a directory is given, only files inside ending in the extension .js are appended
|
||||||
echo -e "\t\t\t\t\t Ex: -o \"override folder\" "
|
IMPORTANT: Do not add spaces between files/paths. Ex: -o file1.js,file2.js,dir1
|
||||||
echo -e "\t-n,\t\t Do not append any overrides, even if user-overrides.js exists."
|
IMPORTANT: If any file/path contains spaces, wrap the entire argument in quotes.
|
||||||
echo -e "\t-v,\t\t Open the resulting user.js file."
|
Ex: -o \"override folder\"
|
||||||
echo -e "\t-r,\t\t Only download user.js to a temporary file and open it."
|
-n Do not append any overrides, even if user-overrides.js exists.
|
||||||
echo -e "\t-e,\t\t Activate ESR related preferences."
|
-v Open the resulting user.js file.
|
||||||
echo -e
|
-r Only download user.js to a temporary file and open it.
|
||||||
echo 'Deprecated Arguments (they still work for now):'
|
-e Activate ESR related preferences."
|
||||||
echo -e "\t-donotupdate,\t Use instead -d"
|
echo
|
||||||
echo -e "\t-update,\t Use instead -u"
|
|
||||||
echo -e
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
legacy_argument () {
|
|
||||||
echo -e "${ORANGE}\nWarning: command line arguments have changed."
|
|
||||||
echo -e "$1 has been deprecated and may not work in the future.\n"
|
|
||||||
echo -e "Please view the new options using the -h argument.${NC}"
|
|
||||||
}
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# File Handling #
|
# File Handling #
|
||||||
#########################
|
#########################
|
||||||
|
|
||||||
# Download files
|
download_file() { # expects URL as argument ($1)
|
||||||
download_file () {
|
|
||||||
declare -r url=$1
|
|
||||||
declare -r tf=$(mktemp)
|
declare -r tf=$(mktemp)
|
||||||
local dlcmd=''
|
|
||||||
|
|
||||||
if [ $DOWNLOAD_METHOD = 'curl' ]; then
|
$DOWNLOAD_METHOD "${tf}" "$1" &>/dev/null && echo "$tf" || echo '' # return the temp-filename or empty string on error
|
||||||
dlcmd="curl -o $tf"
|
|
||||||
else
|
|
||||||
dlcmd="wget -O $tf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
$dlcmd "${url}" &>/dev/null && echo "$tf" || echo '' # return the temp-filename (or empty string on error)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open_file () { #expects one argument: file_path
|
open_file() { # expects one argument: file_path
|
||||||
if [ "$(uname)" == 'Darwin' ]; then
|
if [ "$(uname)" == 'Darwin' ]; then
|
||||||
open "$1"
|
open "$1"
|
||||||
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
elif [ "$(uname -s | cut -c -5)" == "Linux" ]; then
|
||||||
xdg-open "$1"
|
xdg-open "$1"
|
||||||
else
|
else
|
||||||
echo -e "${RED}Error: Sorry, opening files is not supported for your OS.${NC}"
|
echo -e "${RED}Error: Sorry, opening files is not supported for your OS.${NC}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
readIniFile () { # expects one argument: absolute path of profiles.ini
|
readIniFile() { # expects one argument: absolute path of profiles.ini
|
||||||
declare -r inifile="$1"
|
declare -r inifile="$1"
|
||||||
declare -r tfile=$(mktemp)
|
|
||||||
|
|
||||||
if [ $(grep '^\[Profile' "$inifile" | wc -l) == "1" ]; then ### only 1 profile found
|
# tempIni will contain: [ProfileX], Name=, IsRelative= and Path= (and Default= if present) of the only (if) or the selected (else) profile
|
||||||
grep '^\[Profile' -A 4 "$inifile" | grep -v '^\[Profile' > $tfile
|
if [ "$(grep -c '^\[Profile' "${inifile}")" -eq "1" ]; then ### only 1 profile found
|
||||||
|
tempIni="$(grep '^\[Profile' -A 4 "${inifile}")"
|
||||||
else
|
else
|
||||||
grep -E -v '^\[General\]|^StartWithLastProfile=|^IsRelative=' "$inifile"
|
echo -e "Profiles found:\n––––––––––––––––––––––––––––––"
|
||||||
echo ''
|
## cmd-substitution to strip trailing newlines and in quotes to keep internal ones:
|
||||||
|
echo "$(grep --color=never -E 'Default=[^1]|\[Profile[0-9]*\]|Name=|Path=|^$' "${inifile}")"
|
||||||
|
echo '––––––––––––––––––––––––––––––'
|
||||||
read -p 'Select the profile number ( 0 for Profile0, 1 for Profile1, etc ) : ' -r
|
read -p 'Select the profile number ( 0 for Profile0, 1 for Profile1, etc ) : ' -r
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
if [[ $REPLY =~ ^(0|[1-9][0-9]*)$ ]]; then
|
if [[ $REPLY =~ ^(0|[1-9][0-9]*)$ ]]; then
|
||||||
grep '^\[Profile'${REPLY} -A 4 "$inifile" | grep -v '^\[Profile'${REPLY} > $tfile
|
tempIni="$(grep "^\[Profile${REPLY}" -A 4 "${inifile}")" || {
|
||||||
if [[ "$?" != "0" ]]; then
|
echo -e "${RED}Profile${REPLY} does not exist!${NC}" && exit 1
|
||||||
echo "Profile${REPLY} does not exist!" && exit 1
|
}
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo "Invalid selection!" && exit 1
|
echo -e "${RED}Invalid selection!${NC}" && exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
declare -r profpath=$(grep '^Path=' $tfile)
|
# extracting 0 or 1 from the "IsRelative=" line
|
||||||
declare -r pathisrel=$(grep '^IsRelative=' $tfile)
|
declare -r pathisrel=$(sed -n 's/^IsRelative=\([01]\)$/\1/p' <<< "${tempIni}")
|
||||||
|
|
||||||
rm "$tfile"
|
# extracting only the path itself, excluding "Path="
|
||||||
|
PROFILE_PATH=$(sed -n 's/^Path=\(.*\)$/\1/p' <<< "${tempIni}")
|
||||||
# update global variable
|
# update global variable if path is relative
|
||||||
if [[ ${pathisrel#*=} == "1" ]]; then
|
[[ ${pathisrel} == "1" ]] && PROFILE_PATH="$(dirname "${inifile}")/${PROFILE_PATH}"
|
||||||
PROFILE_PATH="$(dirname "$inifile")/${profpath#*=}"
|
|
||||||
else
|
|
||||||
PROFILE_PATH="${profpath#*=}"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getProfilePath () {
|
getProfilePath() {
|
||||||
declare -r f1=~/Library/Application\ Support/Firefox/profiles.ini
|
declare -r f1=~/Library/Application\ Support/Firefox/profiles.ini
|
||||||
declare -r f2=~/.mozilla/firefox/profiles.ini
|
declare -r f2=~/.mozilla/firefox/profiles.ini
|
||||||
|
|
||||||
if [ "$PROFILE_PATH" = false ]; then
|
if [ "$PROFILE_PATH" = false ]; then
|
||||||
PROFILE_PATH="$SCRIPT_DIR"
|
PROFILE_PATH="$SCRIPT_DIR"
|
||||||
elif [ "$PROFILE_PATH" = 'list' ]; then
|
elif [ "$PROFILE_PATH" = 'list' ]; then
|
||||||
local ini=''
|
|
||||||
if [[ -f "$f1" ]]; then
|
if [[ -f "$f1" ]]; then
|
||||||
ini="$f1"
|
readIniFile "$f1" # updates PROFILE_PATH or exits on error
|
||||||
elif [[ -f "$f2" ]]; then
|
elif [[ -f "$f2" ]]; then
|
||||||
ini="$f2"
|
readIniFile "$f2"
|
||||||
else
|
else
|
||||||
echo -e "${RED}Error: Sorry, -l is not supported for your OS${NC}"
|
echo -e "${RED}Error: Sorry, -l is not supported for your OS${NC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
readIniFile "$ini" # updates PROFILE_PATH or exits on error
|
|
||||||
#else
|
#else
|
||||||
# PROFILE_PATH already set by user with -p
|
# PROFILE_PATH already set by user with -p
|
||||||
fi
|
fi
|
||||||
@ -197,62 +181,54 @@ getProfilePath () {
|
|||||||
#########################
|
#########################
|
||||||
|
|
||||||
# Returns the version number of a updater.sh file
|
# Returns the version number of a updater.sh file
|
||||||
get_updater_version () {
|
get_updater_version() {
|
||||||
echo $(sed -n '5 s/.*[[:blank:]]\([[:digit:]]*\.[[:digit:]]*\)/\1/p' "$1")
|
echo "$(sed -n '5 s/.*[[:blank:]]\([[:digit:]]*\.[[:digit:]]*\)/\1/p' "$1")"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Update updater.sh
|
# Update updater.sh
|
||||||
# Default: Check for update, if available, ask user if they want to execute it
|
# Default: Check for update, if available, ask user if they want to execute it
|
||||||
# Args:
|
# Args:
|
||||||
# -donotupdate: New version will not be looked for and update will not occur
|
# -d: New version will not be looked for and update will not occur
|
||||||
# -update: Check for update, if available, execute without asking
|
# -u: Check for update, if available, execute without asking
|
||||||
update_updater () {
|
update_updater() {
|
||||||
if [ $UPDATE = 'no' ]; then
|
[ "$UPDATE" = 'no' ] && return 0 # User signified not to check for updates
|
||||||
return 0 # User signified not to check for updates
|
|
||||||
fi
|
|
||||||
|
|
||||||
declare -r tmpfile=$(download_file 'https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/updater.sh')
|
declare -r tmpfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/updater.sh')"
|
||||||
|
[ -z "${tmpfile}" ] && echo -e "${RED}Error! Could not download updater.sh${NC}" && return 1 # check if download failed
|
||||||
|
|
||||||
if [[ $(get_updater_version "${SCRIPT_DIR}/updater.sh") < $(get_updater_version "${tmpfile}") ]]; then
|
if [[ $(get_updater_version "$SCRIPT_FILE") < $(get_updater_version "${tmpfile}") ]]; then
|
||||||
if [ $UPDATE = 'check' ]; then
|
if [ "$UPDATE" = 'check' ]; then
|
||||||
echo -e "There is a newer version of updater.sh available. ${RED}Update and execute Y/N?${NC}"
|
echo -e "There is a newer version of updater.sh available. ${RED}Update and execute Y/N?${NC}"
|
||||||
read -p "" -n 1 -r
|
read -p "" -n 1 -r
|
||||||
echo -e "\n\n"
|
echo -e "\n\n"
|
||||||
if [[ $REPLY =~ ^[Nn]$ ]]; then
|
[[ $REPLY =~ ^[Yy]$ ]] || return 0 # Update available, but user chooses not to update
|
||||||
return 0 # Update available, but user chooses not to update
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
return 0 # No update available
|
return 0 # No update available
|
||||||
fi
|
fi
|
||||||
mv "${tmpfile}" "${SCRIPT_DIR}/updater.sh"
|
mv "${tmpfile}" "$SCRIPT_FILE"
|
||||||
chmod u+x "${SCRIPT_DIR}/updater.sh"
|
chmod u+x "$SCRIPT_FILE"
|
||||||
"${SCRIPT_DIR}/updater.sh" "$@" -d
|
"$SCRIPT_FILE" "$@" -d
|
||||||
exit 1
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# Update user.js #
|
# Update user.js #
|
||||||
#########################
|
#########################
|
||||||
|
|
||||||
# Returns version number of a user.js file
|
# Returns version number of a user.js file
|
||||||
get_userjs_version () {
|
get_userjs_version() {
|
||||||
if [ -e $1 ]; then
|
[ -e "$1" ] && echo "$(sed -n '4p' "$1")" || echo "Not detected."
|
||||||
echo "$(sed -n '4p' "$1")"
|
|
||||||
else
|
|
||||||
echo "Not detected."
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
add_override () {
|
add_override() {
|
||||||
input=$1
|
input=$1
|
||||||
if [ -f "$input" ]; then
|
if [ -f "$input" ]; then
|
||||||
echo "" >> user.js
|
echo "" >> user.js
|
||||||
cat "$input" >> user.js
|
cat "$input" >> user.js
|
||||||
echo -e "Status: ${GREEN}Override file appended:${NC} ${input}"
|
echo -e "Status: ${GREEN}Override file appended:${NC} ${input}"
|
||||||
elif [ -d "$input" ]; then
|
elif [ -d "$input" ]; then
|
||||||
FSAVEIFS=$IFS
|
SAVEIFS=$IFS
|
||||||
IFS=$'\n\b' # Set IFS
|
IFS=$'\n\b' # Set IFS
|
||||||
FILES="${input}"/*.js
|
FILES="${input}"/*.js
|
||||||
for f in $FILES
|
for f in $FILES
|
||||||
@ -265,26 +241,27 @@ add_override () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_comments () { # expects 2 arguments: from-file and to-file
|
remove_comments() { # expects 2 arguments: from-file and to-file
|
||||||
sed -e 's/^[[:space:]]*\/\/.*$//' -e '/^\/\*/,/\*\//d' -e '/^[[:space:]]*$/d' -e 's/);[[:space:]]*\/\/.*/);/' "$1" > "$2"
|
sed -e '/^\/\*.*\*\/[[:space:]]*$/d' -e '/^\/\*/,/\*\//d' -e 's|^[[:space:]]*//.*$||' -e '/^[[:space:]]*$/d' -e 's|);[[:space:]]*//.*|);|' "$1" > "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Applies latest version of user.js and any custom overrides
|
# Applies latest version of user.js and any custom overrides
|
||||||
update_userjs () {
|
update_userjs() {
|
||||||
declare -r newfile=$(download_file 'https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js')
|
declare -r newfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/user.js')"
|
||||||
|
[ -z "${newfile}" ] && echo -e "${RED}Error! Could not download user.js${NC}" && return 1 # check if download failed
|
||||||
|
|
||||||
echo 'Please observe the following information:'
|
echo -e "Please observe the following information:
|
||||||
echo -e "\tFirefox profile: ${ORANGE}$(pwd)${NC}"
|
Firefox profile: ${ORANGE}$(pwd)${NC}
|
||||||
echo -e "\tAvailable online: ${ORANGE}$(get_userjs_version $newfile)${NC}"
|
Available online: ${ORANGE}$(get_userjs_version "$newfile")${NC}
|
||||||
echo -e "\tCurrently using: ${ORANGE}$(get_userjs_version user.js)\n${NC}\n"
|
Currently using: ${ORANGE}$(get_userjs_version user.js)${NC}\n\n"
|
||||||
|
|
||||||
if [ $CONFIRM = 'yes' ]; then
|
if [ "$CONFIRM" = 'yes' ]; then
|
||||||
echo -e "This script will update to the latest user.js file and append any custom configurations from user-overrides.js. ${RED}Continue Y/N? ${NC}"
|
echo -e "This script will update to the latest user.js file and append any custom configurations from user-overrides.js. ${RED}Continue Y/N? ${NC}"
|
||||||
read -p "" -n 1 -r
|
read -p "" -n 1 -r
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
if [[ $REPLY =~ ^[Nn]$ ]]; then
|
if ! [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
echo -e "${RED}Process aborted${NC}"
|
echo -e "${RED}Process aborted${NC}"
|
||||||
rm $newfile
|
rm "$newfile"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -298,9 +275,7 @@ update_userjs () {
|
|||||||
# backup user.js
|
# backup user.js
|
||||||
mkdir -p userjs_backups
|
mkdir -p userjs_backups
|
||||||
local bakname="userjs_backups/user.js.backup.$(date +"%Y-%m-%d_%H%M")"
|
local bakname="userjs_backups/user.js.backup.$(date +"%Y-%m-%d_%H%M")"
|
||||||
if [ $BACKUP = 'single' ]; then
|
[ "$BACKUP" = 'single' ] && bakname='userjs_backups/user.js.backup'
|
||||||
bakname='userjs_backups/user.js.backup'
|
|
||||||
fi
|
|
||||||
cp user.js "$bakname" &>/dev/null
|
cp user.js "$bakname" &>/dev/null
|
||||||
|
|
||||||
mv "${newfile}" user.js
|
mv "${newfile}" user.js
|
||||||
@ -313,8 +288,10 @@ update_userjs () {
|
|||||||
|
|
||||||
# apply overrides
|
# apply overrides
|
||||||
if [ "$SKIPOVERRIDE" = false ]; then
|
if [ "$SKIPOVERRIDE" = false ]; then
|
||||||
while IFS=',' read -ra FILE; do
|
while IFS=',' read -ra FILES; do
|
||||||
add_override "$FILE"
|
for FILE in "${FILES[@]}"; do
|
||||||
|
add_override "$FILE"
|
||||||
|
done
|
||||||
done <<< "$OVERRIDE"
|
done <<< "$OVERRIDE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -324,24 +301,22 @@ update_userjs () {
|
|||||||
past_nocomments='userjs_diffs/past_userjs.txt'
|
past_nocomments='userjs_diffs/past_userjs.txt'
|
||||||
current_nocomments='userjs_diffs/current_userjs.txt'
|
current_nocomments='userjs_diffs/current_userjs.txt'
|
||||||
|
|
||||||
remove_comments $pastuserjs $past_nocomments
|
remove_comments "$pastuserjs" "$past_nocomments"
|
||||||
remove_comments user.js $current_nocomments
|
remove_comments user.js "$current_nocomments"
|
||||||
|
|
||||||
diffname="userjs_diffs/diff_$(date +"%Y-%m-%d_%H%M").txt"
|
diffname="userjs_diffs/diff_$(date +"%Y-%m-%d_%H%M").txt"
|
||||||
diff=$(diff -w -B -U 0 $past_nocomments $current_nocomments)
|
diff=$(diff -w -B -U 0 "$past_nocomments" "$current_nocomments")
|
||||||
if [ ! -z "$diff" ]; then
|
if [ -n "$diff" ]; then
|
||||||
echo "$diff" > "$diffname"
|
echo "$diff" > "$diffname"
|
||||||
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
|
[ "$BACKUP" = 'multiple' ] && rm "$bakname" &>/dev/null
|
||||||
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
|
||||||
|
|
||||||
if [ "$VIEW" = true ]; then open_file "${PWD}/user.js"; fi
|
[ "$VIEW" = true ] && open_file "${PWD}/user.js"
|
||||||
}
|
}
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
@ -349,16 +324,9 @@ update_userjs () {
|
|||||||
#########################
|
#########################
|
||||||
|
|
||||||
if [ $# != 0 ]; then
|
if [ $# != 0 ]; then
|
||||||
readonly legacy_lc=$(echo $1 | tr '[A-Z]' '[a-z]')
|
|
||||||
# Display usage if first argument is -help or --help
|
# Display usage if first argument is -help or --help
|
||||||
if [ $1 = '--help' ] || [ $1 = '-help' ]; then
|
if [ "$1" = '--help' ] || [ "$1" = '-help' ]; then
|
||||||
usage
|
usage
|
||||||
elif [ $legacy_lc = '-donotupdate' ]; then
|
|
||||||
UPDATE='no'
|
|
||||||
legacy_argument $1
|
|
||||||
elif [ $legacy_lc = '-update' ]; then
|
|
||||||
UPDATE='yes'
|
|
||||||
legacy_argument $1
|
|
||||||
else
|
else
|
||||||
while getopts ":hp:ludsno:bcvre" opt; do
|
while getopts ":hp:ludsno:bcvre" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
@ -399,11 +367,12 @@ if [ $# != 0 ]; then
|
|||||||
ESR=true
|
ESR=true
|
||||||
;;
|
;;
|
||||||
r)
|
r)
|
||||||
tfile=$(download_file 'https://raw.githubusercontent.com/ghacksuserjs/ghacks-user.js/master/user.js')
|
tfile="$(download_file 'https://raw.githubusercontent.com/arkenfox/user.js/master/user.js')"
|
||||||
mv $tfile "${tfile}.js"
|
[ -z "${tfile}" ] && echo -e "${RED}Error! Could not download user.js${NC}" && exit 1 # check if download failed
|
||||||
|
mv "$tfile" "${tfile}.js"
|
||||||
echo -e "${ORANGE}Warning: user.js was saved to temporary file ${tfile}.js${NC}"
|
echo -e "${ORANGE}Warning: user.js was saved to temporary file ${tfile}.js${NC}"
|
||||||
open_file "${tfile}.js"
|
open_file "${tfile}.js"
|
||||||
exit 1
|
exit 0
|
||||||
;;
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo -e "${RED}\n Error! Invalid option: -$OPTARG${NC}" >&2
|
echo -e "${RED}\n Error! Invalid option: -$OPTARG${NC}" >&2
|
||||||
@ -411,7 +380,7 @@ if [ $# != 0 ]; then
|
|||||||
;;
|
;;
|
||||||
:)
|
:)
|
||||||
echo -e "${RED}Error! Option -$OPTARG requires an argument.${NC}" >&2
|
echo -e "${RED}Error! Option -$OPTARG requires an argument.${NC}" >&2
|
||||||
exit 1
|
exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -419,9 +388,20 @@ 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" || exit 1
|
||||||
|
|
||||||
|
# Check if any files have the owner as root/wheel.
|
||||||
|
if [ -n "$(find ./ -user 0)" ]; then
|
||||||
|
printf 'It looks like this script was previously run with elevated privileges,
|
||||||
|
you will need to change ownership of the following files to your user:\n'
|
||||||
|
find . -user 0
|
||||||
|
cd "$CURRDIR"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
update_userjs
|
||||||
|
|
||||||
cd "$CURRDIR"
|
cd "$CURRDIR"
|
||||||
|
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 3.1 KiB |
BIN
wikipiki/icon-librewolf.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
wikipiki/icon-mull.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
wikipiki/icon-mullvadbrowser.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
wikipiki/icon-torbrowser.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 18 KiB |
BIN
wikipiki/parseError.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 26 KiB |
BIN
wikipiki/rfpCanvas.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
wikipiki/rfpCanvasException.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
wikipiki/uboCustom.png
Normal file
After Width: | Height: | Size: 12 KiB |