mirror of
https://github.com/PurpleI2P/i2pdbrowser.git
synced 2024-12-06 19:16:29 +01:00
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e57722acf6 | |||
| af9bae374c | |||
| 7b9e5e03fd | |||
| e813faef70 | |||
| 4ac93b47f4 | |||
| 2cc0cfddfa | |||
| a67e602620 | |||
| 64e96852ae | |||
| 9188271b06 | |||
| 4eac450fc3 | |||
| 8968f94f81 | |||
| c86545c7b7 | |||
| 25082974b0 | |||
| 7782e323d8 | |||
| f5e1c8ed97 | |||
| 9f799f1f58 | |||
| b4a1d778cf |
@@ -0,0 +1 @@
|
||||
.DS_Store
|
||||
@@ -15,3 +15,6 @@ Since 1.2.6 pre-built version for Windows is excluded from repository, but relea
|
||||
### TODO:
|
||||
* English version of Windows how-to for using it.
|
||||
* Russian translation of README, both this one and the one for /windows
|
||||
|
||||
### Release signing
|
||||
Release hashsums signed with key [66f6c87b98ebcfe2](http://keyserver.ubuntu.com/pks/lookup?op=vindex&search=0x66F6C87B98EBCFE2)
|
||||
|
||||
+3
-3
@@ -1,3 +1,3 @@
|
||||
./app
|
||||
./data
|
||||
./firefox-portable
|
||||
/app
|
||||
/data
|
||||
/firefox-portable
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
pub 4096R/98EBCFE2 2016-12-14
|
||||
uid R4SAS (r4sas) <r4sas@i2pmail.org>
|
||||
sub 4096R/9206EEF0 2016-12-14
|
||||
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1
|
||||
|
||||
mQINBFhQs1MBEADFP+QJN7RE2F9hDEhXqtVAWFP1QDmdjEF4o7hyaDFqzfm0T/6D
|
||||
rU5AJcDxynZA6ZBQsPfe39Q7tXzGO0xIOqBnOw+pHbnvBz550WzRMhHeGEyHyC/R
|
||||
0oVper1U71+bbB4G07S+mKTPrizrAHLbsAvWOKqN9xufKNxBMh4FhnMWaHNByahZ
|
||||
S6UVKEuE9MQnokUkjaUojmH/tZ2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pkuBn
|
||||
VexHspozT87DW06eqcTBr9eSrfRI28RDABEBAAGJAh8EGAEKAAkFAlhQs1MCGwwA
|
||||
CgkQZvbIe5jrz+LxjA//YVdUP4Ua9zzOUXkT5HdFsnwV3L842x0Ipk7WYNcz/3Ad
|
||||
mSpvQOXk2hRrtuiSYxzuGHacpwpiG/DGoo/VQu/LtNPE89vPnD1FjotxCiB8/g9D
|
||||
I3Xdfd2P3/9DwRG8CSUo06wCFUusx9V4bWKXT8hqfBvKyNZk6QXD6F5Go63vZpWi
|
||||
9gCb4Fm6XCE+s9LPMGFEkjxIOeJqfe3bDxeJ0DaOPhfu7ujxTjyvfc9fJ05f1iuy
|
||||
cn6I3T+zhiBr87qVvB3xUXOX6KLpicod4o2vpY4ozpW3aDBdeWaTmViR14Hj9ShG
|
||||
etLSfaX4GlyHwHbSkFO+8C+RgWSpGId/s3Fis0rtk7xLtr4qrA1ELCviYAjVQBgE
|
||||
s9yNUxbV7FzwpxKrV7SXArQBP4DB2w8p9Ko5Y8d1C2615qwA9K8vNOj2plHwntse
|
||||
mGdXQppq8bJfNK1xDBGOesT7LAkX1jG64kAnb0xbdI7j4ZIGW56e6BhE04b3utOO
|
||||
IcAHlNyl9hruV3/xVoTJDv4VAD6+QKYkoey+GUdAkZApvW5Vbrk8dIg7Ht9KawZX
|
||||
rVv3qKsqHA6upjUfV16V958LBi1dI/zytIVg6NSm04THgNGqSAypX84JdkFFNHiE
|
||||
Vkj6j5Is7PO0Tjy0/xvoFrbvpSJHPTsYYTyDdS8AiK1JDpNBb71r2U89peXSiv8=
|
||||
=BDxP
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
@@ -1,30 +0,0 @@
|
||||
eb8cc990e3abdcce7004b1d70c566fd92c1d9252a37f28341a8e1fd29c2694ce614d6d8389e4fced427cbcfe688c3a2f2b498dc84ce0229a605892fd8496d62c build/preferences/syspref.js
|
||||
7108c42e7e863cd3501031b497f6a27f2420c2e29ae16ba4ebfb67e7608ffdc1b3ea14b62d87fde786bc059c811d1d62785843bcec5a1d6c578e8652def3c894 build/profile/xulstore.json
|
||||
94bf052b929dac72959f498a43b66ab6990ebc3f3f24e4041416471e69988290fd212062e1a6b2070f40a46658a25db346e584bcebd542840fea8bf02e587514 build/profile/bookmarks.html
|
||||
9ef9ab52683229adb6bcf7679cc39e02f7d2be4a5734838a113cd7149e60e2245b869dc45b4b8843913433281c1ecd93193b476efd915e8afeb109b17e376bb5 build/profile/prefs.js
|
||||
99a74ca25a22d55de241cc45fc874c79937eb2e2287b607c1b987d8891c9b5bd1d704c46d6cde8db793927bff22349e5d6509cc453ed9d7f7f31989c05bf631b build/build.sh
|
||||
148030732cc3990d2ed611b22eb6b7f91e5b867518fdd0c52ad11f82ccbb71a75c91b3bb6d12de750902b9d33770e15d2a80132e58167d8ee9155d4f184b4d4a i2pd/i2pd.conf
|
||||
6e4faa0db2594e1443a7787462fc629b69aa691a3ca0e7133b1fdb5ac1bfca35a951ed29d16cf24ae7083bcc8bc31b096b829ac589967c6b591908f12f82dddf i2pd/i2pd-i386
|
||||
49e26ab09e610776f8b98035042c7bfd79c3f952859745eb34c6edb9fed487a457ce0e3b6cb5b64e3eb447e0325a69630fc3c2dfe240f049639c817d13c8abd0 i2pd/i2pd
|
||||
662c515175e401d6ab3ccb9d36a17f91762b3c35d6eb2c58c72e4c2bdf1fff5b7c904622c03d2c041193b1b01b75f2f470726ce8741f9e72e6aab7e128c43452 i2pd/certificates/router/orignal_at_mail.i2p.crt
|
||||
78649814a1f06933768873edd171f2be24227b31a21e3c3cd63d8c0a933af1aec48b7b595ea9c9298df24cc32fbb71e350846efd7c6384e2f923ec2dab3578c4 i2pd/certificates/family/mca2-i2p.crt
|
||||
1bd66f93e71fb41ad77b9caeb6ec873dd9f40bae4a90bd3eaa331fcaf45c4a4779b567cb89730ce99b2dff609bb26ee383c3d904d1ad852299d5bc5fc6ed17e1 i2pd/certificates/family/i2pd-dev.crt
|
||||
ce565903357ca19724371c57fd68d071b7ea546c354f1b82d3afd4514db35598c6a36746b8fdb5caf0e1fb1af205d3f21dc4dc64863b431d9c18d75a3d9b7cb8 i2pd/certificates/family/volatile.crt
|
||||
2297e46d39a6edb7a0dd7adf3a1488b190fef6e50ad1794733709adaa547d0320485202c7627ef7f3a41c8ade09ed3ea7c562ddce2788f2c78935c88ccd10b60 i2pd/certificates/family/gostcoin.crt
|
||||
b6c6f6ac207a058ae6f61e8e3a2374822af51cff7d39ef8810dedee9dd84302d0c04c569aa2c3e901aa8db1f46f46a13dac83df289d0b23faaaa7dd6d9da281d i2pd/certificates/family/i2p-dev.crt
|
||||
fb8c0090b86af4109f931804c8cfe44984a6e167b150725873fb45f60fd3e4ecf10ea98e139bf708646ce935dbdd859ff60f12e5ae95d656e7fece160cecc1db i2pd/certificates/reseed/hottuna_at_mail.i2p.crt
|
||||
11cfcdb54739b618f27b58a7ce0d32c4cf49abd87c5642fd0dca6de9e65cb3e7aff670f500891911830acec92f86cf9ba01bca35ea7dd98bcc7cb4b3956a05f9 i2pd/certificates/reseed/r4sas_at_mail.i2p.crt
|
||||
55224b77505aca8de01ae692d4ec63c591edf557a243fed50257b80bdfa1b04594373f65697ece94ec6f13f252b96bff468d7d886cc6fbe07fd0c534ce4658a3 i2pd/certificates/reseed/igor_at_novg.net.crt
|
||||
a26558600bdde3b131c26268968d484d5a4de6d9d12aac65e967a85db4f3560730421ee9a3099807fff79e9e0a0ac0f6e081b845451c1d0903dcee3c83cb36a7 i2pd/certificates/reseed/bugme_at_mail.i2p.crt
|
||||
4d294022339f31880a393be1a843d8ea021c7c38e6289fd90befaf3b4fb2f499f75f9f9e45da649a6c20972e5cc3dda88f82d5bead69846a1b01002b4a34b412 i2pd/certificates/reseed/r4sas-reseed_at_mail.i2p.crt
|
||||
46d4e72689716b886b52865dbc592acdd320488f08058b6e33cc9736c06d193cb21790d565ec3bb063b994cdce041a199cda9b1a438a7a3df76505a2e32341be i2pd/certificates/reseed/backup_at_mail.i2p.crt
|
||||
89a26ec55be179e5b8a00e8806ddfa5d8bf0c9b3b379247ec9477c326f0ed58e5bb25fb029304ee24b800755039f0fd42a8cff49350588c406cbea240ee94539 i2pd/certificates/reseed/atomike_at_mail.i2p.crt
|
||||
0468afb62a372dc4c98dcde2e17e62b4a73693b1516c9dddcc771ee7f47bcbbd0184498bd225cf77bf19ca4ab0f29df1235003f943412ab25ad92c47fe9141b3 i2pd/certificates/reseed/creativecowpat_at_mail.i2p.crt
|
||||
4389d70d40ff74bc02eee5bb4a96d80585a3684e9b457d216b0723def2cde2107e82a8239ee7325a08822a4ee17dd70237932fa6833dc31d21a14b2355dbb5b1 i2pd/certificates/reseed/meeh_at_mail.i2p.crt
|
||||
1114d76b59a9dc0a3075ea5dcdcf270107240793bb82160c9f21c2fad7c581d358915fabe323b381ca95ce8f99a7e4536d6e183f4bdb67676dd581bfce5d4c9f i2pd/certificates/reseed/zmx_at_mail.i2p.crt
|
||||
3487bba6ba8e1f1d5f8759740bf8194379ad258aba14714dcd1338d12924c9ea0b849cf3914cb447911d6907d254ee8b82cae2ba4e80128f646a9d9656dd7c07 i2pd/certificates/reseed/lazygravy_at_mail.i2p.crt
|
||||
78c6375c1fff1e06599429606f1ad84ed2244a0e6c9ff15f8abcf150f0085b9793548bb42ed1b3ae534e77826c180aaee4ef3417d8beddd707481004c475ce0a i2pd/certificates/reseed/echelon_at_mail.i2p.crt
|
||||
7d832170f5e33de9cd11d8ab73f13aa98d7541edcae97f0ea98a45a09d6899aece4ff1e16362b53ba16ab1f1e3cf74ce8304c1741f6a8474ce4227274475fb36 i2pd/i2pd-amd64
|
||||
13fd2563bbc0486ca5c87ac5aa2509250a0ef300125a42548dff2dc4f06f3cd39f6a12cd36f9008b7e6ceba97011f8d1acdd2b0bbc8ba07dfd96515f9bc623fc i2pd/addressbook/addresses.csv
|
||||
dfeb4a93ba399b1b49b351a7478288de205e727ec6edbbc42ab91667b5400c1ac582b0883758d4e93c421e6942dacbd0e57d77c3870a1378951a06de214ea8e7 i2pd/tunnels.conf
|
||||
739eaf061f36899036d55d9e239f7f39f79bcbacae1af81bfb642f63f57407761751234866bae38b558b0109e4239d10451876e61c3f52a8273168f2a350aa51 README.md
|
||||
@@ -1,50 +0,0 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
eb8cc990e3abdcce7004b1d70c566fd92c1d9252a37f28341a8e1fd29c2694ce614d6d8389e4fced427cbcfe688c3a2f2b498dc84ce0229a605892fd8496d62c build/preferences/syspref.js
|
||||
7108c42e7e863cd3501031b497f6a27f2420c2e29ae16ba4ebfb67e7608ffdc1b3ea14b62d87fde786bc059c811d1d62785843bcec5a1d6c578e8652def3c894 build/profile/xulstore.json
|
||||
94bf052b929dac72959f498a43b66ab6990ebc3f3f24e4041416471e69988290fd212062e1a6b2070f40a46658a25db346e584bcebd542840fea8bf02e587514 build/profile/bookmarks.html
|
||||
9ef9ab52683229adb6bcf7679cc39e02f7d2be4a5734838a113cd7149e60e2245b869dc45b4b8843913433281c1ecd93193b476efd915e8afeb109b17e376bb5 build/profile/prefs.js
|
||||
99a74ca25a22d55de241cc45fc874c79937eb2e2287b607c1b987d8891c9b5bd1d704c46d6cde8db793927bff22349e5d6509cc453ed9d7f7f31989c05bf631b build/build.sh
|
||||
148030732cc3990d2ed611b22eb6b7f91e5b867518fdd0c52ad11f82ccbb71a75c91b3bb6d12de750902b9d33770e15d2a80132e58167d8ee9155d4f184b4d4a i2pd/i2pd.conf
|
||||
6e4faa0db2594e1443a7787462fc629b69aa691a3ca0e7133b1fdb5ac1bfca35a951ed29d16cf24ae7083bcc8bc31b096b829ac589967c6b591908f12f82dddf i2pd/i2pd-i386
|
||||
49e26ab09e610776f8b98035042c7bfd79c3f952859745eb34c6edb9fed487a457ce0e3b6cb5b64e3eb447e0325a69630fc3c2dfe240f049639c817d13c8abd0 i2pd/i2pd
|
||||
662c515175e401d6ab3ccb9d36a17f91762b3c35d6eb2c58c72e4c2bdf1fff5b7c904622c03d2c041193b1b01b75f2f470726ce8741f9e72e6aab7e128c43452 i2pd/certificates/router/orignal_at_mail.i2p.crt
|
||||
78649814a1f06933768873edd171f2be24227b31a21e3c3cd63d8c0a933af1aec48b7b595ea9c9298df24cc32fbb71e350846efd7c6384e2f923ec2dab3578c4 i2pd/certificates/family/mca2-i2p.crt
|
||||
1bd66f93e71fb41ad77b9caeb6ec873dd9f40bae4a90bd3eaa331fcaf45c4a4779b567cb89730ce99b2dff609bb26ee383c3d904d1ad852299d5bc5fc6ed17e1 i2pd/certificates/family/i2pd-dev.crt
|
||||
ce565903357ca19724371c57fd68d071b7ea546c354f1b82d3afd4514db35598c6a36746b8fdb5caf0e1fb1af205d3f21dc4dc64863b431d9c18d75a3d9b7cb8 i2pd/certificates/family/volatile.crt
|
||||
2297e46d39a6edb7a0dd7adf3a1488b190fef6e50ad1794733709adaa547d0320485202c7627ef7f3a41c8ade09ed3ea7c562ddce2788f2c78935c88ccd10b60 i2pd/certificates/family/gostcoin.crt
|
||||
b6c6f6ac207a058ae6f61e8e3a2374822af51cff7d39ef8810dedee9dd84302d0c04c569aa2c3e901aa8db1f46f46a13dac83df289d0b23faaaa7dd6d9da281d i2pd/certificates/family/i2p-dev.crt
|
||||
fb8c0090b86af4109f931804c8cfe44984a6e167b150725873fb45f60fd3e4ecf10ea98e139bf708646ce935dbdd859ff60f12e5ae95d656e7fece160cecc1db i2pd/certificates/reseed/hottuna_at_mail.i2p.crt
|
||||
11cfcdb54739b618f27b58a7ce0d32c4cf49abd87c5642fd0dca6de9e65cb3e7aff670f500891911830acec92f86cf9ba01bca35ea7dd98bcc7cb4b3956a05f9 i2pd/certificates/reseed/r4sas_at_mail.i2p.crt
|
||||
55224b77505aca8de01ae692d4ec63c591edf557a243fed50257b80bdfa1b04594373f65697ece94ec6f13f252b96bff468d7d886cc6fbe07fd0c534ce4658a3 i2pd/certificates/reseed/igor_at_novg.net.crt
|
||||
a26558600bdde3b131c26268968d484d5a4de6d9d12aac65e967a85db4f3560730421ee9a3099807fff79e9e0a0ac0f6e081b845451c1d0903dcee3c83cb36a7 i2pd/certificates/reseed/bugme_at_mail.i2p.crt
|
||||
4d294022339f31880a393be1a843d8ea021c7c38e6289fd90befaf3b4fb2f499f75f9f9e45da649a6c20972e5cc3dda88f82d5bead69846a1b01002b4a34b412 i2pd/certificates/reseed/r4sas-reseed_at_mail.i2p.crt
|
||||
46d4e72689716b886b52865dbc592acdd320488f08058b6e33cc9736c06d193cb21790d565ec3bb063b994cdce041a199cda9b1a438a7a3df76505a2e32341be i2pd/certificates/reseed/backup_at_mail.i2p.crt
|
||||
89a26ec55be179e5b8a00e8806ddfa5d8bf0c9b3b379247ec9477c326f0ed58e5bb25fb029304ee24b800755039f0fd42a8cff49350588c406cbea240ee94539 i2pd/certificates/reseed/atomike_at_mail.i2p.crt
|
||||
0468afb62a372dc4c98dcde2e17e62b4a73693b1516c9dddcc771ee7f47bcbbd0184498bd225cf77bf19ca4ab0f29df1235003f943412ab25ad92c47fe9141b3 i2pd/certificates/reseed/creativecowpat_at_mail.i2p.crt
|
||||
4389d70d40ff74bc02eee5bb4a96d80585a3684e9b457d216b0723def2cde2107e82a8239ee7325a08822a4ee17dd70237932fa6833dc31d21a14b2355dbb5b1 i2pd/certificates/reseed/meeh_at_mail.i2p.crt
|
||||
1114d76b59a9dc0a3075ea5dcdcf270107240793bb82160c9f21c2fad7c581d358915fabe323b381ca95ce8f99a7e4536d6e183f4bdb67676dd581bfce5d4c9f i2pd/certificates/reseed/zmx_at_mail.i2p.crt
|
||||
3487bba6ba8e1f1d5f8759740bf8194379ad258aba14714dcd1338d12924c9ea0b849cf3914cb447911d6907d254ee8b82cae2ba4e80128f646a9d9656dd7c07 i2pd/certificates/reseed/lazygravy_at_mail.i2p.crt
|
||||
78c6375c1fff1e06599429606f1ad84ed2244a0e6c9ff15f8abcf150f0085b9793548bb42ed1b3ae534e77826c180aaee4ef3417d8beddd707481004c475ce0a i2pd/certificates/reseed/echelon_at_mail.i2p.crt
|
||||
7d832170f5e33de9cd11d8ab73f13aa98d7541edcae97f0ea98a45a09d6899aece4ff1e16362b53ba16ab1f1e3cf74ce8304c1741f6a8474ce4227274475fb36 i2pd/i2pd-amd64
|
||||
13fd2563bbc0486ca5c87ac5aa2509250a0ef300125a42548dff2dc4f06f3cd39f6a12cd36f9008b7e6ceba97011f8d1acdd2b0bbc8ba07dfd96515f9bc623fc i2pd/addressbook/addresses.csv
|
||||
dfeb4a93ba399b1b49b351a7478288de205e727ec6edbbc42ab91667b5400c1ac582b0883758d4e93c421e6942dacbd0e57d77c3870a1378951a06de214ea8e7 i2pd/tunnels.conf
|
||||
739eaf061f36899036d55d9e239f7f39f79bcbacae1af81bfb642f63f57407761751234866bae38b558b0109e4239d10451876e61c3f52a8273168f2a350aa51 README.md
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1
|
||||
|
||||
iQIcBAEBCgAGBQJaZvoeAAoJEGb2yHuY68/iDRkQALhgfOeQltoM1RNqkK8njUtM
|
||||
qyNHyyd2nNJ0tjKSE8E3x3rStV8xHQmTXbtuNpMOBTvFTGUTEQ2Odr3f4HyxRSLz
|
||||
b4BIgnJpeE03LvfahulI0p11D3Kp1EGf2VYXJiVsLe1Z40u/OTAbZf67dmcuggjc
|
||||
4BffAXYvHM36JHGTUQPwZYo6CBKZ3KDLk+5LWtg0Vs9kqcnOMfT6E/6w5RxCJtK5
|
||||
YKjgC48zc/e8/jpsN6nwvhX5cVqY5JrYCejCmjzK2qRS3niytVrS/TbEqB6ikDj8
|
||||
oOd67aXYxxAnr1KeavTBqPzcDKY+bTgNinE800z9+dsUbK4pcTSK9yhAceji5vL3
|
||||
/gCjDl8juWwkqDnlFulyQyk9P7ufT+FOH2NPPri1VOEBmGG9BLV0+ypWX24XqQAT
|
||||
so75eELZ/Jm9vpQ4u/5dmtRNcS4V2yW5oA5mHRxoT6OU4e10lciVOYhYPZwZce9q
|
||||
1l8zvUEpYUUwIpGvU9rS/gS+GfiBp4sulPGk3C8b/6PPRyFph/jLCbFyaCYhL3Os
|
||||
1X9CJvk5B7h+gLy3P0hX6EmtolIcpOB5pV/MKVaeou/JV8zn9ho0UbA0slMBrnBJ
|
||||
qWiruayVEu9KBh2Kf2GoZ5dxXiLuycIButR/vNjmAjRnqy8uAL7J+JfFzGrIjKsp
|
||||
0dX4WGtX7rEx8O9GsA0w
|
||||
=zB77
|
||||
-----END PGP SIGNATURE-----
|
||||
@@ -1,14 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2013-2017, The PurpleI2P Project
|
||||
#
|
||||
# Copyright (c) 2013-2019, The PurpleI2P Project
|
||||
# This file is part of Purple I2P project and licensed under BSD3
|
||||
#
|
||||
# See full license text in LICENSE file at top of project tree
|
||||
|
||||
dir=${0%/*}
|
||||
if [ "$dir" = "$0" ]; then
|
||||
dir="."
|
||||
fi
|
||||
cd $dir
|
||||
|
||||
arch=$(uname -m)
|
||||
language=$(echo $LANG | cut -c-5 | sed s/_/-/g)
|
||||
version="52.6.0esr"
|
||||
version="60.7.1esr"
|
||||
application="firefox"
|
||||
ftpmirror="https://ftp.mozilla.org/pub/$application/releases/$version"
|
||||
|
||||
@@ -69,10 +73,20 @@ mkdir ../data
|
||||
|
||||
# Deleting some not needed files
|
||||
rm ../app/crashreporter*
|
||||
rm ../app/minidump-analyzer
|
||||
rm ../app/pingsender
|
||||
rm ../app/precomplete
|
||||
rm ../app/removed-files
|
||||
rm ../app/run-mozilla.sh
|
||||
rm ../app/update*
|
||||
rm ../app/browser/blocklist.xml
|
||||
rm ../app/browser/crashreporter-override.ini
|
||||
rm ../app/browser/features/aushelper@mozilla.org.xpi
|
||||
rm ../app/browser/features/firefox@getpocket.com.xpi
|
||||
rm ../app/browser/features/followonsearch@mozilla.com.xpi
|
||||
rm ../app/browser/features/formautofill@mozilla.org.xpi
|
||||
rm ../app/browser/features/jaws-esr@mozilla.org.xpi
|
||||
rm ../app/browser/features/onboarding@mozilla.org.xpi
|
||||
rm ../app/browser/features/screenshots@mozilla.org.xpi
|
||||
rm -r ../app/dictionaries
|
||||
# And edit some places
|
||||
sed -i 's/Enabled=1/Enabled=0/g' ../app/application.ini
|
||||
@@ -82,16 +96,15 @@ sed -i 's/ServerURL=.*/ServerURL=-/' ../app/application.ini
|
||||
# Done!
|
||||
|
||||
echo "Downloading language packs..."
|
||||
curl -L -f -# -o ../app/browser/extensions/langpack-ru@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605634/russian_ru_language_pack-52.0-fx.xpi?src=version-history
|
||||
curl -L -f -# -o ../app/browser/extensions/langpack-en-US@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605596/english_us_language_pack-52.0-fx.xpi?src=version-history
|
||||
curl -L -f -# -o ../app/browser/extensions/langpack-ru@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/978562/russian_ru_language_pack-60.0buildid20180605171542-an+fx.xpi
|
||||
curl -L -f -# -o ../app/browser/extensions/langpack-en-US@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/978493/english_us_language_pack-60.0buildid20180605171542-an+fx.xpi
|
||||
|
||||
echo "Downloading NoScript extension..."
|
||||
curl -L -f -# -o ../app/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi https://addons.mozilla.org/firefox/downloads/file/806790/noscript_security_suite-5.1.8.3-fx+sm.xpi
|
||||
curl -L -f -# -o ../app/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi https://addons.mozilla.org/firefox/downloads/file/3028550/noscript_security_suite-10.6.3-an+fx.xpi
|
||||
|
||||
echo "Adding standard configs..."
|
||||
cp profile/* ../data/
|
||||
mkdir -p ../app/browser/defaults
|
||||
cp -r preferences ../app/browser/defaults/
|
||||
cp -r preferences/* ../app/
|
||||
|
||||
echo '#!/bin/sh' > "../${application}-portable"
|
||||
echo 'dir=${0%/*}' >> "../${application}-portable"
|
||||
@@ -0,0 +1,2 @@
|
||||
[XRE]
|
||||
EnableProfileMigrator=0
|
||||
@@ -0,0 +1 @@
|
||||
resource cck2 modules/
|
||||
@@ -0,0 +1,154 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
var gForceExternalHandler = false;
|
||||
|
||||
XPCOMUtils.defineLazyServiceGetter(this, "extProtocolSvc",
|
||||
"@mozilla.org/uriloader/external-protocol-service;1", "nsIExternalProtocolService");
|
||||
|
||||
var documentObserver = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
if (subject instanceof Ci.nsIDOMWindow && topic == 'content-document-global-created') {
|
||||
var doc = subject.document;
|
||||
doc.addEventListener("DOMContentLoaded", function onLoad(event) {
|
||||
event.target.removeEventListener("DOMContentLoaded", onLoad, false);
|
||||
// If the parent document is a local file, don't do anything
|
||||
// Links will just work
|
||||
if (doc.location.href.indexOf("file://") == 0) {
|
||||
return;
|
||||
}
|
||||
var links = event.target.getElementsByTagName("a");
|
||||
for (var i=0; i < links.length; i++) {
|
||||
var link = links[i];
|
||||
if (link.href.indexOf("file://") != 0) {
|
||||
continue;
|
||||
}
|
||||
link.addEventListener("click", function(link) {
|
||||
return function(event) {
|
||||
event.preventDefault();
|
||||
if (gForceExternalHandler) {
|
||||
extProtocolSvc.loadUrl(Services.io.newURI(link.href, null, null));
|
||||
} else {
|
||||
var target = "_self";
|
||||
if (link.hasAttribute("target")) {
|
||||
target = link.getAttribute("target");
|
||||
}
|
||||
// If we were told somewhere other than current (based on modifier keys), use it
|
||||
var where = whereToOpenLink(event);
|
||||
if (where != "current" || target == "_blank") {
|
||||
sendAsyncMessage("cck2:open-url", {
|
||||
"url": link.href,
|
||||
"where": (target == "_blank") ? "tab" : where
|
||||
});
|
||||
return;
|
||||
}
|
||||
switch (target) {
|
||||
case "_self":
|
||||
link.ownerDocument.location = link.href;
|
||||
break;
|
||||
case "_parent":
|
||||
link.ownerDocument.defaultView.parent.document.location = link.href;
|
||||
break;
|
||||
case "_top":
|
||||
link.ownerDocument.defaultView.top.document.location = link.href;
|
||||
break;
|
||||
default:
|
||||
// Attempt to find the iframe that this goes into
|
||||
var iframes = doc.defaultView.parent.document.getElementsByName(target);
|
||||
if (iframes.length > 0) {
|
||||
iframes[0].contentDocument.location = link.href;
|
||||
} else {
|
||||
link.ownerDocument.location = link.href;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}(link), false);
|
||||
}
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Don't do this check before Firefox 29
|
||||
if (Services.vc.compare(Services.appinfo.version, "29") > 0) {
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy.default.checkloaduri.enabled") == "allAccess") {
|
||||
gForceExternalHandler = !extProtocolSvc.isExposedProtocol('file');
|
||||
Services.obs.addObserver(documentObserver, "content-document-global-created", false);
|
||||
addEventListener("unload", function() {
|
||||
Services.obs.removeObserver(documentObserver, "content-document-global-created", false);
|
||||
})
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
|
||||
/* Copied from http://mxr.mozilla.org/mozilla-central/source/browser/base/content/utilityOverlay.js?raw=1 */
|
||||
|
||||
function getBoolPref(prefname, def)
|
||||
{
|
||||
try {
|
||||
return Services.prefs.getBoolPref(prefname);
|
||||
}
|
||||
catch(er) {
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
||||
/* whereToOpenLink() looks at an event to decide where to open a link.
|
||||
*
|
||||
* The event may be a mouse event (click, double-click, middle-click) or keypress event (enter).
|
||||
*
|
||||
* On Windows, the modifiers are:
|
||||
* Ctrl new tab, selected
|
||||
* Shift new window
|
||||
* Ctrl+Shift new tab, in background
|
||||
* Alt save
|
||||
*
|
||||
* Middle-clicking is the same as Ctrl+clicking (it opens a new tab).
|
||||
*
|
||||
* Exceptions:
|
||||
* - Alt is ignored for menu items selected using the keyboard so you don't accidentally save stuff.
|
||||
* (Currently, the Alt isn't sent here at all for menu items, but that will change in bug 126189.)
|
||||
* - Alt is hard to use in context menus, because pressing Alt closes the menu.
|
||||
* - Alt can't be used on the bookmarks toolbar because Alt is used for "treat this as something draggable".
|
||||
* - The button is ignored for the middle-click-paste-URL feature, since it's always a middle-click.
|
||||
*/
|
||||
function whereToOpenLink( e, ignoreButton, ignoreAlt )
|
||||
{
|
||||
Components.utils.import("resource://gre/modules/AppConstants.jsm");
|
||||
|
||||
// This method must treat a null event like a left click without modifier keys (i.e.
|
||||
// e = { shiftKey:false, ctrlKey:false, metaKey:false, altKey:false, button:0 })
|
||||
// for compatibility purposes.
|
||||
if (!e)
|
||||
return "current";
|
||||
|
||||
var shift = e.shiftKey;
|
||||
var ctrl = e.ctrlKey;
|
||||
var meta = e.metaKey;
|
||||
var alt = e.altKey && !ignoreAlt;
|
||||
|
||||
// ignoreButton allows "middle-click paste" to use function without always opening in a new window.
|
||||
var middle = !ignoreButton && e.button == 1;
|
||||
var middleUsesTabs = true;
|
||||
|
||||
// Don't do anything special with right-mouse clicks. They're probably clicks on context menu items.
|
||||
|
||||
var metaKey = AppConstants.platform == "macosx" ? meta : ctrl;
|
||||
if (metaKey || (middle && middleUsesTabs))
|
||||
return shift ? "tabshifted" : "tab";
|
||||
|
||||
if (alt && getBoolPref("browser.altClickSave", false))
|
||||
return "save";
|
||||
|
||||
if (shift || (middle && !middleUsesTabs))
|
||||
return "window";
|
||||
|
||||
return "current";
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
var gAllowedPasteSites = [];
|
||||
var gAllowedCutCopySites = [];
|
||||
var gDeniedPasteSites = [];
|
||||
var gDeniedCutCopySites = [];
|
||||
var gDefaultPastePolicy = false;
|
||||
var gDefaultCutCopyPolicy = false;
|
||||
|
||||
function allowCutCopy(doc) {
|
||||
var win = doc.defaultView;
|
||||
if (win !== win.top) {
|
||||
// It's an iframe. Use the top level window
|
||||
// for security purposes
|
||||
win = win.top;
|
||||
}
|
||||
|
||||
if (gDefaultCutCopyPolicy == true) {
|
||||
for (var i=0; i < gDeniedCutCopySites.length; i++) {
|
||||
if (win.location.href.indexOf(gDeniedCutCopySites[i]) == 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
for (var i=0; i < gAllowedCutCopySites.length; i++) {
|
||||
if (win.location.href.indexOf(gAllowedCutCopySites[i]) == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function allowPaste(doc) {
|
||||
var win = doc.defaultView;
|
||||
if (win !== win.top) {
|
||||
// It's an iframe. Use the top level window
|
||||
// for security purposes
|
||||
win = win.top;
|
||||
}
|
||||
|
||||
if (gDefaultPastePolicy == true) {
|
||||
for (var i=0; i < gDeniedPasteSites.length; i++) {
|
||||
if (win.location.href.indexOf(gDeniedPasteSites[i]) == 0) {
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
for (var i=0; i < gAllowedPasteSites.length; i++) {
|
||||
if (win.location.href.indexOf(gAllowedPasteSites[i]) == 0) {
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function myExecCommand(doc, originalExecCommand) {
|
||||
return function(aCommandName, aShowDefaultUI, aValueArgument) {
|
||||
switch (aCommandName.toLowerCase()) {
|
||||
case "cut":
|
||||
case "copy":
|
||||
if (allowCutCopy(doc)) {
|
||||
var win = Services.wm.getMostRecentWindow("navigator:browser");
|
||||
win.goDoCommand("cmd_" + aCommandName.toLowerCase());
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "paste":
|
||||
if (allowPaste(doc)) {
|
||||
var win = Services.wm.getMostRecentWindow("navigator:browser");
|
||||
win.goDoCommand("cmd_" + aCommandName.toLowerCase());
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return originalExecCommand.call(doc, aCommandName, aShowDefaultUI, aValueArgument);
|
||||
}
|
||||
}
|
||||
|
||||
function myQueryCommandSupported(doc, originalQueryCommandSupported) {
|
||||
return function(aCommandName) {
|
||||
switch (aCommandName.toLowerCase()) {
|
||||
case "cut":
|
||||
case "copy":
|
||||
if (allowCutCopy(doc)) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "paste":
|
||||
if (allowPaste(doc)) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return originalQueryCommandSupported.call(doc, aCommandName, aShowDefaultUI, aValueArgument);
|
||||
}
|
||||
}
|
||||
|
||||
var documentObserver = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
if (subject instanceof Ci.nsIDOMWindow && topic == 'content-document-global-created') {
|
||||
var doc = subject.document;
|
||||
var cutCopyAllowed = allowCutCopy(doc);
|
||||
var pasteAllowed = allowPaste(doc);
|
||||
if (!cutCopyAllowed && !pasteAllowed) {
|
||||
return;
|
||||
}
|
||||
var originalExecCommand = Cu.waiveXrays(doc).execCommand;
|
||||
Cu.exportFunction(myExecCommand(doc, originalExecCommand), doc, {defineAs: "execCommand"});
|
||||
var originalQueryCommandSupported = Cu.waiveXrays(doc).queryCommandSupported;
|
||||
Cu.exportFunction(myQueryCommandSupported(doc, originalQueryCommandSupported), doc, {defineAs: "queryCommandSupported"});
|
||||
var originalQueryCommandEnabled = Cu.waiveXrays(doc).queryCommandEnabled;
|
||||
Cu.exportFunction(myQueryCommandSupported(doc, originalQueryCommandEnabled), doc, {defineAs: "queryCommandEnabled"});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Don't do this check before Firefox 29
|
||||
if (Services.vc.compare(Services.appinfo.version, "29") > 0) {
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy.default.Clipboard.cutcopy") == "allAccess") {
|
||||
gDefaultCutCopyPolicy = true;
|
||||
}
|
||||
} catch (e) {}
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy.default.Clipboard.paste") == "allAccess") {
|
||||
gDefaultPastePolicy = true;
|
||||
}
|
||||
} catch (e) {}
|
||||
try {
|
||||
var policies = [];
|
||||
policies = Services.prefs.getCharPref("capability.policy.policynames").split(', ');
|
||||
for (var i=0; i < policies.length; i++ ) {
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy." + policies[i] + ".Clipboard.cutcopy") == "allAccess") {
|
||||
var allowedCutCopySites = Services.prefs.getCharPref("capability.policy." + policies[i] + ".sites").split(" ");
|
||||
for (var j=0; j < allowedCutCopySites.length; j++) {
|
||||
gAllowedCutCopySites.push(allowedCutCopySites[j]);
|
||||
}
|
||||
}
|
||||
} catch(e) {}
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy." + policies[i] + ".Clipboard.cutcopy") == "noAccess") {
|
||||
var deniedCutCopySites = Services.prefs.getCharPref("capability.policy." + policies[i] + ".sites").split(" ");
|
||||
for (var j=0; j < deniedCutCopySites.length; j++) {
|
||||
gDeniedCutCopySites.push(deniedCutCopySites[j]);
|
||||
}
|
||||
}
|
||||
} catch(e) {}
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy." + policies[i] + ".Clipboard.paste") == "allAccess") {
|
||||
var allowedPasteSites = Services.prefs.getCharPref("capability.policy." + policies[i] + ".sites").split(" ");
|
||||
for (var j=0; j < allowedPasteSites.length; j++) {
|
||||
gAllowedPasteSites.push(allowedPasteSites[j]);
|
||||
}
|
||||
}
|
||||
} catch(e) {}
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy." + policies[i] + ".Clipboard.paste") == "noAccess") {
|
||||
var deniedPasteSites = Services.prefs.getCharPref("capability.policy." + policies[i] + ".sites").split(" ");
|
||||
for (var j=0; j < deniedPasteSites.length; j++) {
|
||||
gDeniedPasteSites.push(deniedPasteSites[j]);
|
||||
}
|
||||
}
|
||||
} catch(e) {}
|
||||
}
|
||||
} catch (e) {}
|
||||
if (gDefaultCutCopyPolicy || gDefaultPastePolicy ||
|
||||
gAllowedCutCopySites.length > 0 || gAllowedPasteSites> 0) {
|
||||
Services.obs.addObserver(documentObserver, "content-document-global-created", false);
|
||||
addEventListener("unload", function() {
|
||||
Services.obs.removeObserver(documentObserver, "content-document-global-created", false);
|
||||
})
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,111 @@
|
||||
/* This file overlays about:addons. It does the following: */
|
||||
/* Workaround https://bugzilla.mozilla.org/show_bug.cgi?id=1132971 */
|
||||
/* Hide the "Install Add-on From File" menu if xpinstall.enabled is false */
|
||||
/* Hides the discover pane if xpinstall.enabled is false */
|
||||
/* Hides the add-on entry if specified in the CCK2 config */
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://cck2/CCK2.jsm");
|
||||
|
||||
var addonId = "cck2wizard@kaply.com";
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "about:addons":
|
||||
case "chrome://mozapps/content/extensions/extensions.xul":
|
||||
var configs = CCK2.getConfigs();
|
||||
var hiddenAddons = [];
|
||||
var requiredAddons = [];
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config && "extension" in config && config.extension.hide) {
|
||||
hiddenAddons.push(config.extension.id);
|
||||
}
|
||||
if (config.requiredAddons) {
|
||||
requiredAddons.push.apply(requiredAddons, config.requiredAddons.split(","));
|
||||
}
|
||||
}
|
||||
if (hiddenAddons.length > 0 || requiredAddons.length > 0) {
|
||||
var ss;
|
||||
for (var i = 0; i < doc.styleSheets.length; i++) {
|
||||
if (doc.styleSheets[i].href == "chrome://mozapps/skin/extensions/extensions.css") {
|
||||
ss = doc.styleSheets[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (var i=0; i < hiddenAddons.length; i++) {
|
||||
ss.insertRule("richlistitem[value='" + hiddenAddons[i] + "'] { display: none;}", ss.cssRules.length);
|
||||
}
|
||||
for (var i=0; i < requiredAddons.length; i++) {
|
||||
ss.insertRule("richlistitem[value='" + requiredAddons[i] + "'] button[anonid='disable-btn'] { display: none;}", ss.cssRules.length);
|
||||
ss.insertRule("richlistitem[value='" + requiredAddons[i] + "'] button[anonid='remove-btn'] { display: none;}", ss.cssRules.length);
|
||||
}
|
||||
if (requiredAddons.length > 0) {
|
||||
win.gViewController.commands.cmd_disableItem.origIsEnabled = win.gViewController.commands.cmd_disableItem.isEnabled;
|
||||
win.gViewController.commands.cmd_disableItem.isEnabled = function(aAddon) { if (aAddon && requiredAddons.indexOf(aAddon.id) != -1) return false; return this.origIsEnabled;}
|
||||
win.gViewController.commands.cmd_uninstallItem.origIsEnabled = win.gViewController.commands.cmd_disableItem.isEnabled;
|
||||
win.gViewController.commands.cmd_uninstallItem.isEnabled = function(aAddon) { if (aAddon && requiredAddons.indexOf(aAddon.id) != -1) return false; return this.origIsEnabled;}
|
||||
}
|
||||
}
|
||||
var showDiscoverPane = true;
|
||||
var xpinstallEnabled = true;
|
||||
try {
|
||||
xpinstallEnabled = Services.prefs.getBoolPref("xpinstall.enabled");
|
||||
} catch (e) {}
|
||||
try {
|
||||
showDiscoverPane = Services.prefs.getBoolPref("extensions.getAddons.showPane");
|
||||
} catch (e) {}
|
||||
if (!xpinstallEnabled || !showDiscoverPane) {
|
||||
// Work around Mozilla bug 1132971
|
||||
// Hide the discover pane if it is the selected pane
|
||||
if (E("view-port", doc) && E("view-port", doc).selectedIndex == 0) {
|
||||
try {
|
||||
win.gViewController.loadView("addons://list/extension");
|
||||
} catch (ex) {
|
||||
// This fails with Webconverger installed. Ignore it.
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!xpinstallEnabled) {
|
||||
// Hide the "Install Add-on From File" separator
|
||||
hide(E("utils-installFromFile-separator", doc));
|
||||
// Hide the "Install Add-on From File" menuitem
|
||||
hide(E("utils-installFromFile", doc));
|
||||
win.gDragDrop.onDragOver = function(event) {
|
||||
event.dataTransfer.dropEffect = "none";
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
};
|
||||
}
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
function hide(element) {
|
||||
if (element) {
|
||||
element.setAttribute("hidden", "true");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/* This file is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1139509 */
|
||||
/* It bolds the Firefox version in the about dialog and unbolds the distribution information */
|
||||
/* It can be removed once Firefox 38 ESR is out of support */
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "chrome://browser/content/aboutDialog.xul":
|
||||
doc.querySelector("#version").style.fontWeight = "bold";
|
||||
doc.querySelector("#distribution").style.fontWeight = "normal";
|
||||
doc.querySelector("#distributionId").style.fontWeight = "normal";
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
@@ -0,0 +1,79 @@
|
||||
/* This file overrides about:home. It does the following:
|
||||
* Remove the sync button if Sync is disabled
|
||||
* Remove the Addons button if Sync is disabled
|
||||
* Remove the snippets if snippets are disabled
|
||||
*/
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
var configs = null;
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "content-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "about:home":
|
||||
case "chrome://browser/content/abouthome/aboutHome.xhtml":
|
||||
if (!configs) {
|
||||
// TODO - Make this Async
|
||||
configs = sendSyncMessage("cck2:get-configs")[0];
|
||||
}
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSync) {
|
||||
remove(E("sync", doc));
|
||||
}
|
||||
if (config.disableAddonsManager) {
|
||||
remove(E("addons", doc));
|
||||
}
|
||||
if (config.disableWebApps) {
|
||||
remove(E("apps", doc));
|
||||
}
|
||||
if (config.removeSnippets) {
|
||||
var snippets = E("snippets", doc);
|
||||
if (snippets) {
|
||||
snippets.style.display = "none";
|
||||
}
|
||||
}
|
||||
if (config.hiddenUI) {
|
||||
for (var i=0; i < config.hiddenUI.length; i++) {
|
||||
var uiElements = doc.querySelectorAll(config.hiddenUI[i]);
|
||||
for (var j=0; j < uiElements.length; j++) {
|
||||
var uiElement = uiElements[j];
|
||||
uiElement.setAttribute("hidden", "true");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Services.obs.addObserver(observer, "content-document-global-created", false);
|
||||
|
||||
addEventListener("unload", function() {
|
||||
Services.obs.removeObserver(observer, "content-document-global-created", false);
|
||||
})
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
function remove(element) {
|
||||
if (element && element.parentNode)
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
/* This file overrides about:support It does the following:
|
||||
* Remove the reset Firefox button if disableResetFirefox is set
|
||||
* Remove the safe mode Button if disableSafeMode is set
|
||||
* Remove the box if both are set
|
||||
*/
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://cck2/CCK2.jsm");
|
||||
|
||||
var configs = null;
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "about:support":
|
||||
case "chrome://global/content/aboutSupport.xhtml":
|
||||
if (!configs) {
|
||||
configs = CCK2.getConfigs();
|
||||
}
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableResetFirefox) {
|
||||
remove(E("reset-box", doc));
|
||||
}
|
||||
if (config.disableSafeMode) {
|
||||
remove(E("safe-mode-box", doc));
|
||||
}
|
||||
if (config.disableResetFirefox &&
|
||||
config.disableSafeMode) {
|
||||
remove(E("action-box", doc));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
|
||||
function remove(element) {
|
||||
if (element && element.parentNode)
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
@@ -0,0 +1,373 @@
|
||||
/* This file modifies the main browser window. It does the following:
|
||||
* Goes through the hiddenUI list and hides any UI
|
||||
*
|
||||
*/
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource:///modules/CustomizableUI.jsm");
|
||||
Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
|
||||
Cu.import("resource://cck2/CCK2.jsm");
|
||||
|
||||
var configs = null;
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "chrome://browser/content/browser.xul":
|
||||
// Workaround https://bugzilla.mozilla.org/show_bug.cgi?id=1149617
|
||||
var origSetReportPhishingMenu = win.gSafeBrowsing.setReportPhishingMenu;
|
||||
win.gSafeBrowsing.setReportPhishingMenu = function() {
|
||||
try {
|
||||
origSetReportPhishingMenu();
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
win.addEventListener("unload", function onUnload(event) {
|
||||
win.removeEventListener("unload", onUnload, false);
|
||||
var panelUIPopup = doc.getElementById("PanelUI-popup");
|
||||
if (panelUIPopup) {
|
||||
E("PanelUI-popup", doc).removeEventListener("popupshowing", onPanelShowing, false);
|
||||
}
|
||||
});
|
||||
var panelUIPopup = doc.getElementById("PanelUI-popup");
|
||||
if (panelUIPopup) {
|
||||
E("PanelUI-popup", doc).addEventListener("popupshowing", onPanelShowing, false);
|
||||
}
|
||||
var appMenuPopup = doc.getElementById("appMenu-popup");
|
||||
if (appMenuPopup) {
|
||||
E("appMenu-popup", doc).addEventListener("popupshowing", onAppMenuShowing, false);
|
||||
}
|
||||
configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
config = configs[id];
|
||||
if (config.disablePrivateBrowsing &&
|
||||
PrivateBrowsingUtils.isWindowPrivate(win)) {
|
||||
win.setTimeout(function() {
|
||||
Services.prompt.alert(win, "Private Browsing", "Private Browsing has been disabled by your administrator");
|
||||
win.close();
|
||||
}, 0, false);
|
||||
}
|
||||
if (config.disablePrivateBrowsing) {
|
||||
disablePrivateBrowsing(doc);
|
||||
}
|
||||
if (config.disableSync) {
|
||||
disableSync(doc);
|
||||
}
|
||||
if (config.disableAddonsManager) {
|
||||
disableAddonsManager(doc);
|
||||
}
|
||||
if (config.removeDeveloperTools) {
|
||||
Services.tm.mainThread.dispatch(function() {
|
||||
removeDeveloperTools(doc);
|
||||
}, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
}
|
||||
if (config.disableErrorConsole) {
|
||||
disableErrorConsole(doc);
|
||||
}
|
||||
if (config.disableFirefoxHealthReport) {
|
||||
var healthReportMenu = doc.getElementById("healthReport");
|
||||
if (healthReportMenu) {
|
||||
healthReportMenu.parentNode.removeChild(healthReportMenu);
|
||||
}
|
||||
}
|
||||
if (config.removeSafeModeMenu) {
|
||||
hide(E("helpSafeMode", doc));
|
||||
}
|
||||
if (config.titlemodifier) {
|
||||
doc.getElementById("main-window").setAttribute("titlemodifier", config.titlemodifier);
|
||||
}
|
||||
if (config.removeSetDesktopBackground) {
|
||||
// Because this is on a context menu, we can't use "hidden"
|
||||
if (E("context-setDesktopBackground", doc)) {
|
||||
E("context-setDesktopBackground", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
}
|
||||
if (config.disableWebApps) {
|
||||
CustomizableUI.destroyWidget("web-apps-button");
|
||||
hide(E("menu_openApps", doc));
|
||||
}
|
||||
if (config.disableHello) {
|
||||
CustomizableUI.destroyWidget("loop-button");
|
||||
hide(E("menu_openLoop", doc));
|
||||
}
|
||||
if (config.disablePocket) {
|
||||
CustomizableUI.destroyWidget("pocket-button");
|
||||
}
|
||||
if (config.disableSharePage) {
|
||||
CustomizableUI.destroyWidget("social-share-button");
|
||||
// Because these are on a context menu, we can't use "hidden"
|
||||
if (E("context-sharelink", doc)) {
|
||||
E("context-sharelink", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
if (E("context-shareselect", doc)) {
|
||||
E("context-shareselect", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
if (E("context-shareimage", doc)) {
|
||||
E("context-shareimage", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
if (E("context-sharevideo", doc)) {
|
||||
E("context-sharevideo", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
if (E("context-sharepage", doc)) {
|
||||
E("context-sharepage", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
}
|
||||
if (config.disableSocialAPI) {
|
||||
win.SocialActivationListener = {};
|
||||
}
|
||||
if (config.disableForget) {
|
||||
CustomizableUI.destroyWidget("panic-button");
|
||||
}
|
||||
if (config.hiddenUI) {
|
||||
hideUIElements(doc, config.hiddenUI);
|
||||
}
|
||||
if (config.helpMenu) {
|
||||
// We need to run this function on a delay, because we won't know
|
||||
// if the about menu is hidden for mac until after it is run.
|
||||
Services.tm.mainThread.dispatch(function() {
|
||||
var helpMenuPopup = doc.getElementById("menu_HelpPopup");
|
||||
var menuitem = doc.createElement("menuitem");
|
||||
menuitem.setAttribute("label", config.helpMenu.label);
|
||||
if ("accesskey" in config.helpMenu) {
|
||||
menuitem.setAttribute("accesskey", config.helpMenu.accesskey);
|
||||
}
|
||||
menuitem.setAttribute("oncommand", "openUILink('" + config.helpMenu.url + "');");
|
||||
menuitem.setAttribute("onclick", "checkForMiddleClick(this, event);");
|
||||
if (!E("aboutName", doc) || E("aboutName", doc).hidden) {
|
||||
// Mac
|
||||
helpMenuPopup.appendChild(menuitem);
|
||||
} else {
|
||||
helpMenuPopup.insertBefore(menuitem, E("aboutName", doc));
|
||||
helpMenuPopup.insertBefore(doc.createElement("menuseparator"),
|
||||
E("aboutName", doc));
|
||||
}
|
||||
}, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
}
|
||||
if (config.firstrun || config.upgrade) {
|
||||
if (config.displayBookmarksToolbar || (config.bookmarks && config.bookmarks.toolbar)) {
|
||||
CustomizableUI.setToolbarVisibility("PersonalToolbar", "true");
|
||||
}
|
||||
if (config.displayMenuBar) {
|
||||
CustomizableUI.setToolbarVisibility("toolbar-menubar", "true");
|
||||
}
|
||||
if (config.showSearchBar) {
|
||||
CustomizableUI.addWidgetToArea("search-container", CustomizableUI.AREA_NAVBAR,
|
||||
CustomizableUI.getPlacementOfWidget("urlbar-container").position + 1);
|
||||
}
|
||||
config.firstrun = false;
|
||||
config.upgrade = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "chrome://browser/content/places/places.xul":
|
||||
case "chrome://browser/content/bookmarks/bookmarksPanel.xul":
|
||||
case "chrome://browser/content/history/history-panel.xul":
|
||||
configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disablePrivateBrowsing) {
|
||||
if (E("placesContext_open:newprivatewindow", doc)) {
|
||||
E("placesContext_open:newprivatewindow", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
}
|
||||
if (config.hiddenUI) {
|
||||
hideUIElements(doc, config.hiddenUI);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
|
||||
function disableSync(doc) {
|
||||
var win = doc.defaultView;
|
||||
if (win.gSyncUI) {
|
||||
var mySyncUI = {
|
||||
init: function() {
|
||||
return;
|
||||
},
|
||||
initUI: function() {
|
||||
return;
|
||||
},
|
||||
updateUI: function() {
|
||||
hide(E("sync-setup-state", doc));
|
||||
hide(E("sync-syncnow-state", doc));
|
||||
hide(E("sync-setup", doc));
|
||||
hide(E("sync-syncnowitem", doc));
|
||||
}
|
||||
}
|
||||
win.gSyncUI = mySyncUI;
|
||||
}
|
||||
CustomizableUI.destroyWidget("sync-button");
|
||||
CustomizableUI.removeWidgetFromArea("sync-button");
|
||||
var toolbox = doc.getElementById("navigator-toolbox");
|
||||
if (toolbox && toolbox.palette) {
|
||||
let element = toolbox.palette.querySelector("#sync-button");
|
||||
if (element) {
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
}
|
||||
hide(E("sync-setup-state", doc));
|
||||
hide(E("sync-syncnow-state", doc));
|
||||
hide(E("sync-setup", doc));
|
||||
hide(E("sync-syncnowitem", doc));
|
||||
}
|
||||
|
||||
function disablePrivateBrowsing(doc) {
|
||||
disable(E("Tools:PrivateBrowsing", doc));
|
||||
hide(E("menu_newPrivateWindow", doc));
|
||||
// Because this is on a context menu, we can't use "hidden"
|
||||
if (E("context-openlinkprivate", doc))
|
||||
E("context-openlinkprivate", doc).setAttribute("style", "display: none;");
|
||||
if (E("placesContext_open:newprivatewindow", doc))
|
||||
E("placesContext_open:newprivatewindow", doc).setAttribute("style", "display: none;");
|
||||
CustomizableUI.destroyWidget("privatebrowsing-button")
|
||||
}
|
||||
|
||||
function disableAddonsManager(doc) {
|
||||
hide(E("menu_openAddons", doc));
|
||||
disable(E("Tools:Addons", doc)); // Ctrl+Shift+A
|
||||
CustomizableUI.destroyWidget("add-ons-button")
|
||||
}
|
||||
|
||||
function removeDeveloperTools(doc) {
|
||||
var win = doc.defaultView;
|
||||
// Need to delay this because devtools is created dynamically
|
||||
win.setTimeout(function() {
|
||||
CustomizableUI.destroyWidget("developer-button")
|
||||
hide(E("webDeveloperMenu", doc));
|
||||
var devtoolsKeyset = doc.getElementById("devtoolsKeyset");
|
||||
if (devtoolsKeyset) {
|
||||
for (var i = 0; i < devtoolsKeyset.childNodes.length; i++) {
|
||||
devtoolsKeyset.childNodes[i].removeAttribute("oncommand");
|
||||
devtoolsKeyset.childNodes[i].removeAttribute("command");
|
||||
}
|
||||
}
|
||||
}, 0);
|
||||
try {
|
||||
doc.getElementById("Tools:ResponsiveUI").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:Scratchpad").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:BrowserConsole").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:BrowserToolbox").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:DevAppsMgr").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:DevToolbar").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:DevToolbox").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:DevToolbarFocus").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
CustomizableUI.destroyWidget("developer-button")
|
||||
}
|
||||
|
||||
function disableErrorConsole(doc) {
|
||||
doc.getElementById("Tools:ErrorConsole").removeAttribute("oncommand");
|
||||
}
|
||||
|
||||
function onPanelShowing(event) {
|
||||
var configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSync) {
|
||||
hide(E("PanelUI-fxa-status", event.target.ownerDocument));
|
||||
hide(E("PanelUI-footer-fxa", event.target.ownerDocument)); // Firefox 42+
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onAppMenuShowing(event) {
|
||||
var configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSync) {
|
||||
hide(E("appMenu-fxa-container", event.target.ownerDocument));
|
||||
}
|
||||
if (config.removeDeveloperTools) {
|
||||
hide(E("appMenu-developer-button", event.target.ownerDocument));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
function hide(element) {
|
||||
if (element) {
|
||||
element.setAttribute("hidden", "true");
|
||||
}
|
||||
}
|
||||
|
||||
function disable(element) {
|
||||
if (element) {
|
||||
element.disabled = true;
|
||||
element.setAttribute("disabled", "true");
|
||||
}
|
||||
}
|
||||
|
||||
function hideUIElements(doc, hiddenUI) {
|
||||
for (var i=0; i < hiddenUI.length; i++) {
|
||||
var uiElements = doc.querySelectorAll(hiddenUI[i]);
|
||||
// Don't use .hidden since it doesn't work sometimes
|
||||
var style = doc.getElementById("cck2-hidden-style");
|
||||
if (!style) {
|
||||
style = doc.createElementNS("http://www.w3.org/1999/xhtml", "style");
|
||||
style.setAttribute("id", "cck2-hidden-style");
|
||||
style.setAttribute("type", "text/css");
|
||||
doc.documentElement.appendChild(style);
|
||||
}
|
||||
style.textContent = style.textContent + hiddenUI[i] + "{display: none !important;}";
|
||||
if (!uiElements || uiElements.length == 0) {
|
||||
continue;
|
||||
}
|
||||
for (var j=0; j < uiElements.length; j++) {
|
||||
var uiElement = uiElements[j];
|
||||
if (uiElement.nodeName == "menuitem") {
|
||||
uiElement.removeAttribute("key");
|
||||
uiElement.removeAttribute("oncommand");
|
||||
if (uiElement.hasAttribute("command")) {
|
||||
var commandId = uiElement.getAttribute("command");
|
||||
uiElement.removeAttribute("command");
|
||||
var command = doc.getElementById(commandId);
|
||||
command.removeAttribute("oncommand");
|
||||
var keys = doc.querySelectorAll("key[command='" + commandId + "']")
|
||||
for (var k=0; k < keys.length; k++) {
|
||||
keys[k].removeAttribute("command");
|
||||
}
|
||||
}
|
||||
}
|
||||
// Horrible hack to work around the crappy Australis help menu
|
||||
// Items on the menu always show up in the Australis menu, so we have to remove them.
|
||||
if (uiElements[j].parentNode.id == "menu_HelpPopup") {
|
||||
uiElements[j].parentNode.removeChild(uiElements[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
var EXPORTED_SYMBOLS = [];
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
let CCK2FileBlock = {
|
||||
chromeBlacklist: ["browser", "mozapps", "marionette", "specialpowers",
|
||||
"branding", "alerts"],
|
||||
shouldLoad: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aExtra) {
|
||||
// Prevent the loading of chrome URLs into the main browser window
|
||||
if (aContentLocation.scheme == "chrome") {
|
||||
if (aRequestOrigin &&
|
||||
(aRequestOrigin.spec == "chrome://browser/content/browser.xul" ||
|
||||
aRequestOrigin.scheme == "moz-nullprincipal")) {
|
||||
for (var i=0; i < this.chromeBlacklist.length; i++) {
|
||||
if (aContentLocation.host == this.chromeBlacklist[i]) {
|
||||
if (aContentLocation.spec.includes(".xul")) {
|
||||
return Ci.nsIContentPolicy.REJECT_REQUEST;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Ci.nsIContentPolicy.ACCEPT;
|
||||
},
|
||||
shouldProcess: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aExtra) {
|
||||
return Ci.nsIContentPolicy.ACCEPT;
|
||||
},
|
||||
classDescription: "CCK2 FileBlock Service",
|
||||
contractID: "@kaply.com/cck2-fileblock-service;1",
|
||||
classID: Components.ID('{26e7afc9-e22d-4d12-bb57-c184fe24b828}'),
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIContentPolicy]),
|
||||
createInstance: function(outer, iid) {
|
||||
return this.QueryInterface(iid);
|
||||
},
|
||||
};
|
||||
|
||||
var registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
|
||||
registrar.registerFactory(CCK2FileBlock.classID,
|
||||
CCK2FileBlock.classDescription,
|
||||
CCK2FileBlock.contractID,
|
||||
CCK2FileBlock);
|
||||
|
||||
var cm = Cc["@mozilla.org/categorymanager;1"].getService(Ci.nsICategoryManager);
|
||||
cm.addCategoryEntry("content-policy", CCK2FileBlock.contractID,
|
||||
CCK2FileBlock.contractID, false, true);
|
||||
@@ -0,0 +1,51 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
var disableSearchEngineInstall = false;
|
||||
|
||||
var documentObserver = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
if (subject instanceof Ci.nsIDOMWindow && topic == 'content-document-global-created') {
|
||||
var doc = subject.document;
|
||||
doc.addEventListener("DOMContentLoaded", function onLoad(event) {
|
||||
event.target.removeEventListener("DOMContentLoaded", onLoad, false);
|
||||
if (disableSearchEngineInstall) {
|
||||
subject.wrappedJSObject.external.AddSearchProvider = function() {};
|
||||
}
|
||||
if (!doc.documentURI.startsWith("about:")) {
|
||||
return;
|
||||
}
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.hiddenUI) {
|
||||
for (var i=0; i < config.hiddenUI.length; i++) {
|
||||
// Don't use .hidden since it doesn't work sometimes
|
||||
var style = doc.getElementById("cck2-hidden-style");
|
||||
if (!style) {
|
||||
style = doc.createElementNS("http://www.w3.org/1999/xhtml", "style");
|
||||
style.setAttribute("id", "cck2-hidden-style");
|
||||
style.setAttribute("type", "text/css");
|
||||
doc.documentElement.appendChild(style);
|
||||
}
|
||||
style.textContent = style.textContent + config.hiddenUI[i] + "{display: none !important;}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var configs = sendSyncMessage("cck2:get-configs")[0];
|
||||
for (var id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSearchEngineInstall) {
|
||||
disableSearchEngineInstall = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Services.obs.addObserver(documentObserver, "content-document-global-created", false);
|
||||
addEventListener("unload", function() {
|
||||
Services.obs.removeObserver(documentObserver, "content-document-global-created", false);
|
||||
})
|
||||
@@ -0,0 +1,123 @@
|
||||
/* This file modifies the preferences dialogs. It does the following:
|
||||
* Removes private browsing from the pref UI if it is disabled
|
||||
* Removes Sync from the pref UI if it is diabled
|
||||
* Disables the crash reporter button if crash reporter is disabled
|
||||
* Removed the master password UI if it is disabled
|
||||
* Goes through the hiddenUI list and hides any UI
|
||||
*
|
||||
*/
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://cck2/CCK2.jsm");
|
||||
|
||||
var configs = null;
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "chrome://browser/content/preferences/preferences.xul":
|
||||
configs = CCK2.getConfigs();
|
||||
win.addEventListener("paneload", function(event) {
|
||||
updatePrefUI(event.target.ownerDocument);
|
||||
}, false);
|
||||
updatePrefUI(doc);
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (!config.disableSync) {
|
||||
continue;
|
||||
}
|
||||
var prefWindow = E("BrowserPreferences", doc);
|
||||
var paneSyncRadio = doc.getAnonymousElementByAttribute(prefWindow, "pane", "paneSync");
|
||||
hide(paneSyncRadio);
|
||||
var paneDeck = doc.getAnonymousElementByAttribute(prefWindow, "anonid", "paneDeck");
|
||||
var paneSync = E("paneSync", doc);
|
||||
paneSync.removeAttribute("helpTopic");
|
||||
var weavePrefsDeck = E("weavePrefsDeck", doc);
|
||||
if (weavePrefsDeck)
|
||||
weavePrefsDeck.parentNode.removeChild(weavePrefsDeck);
|
||||
if (prefWindow.currentPane == E("paneSync", doc))
|
||||
prefWindow.showPane(E("paneMain", doc));
|
||||
}
|
||||
break;
|
||||
case "about:preferences":
|
||||
case "chrome://browser/content/preferences/in-content/preferences.xul":
|
||||
configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSync) {
|
||||
hide(E("category-sync", doc));
|
||||
}
|
||||
}
|
||||
updatePrefUI(doc);
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
|
||||
// The IDs are the same, so I can reuse this for regular and in-content prefs
|
||||
function updatePrefUI(doc) {
|
||||
for (var id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disablePrivateBrowsing) {
|
||||
hide(E("privateBrowsingAutoStart", doc));
|
||||
var privateBrowsingMenu = doc.querySelector("menuitem[value='dontremember']");
|
||||
hide(privateBrowsingMenu, doc);
|
||||
}
|
||||
if (config.disableCrashReporter) {
|
||||
disable(E("submitCrashesBox", doc));
|
||||
}
|
||||
if (config.disableSync) {
|
||||
hide(E("noFxaAccount", doc));
|
||||
hide(E("hasFxaAccount", doc));
|
||||
}
|
||||
if (config.noMasterPassword == true) {
|
||||
hide(E("useMasterPassword", doc));
|
||||
hide(E("changeMasterPassword", doc));
|
||||
}
|
||||
if (config.hiddenUI) {
|
||||
for (var i=0; i < config.hiddenUI.length; i++) {
|
||||
// Don't use .hidden since it doesn't work sometimes
|
||||
var style = doc.getElementById("cck2-hidden-style");
|
||||
if (!style) {
|
||||
style = doc.createElementNS("http://www.w3.org/1999/xhtml", "style");
|
||||
style.setAttribute("id", "cck2-hidden-style");
|
||||
style.setAttribute("type", "text/css");
|
||||
doc.documentElement.appendChild(style);
|
||||
}
|
||||
style.textContent = style.textContent + config.hiddenUI[i] + "{display: none !important;}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
function hide(element) {
|
||||
if (element) {
|
||||
element.setAttribute("hidden", "true");
|
||||
}
|
||||
}
|
||||
|
||||
function disable(element) {
|
||||
if (element) {
|
||||
element.disabled = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
/**
|
||||
* Copied from https://github.com/jvillalobos/CTP-Manager/blob/master/extension/modules/permissions.js
|
||||
**/
|
||||
|
||||
/**
|
||||
* Copyright 2013 Jorge Villalobos
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
var EXPORTED_SYMBOLS = ["CTP"];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
var CTP = {
|
||||
/**
|
||||
* Cleans up the plugin name to a more readable form.
|
||||
* Taken from /browser/base/content/pageinfo/permissions.js (Firefox 20)
|
||||
* @param aPluginName the name to clean up.
|
||||
* @return cleaned up plugin name.
|
||||
*/
|
||||
makeNicePluginName : function(aPluginName) {
|
||||
let newName =
|
||||
aPluginName.replace(/[\s\d\.\-\_\(\)]+$/, "").
|
||||
replace(/\bplug-?in\b/i, "").trim();
|
||||
|
||||
return newName;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the plugin permission string from the tag object. In Firefox 20, this
|
||||
* is the plugin filename. In 21 an above, the file extension is removed and
|
||||
* Flash and Java are special-cased.
|
||||
* @param aTag the tag object with the plugin information.
|
||||
* @return permission string that corresponds to the plugin in the tag.
|
||||
*/
|
||||
getPluginPermissionFromTag : function(aTag) {
|
||||
let permission = null;
|
||||
let majorVersion = Services.appinfo.platformVersion.split(".")[0];
|
||||
|
||||
if (21 <= majorVersion) {
|
||||
let mimeTypes = aTag.getMimeTypes();
|
||||
|
||||
if (CTP.isFlashPlugin(mimeTypes)) {
|
||||
permission = "flash";
|
||||
} else if (CTP.isJavaPlugin(mimeTypes)) {
|
||||
permission = "java";
|
||||
} else {
|
||||
let lastPeriod = aTag.filename.lastIndexOf(".");
|
||||
|
||||
permission =
|
||||
((0 < lastPeriod) ? aTag.filename.substring(0, lastPeriod) :
|
||||
aTag.filename);
|
||||
// Remove digits at the end
|
||||
permission = permission.replace(/[0-9]+$/, "");
|
||||
permission = permission.toLowerCase();
|
||||
}
|
||||
} else {
|
||||
permission = aTag.filename;
|
||||
}
|
||||
|
||||
return permission;
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks if the tag object corresponds to the Java plugin.
|
||||
* @param aMimeTypes the list of MIME types for the plugin.
|
||||
* @return true if the tag corresponds to the Java plugin.
|
||||
*/
|
||||
isJavaPlugin : function(aMimeTypes) {
|
||||
let isJava = false;
|
||||
let mimeType;
|
||||
|
||||
for (let i = 0; i < aMimeTypes.length; i++) {
|
||||
mimeType =
|
||||
((null != aMimeTypes[i].type) ? aMimeTypes[i].type : aMimeTypes[i]);
|
||||
|
||||
if ((0 == mimeType.indexOf("application/x-java-vm")) ||
|
||||
(0 == mimeType.indexOf("application/x-java-applet")) ||
|
||||
(0 == mimeType.indexOf("application/x-java-bean"))) {
|
||||
isJava = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return isJava;
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks if the tag object corresponds to the Flash plugin.
|
||||
* @param aMimeTypes the list of MIME types for the plugin.
|
||||
* @return true if the tag corresponds to the Flash plugin.
|
||||
*/
|
||||
isFlashPlugin : function(aMimeTypes) {
|
||||
let isFlash = false;
|
||||
let mimeType;
|
||||
|
||||
for (let i = 0; i < aMimeTypes.length; i++) {
|
||||
mimeType =
|
||||
((null != aMimeTypes[i].type) ? aMimeTypes[i].type : aMimeTypes[i]);
|
||||
|
||||
if (0 == mimeType.indexOf("application/x-shockwave-flash")) {
|
||||
isFlash = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return isFlash;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,629 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is Preferences.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Mozilla.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2008
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Myk Melez <myk@mozilla.org>
|
||||
* Daniel Aquino <mr.danielaquino@gmail.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
let EXPORTED_SYMBOLS = ["Preferences"];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
const Cr = Components.results;
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
// The minimum and maximum integers that can be set as preferences.
|
||||
// The range of valid values is narrower than the range of valid JS values
|
||||
// because the native preferences code treats integers as NSPR PRInt32s,
|
||||
// which are 32-bit signed integers on all platforms.
|
||||
const MAX_INT = Math.pow(2, 31) - 1;
|
||||
const MIN_INT = -MAX_INT;
|
||||
|
||||
function Preferences(args) {
|
||||
if (isObject(args)) {
|
||||
if (args.branch)
|
||||
this._prefBranch = args.branch;
|
||||
}
|
||||
else if (args)
|
||||
this._prefBranch = args;
|
||||
this.isDefaultBranch = false;
|
||||
}
|
||||
|
||||
Preferences.prototype = {
|
||||
/**
|
||||
* Get the value of a pref, if any; otherwise return the default value.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to get, or an array of prefs to get
|
||||
*
|
||||
* @param defaultValue
|
||||
* the default value, if any, for prefs that don't have one
|
||||
*
|
||||
* @returns the value of the pref, if any; otherwise the default value
|
||||
*/
|
||||
get: function(prefName, defaultValue) {
|
||||
if (isArray(prefName))
|
||||
return prefName.map(v => this.get(v, defaultValue));
|
||||
|
||||
return this._get(prefName, defaultValue);
|
||||
},
|
||||
|
||||
// In all cases below, the preference might exist as a user pref, but not
|
||||
// have a default value. In those cases, get* throws. Return the default value.
|
||||
_get: function(prefName, defaultValue) {
|
||||
switch (this._prefSvc.getPrefType(prefName)) {
|
||||
case Ci.nsIPrefBranch.PREF_STRING:
|
||||
try {
|
||||
return this._prefSvc.getComplexValue(prefName, Ci.nsISupportsString).data;
|
||||
} catch (ex) {
|
||||
if (this.isDefaultBranch)
|
||||
return defaultValue;
|
||||
else
|
||||
return this._prefSvc.getCharPref(prefName);
|
||||
}
|
||||
|
||||
case Ci.nsIPrefBranch.PREF_INT:
|
||||
try {
|
||||
return this._prefSvc.getIntPref(prefName);
|
||||
} catch (ex) {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
case Ci.nsIPrefBranch.PREF_BOOL:
|
||||
try {
|
||||
return this._prefSvc.getBoolPref(prefName);
|
||||
} catch (ex) {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
case Ci.nsIPrefBranch.PREF_INVALID:
|
||||
return defaultValue;
|
||||
|
||||
default:
|
||||
// This should never happen.
|
||||
throw "Error getting pref " + prefName + "; its value's type is " +
|
||||
this._prefSvc.getPrefType(prefName) + ", which I don't know " +
|
||||
"how to handle.";
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Set a preference to a value.
|
||||
*
|
||||
* You can set multiple prefs by passing an object as the only parameter.
|
||||
* In that case, this method will treat the properties of the object
|
||||
* as preferences to set, where each property name is the name of a pref
|
||||
* and its corresponding property value is the value of the pref.
|
||||
*
|
||||
* @param prefName {String|Object}
|
||||
* the name of the pref to set; or an object containing a set
|
||||
* of prefs to set
|
||||
*
|
||||
* @param prefValue {String|Number|Boolean}
|
||||
* the value to which to set the pref
|
||||
*
|
||||
* Note: Preferences cannot store non-integer numbers or numbers outside
|
||||
* the signed 32-bit range -(2^31-1) to 2^31-1, If you have such a number,
|
||||
* store it as a string by calling toString() on the number before passing
|
||||
* it to this method, i.e.:
|
||||
* Preferences.set("pi", 3.14159.toString())
|
||||
* Preferences.set("big", Math.pow(2, 31).toString()).
|
||||
*/
|
||||
set: function(prefName, prefValue) {
|
||||
if (isObject(prefName)) {
|
||||
for (let [name, value] in Iterator(prefName))
|
||||
this.set(name, value);
|
||||
return;
|
||||
}
|
||||
|
||||
this._set(prefName, prefValue);
|
||||
},
|
||||
|
||||
_set: function(prefName, prefValue) {
|
||||
let prefType;
|
||||
if (typeof prefValue != "undefined" && prefValue != null)
|
||||
prefType = prefValue.constructor.name;
|
||||
|
||||
var existingPrefType = this._prefSvc.getPrefType(prefName);
|
||||
if (existingPrefType != Ci.nsIPrefBranch.PREF_INVALID)
|
||||
{
|
||||
// convert
|
||||
if (existingPrefType == Ci.nsIPrefBranch.PREF_INT && prefType == "String")
|
||||
{
|
||||
prefValue = parseInt(prefValue);
|
||||
if (isNaN(prefValue))
|
||||
throw "Incompatible pref value type - " + prefName;
|
||||
prefType = "Number";
|
||||
}
|
||||
else if (existingPrefType == Ci.nsIPrefBranch.PREF_BOOL && prefType == "String")
|
||||
{
|
||||
if (prefValue == "true")
|
||||
prefValue = true;
|
||||
else if (prefValue == "false")
|
||||
prefValue = false;
|
||||
else
|
||||
throw "Incompatible pref value type - " + prefName;
|
||||
prefType = "Boolean";
|
||||
}
|
||||
else if (existingPrefType == Ci.nsIPrefBranch.PREF_BOOL && prefType == "Number")
|
||||
{
|
||||
prefValue = prefValue != 0;
|
||||
prefType = "Boolean";
|
||||
}
|
||||
}
|
||||
|
||||
switch (prefType) {
|
||||
case "String":
|
||||
{
|
||||
try {
|
||||
this._prefSvc.setStringPref(prefName, prefValue);
|
||||
} catch (e) {
|
||||
try {
|
||||
let string = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString);
|
||||
string.data = prefValue;
|
||||
this._prefSvc.setComplexValue(prefName, Ci.nsISupportsString, string);
|
||||
} catch (e2) {
|
||||
Components.utils.reportError(e2);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case "Number":
|
||||
// We throw if the number is outside the range, since the result
|
||||
// will never be what the consumer wanted to store, but we only warn
|
||||
// if the number is non-integer, since the consumer might not mind
|
||||
// the loss of precision.
|
||||
if (prefValue > MAX_INT || prefValue < MIN_INT)
|
||||
throw("you cannot set the " + prefName + " pref to the number " +
|
||||
prefValue + ", as number pref values must be in the signed " +
|
||||
"32-bit integer range -(2^31-1) to 2^31-1. To store numbers " +
|
||||
"outside that range, store them as strings.");
|
||||
try {
|
||||
this._prefSvc.setIntPref(prefName, prefValue);
|
||||
} catch (e) {
|
||||
throw new Error(e.toString() + " - " + prefName);
|
||||
}
|
||||
if (prefValue % 1 != 0)
|
||||
Cu.reportError("Warning: setting the " + prefName + " pref to the " +
|
||||
"non-integer number " + prefValue + " converted it " +
|
||||
"to the integer number " + this.get(prefName) +
|
||||
"; to retain fractional precision, store non-integer " +
|
||||
"numbers as strings.");
|
||||
break;
|
||||
|
||||
case "Boolean":
|
||||
this._prefSvc.setBoolPref(prefName, prefValue);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw "can't set pref " + prefName + " to value '" + prefValue +
|
||||
"'; it isn't a String, Number, or Boolean";
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether or not the given pref has a value. This is different from isSet
|
||||
* because it returns true whether the value of the pref is a default value
|
||||
* or a user-set value, while isSet only returns true if the value
|
||||
* is a user-set value.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to check, or an array of prefs to check
|
||||
*
|
||||
* @returns {Boolean|Array}
|
||||
* whether or not the pref has a value; or, if the caller provided
|
||||
* an array of pref names, an array of booleans indicating whether
|
||||
* or not the prefs have values
|
||||
*/
|
||||
has: function(prefName) {
|
||||
if (isArray(prefName))
|
||||
return prefName.map(this.has, this);
|
||||
|
||||
return this._has(prefName);
|
||||
},
|
||||
|
||||
_has: function(prefName) {
|
||||
return (this._prefSvc.getPrefType(prefName) != Ci.nsIPrefBranch.PREF_INVALID);
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether or not the given pref has a user-set value. This is different
|
||||
* from |has| because it returns true only if the value of the pref is a user-
|
||||
* set value, while |has| returns true if the value of the pref is a default
|
||||
* value or a user-set value.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to check, or an array of prefs to check
|
||||
*
|
||||
* @returns {Boolean|Array}
|
||||
* whether or not the pref has a user-set value; or, if the caller
|
||||
* provided an array of pref names, an array of booleans indicating
|
||||
* whether or not the prefs have user-set values
|
||||
*/
|
||||
isSet: function(prefName) {
|
||||
if (isArray(prefName))
|
||||
return prefName.map(this.isSet, this);
|
||||
|
||||
return (this.has(prefName) && this._prefSvc.prefHasUserValue(prefName));
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether or not the given pref has a user-set value. Use isSet instead,
|
||||
* which is equivalent.
|
||||
* @deprecated
|
||||
*/
|
||||
modified: function(prefName) { return this.isSet(prefName) },
|
||||
|
||||
reset: function(prefName) {
|
||||
if (isArray(prefName)) {
|
||||
prefName.map(v => this.reset(v));
|
||||
return;
|
||||
}
|
||||
|
||||
this._reset(prefName);
|
||||
},
|
||||
|
||||
_reset: function(prefName) {
|
||||
try {
|
||||
this._prefSvc.clearUserPref(prefName);
|
||||
}
|
||||
catch(ex) {
|
||||
// The pref service throws NS_ERROR_UNEXPECTED when the caller tries
|
||||
// to reset a pref that doesn't exist or is already set to its default
|
||||
// value. This interface fails silently in those cases, so callers
|
||||
// can unconditionally reset a pref without having to check if it needs
|
||||
// resetting first or trap exceptions after the fact. It passes through
|
||||
// other exceptions, however, so callers know about them, since we don't
|
||||
// know what other exceptions might be thrown and what they might mean.
|
||||
if (ex.result != Cr.NS_ERROR_UNEXPECTED)
|
||||
throw ex;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* If you need to know the default values, without resetting the actual
|
||||
* user prefs, you can use this.
|
||||
* @returns {Preferences} a new Preferences object, which accesses
|
||||
* the defaults rather than the user prefs.
|
||||
* *Only* call get() on this.
|
||||
* If you call set(), you will modify the defaults, so don't do that!
|
||||
*/
|
||||
get defaults() {
|
||||
// nsIPrefService
|
||||
let defaultBranch = Services.prefs.
|
||||
getDefaultBranch(this._prefBranch).
|
||||
QueryInterface(Ci.nsIPrefBranch);
|
||||
let prefs = new Preferences(this._prefBranch);
|
||||
// override. nasty, but this is internal, so OK.
|
||||
Object.defineProperty(prefs, "_prefSvc", {
|
||||
get: function() {
|
||||
return defaultBranch;
|
||||
}
|
||||
});
|
||||
prefs.isDefaultBranch = true;
|
||||
return prefs;
|
||||
},
|
||||
|
||||
/**
|
||||
* Lock a pref so it can't be changed.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to lock, or an array of prefs to lock
|
||||
* @param prefValue {String} (optional)
|
||||
* default value of pref to lock only works if prefName isn't an array
|
||||
*/
|
||||
lock: function(prefName, prefValue) {
|
||||
if (isArray(prefName))
|
||||
prefName.map(this.lock, this);
|
||||
else if (typeof prefValue != "undefined")
|
||||
this.defaults.set(prefName, prefValue);
|
||||
|
||||
this._prefSvc.lockPref(prefName);
|
||||
},
|
||||
|
||||
/**
|
||||
* Unlock a pref so it can be changed.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to lock, or an array of prefs to lock
|
||||
*/
|
||||
unlock: function(prefName) {
|
||||
if (isArray(prefName))
|
||||
prefName.map(this.unlock, this);
|
||||
|
||||
this._prefSvc.unlockPref(prefName);
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether or not the given pref is locked against changes and
|
||||
* if it is set to the passedi n value
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to check, or an array of prefs to check
|
||||
* @param prefValue {String|Number|Boolean}}
|
||||
* the pref value to compare against
|
||||
*
|
||||
* @returns {Boolean|Array}
|
||||
* whether or not the pref is locked; or, if the caller
|
||||
* provided an array of pref names, an array of booleans indicating
|
||||
* whether or not the prefs are locked
|
||||
* If a pref value was specified returns whether or not the pref
|
||||
* was locked and equal to the passed in value.
|
||||
*/
|
||||
locked: function(prefName, prefValue) {
|
||||
if (isArray(prefName))
|
||||
return prefName.map(this.locked, this);
|
||||
|
||||
if (prefValue)
|
||||
return this._prefSvc.prefIsLocked(prefName) && (this.get(prefName) == prefValue);
|
||||
else
|
||||
return this._prefSvc.prefIsLocked(prefName);
|
||||
},
|
||||
|
||||
/**
|
||||
* Start observing a pref.
|
||||
*
|
||||
* The callback can be a function or any object that implements nsIObserver.
|
||||
* When the callback is a function and thisObject is provided, it gets called
|
||||
* as a method of thisObject.
|
||||
*
|
||||
* @param prefName {String}
|
||||
* the name of the pref to observe
|
||||
*
|
||||
* @param callback {Function|Object}
|
||||
* the code to notify when the pref changes;
|
||||
*
|
||||
* @param thisObject {Object} [optional]
|
||||
* the object to use as |this| when calling a Function callback;
|
||||
*
|
||||
* @returns the wrapped observer
|
||||
*/
|
||||
observe: function(prefName, callback, thisObject) {
|
||||
let fullPrefName = this._prefBranch + (prefName || "");
|
||||
|
||||
let observer = new PrefObserver(fullPrefName, callback, thisObject);
|
||||
Preferences._prefSvc.addObserver(fullPrefName, observer, true);
|
||||
observers.push(observer);
|
||||
|
||||
return observer;
|
||||
},
|
||||
|
||||
/**
|
||||
* Stop observing a pref.
|
||||
*
|
||||
* You must call this method with the same prefName, callback, and thisObject
|
||||
* with which you originally registered the observer. However, you don't have
|
||||
* to call this method on the same exact instance of Preferences; you can call
|
||||
* it on any instance. For example, the following code first starts and then
|
||||
* stops observing the "foo.bar.baz" preference:
|
||||
*
|
||||
* let observer = function() {...};
|
||||
* Preferences.observe("foo.bar.baz", observer);
|
||||
* new Preferences("foo.bar.").ignore("baz", observer);
|
||||
*
|
||||
* @param prefName {String}
|
||||
* the name of the pref being observed
|
||||
*
|
||||
* @param callback {Function|Object}
|
||||
* the code being notified when the pref changes
|
||||
*
|
||||
* @param thisObject {Object} [optional]
|
||||
* the object being used as |this| when calling a Function callback
|
||||
*/
|
||||
ignore: function(prefName, callback, thisObject) {
|
||||
let fullPrefName = this._prefBranch + (prefName || "");
|
||||
|
||||
// This seems fairly inefficient, but I'm not sure how much better we can
|
||||
// make it. We could index by fullBranch, but we can't index by callback
|
||||
// or thisObject, as far as I know, since the keys to JavaScript hashes
|
||||
// (a.k.a. objects) can apparently only be primitive values.
|
||||
let [observer] = observers.filter(v => v.prefName == fullPrefName &&
|
||||
v.callback == callback &&
|
||||
v.thisObject == thisObject);
|
||||
|
||||
if (observer) {
|
||||
Preferences._prefSvc.removeObserver(fullPrefName, observer);
|
||||
observers.splice(observers.indexOf(observer), 1);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Same as observe(), but automatically unregisters itself when
|
||||
* the window closes, saving you from writing an unload handler and
|
||||
* calling ignore().
|
||||
* @param win {nsIDOMWindow} your |window|
|
||||
*/
|
||||
observeAuto: function(win, prefName, callback, thisObject) {
|
||||
if (!win instanceof Ci.nsIDOMWindow)
|
||||
throw "Need your |window| as first parameter";
|
||||
this.observe(prefName, callback, thisObject);
|
||||
var self = this;
|
||||
win.addEventListener("unload", function()
|
||||
{
|
||||
self.ignore(prefName, callback, thisObject);
|
||||
}, false);
|
||||
win = null; // don't let closure hold on to window unnecessarily
|
||||
},
|
||||
|
||||
resetBranch: function(prefBranch) {
|
||||
try {
|
||||
this._prefSvc.resetBranch(prefBranch);
|
||||
}
|
||||
catch(ex) {
|
||||
// The current implementation of nsIPrefBranch in Mozilla
|
||||
// doesn't implement resetBranch, so we do it ourselves.
|
||||
if (ex.result == Cr.NS_ERROR_NOT_IMPLEMENTED)
|
||||
this.reset(this._prefSvc.getChildList(prefBranch, []));
|
||||
else
|
||||
throw ex;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns all child prefs of this pref branch.
|
||||
* This equals nsIPrefBranch.getChildList().
|
||||
* This allows you to do e.g.
|
||||
* var myPrefs = new Preferences("extensions.cooler.");
|
||||
* var contents = myPrefs.branch("contents.");
|
||||
* for each (let prefname in contents.childPrefNames())
|
||||
* dump("have " + contents.get(prefname) + " " + prefname + "\n");
|
||||
*
|
||||
* @returns {Array of String} The names of the children,
|
||||
* without the base pref branch, but with subbranch.
|
||||
*/
|
||||
childPrefNames : function() {
|
||||
return this._prefSvc.getChildList("", []);
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns an nsIPrefBranch for the pref branch that this object stands for.
|
||||
* You can use this to use functions that are not supported here.
|
||||
* @returns {nsIPrefBranch}
|
||||
*/
|
||||
get mozillaPrefBranch() {
|
||||
return this._prefSvc;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the base pref name that this object stands for.
|
||||
* E.g. "extensions.yourcooler.";
|
||||
* @returns {String}
|
||||
*/
|
||||
get prefBranchName() {
|
||||
return this._prefBranch;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns an Preferences object for an sub pref branch
|
||||
* underneath the current pref branch.
|
||||
* @param subbranch {String} Will be appended to the
|
||||
* current pref branch. Don't forget the trailing dot,
|
||||
* where necessary.
|
||||
* E.g. "contents."
|
||||
* @returns {Preferences}
|
||||
*/
|
||||
branch : function(subbranch) {
|
||||
return new Preferences(this._prefBranch + subbranch);
|
||||
},
|
||||
|
||||
/**
|
||||
* The branch of the preferences tree to which this instance provides access.
|
||||
* @private
|
||||
*/
|
||||
_prefBranch: "",
|
||||
|
||||
/**
|
||||
* Preferences Service
|
||||
* @private
|
||||
*/
|
||||
get _prefSvc() {
|
||||
// nsIPrefService
|
||||
let prefSvc = Services.prefs.
|
||||
getBranch(this._prefBranch).
|
||||
QueryInterface(Ci.nsIPrefBranch);
|
||||
Object.defineProperty(this, "_prefSvc", {
|
||||
get: function() {
|
||||
return prefSvc;
|
||||
}
|
||||
});
|
||||
return this._prefSvc;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Give the constructor the same prototype as its instances, so users can access
|
||||
// preferences directly via the constructor without having to create an instance
|
||||
// first.
|
||||
Preferences.__proto__ = Preferences.prototype;
|
||||
|
||||
/**
|
||||
* A cache of pref observers.
|
||||
*
|
||||
* We use this to remove observers when a caller calls Preferences::ignore.
|
||||
*
|
||||
* All Preferences instances share this object, because we want callers to be
|
||||
* able to remove an observer using a different Preferences object than the one
|
||||
* with which they added it. That means we have to identify the observers
|
||||
* in this object by their complete pref name, not just their name relative to
|
||||
* the root branch of the Preferences object with which they were created.
|
||||
*/
|
||||
let observers = [];
|
||||
|
||||
function PrefObserver(prefName, callback, thisObject) {
|
||||
this.prefName = prefName;
|
||||
this.callback = callback;
|
||||
this.thisObject = thisObject;
|
||||
}
|
||||
|
||||
PrefObserver.prototype = {
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
|
||||
observe: function(subject, topic, data) {
|
||||
// The pref service only observes whole branches, but we only observe
|
||||
// individual preferences, so we check here that the pref that changed
|
||||
// is the exact one we're observing (and not some sub-pref on the branch).
|
||||
if (data != this.prefName)
|
||||
return;
|
||||
|
||||
if (typeof this.callback == "function") {
|
||||
let prefValue = Preferences.get(this.prefName);
|
||||
|
||||
if (this.thisObject)
|
||||
this.callback.call(this.thisObject, prefValue);
|
||||
else
|
||||
this.callback(prefValue);
|
||||
}
|
||||
else // typeof this.callback == "object" (nsIObserver)
|
||||
this.callback.observe(subject, topic, data);
|
||||
}
|
||||
};
|
||||
|
||||
function isArray(val) {
|
||||
// We can't check for |val.constructor == Array| here, since the value
|
||||
// might be from a different context whose Array constructor is not the same
|
||||
// as ours, so instead we match based on the name of the constructor.
|
||||
return (typeof val != "undefined" && val != null && typeof val == "object" &&
|
||||
val.constructor.name == "Array");
|
||||
}
|
||||
|
||||
function isObject(val) {
|
||||
// We can't check for |val.constructor == Object| here, since the value
|
||||
// might be from a different context whose Object constructor is not the same
|
||||
// as ours, so instead we match based on the name of the constructor.
|
||||
return (typeof val != "undefined" && val != null && typeof val == "object" &&
|
||||
val.constructor.name == "Object");
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* JS module implementation of nsIDOMJSWindow.setTimeout and clearTimeout.
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["setTimeout", "clearTimeout"];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
// This gives us >=2^30 unique timer IDs, enough for 1 per ms for 12.4 days.
|
||||
let gNextTimeoutId = 1; // setTimeout must return a positive integer
|
||||
|
||||
let gTimeoutTable = new Map(); // int -> nsITimer
|
||||
|
||||
this.setTimeout = function setTimeout(aCallback, aMilliseconds) {
|
||||
let id = gNextTimeoutId++;
|
||||
let args = Array.slice(arguments, 2);
|
||||
let timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
|
||||
timer.initWithCallback(function setTimeout_timer() {
|
||||
gTimeoutTable.delete(id);
|
||||
aCallback.apply(null, args);
|
||||
}, aMilliseconds, timer.TYPE_ONE_SHOT);
|
||||
|
||||
gTimeoutTable.set(id, timer);
|
||||
return id;
|
||||
}
|
||||
|
||||
this.clearTimeout = function clearTimeout(aId) {
|
||||
if (gTimeoutTable.has(aId)) {
|
||||
gTimeoutTable.get(aId).cancel();
|
||||
gTimeoutTable.delete(aId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
var EXPORTED_SYMBOLS = ["errorCritical"];
|
||||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
function errorCritical(e)
|
||||
{
|
||||
Services.prompt.alert(null, "", e);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIID9zCCAt+gAwIBAgIUervWv7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QADggEBAKcmGUXV
|
||||
gCw8PRHe0+XlkcSTX69e0TIPP+j5uJxMT3BHasvBdyV4FcjuUokHGjAnHal5OV4N
|
||||
yWdbRPnIge7su4yLQZzlNM1OzbcRds1wSbqTEpb68R/6E8mv3ms6Rc8AcRoXwusc
|
||||
byZvzS9tBSXTQ21wCVrltnIARAYabWlWu+URv+DFvlwMik6H8+DklHSVkPC6K3Ov
|
||||
V1aMJztMnJ/XTTsFDS/yvaTfmJFG16LABIiSsEAW5QK64sWsN4sxvpcg0D6/EjWP
|
||||
knyLM4KXuD3i08mzwzus8d97AjGxC5RCEFL5ADBpVaDU/5CpmZmZdY1daYjiHrXm
|
||||
EVNoSbqid1fAVyA=
|
||||
-----END CERTIFICATE-----
|
||||
@@ -0,0 +1,2 @@
|
||||
pref("general.config.filename", "i2pdbrowser.cfg");
|
||||
pref("general.config.obscure_value", 0);
|
||||
@@ -0,0 +1,373 @@
|
||||
// I2Pd Browser preferences
|
||||
|
||||
/*
|
||||
* Copyright (c) 2013-2019, The PurpleI2P Project
|
||||
* This file is part of Purple i2pd project and licensed under BSD3
|
||||
* See full license text in LICENSE file at top of project tree
|
||||
*/
|
||||
|
||||
/* Do not edit this file.
|
||||
*
|
||||
* If you make changes to this file while the browser is running,
|
||||
* the changes will be overwritten when the browser exits.
|
||||
*
|
||||
* To make a manual change to preferences, you can visit the URL about:config
|
||||
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
|
||||
*/
|
||||
|
||||
lockPref("accessibility.force_disabled", 1);
|
||||
defaultPref("app.normandy.first_run", false);
|
||||
lockPref("app.update.auto", false);
|
||||
lockPref("app.update.channel", "i2pdbrowser");
|
||||
lockPref("app.update.enabled", false);
|
||||
lockPref("app.update.interval", 0);
|
||||
lockPref("app.update.service.enabled", false);
|
||||
defaultPref("beacon.enabled", false);
|
||||
pref("breakpad.reportURL", "");
|
||||
pref("browser.aboutHomeSnippets.updateUrl", "");
|
||||
defaultPref("browser.cache.disk.capacity", 131072);
|
||||
defaultPref("browser.cache.offline.enable", false);
|
||||
defaultPref("browser.casting.enabled", false);
|
||||
pref("browser.download.manager.retention", 0);
|
||||
defaultPref("browser.download.useDownloadDir", false);
|
||||
defaultPref("browser.feeds.showFirstRunUI", false);
|
||||
defaultPref("browser.fixup.alternate.enabled", false);
|
||||
defaultPref("browser.formfill.enable", false);
|
||||
defaultPref("browser.formfill.expire_days", 0);
|
||||
lockPref("browser.newtabpage.activity-stream.default.sites", "http://i2pd.i2p/,http://333.i2p/,http://inr.i2p/,http://102chan.i2p/,http://flibusta.i2p/,http://fsoc.i2p/,http://lifebox.i2p/,http://onelon.i2p/,http://wiki.ilita.i2p/");
|
||||
lockPref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
|
||||
lockPref("browser.newtabpage.activity-stream.feeds.snippets", false);
|
||||
defaultPref("browser.newtabpage.activity-stream.showSearch", true);
|
||||
lockPref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
pref("browser.newtabpage.activity-stream.topSitesRows", 2);
|
||||
pref("browser.newtabpage.enhanced", false);
|
||||
pref("browser.newtabpage.introShown", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-addons.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-customize.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-default-browser.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-performance.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-private-browsing.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-screenshots.completed", true);
|
||||
defaultPref("browser.pagethumbnails.capturing_disabled", true);
|
||||
defaultPref("browser.places.smartBookmarksVersion", -1);
|
||||
pref("browser.reader.detectedFirstArticle", false);
|
||||
pref("browser.rights.3.shown", true);
|
||||
defaultPref("browser.safebrowsing.appRepURL", "");
|
||||
defaultPref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
defaultPref("browser.safebrowsing.downloads.enabled", false);
|
||||
defaultPref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||
defaultPref("browser.safebrowsing.gethashURL", "");
|
||||
defaultPref("browser.safebrowsing.keyURL", "localhost");
|
||||
defaultPref("browser.safebrowsing.malware.enabled", false);
|
||||
defaultPref("browser.safebrowsing.malware.reportURL", "");
|
||||
defaultPref("browser.safebrowsing.phishing.enabled", false);
|
||||
defaultPref("browser.safebrowsing.provider.google.appRepURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.google.gethashURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.google.lists", "");
|
||||
defaultPref("browser.safebrowsing.provider.google.reportURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.google.updateURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.mozilla.gethashURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.mozilla.lists", "");
|
||||
defaultPref("browser.safebrowsing.provider.mozilla.updateURL", "");
|
||||
defaultPref("browser.safebrowsing.reportErrorURL", "");
|
||||
defaultPref("browser.safebrowsing.reportGenericURL", "");
|
||||
defaultPref("browser.safebrowsing.reportMalwareErrorURL", "");
|
||||
defaultPref("browser.safebrowsing.reportMalwareURL", "");
|
||||
defaultPref("browser.safebrowsing.reportPhishURL", "");
|
||||
defaultPref("browser.safebrowsing.reportURL", "");
|
||||
defaultPref("browser.safebrowsing.updateURL", "");
|
||||
defaultPref("browser.safebrowsing.warning.infoURL", "");
|
||||
defaultPref("browser.search.countryCode", "US");
|
||||
defaultPref("browser.search.defaultenginename", "YaCy 'legwork'");
|
||||
defaultPref("browser.search.geoSpecificDefaults", false);
|
||||
defaultPref("browser.search.geoSpecificDefaults.url", "");
|
||||
defaultPref("browser.search.geoip.url", "");
|
||||
defaultPref("browser.search.hiddenOneOffs", "Amazon.com,Bing,DuckDuckGo,eBay,Google,Twitter,Wikipedia (en)");
|
||||
defaultPref("browser.search.official", false);
|
||||
defaultPref("browser.search.order.1", "YaCy 'legwork'");
|
||||
defaultPref("browser.search.redirectWindowsSearch", false);
|
||||
defaultPref("browser.search.region", "US");
|
||||
defaultPref("browser.search.searchEnginesURL", "");
|
||||
defaultPref("browser.search.suggest.enabled", false);
|
||||
defaultPref("browser.search.update", false);
|
||||
pref("browser.search.widget.inNavBar", true);
|
||||
lockPref("browser.send_pings", false);
|
||||
pref("browser.send_pings.require_same_host", true);
|
||||
defaultPref("browser.shell.checkDefaultBrowser", false);
|
||||
pref("browser.startup.homepage", "http://i2pd.i2p/");
|
||||
defaultPref("browser.tabs.closeWindowWithLastTab", false);
|
||||
lockPref("browser.tabs.crashReporting.sendReport", false);
|
||||
defaultPref("browser.uitour.enabled", false);
|
||||
defaultPref("browser.urlbar.formatting.enabled", false);
|
||||
defaultPref("browser.urlbar.maxRichResults", 12);
|
||||
defaultPref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
defaultPref("browser.urlbar.suggest.searches", false);
|
||||
defaultPref("browser.urlbar.trimURLs", false);
|
||||
lockPref("browser.usedOnWindows10", false);
|
||||
lockPref("browser.usedOnWindows10.introURL", "");
|
||||
lockPref("camera.control.face_detection.enabled", false);
|
||||
pref("canvas.capturestream.enabled", false);
|
||||
pref("clipboard.autocopy", false);
|
||||
defaultPref("datareporting.healthreport.about.reportUrl", "");
|
||||
defaultPref("datareporting.healthreport.about.reportUrlUnified", "");
|
||||
defaultPref("datareporting.healthreport.documentServerURI", "");
|
||||
defaultPref("datareporting.healthreport.pendingDeleteRemoteData", true);
|
||||
lockPref("datareporting.healthreport.service.enabled", false);
|
||||
defaultPref("datareporting.healthreport.service.firstRun", false);
|
||||
lockPref("datareporting.healthreport.uploadEnabled", false);
|
||||
pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||
pref("datareporting.policy.firstRunTime", "0");
|
||||
pref("datareporting.sessions.current.clean", true);
|
||||
pref("device.sensors.enabled", false);
|
||||
pref("devtools.chrome.enabled", false);
|
||||
pref("devtools.debugger.force-local", true);
|
||||
pref("devtools.debugger.remote-enabled", false);
|
||||
pref("devtools.webide.autoinstallADBHelper", false);
|
||||
pref("devtools.webide.autoinstallFxdtAdapters", false);
|
||||
pref("devtools.webide.enabled", false);
|
||||
pref("dom.allow_cut_copy", false);
|
||||
pref("dom.archivereader.enabled", false);
|
||||
pref("dom.battery.enabled", false);
|
||||
pref("dom.enable_performance", false);
|
||||
pref("dom.enable_user_timing", false);
|
||||
pref("dom.event.clipboardevents.enabled", false);
|
||||
pref("dom.flyweb.enabled", false);
|
||||
pref("dom.gamepad.enabled", false);
|
||||
pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false);
|
||||
pref("dom.ipc.plugins.reportCrashURL", false);
|
||||
pref("dom.maxHardwareConcurrency", 2);
|
||||
pref("dom.mozTCPSocket.enabled", false);
|
||||
pref("dom.netinfo.enabled", false);
|
||||
pref("dom.network.enabled", false);
|
||||
pref("dom.telephony.enabled", false);
|
||||
pref("dom.vibrator.enabled", false);
|
||||
pref("dom.vr.enabled", false);
|
||||
pref("dom.webaudio.enabled", false);
|
||||
pref("dom.webnotifications.enabled", false);
|
||||
pref("dom.workers.enabled", false);
|
||||
pref("experiments.enabled", false);
|
||||
pref("experiments.manifest.uri", "");
|
||||
pref("experiments.supported", false);
|
||||
pref("extensions.autoDisableScopes", 0);
|
||||
pref("extensions.blocklist.enabled", false);
|
||||
pref("extensions.blocklist.url", "");
|
||||
pref("extensions.getAddons.cache.enabled", false);
|
||||
pref("extensions.lazarus.showDonateNotification", false);
|
||||
lockPref("extensions.pocket.enabled", false);
|
||||
pref("extensions.shownSelectionUI", true);
|
||||
pref("extensions.ui.lastCategory", "addons://list/extension");
|
||||
pref("extensions.update.autoUpdateDefault", false);
|
||||
defaultPref("extensions.update.enabled", false);
|
||||
pref("full-screen-api.approval-required", false);
|
||||
pref("full-screen-api.warning.timeout", 0);
|
||||
pref("general.buildID.override", "20100101");
|
||||
lockPref("general.platform.override", "Win32");
|
||||
lockPref("general.useragent.locale", "en-US");
|
||||
lockPref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0");
|
||||
pref("general.warnOnAboutConfig", false);
|
||||
defaultPref("geo.enabled", false);
|
||||
lockPref("geo.wifi.logging.enabled", false);
|
||||
defaultPref("geo.wifi.uri", "");
|
||||
lockPref("identity.fxaccounts.enabled", false);
|
||||
defaultPref("intl.locale.matchOS", true);
|
||||
pref("javascript.use_us_english_locale", true);
|
||||
pref("keyword.enabled", false);
|
||||
pref("lightweightThemes.update.enabled", false);
|
||||
pref("loop.logDomains", false);
|
||||
defaultPref("media.eme.enabled", false);
|
||||
lockPref("media.getusermedia.audiocapture.enabled", false);
|
||||
lockPref("media.getusermedia.screensharing.enabled", false);
|
||||
pref("media.gmp-eme-adobe.enabled", false);
|
||||
pref("media.gmp-gmpopenh264.enabled", false);
|
||||
pref("media.gmp-gmpopenh264.provider.enabled", false);
|
||||
pref("media.gmp-manager.url", "");
|
||||
defaultPref("media.navigator.enabled", false);
|
||||
defaultPref("media.navigator.video.enabled", false);
|
||||
defaultPref("media.peerconnection.enabled", false);
|
||||
defaultPref("media.peerconnection.ice.default_address_only", true);
|
||||
defaultPref("media.peerconnection.ice.no_host", true);
|
||||
defaultPref("media.peerconnection.identity.timeout", 1);
|
||||
defaultPref("media.peerconnection.turn.disable", true);
|
||||
defaultPref("media.peerconnection.use_document_iceservers", false);
|
||||
defaultPref("media.video_stats.enabled", false);
|
||||
defaultPref("media.webspeech.recognition.enable", false);
|
||||
defaultPref("media.webspeech.synth.enabled", false);
|
||||
defaultPref("network.IDN.whitelist.i2p", true);
|
||||
defaultPref("network.IDN_show_punycode", true);
|
||||
defaultPref("network.allow-experiments", false);
|
||||
pref("network.cookie.prefsMigrated", true);
|
||||
defaultPref("network.dns.disableIPv6", true);
|
||||
defaultPref("network.dns.disablePrefetchFromHTTPS", true);
|
||||
defaultPref("network.dns.disableprefetch", true);
|
||||
pref("network.http.speculative-parallel-limit", 0);
|
||||
defaultPref("network.jar.open-unsafe-types", false);
|
||||
pref("network.manage-offline-status", false);
|
||||
defaultPref("network.negotiate-auth.allow-insecure-ntlm-v1", false);
|
||||
pref("network.predictor.enabled", false);
|
||||
defaultPref("network.prefetch-next", false);
|
||||
pref("network.protocol-handler.expose-all", false);
|
||||
pref("network.protocol-handler.expose.about", true);
|
||||
pref("network.protocol-handler.expose.file", true);
|
||||
pref("network.protocol-handler.expose.ftp", true);
|
||||
pref("network.protocol-handler.expose.http", true);
|
||||
pref("network.protocol-handler.expose.https", true);
|
||||
pref("network.protocol-handler.expose.javascript", true);
|
||||
pref("network.protocol-handler.expose.moz-extension", true);
|
||||
pref("network.protocol-handler.external.about", false);
|
||||
pref("network.protocol-handler.external.file", false);
|
||||
pref("network.protocol-handler.external.ftp", false);
|
||||
pref("network.protocol-handler.external.http", false);
|
||||
pref("network.protocol-handler.external.https", false);
|
||||
pref("network.protocol-handler.external.javascript", false);
|
||||
pref("network.protocol-handler.external.moz-extension", false);
|
||||
defaultPref("network.protocol-handler.warn-external-default", true);
|
||||
defaultPref("network.proxy.ftp", "127.0.0.1");
|
||||
defaultPref("network.proxy.ftp_port", 4444);
|
||||
defaultPref("network.proxy.http", "127.0.0.1");
|
||||
defaultPref("network.proxy.http_port", 4444);
|
||||
defaultPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");
|
||||
defaultPref("network.proxy.share_proxy_settings", true);
|
||||
defaultPref("network.proxy.socks_remote_dns", true);
|
||||
defaultPref("network.proxy.ssl", "127.0.0.1");
|
||||
defaultPref("network.proxy.ssl_port", 4444);
|
||||
lockPref("network.proxy.type", 1);
|
||||
defaultPref("pdfjs.disabled", true);
|
||||
defaultPref("pdfjs.enableWebGL", false);
|
||||
defaultPref("permissions.default.camera", 2);
|
||||
defaultPref("permissions.default.desktop-notification", 2);
|
||||
defaultPref("permissions.default.geo", 2);
|
||||
defaultPref("permissions.default.microphone", 2);
|
||||
defaultPref("plugin.default_plugin_disabled", true);
|
||||
defaultPref("plugin.state.java", 0);
|
||||
defaultPref("plugin.state.libgnome-shell-browser-plugin", 0);
|
||||
defaultPref("plugins.click_to_play", true);
|
||||
defaultPref("plugins.load_appdir_plugins", false);
|
||||
defaultPref("plugins.update.notifyUser", false);
|
||||
defaultPref("plugins.update.url", "");
|
||||
pref("privacy.cpd.offlineApps", true);
|
||||
pref("privacy.firstparty.isolate", true);
|
||||
defaultPref("privacy.resistFingerprinting", true);
|
||||
pref("privacy.sanitize.timeSpan", 0);
|
||||
defaultPref("privacy.spoof_english", 2);
|
||||
defaultPref("privacy.trackingprotection.enabled", true);
|
||||
lockPref("privacy.userContext.enabled", true);
|
||||
defaultPref("reader.parse-on-load.enabled", false);
|
||||
defaultPref("reader.parse-on-load.force-enabled", false);
|
||||
defaultPref("security.insecure_field_warning.contextual.enabled", false);
|
||||
defaultPref("security.insecure_password.ui.enabled", false);
|
||||
defaultPref("security.ssl.errorReporting.enabled", false);
|
||||
defaultPref("services.blocklist.update_enabled", false);
|
||||
lockPref("services.sync.enabled", false);
|
||||
pref("services.sync.prefs.sync.browser.download.manager.scanWhenDone", false);
|
||||
pref("services.sync.prefs.sync.browser.safebrowsing.enabled", false);
|
||||
pref("services.sync.prefs.sync.browser.search.update", false);
|
||||
pref("services.sync.prefs.sync.extensions.update.enabled", false);
|
||||
pref("signon.autofillForms", false);
|
||||
pref("signon.rememberSignons", false);
|
||||
defaultPref("startup.homepage_welcome_url", "http://i2pd.i2p/");
|
||||
pref("startup.homepage_welcome_url.additional", "about:blank");
|
||||
lockPref("toolkit.telemetry.archive.enabled", false);
|
||||
lockPref("toolkit.telemetry.enabled", false);
|
||||
defaultPref("toolkit.telemetry.optoutSample", false);
|
||||
defaultPref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
||||
lockPref("toolkit.telemetry.server", "");
|
||||
defaultPref("toolkit.telemetry.unified", false);
|
||||
defaultPref("toolkit.telemetry.unifiedIsOptIn", true);
|
||||
defaultPref("webgl.disable-extensions", true);
|
||||
defaultPref("webgl.disable-fail-if-major-performance-caveat", true);
|
||||
defaultPref("webgl.disabled", true);
|
||||
defaultPref("webgl.enable-debug-renderer-info", false);
|
||||
defaultPref("webgl.min_capability_mode", true);
|
||||
|
||||
var config = {
|
||||
"cckVersion": "2.2.9",
|
||||
"name": "I2Pd Browser",
|
||||
"description": "Preconfigured for use with I2P browser",
|
||||
"version": "1.2.8",
|
||||
"homePage": "http://i2pd.i2p/",
|
||||
"welcomePage": "http://i2pd.i2p/",
|
||||
"titlemodifier": "I2Pd Browser",
|
||||
"extension": {
|
||||
"name": "I2Pd Browser"
|
||||
},
|
||||
"noWelcomePage": true,
|
||||
"noUpgradePage": true,
|
||||
"removeSetDesktopBackground": true,
|
||||
"removeSafeModeMenu": true,
|
||||
"noGetAddons": true,
|
||||
"noAddonCompatibilityCheck": true,
|
||||
"disableSearchEngineInstall": true,
|
||||
"removeDefaultSearchEngines": false,
|
||||
"displayBookmarksToolbar": true,
|
||||
"removeSmartBookmarks": true,
|
||||
"removeDefaultBookmarks": true,
|
||||
"removeDuplicateBookmarkNames": true,
|
||||
"dontCheckDefaultBrowser": true,
|
||||
"dontUseDownloadDir": true,
|
||||
"disableFormFill": true,
|
||||
"disableSync": true,
|
||||
"disableCrashReporter": true,
|
||||
"disableTelemetry": true,
|
||||
"disableFirefoxHealthReportUpload": true,
|
||||
"disableFirefoxHealthReport": true,
|
||||
"disableFirefoxUpdates": true,
|
||||
"removeSnippets": true,
|
||||
"disableResetFirefox": true,
|
||||
"disableWebApps": true,
|
||||
"disableHello": true,
|
||||
"disableSharePage": true,
|
||||
"disableForget": true,
|
||||
"disableHeartbeat": true,
|
||||
"disablePocket": true,
|
||||
"disableAboutSupport": true,
|
||||
"disableAboutProfiles": true,
|
||||
"showSearchBar": true,
|
||||
"autoconfig": {
|
||||
"disableProfileMigrator": true
|
||||
},
|
||||
"id": "i2pdbrowser",
|
||||
"hiddenUI": [
|
||||
"#defaultBrowserBox",
|
||||
"#enableSearchUpdate",
|
||||
"#dataCollectionCategory",
|
||||
"#dataCollectionGroup",
|
||||
".help-button",
|
||||
"#onboarding-overlay-button",
|
||||
".prefs-modal-inner-wrapper > section:nth-child(6)"
|
||||
],
|
||||
"searchplugins": {
|
||||
"YaCy 'legwork'": "http://legwork.i2p/opensearchdescription.xml"
|
||||
},
|
||||
"defaultSearchEngine": "YaCy 'legwork'",
|
||||
"certs": {
|
||||
"ca": [
|
||||
{
|
||||
"url": "resource://cck2_i2pdbrowser/certs/purplei2p_ca.pem",
|
||||
"trust": "CTc,CTc,CTc"
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
var io = Components.classes["@mozilla.org/network/io-service;1"]
|
||||
.getService(Components.interfaces.nsIIOService);
|
||||
var resource = io.getProtocolHandler("resource")
|
||||
.QueryInterface(Components.interfaces.nsIResProtocolHandler);
|
||||
|
||||
var greDir = Components.classes["@mozilla.org/file/directory_service;1"]
|
||||
.getService(Components.interfaces.nsIProperties)
|
||||
.get("GreD", Components.interfaces.nsIFile);
|
||||
var cck2ModuleDir = greDir.clone();
|
||||
cck2ModuleDir.append("cck2");
|
||||
cck2ModuleDir.append("modules");
|
||||
var cck2Alias = io.newFileURI(cck2ModuleDir);
|
||||
resource.setSubstitution("cck2", cck2Alias);
|
||||
|
||||
var configModuleDir = greDir.clone();
|
||||
configModuleDir.append("cck2");
|
||||
configModuleDir.append("resources");
|
||||
var configAlias = io.newFileURI(configModuleDir);
|
||||
resource.setSubstitution("cck2_i2pdbrowser", configAlias);
|
||||
|
||||
Components.utils.import("resource://cck2/CCK2.jsm");
|
||||
CCK2.init(config, "ä"[0], "ä");
|
||||
@@ -1,346 +0,0 @@
|
||||
# Mozilla User preferences
|
||||
|
||||
/*
|
||||
* Copyright (c) 2013-2017, The PurpleI2P Project
|
||||
*
|
||||
* This file is part of Purple i2pd project and licensed under BSD3
|
||||
*
|
||||
* See full license text in LICENSE file at top of project tree
|
||||
*/
|
||||
|
||||
/* Do not edit this file.
|
||||
*
|
||||
* If you make changes to this file while the browser is running,
|
||||
* the changes will be overwritten when the browser exits.
|
||||
*
|
||||
* To make a manual change to preferences, you can visit the URL about:config
|
||||
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
|
||||
*/
|
||||
|
||||
pref("app.update.auto", false);
|
||||
pref("app.update.channel", "no");
|
||||
pref("app.update.enabled", false);
|
||||
pref("app.update.interval", 0);
|
||||
pref("app.update.service.enabled", false);
|
||||
pref("app.update.staging.enabled", false);
|
||||
pref("app.update.timer", 0);
|
||||
pref("beacon.enabled", false);
|
||||
pref("breakpad.reportURL", "");
|
||||
pref("browser.aboutHomeSnippets.updateUrl", "");
|
||||
pref("browser.cache.disk.capacity", 131072);
|
||||
pref("browser.casting.enabled", false);
|
||||
pref("browser.crashReports.unsubmittedCheck.enabled", false);
|
||||
// pref("browser.display.use_document_fonts", 0);
|
||||
pref("browser.download.manager.retention", 0);
|
||||
pref("browser.download.useDownloadDir", false);
|
||||
pref("browser.feeds.showFirstRunUI", false);
|
||||
pref("browser.fixup.alternate.enabled", false);
|
||||
pref("browser.fixup.hide_user_pass", true);
|
||||
pref("browser.formfill.enable", false);
|
||||
// PREF: Delete Search and Form History
|
||||
pref("browser.formfill.expire_days", 0);
|
||||
// PREF: Delete temporary files on exit
|
||||
pref("browser.helperApps.deleteTempFileOnExit", true);
|
||||
pref("browser.newtabpage.enhanced", false);
|
||||
pref("browser.newtabpage.introShown", true);
|
||||
// PREF: Do not create screenshots of visited pages
|
||||
pref("browser.pagethumbnails.capturing_disabled", true);
|
||||
pref("browser.places.smartBookmarksVersion", -1);
|
||||
pref("browser.pocket.enabled", false);
|
||||
pref("browser.pocket.useLocaleList", false);
|
||||
pref("browser.reader.detectedFirstArticle", false);
|
||||
pref("browser.rights.3.shown", true);
|
||||
pref("browser.safebrowsing.appRepURL", "");
|
||||
pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
pref("browser.safebrowsing.downloads.enabled", false);
|
||||
pref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||
pref("browser.safebrowsing.gethashURL", "");
|
||||
pref("browser.safebrowsing.keyURL", "localhost");
|
||||
pref("browser.safebrowsing.malware.enabled", false);
|
||||
pref("browser.safebrowsing.malware.reportURL", "");
|
||||
pref("browser.safebrowsing.phishing.enabled", false);
|
||||
pref("browser.safebrowsing.provider.google.appRepURL", "");
|
||||
pref("browser.safebrowsing.provider.google.gethashURL", "");
|
||||
pref("browser.safebrowsing.provider.google.lists", "");
|
||||
pref("browser.safebrowsing.provider.google.reportURL", "");
|
||||
pref("browser.safebrowsing.provider.google.updateURL", "");
|
||||
pref("browser.safebrowsing.provider.mozilla.gethashURL", "");
|
||||
pref("browser.safebrowsing.provider.mozilla.lists", "");
|
||||
pref("browser.safebrowsing.provider.mozilla.updateURL", "");
|
||||
pref("browser.safebrowsing.reportErrorURL", "");
|
||||
pref("browser.safebrowsing.reportGenericURL", "");
|
||||
pref("browser.safebrowsing.reportMalwareErrorURL", "");
|
||||
pref("browser.safebrowsing.reportMalwareURL", "");
|
||||
pref("browser.safebrowsing.reportPhishURL", "");
|
||||
pref("browser.safebrowsing.reportURL", "");
|
||||
pref("browser.safebrowsing.updateURL", "");
|
||||
pref("browser.safebrowsing.warning.infoURL", "");
|
||||
pref("browser.search.countryCode", "US");
|
||||
pref("browser.search.defaultenginename", "DuckDuckGo");
|
||||
pref("browser.search.geoSpecificDefaults", false);
|
||||
pref("browser.search.geoSpecificDefaults.url", "");
|
||||
pref("browser.search.geoip.url", "");
|
||||
pref("browser.search.order.1", "DuckDuckGo");
|
||||
pref("browser.search.redirectWindowsSearch", false);
|
||||
pref("browser.search.region", "US");
|
||||
pref("browser.search.searchEnginesURL", "");
|
||||
pref("browser.search.suggest.enabled", false);
|
||||
pref("browser.search.update", false);
|
||||
pref("browser.send_pings", false);
|
||||
pref("browser.send_pings.require_same_host", true);
|
||||
pref("browser.selfsupport.url", "");
|
||||
pref("browser.shell.checkDefaultBrowser", false);
|
||||
user_pref("browser.startup.homepage", "http://i2pd.i2p/");
|
||||
pref("browser.tabs.closeWindowWithLastTab", false);
|
||||
pref("browser.tabs.crashReporting.sendReport", false);
|
||||
pref("browser.tabs.loadInBackground", true);
|
||||
pref("browser.uitour.enabled", false);
|
||||
pref("browser.urlbar.filter.javascript", true);
|
||||
pref("browser.urlbar.formatting.enabled", false);
|
||||
pref("browser.urlbar.maxRichResults", 12);
|
||||
// pref("browser.urlbar.suggest.history", false);
|
||||
pref("browser.urlbar.suggest.searches", false);
|
||||
pref("browser.urlbar.trimURLs", false);
|
||||
pref("browser.usedOnWindows10", false);
|
||||
pref("browser.usedOnWindows10.introURL", "");
|
||||
pref("camera.control.face_detection.enabled", false);
|
||||
pref("canvas.capturestream.enabled", false);
|
||||
pref("clipboard.autocopy", false);
|
||||
pref("datareporting.healthreport.about.reportUrl", "");
|
||||
pref("datareporting.healthreport.about.reportUrlUnified", "");
|
||||
pref("datareporting.healthreport.documentServerURI", "");
|
||||
pref("datareporting.healthreport.pendingDeleteRemoteData", true);
|
||||
pref("datareporting.healthreport.service.enabled", false);
|
||||
pref("datareporting.healthreport.service.firstRun", false);
|
||||
pref("datareporting.healthreport.uploadEnabled", false);
|
||||
pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||
pref("datareporting.policy.dataSubmissionEnabled.v2", false);
|
||||
pref("datareporting.policy.dataSubmissionPolicyAccepted", false);
|
||||
pref("datareporting.policy.dataSubmissionPolicyBypassAcceptance", false);
|
||||
pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "0");
|
||||
pref("datareporting.policy.dataSubmissionPolicyResponseType", "accepted-info-bar-dismissed");
|
||||
pref("datareporting.policy.dataSubmissionPolicyResponseTime", "0");
|
||||
pref("datareporting.policy.firstRunTime", "0");
|
||||
pref("datareporting.sessions.current.clean", true);
|
||||
pref("device.sensors.enabled", false);
|
||||
pref("devtools.chrome.enabled", false);
|
||||
pref("devtools.debugger.remote-enabled", false);
|
||||
pref("devtools.debugger.force-local", true);
|
||||
pref("devtools.webide.enabled", false);
|
||||
pref("devtools.webide.autoinstallADBHelper", false);
|
||||
pref("devtools.webide.autoinstallFxdtAdapters", false);
|
||||
pref("dom.allow_cut_copy", false);
|
||||
pref("dom.archivereader.enabled", false);
|
||||
pref("dom.battery.enabled", false);
|
||||
pref("dom.disable_open_during_load", true);
|
||||
pref("dom.enable_performance", false);
|
||||
pref("dom.enable_user_timing", false);
|
||||
pref("dom.event.clipboardevents.enabled", false);
|
||||
pref("dom.flyweb.enabled", false);
|
||||
pref("dom.gamepad.enabled", false);
|
||||
pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false);
|
||||
pref("dom.ipc.plugins.reportCrashURL", false);
|
||||
//pref("dom.indexedDB.enabled", false);
|
||||
pref("dom.mozTCPSocket.enabled", false);
|
||||
pref("dom.netinfo.enabled", false);
|
||||
pref("dom.network.enabled", false);
|
||||
pref("dom.serviceWorkers.enabled", false);
|
||||
pref("dom.telephony.enabled", false);
|
||||
pref("dom.vibrator.enabled", false);
|
||||
pref("dom.vr.enabled", false);
|
||||
pref("dom.webaudio.enabled", false);
|
||||
pref("dom.webnotifications.enabled", false);
|
||||
pref("dom.workers.enabled", false);
|
||||
pref("experiments.supported", false);
|
||||
pref("experiments.enabled", false);
|
||||
pref("experiments.manifest.uri", "");
|
||||
pref("extensions.autoDisableScopes", 0);
|
||||
pref("extensions.blocklist.enabled", false);
|
||||
pref("extensions.blocklist.url", "");
|
||||
pref("extensions.getAddons.cache.enabled", false);
|
||||
pref("extensions.getAddons.showPane", false);
|
||||
pref("extensions.lazarus.showDonateNotification", false);
|
||||
pref("extensions.pocket.enabled", false);
|
||||
pref("extensions.shownSelectionUI", true);
|
||||
pref("extensions.ui.lastCategory", "addons://list/extension");
|
||||
pref("extensions.update.autoUpdateDefault", false);
|
||||
pref("extensions.update.enabled", false);
|
||||
pref("full-screen-api.approval-required", false);
|
||||
pref("full-screen-api.warning.timeout", 0);
|
||||
pref("general.buildID.override", "19700101");
|
||||
pref("general.warnOnAboutConfig", false);
|
||||
pref("geo.enabled", false);
|
||||
pref("geo.wifi.uri", "");
|
||||
pref("geo.wifi.logging.enabled", false);
|
||||
// pref("gfx.font_rendering.opentype_svg.enabled", false);
|
||||
pref("intl.locale.matchOS", true);
|
||||
// pref("javascript.options.asmjs", false);
|
||||
pref("javascript.use_us_english_locale", true);
|
||||
pref("keyword.enabled", false);
|
||||
pref("lightweightThemes.update.enabled", false);
|
||||
pref("media.eme.enabled", false);
|
||||
pref("media.getusermedia.screensharing.enabled", false);
|
||||
pref("media.getusermedia.audiocapture.enabled", false);
|
||||
pref("media.gmp-eme-adobe.enabled", false);
|
||||
pref("media.gmp-gmpopenh264.enabled", false);
|
||||
pref("media.gmp-gmpopenh264.provider.enabled", false);
|
||||
pref("media.gmp-manager.url", "");
|
||||
// pref("media.gmp-provider.enabled", false);
|
||||
pref("media.navigator.enabled", false);
|
||||
pref("media.navigator.video.enabled", false);
|
||||
pref("media.peerconnection.enabled", false);
|
||||
pref("media.peerconnection.ice.no_host", true);
|
||||
pref("media.video_stats.enabled", false);
|
||||
pref("media.webspeech.recognition.enable", false);
|
||||
pref("media.webspeech.synth.enabled", false);
|
||||
pref("network.allow-experiments", false);
|
||||
// pref("network.cookie.cookieBehavior", 1);
|
||||
// PREF: Cookies expires at the end of the session (when the browser closes)
|
||||
// pref("network.cookie.lifetimePolicy", 2);
|
||||
pref("network.cookie.prefsMigrated", true);
|
||||
// pref("network.cookie.thirdparty.sessionOnly", true);
|
||||
// pref("network.dns.blockDotOnion", true);
|
||||
pref("network.dns.disableIPv6", true);
|
||||
pref("network.dns.disableprefetch", true);
|
||||
pref("network.dns.disableprefetchFromHTTPS", true);
|
||||
pref("network.dns.disablePrefetch", true);
|
||||
pref("network.dns.disablePrefetchFromHTTPS", true);
|
||||
// pref("network.http.referer.spoofSource", true);
|
||||
// pref("network.http.referer.XOriginPolicy", 2);
|
||||
pref("network.http.speculative-parallel-limit", 0);
|
||||
pref("network.IDN_show_punycode", true);
|
||||
pref("network.jar.open-unsafe-types", false);
|
||||
pref("network.manage-offline-status", false);
|
||||
pref("network.negotiate-auth.allow-insecure-ntlm-v1", false);
|
||||
pref("network.predictor.enabled", false);
|
||||
pref("network.prefetch-next", false);
|
||||
pref("network.protocol-handler.warn-external-default", true);
|
||||
pref("network.protocol-handler.external.http", false);
|
||||
pref("network.protocol-handler.external.https", false);
|
||||
pref("network.protocol-handler.external.javascript", false);
|
||||
pref("network.protocol-handler.external.moz-extension", false);
|
||||
pref("network.protocol-handler.external.ftp", false);
|
||||
pref("network.protocol-handler.external.file", false);
|
||||
pref("network.protocol-handler.external.about", false);
|
||||
pref("network.protocol-handler.expose-all", false);
|
||||
pref("network.protocol-handler.expose.http", true);
|
||||
pref("network.protocol-handler.expose.https", true);
|
||||
pref("network.protocol-handler.expose.javascript", true);
|
||||
pref("network.protocol-handler.expose.moz-extension", true);
|
||||
pref("network.protocol-handler.expose.ftp", true);
|
||||
pref("network.protocol-handler.expose.file", true);
|
||||
pref("network.protocol-handler.expose.about", true);
|
||||
pref("network.proxy.backup.ftp", "127.0.0.1");
|
||||
pref("network.proxy.backup.ftp_port", 4444);
|
||||
pref("network.proxy.backup.socks", "127.0.0.1");
|
||||
pref("network.proxy.backup.socks_port", 4444);
|
||||
pref("network.proxy.backup.ssl", "127.0.0.1");
|
||||
pref("network.proxy.backup.ssl_port", 4444);
|
||||
pref("network.proxy.ftp", "127.0.0.1");
|
||||
pref("network.proxy.ftp_port", 4444);
|
||||
pref("network.proxy.http", "127.0.0.1");
|
||||
pref("network.proxy.http_port", 4444);
|
||||
pref("network.proxy.share_proxy_settings", true);
|
||||
pref("network.proxy.socks", "127.0.0.1");
|
||||
pref("network.proxy.socks_port", 4444);
|
||||
pref("network.proxy.socks_remote_dns", true);
|
||||
pref("network.proxy.ssl", "127.0.0.1");
|
||||
pref("network.proxy.ssl_port", 4444);
|
||||
pref("network.proxy.type", 1);
|
||||
pref("network.cookie.prefsMigrated", true);
|
||||
pref("noscript.ABE.enabled", false);
|
||||
pref("noscript.ABE.wanIpAsLocal", false);
|
||||
pref("noscript.firstRunRedirection.pending", "5.1.8.3");
|
||||
pref("noscript.version", "5.1.8.3");
|
||||
pref("noscript.visibleUIChecked", true);
|
||||
pref("pdfjs.disabled", true);
|
||||
pref("pdfjs.enableWebGL", false);
|
||||
pref("plugin.default_plugin_disabled", true);
|
||||
// pref("plugin.state.flash", 0);
|
||||
pref("plugin.state.java", 0);
|
||||
pref("plugin.state.libgnome-shell-browser-plugin", 0);
|
||||
pref("plugins.click_to_play", true);
|
||||
pref("plugins.load_appdir_plugins", false);
|
||||
pref("plugins.update.notifyUser", false);
|
||||
pref("plugins.update.url", "");
|
||||
// PREF: Clear history when Firefox closes
|
||||
// pref("privacy.sanitize.sanitizeOnShutdown", true);
|
||||
// pref("privacy.clearOnShutdown.cache", true);
|
||||
// pref("privacy.clearOnShutdown.cookies", true);
|
||||
// pref("privacy.clearOnShutdown.downloads", true);
|
||||
// pref("privacy.clearOnShutdown.formdata", true);
|
||||
// pref("privacy.clearOnShutdown.history", true);
|
||||
// pref("privacy.clearOnShutdown.offlineApps", true);
|
||||
// pref("privacy.clearOnShutdown.sessions", true);
|
||||
// pref("privacy.clearOnShutdown.openWindows", true);
|
||||
pref("privacy.cpd.offlineApps", true);
|
||||
pref("privacy.cpd.cache", true);
|
||||
pref("privacy.cpd.cookies", true);
|
||||
pref("privacy.cpd.downloads", true);
|
||||
pref("privacy.cpd.formdata", true);
|
||||
pref("privacy.cpd.history", true);
|
||||
pref("privacy.cpd.sessions", true);
|
||||
pref("privacy.donottrackheader.enabled", true);
|
||||
pref("privacy.resistFingerprinting", true);
|
||||
pref("privacy.sanitize.timeSpan", 0);
|
||||
pref("privacy.trackingprotection.enabled", true);
|
||||
pref("privacy.trackingprotection.pbmode.enabled", true);
|
||||
pref("privacy.userContext.enabled", true);
|
||||
pref("reader.parse-on-load.enabled", false);
|
||||
pref("reader.parse-on-load.force-enabled", false);
|
||||
pref("security.csp.enable", true);
|
||||
pref("security.csp.experimentalEnabled", true);
|
||||
pref("security.dialog_enable_delay", 1000);
|
||||
pref("security.fileuri.strict_origin_policy", true);
|
||||
pref("security.insecure_field_warning.contextual.enabled", false);
|
||||
// PREF: Enable insecure password warnings (login forms in non-HTTPS pages)
|
||||
pref("security.insecure_password.ui.enabled", false);
|
||||
pref("security.mixed_content.block_active_content", true);
|
||||
pref("security.mixed_content.block_display_content", true);
|
||||
pref("services.blocklist.update_enabled", false);
|
||||
pref("security.sri.enable", true);
|
||||
pref("security.ssl.errorReporting.automatic", false);
|
||||
pref("security.ssl.errorReporting.enabled", false);
|
||||
pref("services.sync.enabled", false);
|
||||
pref("services.sync.prefs.sync.browser.download.manager.scanWhenDone", false);
|
||||
pref("services.sync.prefs.sync.browser.safebrowsing.enabled", false);
|
||||
pref("services.sync.prefs.sync.browser.search.update", false);
|
||||
pref("services.sync.prefs.sync.extensions.update.enabled", false);
|
||||
// pref("shumway.disabled", true);
|
||||
pref("signon.autofillForms", false);
|
||||
// PREF: Disable password manager
|
||||
pref("signon.rememberSignons", false);
|
||||
pref("startup.homepage_welcome_url", "about:blank");
|
||||
pref("startup.homepage_welcome_url.additional", "about:blank");
|
||||
pref("toolkit.telemetry.archive.enabled", false);
|
||||
pref("toolkit.telemetry.enabled", false);
|
||||
pref("toolkit.telemetry.optoutSample", false);
|
||||
pref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
||||
pref("toolkit.telemetry.server", "");
|
||||
pref("toolkit.telemetry.unified", false);
|
||||
pref("toolkit.telemetry.unifiedIsOptIn", true);
|
||||
pref("webgl.disabled", true);
|
||||
pref("webgl.disable-extensions", true);
|
||||
pref("webgl.disable-fail-if-major-performance-caveat", true);
|
||||
pref("webgl.enable-debug-renderer-info", false);
|
||||
pref("webgl.min_capability_mode", true);
|
||||
// Ensure domain logging is disabled
|
||||
pref("loop.logDomains", false);
|
||||
// Spoof to dual-core cpu
|
||||
pref("dom.maxHardwareConcurrency", 2);
|
||||
// Disable offline cache
|
||||
pref("browser.cache.offline.enable", false);
|
||||
// Prevent tracking over multiple domains
|
||||
pref("privacy.firstparty.isolate", true);
|
||||
pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");
|
||||
// In relation to webrtc
|
||||
pref("media.peerconnection.turn.disable", true);
|
||||
pref("media.peerconnection.use_document_iceservers", false);
|
||||
pref("media.peerconnection.identity.timeout", 1);
|
||||
pref("media.peerconnection.ice.default_address_only", true);
|
||||
// Disable url prefetch
|
||||
pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
// Set platform, user-agent and locale to same values as Tor Browser 7.0.10
|
||||
pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0");
|
||||
pref("general.useragent.locale", "en-US");
|
||||
pref("general.platform.override", "Win32");
|
||||
@@ -1,12 +0,0 @@
|
||||
# Mozilla User Preferences
|
||||
|
||||
/* Do not edit this file.
|
||||
*
|
||||
* If you make changes to this file while the browser is running,
|
||||
* the changes will be overwritten when the browser exits.
|
||||
*
|
||||
* To make a manual change to preferences, you can visit the URL about:config
|
||||
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
|
||||
*/
|
||||
|
||||
user_pref("browser.startup.homepage", "http://i2pd.i2p/");
|
||||
@@ -1 +1 @@
|
||||
{"chrome://browser/content/browser.xul":{"navigator-toolbox":{"iconsize":"small"},"titlebar-placeholder-on-menubar-for-caption-buttons":{"width":"102"},"titlebar-placeholder-on-TabsToolbar-for-captions-buttons":{"width":"102"},"main-window":{"screenX":"30","screenY":"30","width":"1280","height":"720","sizemode":"normal"},"PersonalToolbar":{"collapsed":"false","currentset":"personal-bookmarks"},"toolbar-menubar":{"currentset":"menubar-items"},"TabsToolbar":{"currentset":"tabbrowser-tabs,new-tab-button,alltabs-button"},"addon-bar":{"currentset":"addonbar-closebutton,status-bar"},"nav-bar":{"currentset":"urlbar-container,search-container,bookmarks-menu-button,downloads-button,home-button,noscript-tbb"},"sidebar-title":{"value":""}}}
|
||||
{"chrome://browser/content/browser.xul":{"navigator-toolbox":{"iconsize":"small"},"titlebar-placeholder-on-menubar-for-caption-buttons":{"width":"102"},"titlebar-placeholder-on-TabsToolbar-for-captions-buttons":{"width":"102"},"main-window":{"screenX":"30","screenY":"30","width":"1280","height":"720","sizemode":"normal"},"PersonalToolbar":{"collapsed":"false","currentset":"personal-bookmarks"},"toolbar-menubar":{"currentset":"menubar-items"},"TabsToolbar":{"currentset":"tabbrowser-tabs,new-tab-button,alltabs-button"},"addon-bar":{"currentset":"addonbar-closebutton,status-bar"},"nav-bar":{"currentset":"back-button,forward-button,stop-reload-button,urlbar-container,bookmarks-menu-button,downloads-button,_73a6fe31-595d-460b-a920-fcc0f8843232_-browser-action"},"sidebar-title":{"value":""}}}
|
||||
+693
-1097
File diff suppressed because it is too large
Load Diff
@@ -1,34 +0,0 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIF5TCCA82gAwIBAgIRANFIiHpTaRY2Z30TQOiuqFcwDQYJKoZIhvcNAQELBQAw
|
||||
cDELMAkGA1UEBhMCWFgxCzAJBgNVBAcTAlhYMQswCQYDVQQJEwJYWDEeMBwGA1UE
|
||||
ChMVSTJQIEFub255bW91cyBOZXR3b3JrMQwwCgYDVQQLEwNJMlAxGTAXBgNVBAMM
|
||||
EGF0b21pa2VAbWFpbC5pMnAwHhcNMTYwODAyMTQyNDEyWhcNMjYwODAyMTQyNDEy
|
||||
WjBwMQswCQYDVQQGEwJYWDELMAkGA1UEBxMCWFgxCzAJBgNVBAkTAlhYMR4wHAYD
|
||||
VQQKExVJMlAgQW5vbnltb3VzIE5ldHdvcmsxDDAKBgNVBAsTA0kyUDEZMBcGA1UE
|
||||
AwwQYXRvbWlrZUBtYWlsLmkycDCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
|
||||
ggIBAMLRmxclaAvm405JLHNNiniUi0aZaBoLJ+afwn2LGfTDUhTD5Y8lW6V9o90n
|
||||
eTNOCaiid7bWpVBkA1M4gZ9TdUnP0POa99jXZbj4PHFRl1l8k4Ap12PUO3hgwtH7
|
||||
7j7j+UPaIu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gukKnFIes75dLP/v25jgjdlw
|
||||
Xe6R+fQM0EoHeVzzrWk/qYp6oEwtQXfZnUu/Bf45hRnnHBzzh1wCql41vbEs3Niq
|
||||
+SVwY1wLT0yC1L8HqjCLX1/L5PAXxbvEGzwnXSkLKK4bPxdmVDZvS9uzXrWmTbNi
|
||||
HpKIFnOif16zSgyeaOM7HETIJuVzgooUMtt+Vsr1VGdtm6K7I9J5C+rX/ckU8oaX
|
||||
UjmzhWXudN0VTslogsKUCV6xG2CskeE3wnuT8HYXz9NMw6c/kIGH4hY7LcfU8Teu
|
||||
QjSy2RRvy6InmZNV5sY9lzzO6romEycSoUlpCa3Ltb/5KKoYZFTsXr8suqJk89lC
|
||||
e+TVMHqOZdLK/usqQDcafLypHpw9SH2Tg4jrzV/zLqacbjx6bZD5IrpY0Gf7BXg/
|
||||
pikwyA9c490G6ZcWrSEP8bzh6LL2rA2AwxaeJJNVyLHCSLrn/7DezM5J/qhd90Qg
|
||||
kcZGJrUOCSWl6mDvUZn5XiQ955XwOnZQ+wsM85B3CVX22x5bp0SYWHCQBPnthPwP
|
||||
Q5DD3jExbpwG5n35HEcHYw==
|
||||
-----END CERTIFICATE-----
|
||||
@@ -1,34 +0,0 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIF1TCCA72gAwIBAgIRAJBHySZnvNg3lU00//fwny4wDQYJKoZIhvcNAQELBQAw
|
||||
bDELMAkGA1UEBhMCWFgxHjAcBgNVBAoTFUkyUCBBbm9ueW1vdXMgTmV0d29yazEM
|
||||
MAoGA1UECxMDSTJQMQswCQYDVQQHEwJYWDELMAkGA1UECRMCWFgxFTATBgNVBAMM
|
||||
DHpteEBtYWlsLmkycDAeFw0xNjAxMDExNzE5MTlaFw0yNjAxMDExNzE5MTlaMGwx
|
||||
CzAJBgNVBAYTAlhYMR4wHAYDVQQKExVJMlAgQW5vbnltb3VzIE5ldHdvcmsxDDAK
|
||||
BgNVBAsTA0kyUDELMAkGA1UEBxMCWFgxCzAJBgN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DcF4W5Ot7CWGskDY
|
||||
cR4ywtvU2EcDNEwv4q0FPEpxy5LPaUmTKQ6fsRXUZizjaPLpgCLbv9qYc5xRLrSi
|
||||
yk9mrAbJ1iEU+DfHHBcS1VQWtc7+9LA0W3ZIA+pygjPjTxwQqQAcjn4BdfaIQpVa
|
||||
VJ2kl5JtbTuYHL80GAQFYnzCCa5GKM7zgcLsyO1mQwnpDvFeSlKJJ6rx1QjhlJu+
|
||||
90Ig8IOBCIgokfUv9OdYBl6rmDq9i9pvqJU+H4VepqE1jnDAO+YqQ4laZj7LVVM8
|
||||
I9uia+8RKntUOBkUkLB3ouGdVJUmp3kGrkExxUdDHYP9VNJG6ZMwyKO8HXGtoTsR
|
||||
TFWIEIbq/biBL9obM/d8fRV5xpfZNbPi6cRzw8REY9UIKECKr7B2B6PnDVVQIQw0
|
||||
7SCVjmSYWexOqoJPZ1L7/AZDP/tFvx32cWwCszj5jqUaPo9ZNPb6DxQJDdNaZrFH
|
||||
3CA+PbiaeEz9IH0yBY/6wQgO0k3qOyFQrlkC+YRoYUQNc+6xS38l5ZnYUtBAy8ms
|
||||
N43eODQ/OhsLzy6PwwXdzvR/0g18SrQyTLfbn2b/kwvbC8Qe40QFfkOf5lPXjdnP
|
||||
Ii/lcMuvDMlMhoWGFwWm5bkkXE81TKnFXu2/IMsW6HYb3oiTjkaCap22fCr9l0jj
|
||||
fNr8P7NIRyZ8
|
||||
-----END CERTIFICATE-----
|
||||
+1
-3
@@ -1,9 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2013-2017, The PurpleI2P Project
|
||||
#
|
||||
# Copyright (c) 2013-2019, The PurpleI2P Project
|
||||
# This file is part of Purple i2pd project and licensed under BSD3
|
||||
#
|
||||
# See full license text in LICENSE file at top of project tree
|
||||
|
||||
arch=$(uname -m)
|
||||
|
||||
@@ -1 +1 @@
|
||||
1d1c3738e1c2245e7e94a811bba085394ce6294d
|
||||
8ac8c1452a00b9654755be88ab805982c1d56a92
|
||||
@@ -1 +1 @@
|
||||
72f22e580d6b113f76c54ad8e2799e326699703e
|
||||
af5de0612c40f715740fd4d168aa444b4baca790
|
||||
@@ -21,7 +21,7 @@ name = I2Pd
|
||||
verify = true
|
||||
|
||||
[addressbook]
|
||||
subscriptions = http://inr.i2p/export/alive-hosts.txt
|
||||
subscriptions = http://inr.i2p/export/alive-hosts.txt,http://identiguy.i2p/hosts.txt,http://stats.i2p/cgi-bin/newhosts.txt,http://i2p-projekt.i2p/hosts.txt
|
||||
|
||||
[http]
|
||||
enabled = true
|
||||
@@ -42,3 +42,8 @@ port = 4447
|
||||
enabled = true
|
||||
address = 127.0.0.1
|
||||
port = 7656
|
||||
|
||||
[ntcp2]
|
||||
enabled = true
|
||||
published = true
|
||||
#port =
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#[IRC-ILITA]
|
||||
#type = client
|
||||
#address = 127.0.0.1
|
||||
#port = 6669
|
||||
#destination = irc.ilita.i2p
|
||||
#destinationport = 6667
|
||||
#keys = irc-keys.dat
|
||||
@@ -0,0 +1,7 @@
|
||||
#[IRC-IRC2P]
|
||||
#type = client
|
||||
#address = 127.0.0.1
|
||||
#port = 6668
|
||||
#destination = irc.postman.i2p
|
||||
#destinationport = 6667
|
||||
#keys = irc-keys.dat
|
||||
@@ -0,0 +1,4 @@
|
||||
# In that directory you can store separated config files for every tunnel.
|
||||
# Please read documentation for more info.
|
||||
#
|
||||
# You can find examples in /usr/share/doc/i2pd/tunnels.d directory
|
||||
@@ -0,0 +1,4 @@
|
||||
/FirefoxESR.app
|
||||
/i2pd
|
||||
/data
|
||||
/i2pdbrowser-portable
|
||||
@@ -1,55 +0,0 @@
|
||||
pub 4096R/98EBCFE2 2016-12-14
|
||||
uid R4SAS (r4sas) <r4sas@i2pmail.org>
|
||||
sub 4096R/9206EEF0 2016-12-14
|
||||
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1
|
||||
|
||||
mQINBFhQs1MBEAD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||
=BDxP
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
@@ -1,32 +0,0 @@
|
||||
eb8cc990e3abdcce7004b1d70c566fd92c1d9252a37f28341a8e1fd29c2694ce614d6d8389e4fced427cbcfe688c3a2f2b498dc84ce0229a605892fd8496d62c build/preferences/syspref.js
|
||||
7108c42e7e863cd3501031b497f6a27f2420c2e29ae16ba4ebfb67e7608ffdc1b3ea14b62d87fde786bc059c811d1d62785843bcec5a1d6c578e8652def3c894 build/profile/xulstore.json
|
||||
94bf052b929dac72959f498a43b66ab6990ebc3f3f24e4041416471e69988290fd212062e1a6b2070f40a46658a25db346e584bcebd542840fea8bf02e587514 build/profile/bookmarks.html
|
||||
9ef9ab52683229adb6bcf7679cc39e02f7d2be4a5734838a113cd7149e60e2245b869dc45b4b8843913433281c1ecd93193b476efd915e8afeb109b17e376bb5 build/profile/prefs.js
|
||||
e53ee234d91e90190b9d5064ca7da9293ec2c8a762b3f2ea35cb22cd28e6827bddefb006b0f1c7fe13cf8ff37a0ecb77942373a22e0d9ca614b4360dd978ebcb build/build.sh
|
||||
148030732cc3990d2ed611b22eb6b7f91e5b867518fdd0c52ad11f82ccbb71a75c91b3bb6d12de750902b9d33770e15d2a80132e58167d8ee9155d4f184b4d4a i2pd/i2pd.conf
|
||||
11a1f9da48c1ecfcde76e5b7a30dac52410b382509b47d519888461eb8dec5a7e5bcc8a2ba0fef80080f0a6bc037980175a72d8352a5d65ffed37f8a2fe20dbf i2pd/libSystem.B.dylib
|
||||
65cc7b71df694cca2d49243df63557f28cdf79d9ec19e8c27ed21d71a54de74c19d80682c1b77cdda4228e3b945a34bac00ad8b2ee8df50a59a9c833b664218f i2pd/i2pd
|
||||
c03c7181725f3b189297208a3ef6def948a19e0db7a0081b3906a574accf61fe9b4952ddbdde4af407af956a5ed49e8bbf5a588d6ecadbb33abc58edf21d0bc0 i2pd/i2pd-osx
|
||||
662c515175e401d6ab3ccb9d36a17f91762b3c35d6eb2c58c72e4c2bdf1fff5b7c904622c03d2c041193b1b01b75f2f470726ce8741f9e72e6aab7e128c43452 i2pd/certificates/router/orignal_at_mail.i2p.crt
|
||||
78649814a1f06933768873edd171f2be24227b31a21e3c3cd63d8c0a933af1aec48b7b595ea9c9298df24cc32fbb71e350846efd7c6384e2f923ec2dab3578c4 i2pd/certificates/family/mca2-i2p.crt
|
||||
1bd66f93e71fb41ad77b9caeb6ec873dd9f40bae4a90bd3eaa331fcaf45c4a4779b567cb89730ce99b2dff609bb26ee383c3d904d1ad852299d5bc5fc6ed17e1 i2pd/certificates/family/i2pd-dev.crt
|
||||
ce565903357ca19724371c57fd68d071b7ea546c354f1b82d3afd4514db35598c6a36746b8fdb5caf0e1fb1af205d3f21dc4dc64863b431d9c18d75a3d9b7cb8 i2pd/certificates/family/volatile.crt
|
||||
2297e46d39a6edb7a0dd7adf3a1488b190fef6e50ad1794733709adaa547d0320485202c7627ef7f3a41c8ade09ed3ea7c562ddce2788f2c78935c88ccd10b60 i2pd/certificates/family/gostcoin.crt
|
||||
b6c6f6ac207a058ae6f61e8e3a2374822af51cff7d39ef8810dedee9dd84302d0c04c569aa2c3e901aa8db1f46f46a13dac83df289d0b23faaaa7dd6d9da281d i2pd/certificates/family/i2p-dev.crt
|
||||
fb8c0090b86af4109f931804c8cfe44984a6e167b150725873fb45f60fd3e4ecf10ea98e139bf708646ce935dbdd859ff60f12e5ae95d656e7fece160cecc1db i2pd/certificates/reseed/hottuna_at_mail.i2p.crt
|
||||
11cfcdb54739b618f27b58a7ce0d32c4cf49abd87c5642fd0dca6de9e65cb3e7aff670f500891911830acec92f86cf9ba01bca35ea7dd98bcc7cb4b3956a05f9 i2pd/certificates/reseed/r4sas_at_mail.i2p.crt
|
||||
55224b77505aca8de01ae692d4ec63c591edf557a243fed50257b80bdfa1b04594373f65697ece94ec6f13f252b96bff468d7d886cc6fbe07fd0c534ce4658a3 i2pd/certificates/reseed/igor_at_novg.net.crt
|
||||
a26558600bdde3b131c26268968d484d5a4de6d9d12aac65e967a85db4f3560730421ee9a3099807fff79e9e0a0ac0f6e081b845451c1d0903dcee3c83cb36a7 i2pd/certificates/reseed/bugme_at_mail.i2p.crt
|
||||
4d294022339f31880a393be1a843d8ea021c7c38e6289fd90befaf3b4fb2f499f75f9f9e45da649a6c20972e5cc3dda88f82d5bead69846a1b01002b4a34b412 i2pd/certificates/reseed/r4sas-reseed_at_mail.i2p.crt
|
||||
46d4e72689716b886b52865dbc592acdd320488f08058b6e33cc9736c06d193cb21790d565ec3bb063b994cdce041a199cda9b1a438a7a3df76505a2e32341be i2pd/certificates/reseed/backup_at_mail.i2p.crt
|
||||
89a26ec55be179e5b8a00e8806ddfa5d8bf0c9b3b379247ec9477c326f0ed58e5bb25fb029304ee24b800755039f0fd42a8cff49350588c406cbea240ee94539 i2pd/certificates/reseed/atomike_at_mail.i2p.crt
|
||||
0468afb62a372dc4c98dcde2e17e62b4a73693b1516c9dddcc771ee7f47bcbbd0184498bd225cf77bf19ca4ab0f29df1235003f943412ab25ad92c47fe9141b3 i2pd/certificates/reseed/creativecowpat_at_mail.i2p.crt
|
||||
4389d70d40ff74bc02eee5bb4a96d80585a3684e9b457d216b0723def2cde2107e82a8239ee7325a08822a4ee17dd70237932fa6833dc31d21a14b2355dbb5b1 i2pd/certificates/reseed/meeh_at_mail.i2p.crt
|
||||
1114d76b59a9dc0a3075ea5dcdcf270107240793bb82160c9f21c2fad7c581d358915fabe323b381ca95ce8f99a7e4536d6e183f4bdb67676dd581bfce5d4c9f i2pd/certificates/reseed/zmx_at_mail.i2p.crt
|
||||
3487bba6ba8e1f1d5f8759740bf8194379ad258aba14714dcd1338d12924c9ea0b849cf3914cb447911d6907d254ee8b82cae2ba4e80128f646a9d9656dd7c07 i2pd/certificates/reseed/lazygravy_at_mail.i2p.crt
|
||||
78c6375c1fff1e06599429606f1ad84ed2244a0e6c9ff15f8abcf150f0085b9793548bb42ed1b3ae534e77826c180aaee4ef3417d8beddd707481004c475ce0a i2pd/certificates/reseed/echelon_at_mail.i2p.crt
|
||||
13fd2563bbc0486ca5c87ac5aa2509250a0ef300125a42548dff2dc4f06f3cd39f6a12cd36f9008b7e6ceba97011f8d1acdd2b0bbc8ba07dfd96515f9bc623fc i2pd/addressbook/addresses.csv
|
||||
dfeb4a93ba399b1b49b351a7478288de205e727ec6edbbc42ab91667b5400c1ac582b0883758d4e93c421e6942dacbd0e57d77c3870a1378951a06de214ea8e7 i2pd/tunnels.conf
|
||||
764934e5319e2bdfee47687fd6037f9203dbc35bb4a4c52725e20c3cd50c7c9ee1983b5775ae47a6d2cae65182928eb8661509a87fbdeec6b003eb8e92ab7a45 i2pd/libc++.1.dylib
|
||||
807fb346790345130164ee40014f167786d82376ffc03a073d7a78a665868034c4d35b817fe9998a2c0488646b773bdbd58b7193ef9b3605b95a6ea8cff8a5aa i2pd/libz.1.dylib
|
||||
6c46e83beaae2ef4689b512e37e02b91844ded55b99254c3d888726607db0a55311e1f404693746bbf8bf1da824640239387f3133bfea7c07c93a0b2a6af2774 README.md
|
||||
@@ -1,52 +0,0 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
eb8cc990e3abdcce7004b1d70c566fd92c1d9252a37f28341a8e1fd29c2694ce614d6d8389e4fced427cbcfe688c3a2f2b498dc84ce0229a605892fd8496d62c build/preferences/syspref.js
|
||||
7108c42e7e863cd3501031b497f6a27f2420c2e29ae16ba4ebfb67e7608ffdc1b3ea14b62d87fde786bc059c811d1d62785843bcec5a1d6c578e8652def3c894 build/profile/xulstore.json
|
||||
94bf052b929dac72959f498a43b66ab6990ebc3f3f24e4041416471e69988290fd212062e1a6b2070f40a46658a25db346e584bcebd542840fea8bf02e587514 build/profile/bookmarks.html
|
||||
9ef9ab52683229adb6bcf7679cc39e02f7d2be4a5734838a113cd7149e60e2245b869dc45b4b8843913433281c1ecd93193b476efd915e8afeb109b17e376bb5 build/profile/prefs.js
|
||||
e53ee234d91e90190b9d5064ca7da9293ec2c8a762b3f2ea35cb22cd28e6827bddefb006b0f1c7fe13cf8ff37a0ecb77942373a22e0d9ca614b4360dd978ebcb build/build.sh
|
||||
148030732cc3990d2ed611b22eb6b7f91e5b867518fdd0c52ad11f82ccbb71a75c91b3bb6d12de750902b9d33770e15d2a80132e58167d8ee9155d4f184b4d4a i2pd/i2pd.conf
|
||||
11a1f9da48c1ecfcde76e5b7a30dac52410b382509b47d519888461eb8dec5a7e5bcc8a2ba0fef80080f0a6bc037980175a72d8352a5d65ffed37f8a2fe20dbf i2pd/libSystem.B.dylib
|
||||
65cc7b71df694cca2d49243df63557f28cdf79d9ec19e8c27ed21d71a54de74c19d80682c1b77cdda4228e3b945a34bac00ad8b2ee8df50a59a9c833b664218f i2pd/i2pd
|
||||
c03c7181725f3b189297208a3ef6def948a19e0db7a0081b3906a574accf61fe9b4952ddbdde4af407af956a5ed49e8bbf5a588d6ecadbb33abc58edf21d0bc0 i2pd/i2pd-osx
|
||||
662c515175e401d6ab3ccb9d36a17f91762b3c35d6eb2c58c72e4c2bdf1fff5b7c904622c03d2c041193b1b01b75f2f470726ce8741f9e72e6aab7e128c43452 i2pd/certificates/router/orignal_at_mail.i2p.crt
|
||||
78649814a1f06933768873edd171f2be24227b31a21e3c3cd63d8c0a933af1aec48b7b595ea9c9298df24cc32fbb71e350846efd7c6384e2f923ec2dab3578c4 i2pd/certificates/family/mca2-i2p.crt
|
||||
1bd66f93e71fb41ad77b9caeb6ec873dd9f40bae4a90bd3eaa331fcaf45c4a4779b567cb89730ce99b2dff609bb26ee383c3d904d1ad852299d5bc5fc6ed17e1 i2pd/certificates/family/i2pd-dev.crt
|
||||
ce565903357ca19724371c57fd68d071b7ea546c354f1b82d3afd4514db35598c6a36746b8fdb5caf0e1fb1af205d3f21dc4dc64863b431d9c18d75a3d9b7cb8 i2pd/certificates/family/volatile.crt
|
||||
2297e46d39a6edb7a0dd7adf3a1488b190fef6e50ad1794733709adaa547d0320485202c7627ef7f3a41c8ade09ed3ea7c562ddce2788f2c78935c88ccd10b60 i2pd/certificates/family/gostcoin.crt
|
||||
b6c6f6ac207a058ae6f61e8e3a2374822af51cff7d39ef8810dedee9dd84302d0c04c569aa2c3e901aa8db1f46f46a13dac83df289d0b23faaaa7dd6d9da281d i2pd/certificates/family/i2p-dev.crt
|
||||
fb8c0090b86af4109f931804c8cfe44984a6e167b150725873fb45f60fd3e4ecf10ea98e139bf708646ce935dbdd859ff60f12e5ae95d656e7fece160cecc1db i2pd/certificates/reseed/hottuna_at_mail.i2p.crt
|
||||
11cfcdb54739b618f27b58a7ce0d32c4cf49abd87c5642fd0dca6de9e65cb3e7aff670f500891911830acec92f86cf9ba01bca35ea7dd98bcc7cb4b3956a05f9 i2pd/certificates/reseed/r4sas_at_mail.i2p.crt
|
||||
55224b77505aca8de01ae692d4ec63c591edf557a243fed50257b80bdfa1b04594373f65697ece94ec6f13f252b96bff468d7d886cc6fbe07fd0c534ce4658a3 i2pd/certificates/reseed/igor_at_novg.net.crt
|
||||
a26558600bdde3b131c26268968d484d5a4de6d9d12aac65e967a85db4f3560730421ee9a3099807fff79e9e0a0ac0f6e081b845451c1d0903dcee3c83cb36a7 i2pd/certificates/reseed/bugme_at_mail.i2p.crt
|
||||
4d294022339f31880a393be1a843d8ea021c7c38e6289fd90befaf3b4fb2f499f75f9f9e45da649a6c20972e5cc3dda88f82d5bead69846a1b01002b4a34b412 i2pd/certificates/reseed/r4sas-reseed_at_mail.i2p.crt
|
||||
46d4e72689716b886b52865dbc592acdd320488f08058b6e33cc9736c06d193cb21790d565ec3bb063b994cdce041a199cda9b1a438a7a3df76505a2e32341be i2pd/certificates/reseed/backup_at_mail.i2p.crt
|
||||
89a26ec55be179e5b8a00e8806ddfa5d8bf0c9b3b379247ec9477c326f0ed58e5bb25fb029304ee24b800755039f0fd42a8cff49350588c406cbea240ee94539 i2pd/certificates/reseed/atomike_at_mail.i2p.crt
|
||||
0468afb62a372dc4c98dcde2e17e62b4a73693b1516c9dddcc771ee7f47bcbbd0184498bd225cf77bf19ca4ab0f29df1235003f943412ab25ad92c47fe9141b3 i2pd/certificates/reseed/creativecowpat_at_mail.i2p.crt
|
||||
4389d70d40ff74bc02eee5bb4a96d80585a3684e9b457d216b0723def2cde2107e82a8239ee7325a08822a4ee17dd70237932fa6833dc31d21a14b2355dbb5b1 i2pd/certificates/reseed/meeh_at_mail.i2p.crt
|
||||
1114d76b59a9dc0a3075ea5dcdcf270107240793bb82160c9f21c2fad7c581d358915fabe323b381ca95ce8f99a7e4536d6e183f4bdb67676dd581bfce5d4c9f i2pd/certificates/reseed/zmx_at_mail.i2p.crt
|
||||
3487bba6ba8e1f1d5f8759740bf8194379ad258aba14714dcd1338d12924c9ea0b849cf3914cb447911d6907d254ee8b82cae2ba4e80128f646a9d9656dd7c07 i2pd/certificates/reseed/lazygravy_at_mail.i2p.crt
|
||||
78c6375c1fff1e06599429606f1ad84ed2244a0e6c9ff15f8abcf150f0085b9793548bb42ed1b3ae534e77826c180aaee4ef3417d8beddd707481004c475ce0a i2pd/certificates/reseed/echelon_at_mail.i2p.crt
|
||||
13fd2563bbc0486ca5c87ac5aa2509250a0ef300125a42548dff2dc4f06f3cd39f6a12cd36f9008b7e6ceba97011f8d1acdd2b0bbc8ba07dfd96515f9bc623fc i2pd/addressbook/addresses.csv
|
||||
dfeb4a93ba399b1b49b351a7478288de205e727ec6edbbc42ab91667b5400c1ac582b0883758d4e93c421e6942dacbd0e57d77c3870a1378951a06de214ea8e7 i2pd/tunnels.conf
|
||||
764934e5319e2bdfee47687fd6037f9203dbc35bb4a4c52725e20c3cd50c7c9ee1983b5775ae47a6d2cae65182928eb8661509a87fbdeec6b003eb8e92ab7a45 i2pd/libc++.1.dylib
|
||||
807fb346790345130164ee40014f167786d82376ffc03a073d7a78a665868034c4d35b817fe9998a2c0488646b773bdbd58b7193ef9b3605b95a6ea8cff8a5aa i2pd/libz.1.dylib
|
||||
6c46e83beaae2ef4689b512e37e02b91844ded55b99254c3d888726607db0a55311e1f404693746bbf8bf1da824640239387f3133bfea7c07c93a0b2a6af2774 README.md
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v1
|
||||
|
||||
iQIcBAEBCgAGBQJaZvnvAAoJEGb2yHuY68/iui8P/0McBl0WHJMlMlZdhiqAmAOd
|
||||
UCLAOjkSzD5cRA6ZT3a1m0+Fb/idMqLgZhk5ICHY0JAdIqt2oBMnNwYPpTeFX4b9
|
||||
pk3ysUOt/sOJfsaTHhuAUhmQ0U1XFj4tuy4Kc9S58YWLM83M3cdR5+S46urk+ZlM
|
||||
fl0PBBPizpIJkSZL7FQ6296bMKZJT3v5DH6CVOht1Eh/2NaN3Q3lZsLbGf2OXy9o
|
||||
GF8i4BzBktzCEx9WCYoUGOYdB5HMjtY6i7VSvKeOwGH52M2taPCSBBaG1+wpZVjQ
|
||||
smTarcpvTQxuOTDrTpTmUT8pas6+M4cUPJzb7lZcsKRZGTjolYhLUdDHx2PGvZvd
|
||||
YrdWwpxLToguqpnmE2YgOxy4j4vL+EDQSjVLoTcihEWrOQE6AOoYKPTbYbhX3yoL
|
||||
i6l0Jiw6L8QyoXP7SBYUzsCb0yA7V5b9+QF7LnsjzKNHyUz927TcjnhGbuMpTDP4
|
||||
fIs/5Z2X3d6zn54dl5A/bQ/QU51euI3rJG9jNMifRa8+crva7UPygnchWzinYdzs
|
||||
fRD4I7yPPUtUpnSE0JE+KAna7J6R0Cslt8FhDgpZC3DNu9ZZWxRKC8EHrx9V8hZl
|
||||
RzJPMCY2xt0hhpTjRssuDc//MeWK3yiMPpYzXHjvGYyyAdfjMbMwxvYFSqOH0snD
|
||||
umUJImyW0YihV1mjcJR3
|
||||
=QWXA
|
||||
-----END PGP SIGNATURE-----
|
||||
Executable
+134
@@ -0,0 +1,134 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2013-2019, The PurpleI2P Project
|
||||
# This file is part of Purple I2P project and licensed under BSD3
|
||||
# See full license text in LICENSE file at top of project tree
|
||||
|
||||
dir=${0%/*}
|
||||
if [ "$dir" = "$0" ]; then
|
||||
dir="."
|
||||
fi
|
||||
cd $dir
|
||||
|
||||
arch=$(uname -m)
|
||||
language=$(osascript -e 'user locale of (get system info)' | sed -e 's/_/-/g')
|
||||
version="60.7.1esr"
|
||||
i2pdversion="2.26.0"
|
||||
|
||||
ftpmirror="https://ftp.mozilla.org/pub/firefox/releases/${version}"
|
||||
|
||||
curlfind=$(which curl)
|
||||
if [ -z $curlfind ]; then
|
||||
echo "'cURL' does not seem to be installed. The script needs it!";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "This script is preparing Firefox $version for use with I2Pd"
|
||||
|
||||
file="Firefox ${version}.dmg"
|
||||
filepath="mac/${language}/${file}"
|
||||
|
||||
echo "Downloading $application..."
|
||||
|
||||
tmpfilepath=$(echo $filepath | sed 's/ /%20/g')
|
||||
curl -L -f -# -o "${file}" "${ftpmirror}/${tmpfilepath}"
|
||||
if [ $? -ne 0 ]; then # Not found error, trying to cut language variable
|
||||
echo "[TRY 2] I'll try downloading Firefox with shorter language code";
|
||||
language=$(echo $language | cut -c-2)
|
||||
# re-create variable with cutted lang
|
||||
filepath="mac/$language/$file"
|
||||
tmpfilepath=$(echo $filepath | sed 's/ /%20/g')
|
||||
curl -L -f -# -o "${file}" "${ftpmirror}/${tmpfilepath}"
|
||||
if [ $? -ne 0 ]; then # Not found error, trying to download english version
|
||||
echo "[TRY 3] I'll try downloading Firefox with the English language code";
|
||||
language="en_US"
|
||||
# re-create lang variable
|
||||
filepath="mac/$language/$file"
|
||||
tmpfilepath=$(echo $filepath | sed 's/ /%20/g')
|
||||
curl -L -f -# -o "${file}" "${ftpmirror}/${tmpfilepath}"
|
||||
if [ $? -ne 0 ]; then # After that i can say only that user haven't internet connection
|
||||
echo "[Error] Can't download file. Check your internet connectivity."
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f $file ]; then
|
||||
echo "[Error] Can't find downloaded file. Does it really exist?"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "Downloading checksum file and checking SHA512 checksum"
|
||||
curl -L -f -# -O "${ftpmirror}/SHA512SUMS"
|
||||
recv_sum=$(grep "$filepath" SHA512SUMS | cut -c-128)
|
||||
file_sum=$(shasum -a 512 "$file" | cut -c-128)
|
||||
if [ $recv_sum != $file_sum ]; then
|
||||
echo "[Error] File checksum failed!"
|
||||
exit 1;
|
||||
else
|
||||
echo "Checksum correct."
|
||||
rm SHA512SUMS
|
||||
fi
|
||||
|
||||
echo "Attaching image and copying files..."
|
||||
hdiutil attach "$file"
|
||||
cp -rf /Volumes/Firefox/Firefox.app ../FirefoxESR.app
|
||||
mkdir ../data
|
||||
|
||||
echo "Detaching image and removing image file..."
|
||||
hdiutil detach /Volumes/Firefox
|
||||
rm "$file"
|
||||
|
||||
## TODO: check on linux before make that changes
|
||||
# Deleting some not needed files
|
||||
rm -r ../FirefoxESR.app/Contents/Library
|
||||
rm -r ../FirefoxESR.app/Contents/MacOS/crashreporter.app
|
||||
rm ../FirefoxESR.app/Contents/MacOS/pingsender
|
||||
rm -r ../FirefoxESR.app/Contents/MacOS/updater.app
|
||||
rm ../FirefoxESR.app/Contents/Resources/browser/blocklist.xml
|
||||
rm ../FirefoxESR.app/Contents/Resources/browser/crashreporter-override.ini
|
||||
rm ../FirefoxESR.app/Contents/Resources/browser/features/aushelper@mozilla.org.xpi
|
||||
rm ../FirefoxESR.app/Contents/Resources/browser/features/firefox@getpocket.com.xpi
|
||||
rm ../FirefoxESR.app/Contents/Resources/browser/features/followonsearch@mozilla.com.xpi
|
||||
rm ../FirefoxESR.app/Contents/Resources/browser/features/formautofill@mozilla.org.xpi
|
||||
rm ../FirefoxESR.app/Contents/Resources/browser/features/jaws-esr@mozilla.org.xpi
|
||||
rm ../FirefoxESR.app/Contents/Resources/browser/features/onboarding@mozilla.org.xpi
|
||||
rm ../FirefoxESR.app/Contents/Resources/browser/features/screenshots@mozilla.org.xpi
|
||||
rm ../FirefoxESR.app/Contents/Resources/precomplete
|
||||
rm ../FirefoxESR.app/Contents/Resources/removed-files
|
||||
rm ../FirefoxESR.app/Contents/Resources/update*
|
||||
# And edit some places
|
||||
sed -i '' -e "s/Enabled=1/Enabled=0/g" "../FirefoxESR.app/Contents/Resources/application.ini"
|
||||
sed -i '' -e "s/ServerURL=.*/ServerURL=-/" "../FirefoxESR.app/Contents/Resources/application.ini"
|
||||
# Done!
|
||||
|
||||
echo "Downloading language packs..."
|
||||
curl -L -f -# -o ../FirefoxESR.app/Contents/Resources/browser/extensions/langpack-ru@firefox.mozilla.org.xpi "https://addons.mozilla.org/firefox/downloads/file/978562/russian_ru_language_pack-60.0buildid20180605171542-an+fx.xpi"
|
||||
curl -L -f -# -o ../FirefoxESR.app/Contents/Resources/browser/extensions/langpack-en-US@firefox.mozilla.org.xpi "https://addons.mozilla.org/firefox/downloads/file/978493/english_us_language_pack-60.0buildid20180605171542-an+fx.xpi"
|
||||
|
||||
echo "Downloading NoScript extension..."
|
||||
curl -L -f -# -o ../FirefoxESR.app/Contents/Resources/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi "https://addons.mozilla.org/firefox/downloads/file/3028550/noscript_security_suite-10.6.3-an+fx.xpi"
|
||||
|
||||
echo "Adding standard configs..."
|
||||
cp profile/* ../data/
|
||||
cp -r preferences/* ../FirefoxESR.app/Contents/Resources/
|
||||
|
||||
echo '#!/bin/sh' > "../i2pdbrowser-portable"
|
||||
echo 'dir=${0%/*}' >> "../i2pdbrowser-portable"
|
||||
echo 'if [ "$dir" = "$0" ]; then' >> "../i2pdbrowser-portable"
|
||||
echo ' dir="."' >> "../i2pdbrowser-portable"
|
||||
echo 'fi' >> "../i2pdbrowser-portable"
|
||||
echo 'cd $dir' >> "../i2pdbrowser-portable"
|
||||
echo 'FirefoxESR.app/Contents/MacOS/firefox -profile data -no-remote' >> "../i2pdbrowser-portable"
|
||||
|
||||
chmod +x "../i2pdbrowser-portable"
|
||||
|
||||
echo "Downloading i2pd..."
|
||||
curl -L -f -# -O "https://github.com/PurpleI2P/i2pd/releases/download/${i2pdversion}/i2pd_${i2pdversion}_osx.tar.gz"
|
||||
mkdir ../i2pd
|
||||
tar xfz i2pd_${i2pdversion}_osx.tar.gz -C ../i2pd
|
||||
mv ../i2pd/i2pd ../i2pd/i2pd-osx
|
||||
cp -rf i2pd/* ../i2pd
|
||||
rm "i2pd_${i2pdversion}_osx.tar.gz"
|
||||
|
||||
echo "... finished"
|
||||
@@ -1,109 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2013-2017, The PurpleI2P Project
|
||||
#
|
||||
# This file is part of Purple I2P project and licensed under BSD3
|
||||
#
|
||||
# See full license text in LICENSE file at top of project tree
|
||||
|
||||
arch=$(uname -m)
|
||||
language=$(echo $LANG | cut -c-5 | sed s/_/-/g)
|
||||
version="52.6.0esr"
|
||||
ftpmirror="https://ftp.mozilla.org/pub/firefox/releases/$version"
|
||||
|
||||
curlfind=$(which curl)
|
||||
if [ -z $curlfind ]; then
|
||||
echo "'cURL' does not seem to be installed. The script needs it!";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "This script is preparing Firefox $version for use with I2Pd"
|
||||
|
||||
file="Firefox\ $version.dmg"
|
||||
filepath="mac/$language/$file"
|
||||
|
||||
echo "Downloading $application..."
|
||||
curl -L -f -# -O $ftpmirror/$filepath
|
||||
if [ $? -ne 0 ]; then # Not found error, trying to cut language variable
|
||||
echo "[TRY 2] I'll try downloading Firefox with shorter language code";
|
||||
language=$(echo $language | cut -c-2)
|
||||
# re-create variable with cutted lang
|
||||
filepath="mac/$language/$file"
|
||||
curl -L -f -# -O $ftpmirror/$filepath
|
||||
if [ $? -ne 0 ]; then # Not found error, trying to download english version
|
||||
echo "[TRY 3] I'll try downloading Firefox with the English language code";
|
||||
language="en_US"
|
||||
# re-create lang variable
|
||||
filepath="mac/$language/$file"
|
||||
curl -L -f -# -O $ftpmirror/$filepath
|
||||
if [ $? -ne 0 ]; then # After that i can say only that user haven't internet connection
|
||||
echo "[Error] Can't download file. Check your internet connectivity."
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f $file ]; then
|
||||
echo "[Error] Can't find downloaded file. Does it really exist?"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "Downloading checksum file and checking SHA512 checksum"
|
||||
curl -L -f -# -O $ftpmirror/SHA512SUMS
|
||||
recv_sum=$(grep "$filepath" SHA512SUMS | cut -c-128)
|
||||
file_sum=$(sha512sum $file | cut -c-128)
|
||||
if [ $recv_sum != $file_sum ]; then
|
||||
echo "[Error] File checksum failed!"
|
||||
exit 1;
|
||||
else
|
||||
echo "Checksum correct."
|
||||
rm SHA512SUMS
|
||||
fi
|
||||
|
||||
echo "Attaching image and copying files..."
|
||||
hdiutil attach $file
|
||||
cp -rf /Volumes/Firefox/Firefox.app ../FirefoxESR.app
|
||||
mkdir ../data
|
||||
|
||||
echo "Detaching image and removing image file..."
|
||||
hdiutil detach /Volumes/Firefox
|
||||
rm $file
|
||||
|
||||
## TODO: check on linux before make that changes
|
||||
# Deleting some not needed files
|
||||
#rm ../app/crashreporter*
|
||||
#rm ../app/removed-files
|
||||
#rm ../app/run-mozilla.sh
|
||||
#rm ../app/update*
|
||||
#rm ../app/browser/blocklist.xml
|
||||
#rm -r ../app/dictionaries
|
||||
# And edit some places
|
||||
#sed -i 's/Enabled=1/Enabled=0/g' ../app/application.ini
|
||||
#sed -i 's/ServerURL=.*/ServerURL=-/' ../app/application.ini
|
||||
# sed -i 's/Enabled=1/Enabled=0/g' ../app/webapprt/webapprt.ini
|
||||
# sed -i 's/ServerURL=.*/ServerURL=-/' ../app/webapprt/webapprt.ini
|
||||
# Done!
|
||||
|
||||
echo "Downloading language packs..."
|
||||
curl -L -f -# -o ../FirefoxESR.app/Contents/Resources/browser/extensions/langpack-ru@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605634/russian_ru_language_pack-52.0-fx.xpi?src=version-history
|
||||
curl -L -f -# -o ../FirefoxESR.app/Contents/Resources/browser/extensions/langpack-en-US@firefox.mozilla.org.xpi https://addons.mozilla.org/firefox/downloads/file/605596/english_us_language_pack-52.0-fx.xpi?src=version-history
|
||||
|
||||
echo "Downloading NoScript extension..."
|
||||
curl -L -f -# -o ../FirefoxESR.app/Contents/Resources/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi https://addons.mozilla.org/firefox/downloads/file/806790/noscript_security_suite-5.1.8.3-fx+sm.xpi
|
||||
|
||||
echo "Adding standard configs..."
|
||||
cp profile/* ../data/
|
||||
mkdir -p ../FirefoxESR.app/Contents/Resources/browser/defaults
|
||||
cp -r preferences ../FirefoxESR.app/Contents/Resources/browser/defaults/
|
||||
|
||||
echo '#!/bin/sh' > "../i2pdbrowser-portable"
|
||||
echo 'dir=${0%/*}' >> "../i2pdbrowser-portable"
|
||||
echo 'if [ "$dir" = "$0" ]; then' >> "../i2pdbrowser-portable"
|
||||
echo ' dir="."' >> "../i2pdbrowser-portable"
|
||||
echo 'fi' >> "../i2pdbrowser-portable"
|
||||
echo 'FirefoxESR.app/Contents/MacOS/firefox -profile ../data -no-remote' >> "../i2pdbrowser-portable"
|
||||
|
||||
chmod +x "../i2pdbrowser-portable"
|
||||
|
||||
|
||||
echo "... finished"
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,34 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIF3DCCA8SgAwIBAgIQPxUlcrbHX/xdyJ09E36rJzANBgkqhkiG9w0BAQsFADB3
|
||||
MQswCQYDVQQGEwJYWDELMAkGA1UEBxMCWFgxCzAJBgNVBAkTAlhYMR4wHAYDVQQK
|
||||
ExVJMlAgQW5vbnltb3VzIE5ldHdvcmsxDDAKBgNVBAsTA0kyUDEgMB4GA1UEAwwX
|
||||
cmVzZWVkaTJwbmV0aW5AbWFpbC5pMnAwHhcNMTgxMjA3MTYzNDIxWhcNMjgxMjA3
|
||||
MTYzNDIxWjB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f8wIAYDVR0OBBkEF3Jlc2VlZGkycG5l
|
||||
dGluQG1haWwuaTJwMA0GCSqGSIb3DQEBCwUAA4ICAQCWpXs6iuTy/w2R7q7Ua6vl
|
||||
JYZwbQ+czk5ydzkBgcNkMMMNRT7sZR9xYvV+ftiL4bFQP/3ZJyo7cYz2Q6+M3oAm
|
||||
YDcZWBkLUVihSlMxhWwmeFTKV2EL+bzwY1V/cy7wgukKnFIes75dLP/v25jgjdlw
|
||||
Xe6R+fQM0EoHeVzzrWk/qYp6oEwtQXfZnUu/Bf45hRnnHBzzh1wCql41vbEs3Niq
|
||||
+SVwY1wLT0yC1L8HqjCLX1/L5PAXxbvEGzwnXSkLKK4bPxdmVDZvS9uzXrWmTbNi
|
||||
HpKIFnOif16zSgyeaOM7HETIJuVzgooUMtt+Vsr1VGdtm6K7I9J5C+rX/ckU8oaX
|
||||
UjmzhWXudN0VTslogsKUCV6xG2CskeE3wnuT8HYXz9NMw6c/kIGH4hY7LcfU8Teu
|
||||
QjSy2RRvy6InmZNV5sY9lzzO6romEycSoUlpCa3Ltb/5KKoYZFTsXr8suqJk89lC
|
||||
e+TVMHqOZdLK/usqQDcafLypHpw9SH2Tg4jrzV/zLqacbjx6bZD5IrpY0Gf7BXg/
|
||||
pikwyA9c490G6ZcWrSEP8bzh6LL2rA2AwxaeJJNVyLHCSLrn/7DezM5J/qhd90Qg
|
||||
kcZGJrUOCSWl6mDvUZn5XiQ955XwOnZQ+wsM85B3CVX22x5bp0SYWHCQBPnthPwP
|
||||
Q5DD3jExbpwG5n35HEcHYw==
|
||||
-----END CERTIFICATE-----
|
||||
Executable → Regular
+1
-3
@@ -1,9 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2013-2017, The PurpleI2P Project
|
||||
#
|
||||
# Copyright (c) 2013-2019, The PurpleI2P Project
|
||||
# This file is part of Purple i2pd project and licensed under BSD3
|
||||
#
|
||||
# See full license text in LICENSE file at top of project tree
|
||||
|
||||
screenfind=$(which screen)
|
||||
@@ -21,7 +21,7 @@ name = I2Pd
|
||||
verify = true
|
||||
|
||||
[addressbook]
|
||||
subscriptions = http://inr.i2p/export/alive-hosts.txt
|
||||
subscriptions = http://inr.i2p/export/alive-hosts.txt,http://identiguy.i2p/hosts.txt,http://stats.i2p/cgi-bin/newhosts.txt,http://i2p-projekt.i2p/hosts.txt
|
||||
|
||||
[http]
|
||||
enabled = true
|
||||
@@ -42,3 +42,8 @@ port = 4447
|
||||
enabled = true
|
||||
address = 127.0.0.1
|
||||
port = 7656
|
||||
|
||||
[ntcp2]
|
||||
enabled = true
|
||||
published = true
|
||||
#port =
|
||||
@@ -0,0 +1,7 @@
|
||||
#[IRC-ILITA]
|
||||
#type = client
|
||||
#address = 127.0.0.1
|
||||
#port = 6669
|
||||
#destination = irc.ilita.i2p
|
||||
#destinationport = 6667
|
||||
#keys = irc-keys.dat
|
||||
@@ -0,0 +1,7 @@
|
||||
#[IRC-IRC2P]
|
||||
#type = client
|
||||
#address = 127.0.0.1
|
||||
#port = 6668
|
||||
#destination = irc.postman.i2p
|
||||
#destinationport = 6667
|
||||
#keys = irc-keys.dat
|
||||
@@ -0,0 +1,4 @@
|
||||
# In that directory you can store separated config files for every tunnel.
|
||||
# Please read documentation for more info.
|
||||
#
|
||||
# You can find examples in /usr/share/doc/i2pd/tunnels.d directory
|
||||
@@ -0,0 +1,2 @@
|
||||
[XRE]
|
||||
EnableProfileMigrator=0
|
||||
@@ -0,0 +1 @@
|
||||
resource cck2 modules/
|
||||
@@ -0,0 +1,154 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
var gForceExternalHandler = false;
|
||||
|
||||
XPCOMUtils.defineLazyServiceGetter(this, "extProtocolSvc",
|
||||
"@mozilla.org/uriloader/external-protocol-service;1", "nsIExternalProtocolService");
|
||||
|
||||
var documentObserver = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
if (subject instanceof Ci.nsIDOMWindow && topic == 'content-document-global-created') {
|
||||
var doc = subject.document;
|
||||
doc.addEventListener("DOMContentLoaded", function onLoad(event) {
|
||||
event.target.removeEventListener("DOMContentLoaded", onLoad, false);
|
||||
// If the parent document is a local file, don't do anything
|
||||
// Links will just work
|
||||
if (doc.location.href.indexOf("file://") == 0) {
|
||||
return;
|
||||
}
|
||||
var links = event.target.getElementsByTagName("a");
|
||||
for (var i=0; i < links.length; i++) {
|
||||
var link = links[i];
|
||||
if (link.href.indexOf("file://") != 0) {
|
||||
continue;
|
||||
}
|
||||
link.addEventListener("click", function(link) {
|
||||
return function(event) {
|
||||
event.preventDefault();
|
||||
if (gForceExternalHandler) {
|
||||
extProtocolSvc.loadUrl(Services.io.newURI(link.href, null, null));
|
||||
} else {
|
||||
var target = "_self";
|
||||
if (link.hasAttribute("target")) {
|
||||
target = link.getAttribute("target");
|
||||
}
|
||||
// If we were told somewhere other than current (based on modifier keys), use it
|
||||
var where = whereToOpenLink(event);
|
||||
if (where != "current" || target == "_blank") {
|
||||
sendAsyncMessage("cck2:open-url", {
|
||||
"url": link.href,
|
||||
"where": (target == "_blank") ? "tab" : where
|
||||
});
|
||||
return;
|
||||
}
|
||||
switch (target) {
|
||||
case "_self":
|
||||
link.ownerDocument.location = link.href;
|
||||
break;
|
||||
case "_parent":
|
||||
link.ownerDocument.defaultView.parent.document.location = link.href;
|
||||
break;
|
||||
case "_top":
|
||||
link.ownerDocument.defaultView.top.document.location = link.href;
|
||||
break;
|
||||
default:
|
||||
// Attempt to find the iframe that this goes into
|
||||
var iframes = doc.defaultView.parent.document.getElementsByName(target);
|
||||
if (iframes.length > 0) {
|
||||
iframes[0].contentDocument.location = link.href;
|
||||
} else {
|
||||
link.ownerDocument.location = link.href;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}(link), false);
|
||||
}
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Don't do this check before Firefox 29
|
||||
if (Services.vc.compare(Services.appinfo.version, "29") > 0) {
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy.default.checkloaduri.enabled") == "allAccess") {
|
||||
gForceExternalHandler = !extProtocolSvc.isExposedProtocol('file');
|
||||
Services.obs.addObserver(documentObserver, "content-document-global-created", false);
|
||||
addEventListener("unload", function() {
|
||||
Services.obs.removeObserver(documentObserver, "content-document-global-created", false);
|
||||
})
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
|
||||
/* Copied from http://mxr.mozilla.org/mozilla-central/source/browser/base/content/utilityOverlay.js?raw=1 */
|
||||
|
||||
function getBoolPref(prefname, def)
|
||||
{
|
||||
try {
|
||||
return Services.prefs.getBoolPref(prefname);
|
||||
}
|
||||
catch(er) {
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
||||
/* whereToOpenLink() looks at an event to decide where to open a link.
|
||||
*
|
||||
* The event may be a mouse event (click, double-click, middle-click) or keypress event (enter).
|
||||
*
|
||||
* On Windows, the modifiers are:
|
||||
* Ctrl new tab, selected
|
||||
* Shift new window
|
||||
* Ctrl+Shift new tab, in background
|
||||
* Alt save
|
||||
*
|
||||
* Middle-clicking is the same as Ctrl+clicking (it opens a new tab).
|
||||
*
|
||||
* Exceptions:
|
||||
* - Alt is ignored for menu items selected using the keyboard so you don't accidentally save stuff.
|
||||
* (Currently, the Alt isn't sent here at all for menu items, but that will change in bug 126189.)
|
||||
* - Alt is hard to use in context menus, because pressing Alt closes the menu.
|
||||
* - Alt can't be used on the bookmarks toolbar because Alt is used for "treat this as something draggable".
|
||||
* - The button is ignored for the middle-click-paste-URL feature, since it's always a middle-click.
|
||||
*/
|
||||
function whereToOpenLink( e, ignoreButton, ignoreAlt )
|
||||
{
|
||||
Components.utils.import("resource://gre/modules/AppConstants.jsm");
|
||||
|
||||
// This method must treat a null event like a left click without modifier keys (i.e.
|
||||
// e = { shiftKey:false, ctrlKey:false, metaKey:false, altKey:false, button:0 })
|
||||
// for compatibility purposes.
|
||||
if (!e)
|
||||
return "current";
|
||||
|
||||
var shift = e.shiftKey;
|
||||
var ctrl = e.ctrlKey;
|
||||
var meta = e.metaKey;
|
||||
var alt = e.altKey && !ignoreAlt;
|
||||
|
||||
// ignoreButton allows "middle-click paste" to use function without always opening in a new window.
|
||||
var middle = !ignoreButton && e.button == 1;
|
||||
var middleUsesTabs = true;
|
||||
|
||||
// Don't do anything special with right-mouse clicks. They're probably clicks on context menu items.
|
||||
|
||||
var metaKey = AppConstants.platform == "macosx" ? meta : ctrl;
|
||||
if (metaKey || (middle && middleUsesTabs))
|
||||
return shift ? "tabshifted" : "tab";
|
||||
|
||||
if (alt && getBoolPref("browser.altClickSave", false))
|
||||
return "save";
|
||||
|
||||
if (shift || (middle && !middleUsesTabs))
|
||||
return "window";
|
||||
|
||||
return "current";
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
var gAllowedPasteSites = [];
|
||||
var gAllowedCutCopySites = [];
|
||||
var gDeniedPasteSites = [];
|
||||
var gDeniedCutCopySites = [];
|
||||
var gDefaultPastePolicy = false;
|
||||
var gDefaultCutCopyPolicy = false;
|
||||
|
||||
function allowCutCopy(doc) {
|
||||
var win = doc.defaultView;
|
||||
if (win !== win.top) {
|
||||
// It's an iframe. Use the top level window
|
||||
// for security purposes
|
||||
win = win.top;
|
||||
}
|
||||
|
||||
if (gDefaultCutCopyPolicy == true) {
|
||||
for (var i=0; i < gDeniedCutCopySites.length; i++) {
|
||||
if (win.location.href.indexOf(gDeniedCutCopySites[i]) == 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
for (var i=0; i < gAllowedCutCopySites.length; i++) {
|
||||
if (win.location.href.indexOf(gAllowedCutCopySites[i]) == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function allowPaste(doc) {
|
||||
var win = doc.defaultView;
|
||||
if (win !== win.top) {
|
||||
// It's an iframe. Use the top level window
|
||||
// for security purposes
|
||||
win = win.top;
|
||||
}
|
||||
|
||||
if (gDefaultPastePolicy == true) {
|
||||
for (var i=0; i < gDeniedPasteSites.length; i++) {
|
||||
if (win.location.href.indexOf(gDeniedPasteSites[i]) == 0) {
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
for (var i=0; i < gAllowedPasteSites.length; i++) {
|
||||
if (win.location.href.indexOf(gAllowedPasteSites[i]) == 0) {
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function myExecCommand(doc, originalExecCommand) {
|
||||
return function(aCommandName, aShowDefaultUI, aValueArgument) {
|
||||
switch (aCommandName.toLowerCase()) {
|
||||
case "cut":
|
||||
case "copy":
|
||||
if (allowCutCopy(doc)) {
|
||||
var win = Services.wm.getMostRecentWindow("navigator:browser");
|
||||
win.goDoCommand("cmd_" + aCommandName.toLowerCase());
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "paste":
|
||||
if (allowPaste(doc)) {
|
||||
var win = Services.wm.getMostRecentWindow("navigator:browser");
|
||||
win.goDoCommand("cmd_" + aCommandName.toLowerCase());
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return originalExecCommand.call(doc, aCommandName, aShowDefaultUI, aValueArgument);
|
||||
}
|
||||
}
|
||||
|
||||
function myQueryCommandSupported(doc, originalQueryCommandSupported) {
|
||||
return function(aCommandName) {
|
||||
switch (aCommandName.toLowerCase()) {
|
||||
case "cut":
|
||||
case "copy":
|
||||
if (allowCutCopy(doc)) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case "paste":
|
||||
if (allowPaste(doc)) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return originalQueryCommandSupported.call(doc, aCommandName, aShowDefaultUI, aValueArgument);
|
||||
}
|
||||
}
|
||||
|
||||
var documentObserver = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
if (subject instanceof Ci.nsIDOMWindow && topic == 'content-document-global-created') {
|
||||
var doc = subject.document;
|
||||
var cutCopyAllowed = allowCutCopy(doc);
|
||||
var pasteAllowed = allowPaste(doc);
|
||||
if (!cutCopyAllowed && !pasteAllowed) {
|
||||
return;
|
||||
}
|
||||
var originalExecCommand = Cu.waiveXrays(doc).execCommand;
|
||||
Cu.exportFunction(myExecCommand(doc, originalExecCommand), doc, {defineAs: "execCommand"});
|
||||
var originalQueryCommandSupported = Cu.waiveXrays(doc).queryCommandSupported;
|
||||
Cu.exportFunction(myQueryCommandSupported(doc, originalQueryCommandSupported), doc, {defineAs: "queryCommandSupported"});
|
||||
var originalQueryCommandEnabled = Cu.waiveXrays(doc).queryCommandEnabled;
|
||||
Cu.exportFunction(myQueryCommandSupported(doc, originalQueryCommandEnabled), doc, {defineAs: "queryCommandEnabled"});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Don't do this check before Firefox 29
|
||||
if (Services.vc.compare(Services.appinfo.version, "29") > 0) {
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy.default.Clipboard.cutcopy") == "allAccess") {
|
||||
gDefaultCutCopyPolicy = true;
|
||||
}
|
||||
} catch (e) {}
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy.default.Clipboard.paste") == "allAccess") {
|
||||
gDefaultPastePolicy = true;
|
||||
}
|
||||
} catch (e) {}
|
||||
try {
|
||||
var policies = [];
|
||||
policies = Services.prefs.getCharPref("capability.policy.policynames").split(', ');
|
||||
for (var i=0; i < policies.length; i++ ) {
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy." + policies[i] + ".Clipboard.cutcopy") == "allAccess") {
|
||||
var allowedCutCopySites = Services.prefs.getCharPref("capability.policy." + policies[i] + ".sites").split(" ");
|
||||
for (var j=0; j < allowedCutCopySites.length; j++) {
|
||||
gAllowedCutCopySites.push(allowedCutCopySites[j]);
|
||||
}
|
||||
}
|
||||
} catch(e) {}
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy." + policies[i] + ".Clipboard.cutcopy") == "noAccess") {
|
||||
var deniedCutCopySites = Services.prefs.getCharPref("capability.policy." + policies[i] + ".sites").split(" ");
|
||||
for (var j=0; j < deniedCutCopySites.length; j++) {
|
||||
gDeniedCutCopySites.push(deniedCutCopySites[j]);
|
||||
}
|
||||
}
|
||||
} catch(e) {}
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy." + policies[i] + ".Clipboard.paste") == "allAccess") {
|
||||
var allowedPasteSites = Services.prefs.getCharPref("capability.policy." + policies[i] + ".sites").split(" ");
|
||||
for (var j=0; j < allowedPasteSites.length; j++) {
|
||||
gAllowedPasteSites.push(allowedPasteSites[j]);
|
||||
}
|
||||
}
|
||||
} catch(e) {}
|
||||
try {
|
||||
if (Services.prefs.getCharPref("capability.policy." + policies[i] + ".Clipboard.paste") == "noAccess") {
|
||||
var deniedPasteSites = Services.prefs.getCharPref("capability.policy." + policies[i] + ".sites").split(" ");
|
||||
for (var j=0; j < deniedPasteSites.length; j++) {
|
||||
gDeniedPasteSites.push(deniedPasteSites[j]);
|
||||
}
|
||||
}
|
||||
} catch(e) {}
|
||||
}
|
||||
} catch (e) {}
|
||||
if (gDefaultCutCopyPolicy || gDefaultPastePolicy ||
|
||||
gAllowedCutCopySites.length > 0 || gAllowedPasteSites> 0) {
|
||||
Services.obs.addObserver(documentObserver, "content-document-global-created", false);
|
||||
addEventListener("unload", function() {
|
||||
Services.obs.removeObserver(documentObserver, "content-document-global-created", false);
|
||||
})
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,111 @@
|
||||
/* This file overlays about:addons. It does the following: */
|
||||
/* Workaround https://bugzilla.mozilla.org/show_bug.cgi?id=1132971 */
|
||||
/* Hide the "Install Add-on From File" menu if xpinstall.enabled is false */
|
||||
/* Hides the discover pane if xpinstall.enabled is false */
|
||||
/* Hides the add-on entry if specified in the CCK2 config */
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://cck2/CCK2.jsm");
|
||||
|
||||
var addonId = "cck2wizard@kaply.com";
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "about:addons":
|
||||
case "chrome://mozapps/content/extensions/extensions.xul":
|
||||
var configs = CCK2.getConfigs();
|
||||
var hiddenAddons = [];
|
||||
var requiredAddons = [];
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config && "extension" in config && config.extension.hide) {
|
||||
hiddenAddons.push(config.extension.id);
|
||||
}
|
||||
if (config.requiredAddons) {
|
||||
requiredAddons.push.apply(requiredAddons, config.requiredAddons.split(","));
|
||||
}
|
||||
}
|
||||
if (hiddenAddons.length > 0 || requiredAddons.length > 0) {
|
||||
var ss;
|
||||
for (var i = 0; i < doc.styleSheets.length; i++) {
|
||||
if (doc.styleSheets[i].href == "chrome://mozapps/skin/extensions/extensions.css") {
|
||||
ss = doc.styleSheets[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (var i=0; i < hiddenAddons.length; i++) {
|
||||
ss.insertRule("richlistitem[value='" + hiddenAddons[i] + "'] { display: none;}", ss.cssRules.length);
|
||||
}
|
||||
for (var i=0; i < requiredAddons.length; i++) {
|
||||
ss.insertRule("richlistitem[value='" + requiredAddons[i] + "'] button[anonid='disable-btn'] { display: none;}", ss.cssRules.length);
|
||||
ss.insertRule("richlistitem[value='" + requiredAddons[i] + "'] button[anonid='remove-btn'] { display: none;}", ss.cssRules.length);
|
||||
}
|
||||
if (requiredAddons.length > 0) {
|
||||
win.gViewController.commands.cmd_disableItem.origIsEnabled = win.gViewController.commands.cmd_disableItem.isEnabled;
|
||||
win.gViewController.commands.cmd_disableItem.isEnabled = function(aAddon) { if (aAddon && requiredAddons.indexOf(aAddon.id) != -1) return false; return this.origIsEnabled;}
|
||||
win.gViewController.commands.cmd_uninstallItem.origIsEnabled = win.gViewController.commands.cmd_disableItem.isEnabled;
|
||||
win.gViewController.commands.cmd_uninstallItem.isEnabled = function(aAddon) { if (aAddon && requiredAddons.indexOf(aAddon.id) != -1) return false; return this.origIsEnabled;}
|
||||
}
|
||||
}
|
||||
var showDiscoverPane = true;
|
||||
var xpinstallEnabled = true;
|
||||
try {
|
||||
xpinstallEnabled = Services.prefs.getBoolPref("xpinstall.enabled");
|
||||
} catch (e) {}
|
||||
try {
|
||||
showDiscoverPane = Services.prefs.getBoolPref("extensions.getAddons.showPane");
|
||||
} catch (e) {}
|
||||
if (!xpinstallEnabled || !showDiscoverPane) {
|
||||
// Work around Mozilla bug 1132971
|
||||
// Hide the discover pane if it is the selected pane
|
||||
if (E("view-port", doc) && E("view-port", doc).selectedIndex == 0) {
|
||||
try {
|
||||
win.gViewController.loadView("addons://list/extension");
|
||||
} catch (ex) {
|
||||
// This fails with Webconverger installed. Ignore it.
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!xpinstallEnabled) {
|
||||
// Hide the "Install Add-on From File" separator
|
||||
hide(E("utils-installFromFile-separator", doc));
|
||||
// Hide the "Install Add-on From File" menuitem
|
||||
hide(E("utils-installFromFile", doc));
|
||||
win.gDragDrop.onDragOver = function(event) {
|
||||
event.dataTransfer.dropEffect = "none";
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
};
|
||||
}
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
function hide(element) {
|
||||
if (element) {
|
||||
element.setAttribute("hidden", "true");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/* This file is a workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1139509 */
|
||||
/* It bolds the Firefox version in the about dialog and unbolds the distribution information */
|
||||
/* It can be removed once Firefox 38 ESR is out of support */
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "chrome://browser/content/aboutDialog.xul":
|
||||
doc.querySelector("#version").style.fontWeight = "bold";
|
||||
doc.querySelector("#distribution").style.fontWeight = "normal";
|
||||
doc.querySelector("#distributionId").style.fontWeight = "normal";
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
@@ -0,0 +1,79 @@
|
||||
/* This file overrides about:home. It does the following:
|
||||
* Remove the sync button if Sync is disabled
|
||||
* Remove the Addons button if Sync is disabled
|
||||
* Remove the snippets if snippets are disabled
|
||||
*/
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
var configs = null;
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "content-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "about:home":
|
||||
case "chrome://browser/content/abouthome/aboutHome.xhtml":
|
||||
if (!configs) {
|
||||
// TODO - Make this Async
|
||||
configs = sendSyncMessage("cck2:get-configs")[0];
|
||||
}
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSync) {
|
||||
remove(E("sync", doc));
|
||||
}
|
||||
if (config.disableAddonsManager) {
|
||||
remove(E("addons", doc));
|
||||
}
|
||||
if (config.disableWebApps) {
|
||||
remove(E("apps", doc));
|
||||
}
|
||||
if (config.removeSnippets) {
|
||||
var snippets = E("snippets", doc);
|
||||
if (snippets) {
|
||||
snippets.style.display = "none";
|
||||
}
|
||||
}
|
||||
if (config.hiddenUI) {
|
||||
for (var i=0; i < config.hiddenUI.length; i++) {
|
||||
var uiElements = doc.querySelectorAll(config.hiddenUI[i]);
|
||||
for (var j=0; j < uiElements.length; j++) {
|
||||
var uiElement = uiElements[j];
|
||||
uiElement.setAttribute("hidden", "true");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Services.obs.addObserver(observer, "content-document-global-created", false);
|
||||
|
||||
addEventListener("unload", function() {
|
||||
Services.obs.removeObserver(observer, "content-document-global-created", false);
|
||||
})
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
function remove(element) {
|
||||
if (element && element.parentNode)
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
/* This file overrides about:support It does the following:
|
||||
* Remove the reset Firefox button if disableResetFirefox is set
|
||||
* Remove the safe mode Button if disableSafeMode is set
|
||||
* Remove the box if both are set
|
||||
*/
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://cck2/CCK2.jsm");
|
||||
|
||||
var configs = null;
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "about:support":
|
||||
case "chrome://global/content/aboutSupport.xhtml":
|
||||
if (!configs) {
|
||||
configs = CCK2.getConfigs();
|
||||
}
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableResetFirefox) {
|
||||
remove(E("reset-box", doc));
|
||||
}
|
||||
if (config.disableSafeMode) {
|
||||
remove(E("safe-mode-box", doc));
|
||||
}
|
||||
if (config.disableResetFirefox &&
|
||||
config.disableSafeMode) {
|
||||
remove(E("action-box", doc));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
|
||||
function remove(element) {
|
||||
if (element && element.parentNode)
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
@@ -0,0 +1,373 @@
|
||||
/* This file modifies the main browser window. It does the following:
|
||||
* Goes through the hiddenUI list and hides any UI
|
||||
*
|
||||
*/
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource:///modules/CustomizableUI.jsm");
|
||||
Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
|
||||
Cu.import("resource://cck2/CCK2.jsm");
|
||||
|
||||
var configs = null;
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "chrome://browser/content/browser.xul":
|
||||
// Workaround https://bugzilla.mozilla.org/show_bug.cgi?id=1149617
|
||||
var origSetReportPhishingMenu = win.gSafeBrowsing.setReportPhishingMenu;
|
||||
win.gSafeBrowsing.setReportPhishingMenu = function() {
|
||||
try {
|
||||
origSetReportPhishingMenu();
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
win.addEventListener("unload", function onUnload(event) {
|
||||
win.removeEventListener("unload", onUnload, false);
|
||||
var panelUIPopup = doc.getElementById("PanelUI-popup");
|
||||
if (panelUIPopup) {
|
||||
E("PanelUI-popup", doc).removeEventListener("popupshowing", onPanelShowing, false);
|
||||
}
|
||||
});
|
||||
var panelUIPopup = doc.getElementById("PanelUI-popup");
|
||||
if (panelUIPopup) {
|
||||
E("PanelUI-popup", doc).addEventListener("popupshowing", onPanelShowing, false);
|
||||
}
|
||||
var appMenuPopup = doc.getElementById("appMenu-popup");
|
||||
if (appMenuPopup) {
|
||||
E("appMenu-popup", doc).addEventListener("popupshowing", onAppMenuShowing, false);
|
||||
}
|
||||
configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
config = configs[id];
|
||||
if (config.disablePrivateBrowsing &&
|
||||
PrivateBrowsingUtils.isWindowPrivate(win)) {
|
||||
win.setTimeout(function() {
|
||||
Services.prompt.alert(win, "Private Browsing", "Private Browsing has been disabled by your administrator");
|
||||
win.close();
|
||||
}, 0, false);
|
||||
}
|
||||
if (config.disablePrivateBrowsing) {
|
||||
disablePrivateBrowsing(doc);
|
||||
}
|
||||
if (config.disableSync) {
|
||||
disableSync(doc);
|
||||
}
|
||||
if (config.disableAddonsManager) {
|
||||
disableAddonsManager(doc);
|
||||
}
|
||||
if (config.removeDeveloperTools) {
|
||||
Services.tm.mainThread.dispatch(function() {
|
||||
removeDeveloperTools(doc);
|
||||
}, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
}
|
||||
if (config.disableErrorConsole) {
|
||||
disableErrorConsole(doc);
|
||||
}
|
||||
if (config.disableFirefoxHealthReport) {
|
||||
var healthReportMenu = doc.getElementById("healthReport");
|
||||
if (healthReportMenu) {
|
||||
healthReportMenu.parentNode.removeChild(healthReportMenu);
|
||||
}
|
||||
}
|
||||
if (config.removeSafeModeMenu) {
|
||||
hide(E("helpSafeMode", doc));
|
||||
}
|
||||
if (config.titlemodifier) {
|
||||
doc.getElementById("main-window").setAttribute("titlemodifier", config.titlemodifier);
|
||||
}
|
||||
if (config.removeSetDesktopBackground) {
|
||||
// Because this is on a context menu, we can't use "hidden"
|
||||
if (E("context-setDesktopBackground", doc)) {
|
||||
E("context-setDesktopBackground", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
}
|
||||
if (config.disableWebApps) {
|
||||
CustomizableUI.destroyWidget("web-apps-button");
|
||||
hide(E("menu_openApps", doc));
|
||||
}
|
||||
if (config.disableHello) {
|
||||
CustomizableUI.destroyWidget("loop-button");
|
||||
hide(E("menu_openLoop", doc));
|
||||
}
|
||||
if (config.disablePocket) {
|
||||
CustomizableUI.destroyWidget("pocket-button");
|
||||
}
|
||||
if (config.disableSharePage) {
|
||||
CustomizableUI.destroyWidget("social-share-button");
|
||||
// Because these are on a context menu, we can't use "hidden"
|
||||
if (E("context-sharelink", doc)) {
|
||||
E("context-sharelink", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
if (E("context-shareselect", doc)) {
|
||||
E("context-shareselect", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
if (E("context-shareimage", doc)) {
|
||||
E("context-shareimage", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
if (E("context-sharevideo", doc)) {
|
||||
E("context-sharevideo", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
if (E("context-sharepage", doc)) {
|
||||
E("context-sharepage", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
}
|
||||
if (config.disableSocialAPI) {
|
||||
win.SocialActivationListener = {};
|
||||
}
|
||||
if (config.disableForget) {
|
||||
CustomizableUI.destroyWidget("panic-button");
|
||||
}
|
||||
if (config.hiddenUI) {
|
||||
hideUIElements(doc, config.hiddenUI);
|
||||
}
|
||||
if (config.helpMenu) {
|
||||
// We need to run this function on a delay, because we won't know
|
||||
// if the about menu is hidden for mac until after it is run.
|
||||
Services.tm.mainThread.dispatch(function() {
|
||||
var helpMenuPopup = doc.getElementById("menu_HelpPopup");
|
||||
var menuitem = doc.createElement("menuitem");
|
||||
menuitem.setAttribute("label", config.helpMenu.label);
|
||||
if ("accesskey" in config.helpMenu) {
|
||||
menuitem.setAttribute("accesskey", config.helpMenu.accesskey);
|
||||
}
|
||||
menuitem.setAttribute("oncommand", "openUILink('" + config.helpMenu.url + "');");
|
||||
menuitem.setAttribute("onclick", "checkForMiddleClick(this, event);");
|
||||
if (!E("aboutName", doc) || E("aboutName", doc).hidden) {
|
||||
// Mac
|
||||
helpMenuPopup.appendChild(menuitem);
|
||||
} else {
|
||||
helpMenuPopup.insertBefore(menuitem, E("aboutName", doc));
|
||||
helpMenuPopup.insertBefore(doc.createElement("menuseparator"),
|
||||
E("aboutName", doc));
|
||||
}
|
||||
}, Ci.nsIThread.DISPATCH_NORMAL);
|
||||
}
|
||||
if (config.firstrun || config.upgrade) {
|
||||
if (config.displayBookmarksToolbar || (config.bookmarks && config.bookmarks.toolbar)) {
|
||||
CustomizableUI.setToolbarVisibility("PersonalToolbar", "true");
|
||||
}
|
||||
if (config.displayMenuBar) {
|
||||
CustomizableUI.setToolbarVisibility("toolbar-menubar", "true");
|
||||
}
|
||||
if (config.showSearchBar) {
|
||||
CustomizableUI.addWidgetToArea("search-container", CustomizableUI.AREA_NAVBAR,
|
||||
CustomizableUI.getPlacementOfWidget("urlbar-container").position + 1);
|
||||
}
|
||||
config.firstrun = false;
|
||||
config.upgrade = false;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "chrome://browser/content/places/places.xul":
|
||||
case "chrome://browser/content/bookmarks/bookmarksPanel.xul":
|
||||
case "chrome://browser/content/history/history-panel.xul":
|
||||
configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disablePrivateBrowsing) {
|
||||
if (E("placesContext_open:newprivatewindow", doc)) {
|
||||
E("placesContext_open:newprivatewindow", doc).setAttribute("style", "display: none;");
|
||||
}
|
||||
}
|
||||
if (config.hiddenUI) {
|
||||
hideUIElements(doc, config.hiddenUI);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
|
||||
function disableSync(doc) {
|
||||
var win = doc.defaultView;
|
||||
if (win.gSyncUI) {
|
||||
var mySyncUI = {
|
||||
init: function() {
|
||||
return;
|
||||
},
|
||||
initUI: function() {
|
||||
return;
|
||||
},
|
||||
updateUI: function() {
|
||||
hide(E("sync-setup-state", doc));
|
||||
hide(E("sync-syncnow-state", doc));
|
||||
hide(E("sync-setup", doc));
|
||||
hide(E("sync-syncnowitem", doc));
|
||||
}
|
||||
}
|
||||
win.gSyncUI = mySyncUI;
|
||||
}
|
||||
CustomizableUI.destroyWidget("sync-button");
|
||||
CustomizableUI.removeWidgetFromArea("sync-button");
|
||||
var toolbox = doc.getElementById("navigator-toolbox");
|
||||
if (toolbox && toolbox.palette) {
|
||||
let element = toolbox.palette.querySelector("#sync-button");
|
||||
if (element) {
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
}
|
||||
hide(E("sync-setup-state", doc));
|
||||
hide(E("sync-syncnow-state", doc));
|
||||
hide(E("sync-setup", doc));
|
||||
hide(E("sync-syncnowitem", doc));
|
||||
}
|
||||
|
||||
function disablePrivateBrowsing(doc) {
|
||||
disable(E("Tools:PrivateBrowsing", doc));
|
||||
hide(E("menu_newPrivateWindow", doc));
|
||||
// Because this is on a context menu, we can't use "hidden"
|
||||
if (E("context-openlinkprivate", doc))
|
||||
E("context-openlinkprivate", doc).setAttribute("style", "display: none;");
|
||||
if (E("placesContext_open:newprivatewindow", doc))
|
||||
E("placesContext_open:newprivatewindow", doc).setAttribute("style", "display: none;");
|
||||
CustomizableUI.destroyWidget("privatebrowsing-button")
|
||||
}
|
||||
|
||||
function disableAddonsManager(doc) {
|
||||
hide(E("menu_openAddons", doc));
|
||||
disable(E("Tools:Addons", doc)); // Ctrl+Shift+A
|
||||
CustomizableUI.destroyWidget("add-ons-button")
|
||||
}
|
||||
|
||||
function removeDeveloperTools(doc) {
|
||||
var win = doc.defaultView;
|
||||
// Need to delay this because devtools is created dynamically
|
||||
win.setTimeout(function() {
|
||||
CustomizableUI.destroyWidget("developer-button")
|
||||
hide(E("webDeveloperMenu", doc));
|
||||
var devtoolsKeyset = doc.getElementById("devtoolsKeyset");
|
||||
if (devtoolsKeyset) {
|
||||
for (var i = 0; i < devtoolsKeyset.childNodes.length; i++) {
|
||||
devtoolsKeyset.childNodes[i].removeAttribute("oncommand");
|
||||
devtoolsKeyset.childNodes[i].removeAttribute("command");
|
||||
}
|
||||
}
|
||||
}, 0);
|
||||
try {
|
||||
doc.getElementById("Tools:ResponsiveUI").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:Scratchpad").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:BrowserConsole").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:BrowserToolbox").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:DevAppsMgr").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:DevToolbar").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:DevToolbox").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
try {
|
||||
doc.getElementById("Tools:DevToolbarFocus").removeAttribute("oncommand");
|
||||
} catch (e) {}
|
||||
CustomizableUI.destroyWidget("developer-button")
|
||||
}
|
||||
|
||||
function disableErrorConsole(doc) {
|
||||
doc.getElementById("Tools:ErrorConsole").removeAttribute("oncommand");
|
||||
}
|
||||
|
||||
function onPanelShowing(event) {
|
||||
var configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSync) {
|
||||
hide(E("PanelUI-fxa-status", event.target.ownerDocument));
|
||||
hide(E("PanelUI-footer-fxa", event.target.ownerDocument)); // Firefox 42+
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onAppMenuShowing(event) {
|
||||
var configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSync) {
|
||||
hide(E("appMenu-fxa-container", event.target.ownerDocument));
|
||||
}
|
||||
if (config.removeDeveloperTools) {
|
||||
hide(E("appMenu-developer-button", event.target.ownerDocument));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
function hide(element) {
|
||||
if (element) {
|
||||
element.setAttribute("hidden", "true");
|
||||
}
|
||||
}
|
||||
|
||||
function disable(element) {
|
||||
if (element) {
|
||||
element.disabled = true;
|
||||
element.setAttribute("disabled", "true");
|
||||
}
|
||||
}
|
||||
|
||||
function hideUIElements(doc, hiddenUI) {
|
||||
for (var i=0; i < hiddenUI.length; i++) {
|
||||
var uiElements = doc.querySelectorAll(hiddenUI[i]);
|
||||
// Don't use .hidden since it doesn't work sometimes
|
||||
var style = doc.getElementById("cck2-hidden-style");
|
||||
if (!style) {
|
||||
style = doc.createElementNS("http://www.w3.org/1999/xhtml", "style");
|
||||
style.setAttribute("id", "cck2-hidden-style");
|
||||
style.setAttribute("type", "text/css");
|
||||
doc.documentElement.appendChild(style);
|
||||
}
|
||||
style.textContent = style.textContent + hiddenUI[i] + "{display: none !important;}";
|
||||
if (!uiElements || uiElements.length == 0) {
|
||||
continue;
|
||||
}
|
||||
for (var j=0; j < uiElements.length; j++) {
|
||||
var uiElement = uiElements[j];
|
||||
if (uiElement.nodeName == "menuitem") {
|
||||
uiElement.removeAttribute("key");
|
||||
uiElement.removeAttribute("oncommand");
|
||||
if (uiElement.hasAttribute("command")) {
|
||||
var commandId = uiElement.getAttribute("command");
|
||||
uiElement.removeAttribute("command");
|
||||
var command = doc.getElementById(commandId);
|
||||
command.removeAttribute("oncommand");
|
||||
var keys = doc.querySelectorAll("key[command='" + commandId + "']")
|
||||
for (var k=0; k < keys.length; k++) {
|
||||
keys[k].removeAttribute("command");
|
||||
}
|
||||
}
|
||||
}
|
||||
// Horrible hack to work around the crappy Australis help menu
|
||||
// Items on the menu always show up in the Australis menu, so we have to remove them.
|
||||
if (uiElements[j].parentNode.id == "menu_HelpPopup") {
|
||||
uiElements[j].parentNode.removeChild(uiElements[j]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
var EXPORTED_SYMBOLS = [];
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
let CCK2FileBlock = {
|
||||
chromeBlacklist: ["browser", "mozapps", "marionette", "specialpowers",
|
||||
"branding", "alerts"],
|
||||
shouldLoad: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aExtra) {
|
||||
// Prevent the loading of chrome URLs into the main browser window
|
||||
if (aContentLocation.scheme == "chrome") {
|
||||
if (aRequestOrigin &&
|
||||
(aRequestOrigin.spec == "chrome://browser/content/browser.xul" ||
|
||||
aRequestOrigin.scheme == "moz-nullprincipal")) {
|
||||
for (var i=0; i < this.chromeBlacklist.length; i++) {
|
||||
if (aContentLocation.host == this.chromeBlacklist[i]) {
|
||||
if (aContentLocation.spec.includes(".xul")) {
|
||||
return Ci.nsIContentPolicy.REJECT_REQUEST;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Ci.nsIContentPolicy.ACCEPT;
|
||||
},
|
||||
shouldProcess: function(aContentType, aContentLocation, aRequestOrigin, aContext, aMimeTypeGuess, aExtra) {
|
||||
return Ci.nsIContentPolicy.ACCEPT;
|
||||
},
|
||||
classDescription: "CCK2 FileBlock Service",
|
||||
contractID: "@kaply.com/cck2-fileblock-service;1",
|
||||
classID: Components.ID('{26e7afc9-e22d-4d12-bb57-c184fe24b828}'),
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIContentPolicy]),
|
||||
createInstance: function(outer, iid) {
|
||||
return this.QueryInterface(iid);
|
||||
},
|
||||
};
|
||||
|
||||
var registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
|
||||
registrar.registerFactory(CCK2FileBlock.classID,
|
||||
CCK2FileBlock.classDescription,
|
||||
CCK2FileBlock.contractID,
|
||||
CCK2FileBlock);
|
||||
|
||||
var cm = Cc["@mozilla.org/categorymanager;1"].getService(Ci.nsICategoryManager);
|
||||
cm.addCategoryEntry("content-policy", CCK2FileBlock.contractID,
|
||||
CCK2FileBlock.contractID, false, true);
|
||||
@@ -0,0 +1,51 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
var disableSearchEngineInstall = false;
|
||||
|
||||
var documentObserver = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
if (subject instanceof Ci.nsIDOMWindow && topic == 'content-document-global-created') {
|
||||
var doc = subject.document;
|
||||
doc.addEventListener("DOMContentLoaded", function onLoad(event) {
|
||||
event.target.removeEventListener("DOMContentLoaded", onLoad, false);
|
||||
if (disableSearchEngineInstall) {
|
||||
subject.wrappedJSObject.external.AddSearchProvider = function() {};
|
||||
}
|
||||
if (!doc.documentURI.startsWith("about:")) {
|
||||
return;
|
||||
}
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.hiddenUI) {
|
||||
for (var i=0; i < config.hiddenUI.length; i++) {
|
||||
// Don't use .hidden since it doesn't work sometimes
|
||||
var style = doc.getElementById("cck2-hidden-style");
|
||||
if (!style) {
|
||||
style = doc.createElementNS("http://www.w3.org/1999/xhtml", "style");
|
||||
style.setAttribute("id", "cck2-hidden-style");
|
||||
style.setAttribute("type", "text/css");
|
||||
doc.documentElement.appendChild(style);
|
||||
}
|
||||
style.textContent = style.textContent + config.hiddenUI[i] + "{display: none !important;}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var configs = sendSyncMessage("cck2:get-configs")[0];
|
||||
for (var id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSearchEngineInstall) {
|
||||
disableSearchEngineInstall = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Services.obs.addObserver(documentObserver, "content-document-global-created", false);
|
||||
addEventListener("unload", function() {
|
||||
Services.obs.removeObserver(documentObserver, "content-document-global-created", false);
|
||||
})
|
||||
@@ -0,0 +1,123 @@
|
||||
/* This file modifies the preferences dialogs. It does the following:
|
||||
* Removes private browsing from the pref UI if it is disabled
|
||||
* Removes Sync from the pref UI if it is diabled
|
||||
* Disables the crash reporter button if crash reporter is disabled
|
||||
* Removed the master password UI if it is disabled
|
||||
* Goes through the hiddenUI list and hides any UI
|
||||
*
|
||||
*/
|
||||
|
||||
const EXPORTED_SYMBOLS = [];
|
||||
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://cck2/CCK2.jsm");
|
||||
|
||||
var configs = null;
|
||||
|
||||
var observer = {
|
||||
observe: function observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "chrome-document-global-created":
|
||||
var win = subject.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
win.addEventListener("load", function onLoad(event) {
|
||||
win.removeEventListener("load", onLoad, false);
|
||||
var doc = event.target;
|
||||
var url = doc.location.href.split("?")[0].split("#")[0];
|
||||
switch (url) {
|
||||
case "chrome://browser/content/preferences/preferences.xul":
|
||||
configs = CCK2.getConfigs();
|
||||
win.addEventListener("paneload", function(event) {
|
||||
updatePrefUI(event.target.ownerDocument);
|
||||
}, false);
|
||||
updatePrefUI(doc);
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (!config.disableSync) {
|
||||
continue;
|
||||
}
|
||||
var prefWindow = E("BrowserPreferences", doc);
|
||||
var paneSyncRadio = doc.getAnonymousElementByAttribute(prefWindow, "pane", "paneSync");
|
||||
hide(paneSyncRadio);
|
||||
var paneDeck = doc.getAnonymousElementByAttribute(prefWindow, "anonid", "paneDeck");
|
||||
var paneSync = E("paneSync", doc);
|
||||
paneSync.removeAttribute("helpTopic");
|
||||
var weavePrefsDeck = E("weavePrefsDeck", doc);
|
||||
if (weavePrefsDeck)
|
||||
weavePrefsDeck.parentNode.removeChild(weavePrefsDeck);
|
||||
if (prefWindow.currentPane == E("paneSync", doc))
|
||||
prefWindow.showPane(E("paneMain", doc));
|
||||
}
|
||||
break;
|
||||
case "about:preferences":
|
||||
case "chrome://browser/content/preferences/in-content/preferences.xul":
|
||||
configs = CCK2.getConfigs();
|
||||
for (let id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disableSync) {
|
||||
hide(E("category-sync", doc));
|
||||
}
|
||||
}
|
||||
updatePrefUI(doc);
|
||||
break;
|
||||
}
|
||||
}, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Services.obs.addObserver(observer, "chrome-document-global-created", false);
|
||||
|
||||
// The IDs are the same, so I can reuse this for regular and in-content prefs
|
||||
function updatePrefUI(doc) {
|
||||
for (var id in configs) {
|
||||
var config = configs[id];
|
||||
if (config.disablePrivateBrowsing) {
|
||||
hide(E("privateBrowsingAutoStart", doc));
|
||||
var privateBrowsingMenu = doc.querySelector("menuitem[value='dontremember']");
|
||||
hide(privateBrowsingMenu, doc);
|
||||
}
|
||||
if (config.disableCrashReporter) {
|
||||
disable(E("submitCrashesBox", doc));
|
||||
}
|
||||
if (config.disableSync) {
|
||||
hide(E("noFxaAccount", doc));
|
||||
hide(E("hasFxaAccount", doc));
|
||||
}
|
||||
if (config.noMasterPassword == true) {
|
||||
hide(E("useMasterPassword", doc));
|
||||
hide(E("changeMasterPassword", doc));
|
||||
}
|
||||
if (config.hiddenUI) {
|
||||
for (var i=0; i < config.hiddenUI.length; i++) {
|
||||
// Don't use .hidden since it doesn't work sometimes
|
||||
var style = doc.getElementById("cck2-hidden-style");
|
||||
if (!style) {
|
||||
style = doc.createElementNS("http://www.w3.org/1999/xhtml", "style");
|
||||
style.setAttribute("id", "cck2-hidden-style");
|
||||
style.setAttribute("type", "text/css");
|
||||
doc.documentElement.appendChild(style);
|
||||
}
|
||||
style.textContent = style.textContent + config.hiddenUI[i] + "{display: none !important;}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function E(id, context) {
|
||||
var element = context.getElementById(id);
|
||||
return element;
|
||||
}
|
||||
|
||||
function hide(element) {
|
||||
if (element) {
|
||||
element.setAttribute("hidden", "true");
|
||||
}
|
||||
}
|
||||
|
||||
function disable(element) {
|
||||
if (element) {
|
||||
element.disabled = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
/**
|
||||
* Copied from https://github.com/jvillalobos/CTP-Manager/blob/master/extension/modules/permissions.js
|
||||
**/
|
||||
|
||||
/**
|
||||
* Copyright 2013 Jorge Villalobos
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
var EXPORTED_SYMBOLS = ["CTP"];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
var CTP = {
|
||||
/**
|
||||
* Cleans up the plugin name to a more readable form.
|
||||
* Taken from /browser/base/content/pageinfo/permissions.js (Firefox 20)
|
||||
* @param aPluginName the name to clean up.
|
||||
* @return cleaned up plugin name.
|
||||
*/
|
||||
makeNicePluginName : function(aPluginName) {
|
||||
let newName =
|
||||
aPluginName.replace(/[\s\d\.\-\_\(\)]+$/, "").
|
||||
replace(/\bplug-?in\b/i, "").trim();
|
||||
|
||||
return newName;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the plugin permission string from the tag object. In Firefox 20, this
|
||||
* is the plugin filename. In 21 an above, the file extension is removed and
|
||||
* Flash and Java are special-cased.
|
||||
* @param aTag the tag object with the plugin information.
|
||||
* @return permission string that corresponds to the plugin in the tag.
|
||||
*/
|
||||
getPluginPermissionFromTag : function(aTag) {
|
||||
let permission = null;
|
||||
let majorVersion = Services.appinfo.platformVersion.split(".")[0];
|
||||
|
||||
if (21 <= majorVersion) {
|
||||
let mimeTypes = aTag.getMimeTypes();
|
||||
|
||||
if (CTP.isFlashPlugin(mimeTypes)) {
|
||||
permission = "flash";
|
||||
} else if (CTP.isJavaPlugin(mimeTypes)) {
|
||||
permission = "java";
|
||||
} else {
|
||||
let lastPeriod = aTag.filename.lastIndexOf(".");
|
||||
|
||||
permission =
|
||||
((0 < lastPeriod) ? aTag.filename.substring(0, lastPeriod) :
|
||||
aTag.filename);
|
||||
// Remove digits at the end
|
||||
permission = permission.replace(/[0-9]+$/, "");
|
||||
permission = permission.toLowerCase();
|
||||
}
|
||||
} else {
|
||||
permission = aTag.filename;
|
||||
}
|
||||
|
||||
return permission;
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks if the tag object corresponds to the Java plugin.
|
||||
* @param aMimeTypes the list of MIME types for the plugin.
|
||||
* @return true if the tag corresponds to the Java plugin.
|
||||
*/
|
||||
isJavaPlugin : function(aMimeTypes) {
|
||||
let isJava = false;
|
||||
let mimeType;
|
||||
|
||||
for (let i = 0; i < aMimeTypes.length; i++) {
|
||||
mimeType =
|
||||
((null != aMimeTypes[i].type) ? aMimeTypes[i].type : aMimeTypes[i]);
|
||||
|
||||
if ((0 == mimeType.indexOf("application/x-java-vm")) ||
|
||||
(0 == mimeType.indexOf("application/x-java-applet")) ||
|
||||
(0 == mimeType.indexOf("application/x-java-bean"))) {
|
||||
isJava = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return isJava;
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks if the tag object corresponds to the Flash plugin.
|
||||
* @param aMimeTypes the list of MIME types for the plugin.
|
||||
* @return true if the tag corresponds to the Flash plugin.
|
||||
*/
|
||||
isFlashPlugin : function(aMimeTypes) {
|
||||
let isFlash = false;
|
||||
let mimeType;
|
||||
|
||||
for (let i = 0; i < aMimeTypes.length; i++) {
|
||||
mimeType =
|
||||
((null != aMimeTypes[i].type) ? aMimeTypes[i].type : aMimeTypes[i]);
|
||||
|
||||
if (0 == mimeType.indexOf("application/x-shockwave-flash")) {
|
||||
isFlash = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return isFlash;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,629 @@
|
||||
/* ***** BEGIN LICENSE BLOCK *****
|
||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public License Version
|
||||
* 1.1 (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
* http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is Preferences.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Mozilla.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2008
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* Myk Melez <myk@mozilla.org>
|
||||
* Daniel Aquino <mr.danielaquino@gmail.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
* of those above. If you wish to allow use of your version of this file only
|
||||
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
* use your version of this file under the terms of the MPL, indicate your
|
||||
* decision by deleting the provisions above and replace them with the notice
|
||||
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
* the provisions above, a recipient may use your version of this file under
|
||||
* the terms of any one of the MPL, the GPL or the LGPL.
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
let EXPORTED_SYMBOLS = ["Preferences"];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
const Cr = Components.results;
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
// The minimum and maximum integers that can be set as preferences.
|
||||
// The range of valid values is narrower than the range of valid JS values
|
||||
// because the native preferences code treats integers as NSPR PRInt32s,
|
||||
// which are 32-bit signed integers on all platforms.
|
||||
const MAX_INT = Math.pow(2, 31) - 1;
|
||||
const MIN_INT = -MAX_INT;
|
||||
|
||||
function Preferences(args) {
|
||||
if (isObject(args)) {
|
||||
if (args.branch)
|
||||
this._prefBranch = args.branch;
|
||||
}
|
||||
else if (args)
|
||||
this._prefBranch = args;
|
||||
this.isDefaultBranch = false;
|
||||
}
|
||||
|
||||
Preferences.prototype = {
|
||||
/**
|
||||
* Get the value of a pref, if any; otherwise return the default value.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to get, or an array of prefs to get
|
||||
*
|
||||
* @param defaultValue
|
||||
* the default value, if any, for prefs that don't have one
|
||||
*
|
||||
* @returns the value of the pref, if any; otherwise the default value
|
||||
*/
|
||||
get: function(prefName, defaultValue) {
|
||||
if (isArray(prefName))
|
||||
return prefName.map(v => this.get(v, defaultValue));
|
||||
|
||||
return this._get(prefName, defaultValue);
|
||||
},
|
||||
|
||||
// In all cases below, the preference might exist as a user pref, but not
|
||||
// have a default value. In those cases, get* throws. Return the default value.
|
||||
_get: function(prefName, defaultValue) {
|
||||
switch (this._prefSvc.getPrefType(prefName)) {
|
||||
case Ci.nsIPrefBranch.PREF_STRING:
|
||||
try {
|
||||
return this._prefSvc.getComplexValue(prefName, Ci.nsISupportsString).data;
|
||||
} catch (ex) {
|
||||
if (this.isDefaultBranch)
|
||||
return defaultValue;
|
||||
else
|
||||
return this._prefSvc.getCharPref(prefName);
|
||||
}
|
||||
|
||||
case Ci.nsIPrefBranch.PREF_INT:
|
||||
try {
|
||||
return this._prefSvc.getIntPref(prefName);
|
||||
} catch (ex) {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
case Ci.nsIPrefBranch.PREF_BOOL:
|
||||
try {
|
||||
return this._prefSvc.getBoolPref(prefName);
|
||||
} catch (ex) {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
case Ci.nsIPrefBranch.PREF_INVALID:
|
||||
return defaultValue;
|
||||
|
||||
default:
|
||||
// This should never happen.
|
||||
throw "Error getting pref " + prefName + "; its value's type is " +
|
||||
this._prefSvc.getPrefType(prefName) + ", which I don't know " +
|
||||
"how to handle.";
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Set a preference to a value.
|
||||
*
|
||||
* You can set multiple prefs by passing an object as the only parameter.
|
||||
* In that case, this method will treat the properties of the object
|
||||
* as preferences to set, where each property name is the name of a pref
|
||||
* and its corresponding property value is the value of the pref.
|
||||
*
|
||||
* @param prefName {String|Object}
|
||||
* the name of the pref to set; or an object containing a set
|
||||
* of prefs to set
|
||||
*
|
||||
* @param prefValue {String|Number|Boolean}
|
||||
* the value to which to set the pref
|
||||
*
|
||||
* Note: Preferences cannot store non-integer numbers or numbers outside
|
||||
* the signed 32-bit range -(2^31-1) to 2^31-1, If you have such a number,
|
||||
* store it as a string by calling toString() on the number before passing
|
||||
* it to this method, i.e.:
|
||||
* Preferences.set("pi", 3.14159.toString())
|
||||
* Preferences.set("big", Math.pow(2, 31).toString()).
|
||||
*/
|
||||
set: function(prefName, prefValue) {
|
||||
if (isObject(prefName)) {
|
||||
for (let [name, value] in Iterator(prefName))
|
||||
this.set(name, value);
|
||||
return;
|
||||
}
|
||||
|
||||
this._set(prefName, prefValue);
|
||||
},
|
||||
|
||||
_set: function(prefName, prefValue) {
|
||||
let prefType;
|
||||
if (typeof prefValue != "undefined" && prefValue != null)
|
||||
prefType = prefValue.constructor.name;
|
||||
|
||||
var existingPrefType = this._prefSvc.getPrefType(prefName);
|
||||
if (existingPrefType != Ci.nsIPrefBranch.PREF_INVALID)
|
||||
{
|
||||
// convert
|
||||
if (existingPrefType == Ci.nsIPrefBranch.PREF_INT && prefType == "String")
|
||||
{
|
||||
prefValue = parseInt(prefValue);
|
||||
if (isNaN(prefValue))
|
||||
throw "Incompatible pref value type - " + prefName;
|
||||
prefType = "Number";
|
||||
}
|
||||
else if (existingPrefType == Ci.nsIPrefBranch.PREF_BOOL && prefType == "String")
|
||||
{
|
||||
if (prefValue == "true")
|
||||
prefValue = true;
|
||||
else if (prefValue == "false")
|
||||
prefValue = false;
|
||||
else
|
||||
throw "Incompatible pref value type - " + prefName;
|
||||
prefType = "Boolean";
|
||||
}
|
||||
else if (existingPrefType == Ci.nsIPrefBranch.PREF_BOOL && prefType == "Number")
|
||||
{
|
||||
prefValue = prefValue != 0;
|
||||
prefType = "Boolean";
|
||||
}
|
||||
}
|
||||
|
||||
switch (prefType) {
|
||||
case "String":
|
||||
{
|
||||
try {
|
||||
this._prefSvc.setStringPref(prefName, prefValue);
|
||||
} catch (e) {
|
||||
try {
|
||||
let string = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString);
|
||||
string.data = prefValue;
|
||||
this._prefSvc.setComplexValue(prefName, Ci.nsISupportsString, string);
|
||||
} catch (e2) {
|
||||
Components.utils.reportError(e2);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case "Number":
|
||||
// We throw if the number is outside the range, since the result
|
||||
// will never be what the consumer wanted to store, but we only warn
|
||||
// if the number is non-integer, since the consumer might not mind
|
||||
// the loss of precision.
|
||||
if (prefValue > MAX_INT || prefValue < MIN_INT)
|
||||
throw("you cannot set the " + prefName + " pref to the number " +
|
||||
prefValue + ", as number pref values must be in the signed " +
|
||||
"32-bit integer range -(2^31-1) to 2^31-1. To store numbers " +
|
||||
"outside that range, store them as strings.");
|
||||
try {
|
||||
this._prefSvc.setIntPref(prefName, prefValue);
|
||||
} catch (e) {
|
||||
throw new Error(e.toString() + " - " + prefName);
|
||||
}
|
||||
if (prefValue % 1 != 0)
|
||||
Cu.reportError("Warning: setting the " + prefName + " pref to the " +
|
||||
"non-integer number " + prefValue + " converted it " +
|
||||
"to the integer number " + this.get(prefName) +
|
||||
"; to retain fractional precision, store non-integer " +
|
||||
"numbers as strings.");
|
||||
break;
|
||||
|
||||
case "Boolean":
|
||||
this._prefSvc.setBoolPref(prefName, prefValue);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw "can't set pref " + prefName + " to value '" + prefValue +
|
||||
"'; it isn't a String, Number, or Boolean";
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether or not the given pref has a value. This is different from isSet
|
||||
* because it returns true whether the value of the pref is a default value
|
||||
* or a user-set value, while isSet only returns true if the value
|
||||
* is a user-set value.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to check, or an array of prefs to check
|
||||
*
|
||||
* @returns {Boolean|Array}
|
||||
* whether or not the pref has a value; or, if the caller provided
|
||||
* an array of pref names, an array of booleans indicating whether
|
||||
* or not the prefs have values
|
||||
*/
|
||||
has: function(prefName) {
|
||||
if (isArray(prefName))
|
||||
return prefName.map(this.has, this);
|
||||
|
||||
return this._has(prefName);
|
||||
},
|
||||
|
||||
_has: function(prefName) {
|
||||
return (this._prefSvc.getPrefType(prefName) != Ci.nsIPrefBranch.PREF_INVALID);
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether or not the given pref has a user-set value. This is different
|
||||
* from |has| because it returns true only if the value of the pref is a user-
|
||||
* set value, while |has| returns true if the value of the pref is a default
|
||||
* value or a user-set value.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to check, or an array of prefs to check
|
||||
*
|
||||
* @returns {Boolean|Array}
|
||||
* whether or not the pref has a user-set value; or, if the caller
|
||||
* provided an array of pref names, an array of booleans indicating
|
||||
* whether or not the prefs have user-set values
|
||||
*/
|
||||
isSet: function(prefName) {
|
||||
if (isArray(prefName))
|
||||
return prefName.map(this.isSet, this);
|
||||
|
||||
return (this.has(prefName) && this._prefSvc.prefHasUserValue(prefName));
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether or not the given pref has a user-set value. Use isSet instead,
|
||||
* which is equivalent.
|
||||
* @deprecated
|
||||
*/
|
||||
modified: function(prefName) { return this.isSet(prefName) },
|
||||
|
||||
reset: function(prefName) {
|
||||
if (isArray(prefName)) {
|
||||
prefName.map(v => this.reset(v));
|
||||
return;
|
||||
}
|
||||
|
||||
this._reset(prefName);
|
||||
},
|
||||
|
||||
_reset: function(prefName) {
|
||||
try {
|
||||
this._prefSvc.clearUserPref(prefName);
|
||||
}
|
||||
catch(ex) {
|
||||
// The pref service throws NS_ERROR_UNEXPECTED when the caller tries
|
||||
// to reset a pref that doesn't exist or is already set to its default
|
||||
// value. This interface fails silently in those cases, so callers
|
||||
// can unconditionally reset a pref without having to check if it needs
|
||||
// resetting first or trap exceptions after the fact. It passes through
|
||||
// other exceptions, however, so callers know about them, since we don't
|
||||
// know what other exceptions might be thrown and what they might mean.
|
||||
if (ex.result != Cr.NS_ERROR_UNEXPECTED)
|
||||
throw ex;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* If you need to know the default values, without resetting the actual
|
||||
* user prefs, you can use this.
|
||||
* @returns {Preferences} a new Preferences object, which accesses
|
||||
* the defaults rather than the user prefs.
|
||||
* *Only* call get() on this.
|
||||
* If you call set(), you will modify the defaults, so don't do that!
|
||||
*/
|
||||
get defaults() {
|
||||
// nsIPrefService
|
||||
let defaultBranch = Services.prefs.
|
||||
getDefaultBranch(this._prefBranch).
|
||||
QueryInterface(Ci.nsIPrefBranch);
|
||||
let prefs = new Preferences(this._prefBranch);
|
||||
// override. nasty, but this is internal, so OK.
|
||||
Object.defineProperty(prefs, "_prefSvc", {
|
||||
get: function() {
|
||||
return defaultBranch;
|
||||
}
|
||||
});
|
||||
prefs.isDefaultBranch = true;
|
||||
return prefs;
|
||||
},
|
||||
|
||||
/**
|
||||
* Lock a pref so it can't be changed.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to lock, or an array of prefs to lock
|
||||
* @param prefValue {String} (optional)
|
||||
* default value of pref to lock only works if prefName isn't an array
|
||||
*/
|
||||
lock: function(prefName, prefValue) {
|
||||
if (isArray(prefName))
|
||||
prefName.map(this.lock, this);
|
||||
else if (typeof prefValue != "undefined")
|
||||
this.defaults.set(prefName, prefValue);
|
||||
|
||||
this._prefSvc.lockPref(prefName);
|
||||
},
|
||||
|
||||
/**
|
||||
* Unlock a pref so it can be changed.
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to lock, or an array of prefs to lock
|
||||
*/
|
||||
unlock: function(prefName) {
|
||||
if (isArray(prefName))
|
||||
prefName.map(this.unlock, this);
|
||||
|
||||
this._prefSvc.unlockPref(prefName);
|
||||
},
|
||||
|
||||
/**
|
||||
* Whether or not the given pref is locked against changes and
|
||||
* if it is set to the passedi n value
|
||||
*
|
||||
* @param prefName {String|Array}
|
||||
* the pref to check, or an array of prefs to check
|
||||
* @param prefValue {String|Number|Boolean}}
|
||||
* the pref value to compare against
|
||||
*
|
||||
* @returns {Boolean|Array}
|
||||
* whether or not the pref is locked; or, if the caller
|
||||
* provided an array of pref names, an array of booleans indicating
|
||||
* whether or not the prefs are locked
|
||||
* If a pref value was specified returns whether or not the pref
|
||||
* was locked and equal to the passed in value.
|
||||
*/
|
||||
locked: function(prefName, prefValue) {
|
||||
if (isArray(prefName))
|
||||
return prefName.map(this.locked, this);
|
||||
|
||||
if (prefValue)
|
||||
return this._prefSvc.prefIsLocked(prefName) && (this.get(prefName) == prefValue);
|
||||
else
|
||||
return this._prefSvc.prefIsLocked(prefName);
|
||||
},
|
||||
|
||||
/**
|
||||
* Start observing a pref.
|
||||
*
|
||||
* The callback can be a function or any object that implements nsIObserver.
|
||||
* When the callback is a function and thisObject is provided, it gets called
|
||||
* as a method of thisObject.
|
||||
*
|
||||
* @param prefName {String}
|
||||
* the name of the pref to observe
|
||||
*
|
||||
* @param callback {Function|Object}
|
||||
* the code to notify when the pref changes;
|
||||
*
|
||||
* @param thisObject {Object} [optional]
|
||||
* the object to use as |this| when calling a Function callback;
|
||||
*
|
||||
* @returns the wrapped observer
|
||||
*/
|
||||
observe: function(prefName, callback, thisObject) {
|
||||
let fullPrefName = this._prefBranch + (prefName || "");
|
||||
|
||||
let observer = new PrefObserver(fullPrefName, callback, thisObject);
|
||||
Preferences._prefSvc.addObserver(fullPrefName, observer, true);
|
||||
observers.push(observer);
|
||||
|
||||
return observer;
|
||||
},
|
||||
|
||||
/**
|
||||
* Stop observing a pref.
|
||||
*
|
||||
* You must call this method with the same prefName, callback, and thisObject
|
||||
* with which you originally registered the observer. However, you don't have
|
||||
* to call this method on the same exact instance of Preferences; you can call
|
||||
* it on any instance. For example, the following code first starts and then
|
||||
* stops observing the "foo.bar.baz" preference:
|
||||
*
|
||||
* let observer = function() {...};
|
||||
* Preferences.observe("foo.bar.baz", observer);
|
||||
* new Preferences("foo.bar.").ignore("baz", observer);
|
||||
*
|
||||
* @param prefName {String}
|
||||
* the name of the pref being observed
|
||||
*
|
||||
* @param callback {Function|Object}
|
||||
* the code being notified when the pref changes
|
||||
*
|
||||
* @param thisObject {Object} [optional]
|
||||
* the object being used as |this| when calling a Function callback
|
||||
*/
|
||||
ignore: function(prefName, callback, thisObject) {
|
||||
let fullPrefName = this._prefBranch + (prefName || "");
|
||||
|
||||
// This seems fairly inefficient, but I'm not sure how much better we can
|
||||
// make it. We could index by fullBranch, but we can't index by callback
|
||||
// or thisObject, as far as I know, since the keys to JavaScript hashes
|
||||
// (a.k.a. objects) can apparently only be primitive values.
|
||||
let [observer] = observers.filter(v => v.prefName == fullPrefName &&
|
||||
v.callback == callback &&
|
||||
v.thisObject == thisObject);
|
||||
|
||||
if (observer) {
|
||||
Preferences._prefSvc.removeObserver(fullPrefName, observer);
|
||||
observers.splice(observers.indexOf(observer), 1);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Same as observe(), but automatically unregisters itself when
|
||||
* the window closes, saving you from writing an unload handler and
|
||||
* calling ignore().
|
||||
* @param win {nsIDOMWindow} your |window|
|
||||
*/
|
||||
observeAuto: function(win, prefName, callback, thisObject) {
|
||||
if (!win instanceof Ci.nsIDOMWindow)
|
||||
throw "Need your |window| as first parameter";
|
||||
this.observe(prefName, callback, thisObject);
|
||||
var self = this;
|
||||
win.addEventListener("unload", function()
|
||||
{
|
||||
self.ignore(prefName, callback, thisObject);
|
||||
}, false);
|
||||
win = null; // don't let closure hold on to window unnecessarily
|
||||
},
|
||||
|
||||
resetBranch: function(prefBranch) {
|
||||
try {
|
||||
this._prefSvc.resetBranch(prefBranch);
|
||||
}
|
||||
catch(ex) {
|
||||
// The current implementation of nsIPrefBranch in Mozilla
|
||||
// doesn't implement resetBranch, so we do it ourselves.
|
||||
if (ex.result == Cr.NS_ERROR_NOT_IMPLEMENTED)
|
||||
this.reset(this._prefSvc.getChildList(prefBranch, []));
|
||||
else
|
||||
throw ex;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns all child prefs of this pref branch.
|
||||
* This equals nsIPrefBranch.getChildList().
|
||||
* This allows you to do e.g.
|
||||
* var myPrefs = new Preferences("extensions.cooler.");
|
||||
* var contents = myPrefs.branch("contents.");
|
||||
* for each (let prefname in contents.childPrefNames())
|
||||
* dump("have " + contents.get(prefname) + " " + prefname + "\n");
|
||||
*
|
||||
* @returns {Array of String} The names of the children,
|
||||
* without the base pref branch, but with subbranch.
|
||||
*/
|
||||
childPrefNames : function() {
|
||||
return this._prefSvc.getChildList("", []);
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns an nsIPrefBranch for the pref branch that this object stands for.
|
||||
* You can use this to use functions that are not supported here.
|
||||
* @returns {nsIPrefBranch}
|
||||
*/
|
||||
get mozillaPrefBranch() {
|
||||
return this._prefSvc;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the base pref name that this object stands for.
|
||||
* E.g. "extensions.yourcooler.";
|
||||
* @returns {String}
|
||||
*/
|
||||
get prefBranchName() {
|
||||
return this._prefBranch;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns an Preferences object for an sub pref branch
|
||||
* underneath the current pref branch.
|
||||
* @param subbranch {String} Will be appended to the
|
||||
* current pref branch. Don't forget the trailing dot,
|
||||
* where necessary.
|
||||
* E.g. "contents."
|
||||
* @returns {Preferences}
|
||||
*/
|
||||
branch : function(subbranch) {
|
||||
return new Preferences(this._prefBranch + subbranch);
|
||||
},
|
||||
|
||||
/**
|
||||
* The branch of the preferences tree to which this instance provides access.
|
||||
* @private
|
||||
*/
|
||||
_prefBranch: "",
|
||||
|
||||
/**
|
||||
* Preferences Service
|
||||
* @private
|
||||
*/
|
||||
get _prefSvc() {
|
||||
// nsIPrefService
|
||||
let prefSvc = Services.prefs.
|
||||
getBranch(this._prefBranch).
|
||||
QueryInterface(Ci.nsIPrefBranch);
|
||||
Object.defineProperty(this, "_prefSvc", {
|
||||
get: function() {
|
||||
return prefSvc;
|
||||
}
|
||||
});
|
||||
return this._prefSvc;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Give the constructor the same prototype as its instances, so users can access
|
||||
// preferences directly via the constructor without having to create an instance
|
||||
// first.
|
||||
Preferences.__proto__ = Preferences.prototype;
|
||||
|
||||
/**
|
||||
* A cache of pref observers.
|
||||
*
|
||||
* We use this to remove observers when a caller calls Preferences::ignore.
|
||||
*
|
||||
* All Preferences instances share this object, because we want callers to be
|
||||
* able to remove an observer using a different Preferences object than the one
|
||||
* with which they added it. That means we have to identify the observers
|
||||
* in this object by their complete pref name, not just their name relative to
|
||||
* the root branch of the Preferences object with which they were created.
|
||||
*/
|
||||
let observers = [];
|
||||
|
||||
function PrefObserver(prefName, callback, thisObject) {
|
||||
this.prefName = prefName;
|
||||
this.callback = callback;
|
||||
this.thisObject = thisObject;
|
||||
}
|
||||
|
||||
PrefObserver.prototype = {
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
|
||||
observe: function(subject, topic, data) {
|
||||
// The pref service only observes whole branches, but we only observe
|
||||
// individual preferences, so we check here that the pref that changed
|
||||
// is the exact one we're observing (and not some sub-pref on the branch).
|
||||
if (data != this.prefName)
|
||||
return;
|
||||
|
||||
if (typeof this.callback == "function") {
|
||||
let prefValue = Preferences.get(this.prefName);
|
||||
|
||||
if (this.thisObject)
|
||||
this.callback.call(this.thisObject, prefValue);
|
||||
else
|
||||
this.callback(prefValue);
|
||||
}
|
||||
else // typeof this.callback == "object" (nsIObserver)
|
||||
this.callback.observe(subject, topic, data);
|
||||
}
|
||||
};
|
||||
|
||||
function isArray(val) {
|
||||
// We can't check for |val.constructor == Array| here, since the value
|
||||
// might be from a different context whose Array constructor is not the same
|
||||
// as ours, so instead we match based on the name of the constructor.
|
||||
return (typeof val != "undefined" && val != null && typeof val == "object" &&
|
||||
val.constructor.name == "Array");
|
||||
}
|
||||
|
||||
function isObject(val) {
|
||||
// We can't check for |val.constructor == Object| here, since the value
|
||||
// might be from a different context whose Object constructor is not the same
|
||||
// as ours, so instead we match based on the name of the constructor.
|
||||
return (typeof val != "undefined" && val != null && typeof val == "object" &&
|
||||
val.constructor.name == "Object");
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* JS module implementation of nsIDOMJSWindow.setTimeout and clearTimeout.
|
||||
*/
|
||||
|
||||
this.EXPORTED_SYMBOLS = ["setTimeout", "clearTimeout"];
|
||||
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
// This gives us >=2^30 unique timer IDs, enough for 1 per ms for 12.4 days.
|
||||
let gNextTimeoutId = 1; // setTimeout must return a positive integer
|
||||
|
||||
let gTimeoutTable = new Map(); // int -> nsITimer
|
||||
|
||||
this.setTimeout = function setTimeout(aCallback, aMilliseconds) {
|
||||
let id = gNextTimeoutId++;
|
||||
let args = Array.slice(arguments, 2);
|
||||
let timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
|
||||
timer.initWithCallback(function setTimeout_timer() {
|
||||
gTimeoutTable.delete(id);
|
||||
aCallback.apply(null, args);
|
||||
}, aMilliseconds, timer.TYPE_ONE_SHOT);
|
||||
|
||||
gTimeoutTable.set(id, timer);
|
||||
return id;
|
||||
}
|
||||
|
||||
this.clearTimeout = function clearTimeout(aId) {
|
||||
if (gTimeoutTable.has(aId)) {
|
||||
gTimeoutTable.get(aId).cancel();
|
||||
gTimeoutTable.delete(aId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||
|
||||
var EXPORTED_SYMBOLS = ["errorCritical"];
|
||||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
|
||||
function errorCritical(e)
|
||||
{
|
||||
Services.prompt.alert(null, "", e);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIID9zCCAt+gAwIBAgIUervWv7EoWkk4Gt8J34xDR9nhH50wDQYJKoZIhvcNAQEL
|
||||
BQAwgYIxCzAJBgNVBAYTAldXMRQwEgYDVQQIDAtJMlAgTmV0d29yazESMBAGA1UE
|
||||
CgwJUHVycGxlSTJQMSowKAYDVQQDDCFQdXJwbGVJMlAgQ2VydGlmaWNhdGlvbiBB
|
||||
dXRob3JpdHkxHTAbBgkqhkiG9w0BCQEWDnI0c2FzQG1haWwuaTJwMB4XDTE5MDMw
|
||||
MzE2MjcxNFoXDTI5MDIyODE2MjcxNFowgYIxCzAJBgNVBAYTAldXMR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wzus8d97AjGxC5RCEFL5ADBpVaDU/5CpmZmZdY1daYjiHrXm
|
||||
EVNoSbqid1fAVyA=
|
||||
-----END CERTIFICATE-----
|
||||
@@ -0,0 +1,2 @@
|
||||
pref("general.config.filename", "i2pdbrowser.cfg");
|
||||
pref("general.config.obscure_value", 0);
|
||||
@@ -0,0 +1,373 @@
|
||||
// I2Pd Browser preferences
|
||||
|
||||
/*
|
||||
* Copyright (c) 2013-2019, The PurpleI2P Project
|
||||
* This file is part of Purple i2pd project and licensed under BSD3
|
||||
* See full license text in LICENSE file at top of project tree
|
||||
*/
|
||||
|
||||
/* Do not edit this file.
|
||||
*
|
||||
* If you make changes to this file while the browser is running,
|
||||
* the changes will be overwritten when the browser exits.
|
||||
*
|
||||
* To make a manual change to preferences, you can visit the URL about:config
|
||||
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
|
||||
*/
|
||||
|
||||
lockPref("accessibility.force_disabled", 1);
|
||||
defaultPref("app.normandy.first_run", false);
|
||||
lockPref("app.update.auto", false);
|
||||
lockPref("app.update.channel", "i2pdbrowser");
|
||||
lockPref("app.update.enabled", false);
|
||||
lockPref("app.update.interval", 0);
|
||||
lockPref("app.update.service.enabled", false);
|
||||
defaultPref("beacon.enabled", false);
|
||||
pref("breakpad.reportURL", "");
|
||||
pref("browser.aboutHomeSnippets.updateUrl", "");
|
||||
defaultPref("browser.cache.disk.capacity", 131072);
|
||||
defaultPref("browser.cache.offline.enable", false);
|
||||
defaultPref("browser.casting.enabled", false);
|
||||
pref("browser.download.manager.retention", 0);
|
||||
defaultPref("browser.download.useDownloadDir", false);
|
||||
defaultPref("browser.feeds.showFirstRunUI", false);
|
||||
defaultPref("browser.fixup.alternate.enabled", false);
|
||||
defaultPref("browser.formfill.enable", false);
|
||||
defaultPref("browser.formfill.expire_days", 0);
|
||||
lockPref("browser.newtabpage.activity-stream.default.sites", "http://i2pd.i2p/,http://333.i2p/,http://inr.i2p/,http://102chan.i2p/,http://flibusta.i2p/,http://fsoc.i2p/,http://lifebox.i2p/,http://onelon.i2p/,http://wiki.ilita.i2p/");
|
||||
lockPref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
|
||||
lockPref("browser.newtabpage.activity-stream.feeds.snippets", false);
|
||||
defaultPref("browser.newtabpage.activity-stream.showSearch", true);
|
||||
lockPref("browser.newtabpage.activity-stream.telemetry", false);
|
||||
pref("browser.newtabpage.activity-stream.topSitesRows", 2);
|
||||
pref("browser.newtabpage.enhanced", false);
|
||||
pref("browser.newtabpage.introShown", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-addons.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-customize.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-default-browser.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-performance.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-private-browsing.completed", true);
|
||||
defaultPref("browser.onboarding.tour.onboarding-tour-screenshots.completed", true);
|
||||
defaultPref("browser.pagethumbnails.capturing_disabled", true);
|
||||
defaultPref("browser.places.smartBookmarksVersion", -1);
|
||||
pref("browser.reader.detectedFirstArticle", false);
|
||||
pref("browser.rights.3.shown", true);
|
||||
defaultPref("browser.safebrowsing.appRepURL", "");
|
||||
defaultPref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
defaultPref("browser.safebrowsing.downloads.enabled", false);
|
||||
defaultPref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||
defaultPref("browser.safebrowsing.gethashURL", "");
|
||||
defaultPref("browser.safebrowsing.keyURL", "localhost");
|
||||
defaultPref("browser.safebrowsing.malware.enabled", false);
|
||||
defaultPref("browser.safebrowsing.malware.reportURL", "");
|
||||
defaultPref("browser.safebrowsing.phishing.enabled", false);
|
||||
defaultPref("browser.safebrowsing.provider.google.appRepURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.google.gethashURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.google.lists", "");
|
||||
defaultPref("browser.safebrowsing.provider.google.reportURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.google.updateURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.mozilla.gethashURL", "");
|
||||
defaultPref("browser.safebrowsing.provider.mozilla.lists", "");
|
||||
defaultPref("browser.safebrowsing.provider.mozilla.updateURL", "");
|
||||
defaultPref("browser.safebrowsing.reportErrorURL", "");
|
||||
defaultPref("browser.safebrowsing.reportGenericURL", "");
|
||||
defaultPref("browser.safebrowsing.reportMalwareErrorURL", "");
|
||||
defaultPref("browser.safebrowsing.reportMalwareURL", "");
|
||||
defaultPref("browser.safebrowsing.reportPhishURL", "");
|
||||
defaultPref("browser.safebrowsing.reportURL", "");
|
||||
defaultPref("browser.safebrowsing.updateURL", "");
|
||||
defaultPref("browser.safebrowsing.warning.infoURL", "");
|
||||
defaultPref("browser.search.countryCode", "US");
|
||||
defaultPref("browser.search.defaultenginename", "YaCy 'legwork'");
|
||||
defaultPref("browser.search.geoSpecificDefaults", false);
|
||||
defaultPref("browser.search.geoSpecificDefaults.url", "");
|
||||
defaultPref("browser.search.geoip.url", "");
|
||||
defaultPref("browser.search.hiddenOneOffs", "Amazon.com,Bing,DuckDuckGo,eBay,Google,Twitter,Wikipedia (en)");
|
||||
defaultPref("browser.search.official", false);
|
||||
defaultPref("browser.search.order.1", "YaCy 'legwork'");
|
||||
defaultPref("browser.search.redirectWindowsSearch", false);
|
||||
defaultPref("browser.search.region", "US");
|
||||
defaultPref("browser.search.searchEnginesURL", "");
|
||||
defaultPref("browser.search.suggest.enabled", false);
|
||||
defaultPref("browser.search.update", false);
|
||||
pref("browser.search.widget.inNavBar", true);
|
||||
lockPref("browser.send_pings", false);
|
||||
pref("browser.send_pings.require_same_host", true);
|
||||
defaultPref("browser.shell.checkDefaultBrowser", false);
|
||||
pref("browser.startup.homepage", "http://i2pd.i2p/");
|
||||
defaultPref("browser.tabs.closeWindowWithLastTab", false);
|
||||
lockPref("browser.tabs.crashReporting.sendReport", false);
|
||||
defaultPref("browser.uitour.enabled", false);
|
||||
defaultPref("browser.urlbar.formatting.enabled", false);
|
||||
defaultPref("browser.urlbar.maxRichResults", 12);
|
||||
defaultPref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
defaultPref("browser.urlbar.suggest.searches", false);
|
||||
defaultPref("browser.urlbar.trimURLs", false);
|
||||
lockPref("browser.usedOnWindows10", false);
|
||||
lockPref("browser.usedOnWindows10.introURL", "");
|
||||
lockPref("camera.control.face_detection.enabled", false);
|
||||
pref("canvas.capturestream.enabled", false);
|
||||
pref("clipboard.autocopy", false);
|
||||
defaultPref("datareporting.healthreport.about.reportUrl", "");
|
||||
defaultPref("datareporting.healthreport.about.reportUrlUnified", "");
|
||||
defaultPref("datareporting.healthreport.documentServerURI", "");
|
||||
defaultPref("datareporting.healthreport.pendingDeleteRemoteData", true);
|
||||
lockPref("datareporting.healthreport.service.enabled", false);
|
||||
defaultPref("datareporting.healthreport.service.firstRun", false);
|
||||
lockPref("datareporting.healthreport.uploadEnabled", false);
|
||||
pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||
pref("datareporting.policy.firstRunTime", "0");
|
||||
pref("datareporting.sessions.current.clean", true);
|
||||
pref("device.sensors.enabled", false);
|
||||
pref("devtools.chrome.enabled", false);
|
||||
pref("devtools.debugger.force-local", true);
|
||||
pref("devtools.debugger.remote-enabled", false);
|
||||
pref("devtools.webide.autoinstallADBHelper", false);
|
||||
pref("devtools.webide.autoinstallFxdtAdapters", false);
|
||||
pref("devtools.webide.enabled", false);
|
||||
pref("dom.allow_cut_copy", false);
|
||||
pref("dom.archivereader.enabled", false);
|
||||
pref("dom.battery.enabled", false);
|
||||
pref("dom.enable_performance", false);
|
||||
pref("dom.enable_user_timing", false);
|
||||
pref("dom.event.clipboardevents.enabled", false);
|
||||
pref("dom.flyweb.enabled", false);
|
||||
pref("dom.gamepad.enabled", false);
|
||||
pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false);
|
||||
pref("dom.ipc.plugins.reportCrashURL", false);
|
||||
pref("dom.maxHardwareConcurrency", 2);
|
||||
pref("dom.mozTCPSocket.enabled", false);
|
||||
pref("dom.netinfo.enabled", false);
|
||||
pref("dom.network.enabled", false);
|
||||
pref("dom.telephony.enabled", false);
|
||||
pref("dom.vibrator.enabled", false);
|
||||
pref("dom.vr.enabled", false);
|
||||
pref("dom.webaudio.enabled", false);
|
||||
pref("dom.webnotifications.enabled", false);
|
||||
pref("dom.workers.enabled", false);
|
||||
pref("experiments.enabled", false);
|
||||
pref("experiments.manifest.uri", "");
|
||||
pref("experiments.supported", false);
|
||||
pref("extensions.autoDisableScopes", 0);
|
||||
pref("extensions.blocklist.enabled", false);
|
||||
pref("extensions.blocklist.url", "");
|
||||
pref("extensions.getAddons.cache.enabled", false);
|
||||
pref("extensions.lazarus.showDonateNotification", false);
|
||||
lockPref("extensions.pocket.enabled", false);
|
||||
pref("extensions.shownSelectionUI", true);
|
||||
pref("extensions.ui.lastCategory", "addons://list/extension");
|
||||
pref("extensions.update.autoUpdateDefault", false);
|
||||
defaultPref("extensions.update.enabled", false);
|
||||
pref("full-screen-api.approval-required", false);
|
||||
pref("full-screen-api.warning.timeout", 0);
|
||||
pref("general.buildID.override", "20100101");
|
||||
lockPref("general.platform.override", "Win32");
|
||||
lockPref("general.useragent.locale", "en-US");
|
||||
lockPref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0");
|
||||
pref("general.warnOnAboutConfig", false);
|
||||
defaultPref("geo.enabled", false);
|
||||
lockPref("geo.wifi.logging.enabled", false);
|
||||
defaultPref("geo.wifi.uri", "");
|
||||
lockPref("identity.fxaccounts.enabled", false);
|
||||
defaultPref("intl.locale.matchOS", true);
|
||||
pref("javascript.use_us_english_locale", true);
|
||||
pref("keyword.enabled", false);
|
||||
pref("lightweightThemes.update.enabled", false);
|
||||
pref("loop.logDomains", false);
|
||||
defaultPref("media.eme.enabled", false);
|
||||
lockPref("media.getusermedia.audiocapture.enabled", false);
|
||||
lockPref("media.getusermedia.screensharing.enabled", false);
|
||||
pref("media.gmp-eme-adobe.enabled", false);
|
||||
pref("media.gmp-gmpopenh264.enabled", false);
|
||||
pref("media.gmp-gmpopenh264.provider.enabled", false);
|
||||
pref("media.gmp-manager.url", "");
|
||||
defaultPref("media.navigator.enabled", false);
|
||||
defaultPref("media.navigator.video.enabled", false);
|
||||
defaultPref("media.peerconnection.enabled", false);
|
||||
defaultPref("media.peerconnection.ice.default_address_only", true);
|
||||
defaultPref("media.peerconnection.ice.no_host", true);
|
||||
defaultPref("media.peerconnection.identity.timeout", 1);
|
||||
defaultPref("media.peerconnection.turn.disable", true);
|
||||
defaultPref("media.peerconnection.use_document_iceservers", false);
|
||||
defaultPref("media.video_stats.enabled", false);
|
||||
defaultPref("media.webspeech.recognition.enable", false);
|
||||
defaultPref("media.webspeech.synth.enabled", false);
|
||||
defaultPref("network.IDN.whitelist.i2p", true);
|
||||
defaultPref("network.IDN_show_punycode", true);
|
||||
defaultPref("network.allow-experiments", false);
|
||||
pref("network.cookie.prefsMigrated", true);
|
||||
defaultPref("network.dns.disableIPv6", true);
|
||||
defaultPref("network.dns.disablePrefetchFromHTTPS", true);
|
||||
defaultPref("network.dns.disableprefetch", true);
|
||||
pref("network.http.speculative-parallel-limit", 0);
|
||||
defaultPref("network.jar.open-unsafe-types", false);
|
||||
pref("network.manage-offline-status", false);
|
||||
defaultPref("network.negotiate-auth.allow-insecure-ntlm-v1", false);
|
||||
pref("network.predictor.enabled", false);
|
||||
defaultPref("network.prefetch-next", false);
|
||||
pref("network.protocol-handler.expose-all", false);
|
||||
pref("network.protocol-handler.expose.about", true);
|
||||
pref("network.protocol-handler.expose.file", true);
|
||||
pref("network.protocol-handler.expose.ftp", true);
|
||||
pref("network.protocol-handler.expose.http", true);
|
||||
pref("network.protocol-handler.expose.https", true);
|
||||
pref("network.protocol-handler.expose.javascript", true);
|
||||
pref("network.protocol-handler.expose.moz-extension", true);
|
||||
pref("network.protocol-handler.external.about", false);
|
||||
pref("network.protocol-handler.external.file", false);
|
||||
pref("network.protocol-handler.external.ftp", false);
|
||||
pref("network.protocol-handler.external.http", false);
|
||||
pref("network.protocol-handler.external.https", false);
|
||||
pref("network.protocol-handler.external.javascript", false);
|
||||
pref("network.protocol-handler.external.moz-extension", false);
|
||||
defaultPref("network.protocol-handler.warn-external-default", true);
|
||||
defaultPref("network.proxy.ftp", "127.0.0.1");
|
||||
defaultPref("network.proxy.ftp_port", 4444);
|
||||
defaultPref("network.proxy.http", "127.0.0.1");
|
||||
defaultPref("network.proxy.http_port", 4444);
|
||||
defaultPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");
|
||||
defaultPref("network.proxy.share_proxy_settings", true);
|
||||
defaultPref("network.proxy.socks_remote_dns", true);
|
||||
defaultPref("network.proxy.ssl", "127.0.0.1");
|
||||
defaultPref("network.proxy.ssl_port", 4444);
|
||||
lockPref("network.proxy.type", 1);
|
||||
defaultPref("pdfjs.disabled", true);
|
||||
defaultPref("pdfjs.enableWebGL", false);
|
||||
defaultPref("permissions.default.camera", 2);
|
||||
defaultPref("permissions.default.desktop-notification", 2);
|
||||
defaultPref("permissions.default.geo", 2);
|
||||
defaultPref("permissions.default.microphone", 2);
|
||||
defaultPref("plugin.default_plugin_disabled", true);
|
||||
defaultPref("plugin.state.java", 0);
|
||||
defaultPref("plugin.state.libgnome-shell-browser-plugin", 0);
|
||||
defaultPref("plugins.click_to_play", true);
|
||||
defaultPref("plugins.load_appdir_plugins", false);
|
||||
defaultPref("plugins.update.notifyUser", false);
|
||||
defaultPref("plugins.update.url", "");
|
||||
pref("privacy.cpd.offlineApps", true);
|
||||
pref("privacy.firstparty.isolate", true);
|
||||
defaultPref("privacy.resistFingerprinting", true);
|
||||
pref("privacy.sanitize.timeSpan", 0);
|
||||
defaultPref("privacy.spoof_english", 2);
|
||||
defaultPref("privacy.trackingprotection.enabled", true);
|
||||
lockPref("privacy.userContext.enabled", true);
|
||||
defaultPref("reader.parse-on-load.enabled", false);
|
||||
defaultPref("reader.parse-on-load.force-enabled", false);
|
||||
defaultPref("security.insecure_field_warning.contextual.enabled", false);
|
||||
defaultPref("security.insecure_password.ui.enabled", false);
|
||||
defaultPref("security.ssl.errorReporting.enabled", false);
|
||||
defaultPref("services.blocklist.update_enabled", false);
|
||||
lockPref("services.sync.enabled", false);
|
||||
pref("services.sync.prefs.sync.browser.download.manager.scanWhenDone", false);
|
||||
pref("services.sync.prefs.sync.browser.safebrowsing.enabled", false);
|
||||
pref("services.sync.prefs.sync.browser.search.update", false);
|
||||
pref("services.sync.prefs.sync.extensions.update.enabled", false);
|
||||
pref("signon.autofillForms", false);
|
||||
pref("signon.rememberSignons", false);
|
||||
defaultPref("startup.homepage_welcome_url", "http://i2pd.i2p/");
|
||||
pref("startup.homepage_welcome_url.additional", "about:blank");
|
||||
lockPref("toolkit.telemetry.archive.enabled", false);
|
||||
lockPref("toolkit.telemetry.enabled", false);
|
||||
defaultPref("toolkit.telemetry.optoutSample", false);
|
||||
defaultPref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
||||
lockPref("toolkit.telemetry.server", "");
|
||||
defaultPref("toolkit.telemetry.unified", false);
|
||||
defaultPref("toolkit.telemetry.unifiedIsOptIn", true);
|
||||
defaultPref("webgl.disable-extensions", true);
|
||||
defaultPref("webgl.disable-fail-if-major-performance-caveat", true);
|
||||
defaultPref("webgl.disabled", true);
|
||||
defaultPref("webgl.enable-debug-renderer-info", false);
|
||||
defaultPref("webgl.min_capability_mode", true);
|
||||
|
||||
var config = {
|
||||
"cckVersion": "2.2.9",
|
||||
"name": "I2Pd Browser",
|
||||
"description": "Preconfigured for use with I2P browser",
|
||||
"version": "1.2.8",
|
||||
"homePage": "http://i2pd.i2p/",
|
||||
"welcomePage": "http://i2pd.i2p/",
|
||||
"titlemodifier": "I2Pd Browser",
|
||||
"extension": {
|
||||
"name": "I2Pd Browser"
|
||||
},
|
||||
"noWelcomePage": true,
|
||||
"noUpgradePage": true,
|
||||
"removeSetDesktopBackground": true,
|
||||
"removeSafeModeMenu": true,
|
||||
"noGetAddons": true,
|
||||
"noAddonCompatibilityCheck": true,
|
||||
"disableSearchEngineInstall": true,
|
||||
"removeDefaultSearchEngines": false,
|
||||
"displayBookmarksToolbar": true,
|
||||
"removeSmartBookmarks": true,
|
||||
"removeDefaultBookmarks": true,
|
||||
"removeDuplicateBookmarkNames": true,
|
||||
"dontCheckDefaultBrowser": true,
|
||||
"dontUseDownloadDir": true,
|
||||
"disableFormFill": true,
|
||||
"disableSync": true,
|
||||
"disableCrashReporter": true,
|
||||
"disableTelemetry": true,
|
||||
"disableFirefoxHealthReportUpload": true,
|
||||
"disableFirefoxHealthReport": true,
|
||||
"disableFirefoxUpdates": true,
|
||||
"removeSnippets": true,
|
||||
"disableResetFirefox": true,
|
||||
"disableWebApps": true,
|
||||
"disableHello": true,
|
||||
"disableSharePage": true,
|
||||
"disableForget": true,
|
||||
"disableHeartbeat": true,
|
||||
"disablePocket": true,
|
||||
"disableAboutSupport": true,
|
||||
"disableAboutProfiles": true,
|
||||
"showSearchBar": true,
|
||||
"autoconfig": {
|
||||
"disableProfileMigrator": true
|
||||
},
|
||||
"id": "i2pdbrowser",
|
||||
"hiddenUI": [
|
||||
"#defaultBrowserBox",
|
||||
"#enableSearchUpdate",
|
||||
"#dataCollectionCategory",
|
||||
"#dataCollectionGroup",
|
||||
".help-button",
|
||||
"#onboarding-overlay-button",
|
||||
".prefs-modal-inner-wrapper > section:nth-child(6)"
|
||||
],
|
||||
"searchplugins": {
|
||||
"YaCy 'legwork'": "http://legwork.i2p/opensearchdescription.xml"
|
||||
},
|
||||
"defaultSearchEngine": "YaCy 'legwork'",
|
||||
"certs": {
|
||||
"ca": [
|
||||
{
|
||||
"url": "resource://cck2_i2pdbrowser/certs/purplei2p_ca.pem",
|
||||
"trust": "CTc,CTc,CTc"
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
var io = Components.classes["@mozilla.org/network/io-service;1"]
|
||||
.getService(Components.interfaces.nsIIOService);
|
||||
var resource = io.getProtocolHandler("resource")
|
||||
.QueryInterface(Components.interfaces.nsIResProtocolHandler);
|
||||
|
||||
var greDir = Components.classes["@mozilla.org/file/directory_service;1"]
|
||||
.getService(Components.interfaces.nsIProperties)
|
||||
.get("GreD", Components.interfaces.nsIFile);
|
||||
var cck2ModuleDir = greDir.clone();
|
||||
cck2ModuleDir.append("cck2");
|
||||
cck2ModuleDir.append("modules");
|
||||
var cck2Alias = io.newFileURI(cck2ModuleDir);
|
||||
resource.setSubstitution("cck2", cck2Alias);
|
||||
|
||||
var configModuleDir = greDir.clone();
|
||||
configModuleDir.append("cck2");
|
||||
configModuleDir.append("resources");
|
||||
var configAlias = io.newFileURI(configModuleDir);
|
||||
resource.setSubstitution("cck2_i2pdbrowser", configAlias);
|
||||
|
||||
Components.utils.import("resource://cck2/CCK2.jsm");
|
||||
CCK2.init(config, "ä"[0], "ä");
|
||||
@@ -1,346 +0,0 @@
|
||||
# Mozilla User preferences
|
||||
|
||||
/*
|
||||
* Copyright (c) 2013-2017, The PurpleI2P Project
|
||||
*
|
||||
* This file is part of Purple i2pd project and licensed under BSD3
|
||||
*
|
||||
* See full license text in LICENSE file at top of project tree
|
||||
*/
|
||||
|
||||
/* Do not edit this file.
|
||||
*
|
||||
* If you make changes to this file while the browser is running,
|
||||
* the changes will be overwritten when the browser exits.
|
||||
*
|
||||
* To make a manual change to preferences, you can visit the URL about:config
|
||||
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
|
||||
*/
|
||||
|
||||
pref("app.update.auto", false);
|
||||
pref("app.update.channel", "no");
|
||||
pref("app.update.enabled", false);
|
||||
pref("app.update.interval", 0);
|
||||
pref("app.update.service.enabled", false);
|
||||
pref("app.update.staging.enabled", false);
|
||||
pref("app.update.timer", 0);
|
||||
pref("beacon.enabled", false);
|
||||
pref("breakpad.reportURL", "");
|
||||
pref("browser.aboutHomeSnippets.updateUrl", "");
|
||||
pref("browser.cache.disk.capacity", 131072);
|
||||
pref("browser.casting.enabled", false);
|
||||
pref("browser.crashReports.unsubmittedCheck.enabled", false);
|
||||
// pref("browser.display.use_document_fonts", 0);
|
||||
pref("browser.download.manager.retention", 0);
|
||||
pref("browser.download.useDownloadDir", false);
|
||||
pref("browser.feeds.showFirstRunUI", false);
|
||||
pref("browser.fixup.alternate.enabled", false);
|
||||
pref("browser.fixup.hide_user_pass", true);
|
||||
pref("browser.formfill.enable", false);
|
||||
// PREF: Delete Search and Form History
|
||||
pref("browser.formfill.expire_days", 0);
|
||||
// PREF: Delete temporary files on exit
|
||||
pref("browser.helperApps.deleteTempFileOnExit", true);
|
||||
pref("browser.newtabpage.enhanced", false);
|
||||
pref("browser.newtabpage.introShown", true);
|
||||
// PREF: Do not create screenshots of visited pages
|
||||
pref("browser.pagethumbnails.capturing_disabled", true);
|
||||
pref("browser.places.smartBookmarksVersion", -1);
|
||||
pref("browser.pocket.enabled", false);
|
||||
pref("browser.pocket.useLocaleList", false);
|
||||
pref("browser.reader.detectedFirstArticle", false);
|
||||
pref("browser.rights.3.shown", true);
|
||||
pref("browser.safebrowsing.appRepURL", "");
|
||||
pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||
pref("browser.safebrowsing.downloads.enabled", false);
|
||||
pref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||
pref("browser.safebrowsing.gethashURL", "");
|
||||
pref("browser.safebrowsing.keyURL", "localhost");
|
||||
pref("browser.safebrowsing.malware.enabled", false);
|
||||
pref("browser.safebrowsing.malware.reportURL", "");
|
||||
pref("browser.safebrowsing.phishing.enabled", false);
|
||||
pref("browser.safebrowsing.provider.google.appRepURL", "");
|
||||
pref("browser.safebrowsing.provider.google.gethashURL", "");
|
||||
pref("browser.safebrowsing.provider.google.lists", "");
|
||||
pref("browser.safebrowsing.provider.google.reportURL", "");
|
||||
pref("browser.safebrowsing.provider.google.updateURL", "");
|
||||
pref("browser.safebrowsing.provider.mozilla.gethashURL", "");
|
||||
pref("browser.safebrowsing.provider.mozilla.lists", "");
|
||||
pref("browser.safebrowsing.provider.mozilla.updateURL", "");
|
||||
pref("browser.safebrowsing.reportErrorURL", "");
|
||||
pref("browser.safebrowsing.reportGenericURL", "");
|
||||
pref("browser.safebrowsing.reportMalwareErrorURL", "");
|
||||
pref("browser.safebrowsing.reportMalwareURL", "");
|
||||
pref("browser.safebrowsing.reportPhishURL", "");
|
||||
pref("browser.safebrowsing.reportURL", "");
|
||||
pref("browser.safebrowsing.updateURL", "");
|
||||
pref("browser.safebrowsing.warning.infoURL", "");
|
||||
pref("browser.search.countryCode", "US");
|
||||
pref("browser.search.defaultenginename", "DuckDuckGo");
|
||||
pref("browser.search.geoSpecificDefaults", false);
|
||||
pref("browser.search.geoSpecificDefaults.url", "");
|
||||
pref("browser.search.geoip.url", "");
|
||||
pref("browser.search.order.1", "DuckDuckGo");
|
||||
pref("browser.search.redirectWindowsSearch", false);
|
||||
pref("browser.search.region", "US");
|
||||
pref("browser.search.searchEnginesURL", "");
|
||||
pref("browser.search.suggest.enabled", false);
|
||||
pref("browser.search.update", false);
|
||||
pref("browser.send_pings", false);
|
||||
pref("browser.send_pings.require_same_host", true);
|
||||
pref("browser.selfsupport.url", "");
|
||||
pref("browser.shell.checkDefaultBrowser", false);
|
||||
user_pref("browser.startup.homepage", "http://i2pd.i2p/");
|
||||
pref("browser.tabs.closeWindowWithLastTab", false);
|
||||
pref("browser.tabs.crashReporting.sendReport", false);
|
||||
pref("browser.tabs.loadInBackground", true);
|
||||
pref("browser.uitour.enabled", false);
|
||||
pref("browser.urlbar.filter.javascript", true);
|
||||
pref("browser.urlbar.formatting.enabled", false);
|
||||
pref("browser.urlbar.maxRichResults", 12);
|
||||
// pref("browser.urlbar.suggest.history", false);
|
||||
pref("browser.urlbar.suggest.searches", false);
|
||||
pref("browser.urlbar.trimURLs", false);
|
||||
pref("browser.usedOnWindows10", false);
|
||||
pref("browser.usedOnWindows10.introURL", "");
|
||||
pref("camera.control.face_detection.enabled", false);
|
||||
pref("canvas.capturestream.enabled", false);
|
||||
pref("clipboard.autocopy", false);
|
||||
pref("datareporting.healthreport.about.reportUrl", "");
|
||||
pref("datareporting.healthreport.about.reportUrlUnified", "");
|
||||
pref("datareporting.healthreport.documentServerURI", "");
|
||||
pref("datareporting.healthreport.pendingDeleteRemoteData", true);
|
||||
pref("datareporting.healthreport.service.enabled", false);
|
||||
pref("datareporting.healthreport.service.firstRun", false);
|
||||
pref("datareporting.healthreport.uploadEnabled", false);
|
||||
pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||
pref("datareporting.policy.dataSubmissionEnabled.v2", false);
|
||||
pref("datareporting.policy.dataSubmissionPolicyAccepted", false);
|
||||
pref("datareporting.policy.dataSubmissionPolicyBypassAcceptance", false);
|
||||
pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "0");
|
||||
pref("datareporting.policy.dataSubmissionPolicyResponseType", "accepted-info-bar-dismissed");
|
||||
pref("datareporting.policy.dataSubmissionPolicyResponseTime", "0");
|
||||
pref("datareporting.policy.firstRunTime", "0");
|
||||
pref("datareporting.sessions.current.clean", true);
|
||||
pref("device.sensors.enabled", false);
|
||||
pref("devtools.chrome.enabled", false);
|
||||
pref("devtools.debugger.remote-enabled", false);
|
||||
pref("devtools.debugger.force-local", true);
|
||||
pref("devtools.webide.enabled", false);
|
||||
pref("devtools.webide.autoinstallADBHelper", false);
|
||||
pref("devtools.webide.autoinstallFxdtAdapters", false);
|
||||
pref("dom.allow_cut_copy", false);
|
||||
pref("dom.archivereader.enabled", false);
|
||||
pref("dom.battery.enabled", false);
|
||||
pref("dom.disable_open_during_load", true);
|
||||
pref("dom.enable_performance", false);
|
||||
pref("dom.enable_user_timing", false);
|
||||
pref("dom.event.clipboardevents.enabled", false);
|
||||
pref("dom.flyweb.enabled", false);
|
||||
pref("dom.gamepad.enabled", false);
|
||||
pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false);
|
||||
pref("dom.ipc.plugins.reportCrashURL", false);
|
||||
//pref("dom.indexedDB.enabled", false);
|
||||
pref("dom.mozTCPSocket.enabled", false);
|
||||
pref("dom.netinfo.enabled", false);
|
||||
pref("dom.network.enabled", false);
|
||||
pref("dom.serviceWorkers.enabled", false);
|
||||
pref("dom.telephony.enabled", false);
|
||||
pref("dom.vibrator.enabled", false);
|
||||
pref("dom.vr.enabled", false);
|
||||
pref("dom.webaudio.enabled", false);
|
||||
pref("dom.webnotifications.enabled", false);
|
||||
pref("dom.workers.enabled", false);
|
||||
pref("experiments.supported", false);
|
||||
pref("experiments.enabled", false);
|
||||
pref("experiments.manifest.uri", "");
|
||||
pref("extensions.autoDisableScopes", 0);
|
||||
pref("extensions.blocklist.enabled", false);
|
||||
pref("extensions.blocklist.url", "");
|
||||
pref("extensions.getAddons.cache.enabled", false);
|
||||
pref("extensions.getAddons.showPane", false);
|
||||
pref("extensions.lazarus.showDonateNotification", false);
|
||||
pref("extensions.pocket.enabled", false);
|
||||
pref("extensions.shownSelectionUI", true);
|
||||
pref("extensions.ui.lastCategory", "addons://list/extension");
|
||||
pref("extensions.update.autoUpdateDefault", false);
|
||||
pref("extensions.update.enabled", false);
|
||||
pref("full-screen-api.approval-required", false);
|
||||
pref("full-screen-api.warning.timeout", 0);
|
||||
pref("general.buildID.override", "19700101");
|
||||
pref("general.warnOnAboutConfig", false);
|
||||
pref("geo.enabled", false);
|
||||
pref("geo.wifi.uri", "");
|
||||
pref("geo.wifi.logging.enabled", false);
|
||||
// pref("gfx.font_rendering.opentype_svg.enabled", false);
|
||||
pref("intl.locale.matchOS", true);
|
||||
// pref("javascript.options.asmjs", false);
|
||||
pref("javascript.use_us_english_locale", true);
|
||||
pref("keyword.enabled", false);
|
||||
pref("lightweightThemes.update.enabled", false);
|
||||
pref("media.eme.enabled", false);
|
||||
pref("media.getusermedia.screensharing.enabled", false);
|
||||
pref("media.getusermedia.audiocapture.enabled", false);
|
||||
pref("media.gmp-eme-adobe.enabled", false);
|
||||
pref("media.gmp-gmpopenh264.enabled", false);
|
||||
pref("media.gmp-gmpopenh264.provider.enabled", false);
|
||||
pref("media.gmp-manager.url", "");
|
||||
// pref("media.gmp-provider.enabled", false);
|
||||
pref("media.navigator.enabled", false);
|
||||
pref("media.navigator.video.enabled", false);
|
||||
pref("media.peerconnection.enabled", false);
|
||||
pref("media.peerconnection.ice.no_host", true);
|
||||
pref("media.video_stats.enabled", false);
|
||||
pref("media.webspeech.recognition.enable", false);
|
||||
pref("media.webspeech.synth.enabled", false);
|
||||
pref("network.allow-experiments", false);
|
||||
// pref("network.cookie.cookieBehavior", 1);
|
||||
// PREF: Cookies expires at the end of the session (when the browser closes)
|
||||
// pref("network.cookie.lifetimePolicy", 2);
|
||||
pref("network.cookie.prefsMigrated", true);
|
||||
// pref("network.cookie.thirdparty.sessionOnly", true);
|
||||
// pref("network.dns.blockDotOnion", true);
|
||||
pref("network.dns.disableIPv6", true);
|
||||
pref("network.dns.disableprefetch", true);
|
||||
pref("network.dns.disableprefetchFromHTTPS", true);
|
||||
pref("network.dns.disablePrefetch", true);
|
||||
pref("network.dns.disablePrefetchFromHTTPS", true);
|
||||
// pref("network.http.referer.spoofSource", true);
|
||||
// pref("network.http.referer.XOriginPolicy", 2);
|
||||
pref("network.http.speculative-parallel-limit", 0);
|
||||
pref("network.IDN_show_punycode", true);
|
||||
pref("network.jar.open-unsafe-types", false);
|
||||
pref("network.manage-offline-status", false);
|
||||
pref("network.negotiate-auth.allow-insecure-ntlm-v1", false);
|
||||
pref("network.predictor.enabled", false);
|
||||
pref("network.prefetch-next", false);
|
||||
pref("network.protocol-handler.warn-external-default", true);
|
||||
pref("network.protocol-handler.external.http", false);
|
||||
pref("network.protocol-handler.external.https", false);
|
||||
pref("network.protocol-handler.external.javascript", false);
|
||||
pref("network.protocol-handler.external.moz-extension", false);
|
||||
pref("network.protocol-handler.external.ftp", false);
|
||||
pref("network.protocol-handler.external.file", false);
|
||||
pref("network.protocol-handler.external.about", false);
|
||||
pref("network.protocol-handler.expose-all", false);
|
||||
pref("network.protocol-handler.expose.http", true);
|
||||
pref("network.protocol-handler.expose.https", true);
|
||||
pref("network.protocol-handler.expose.javascript", true);
|
||||
pref("network.protocol-handler.expose.moz-extension", true);
|
||||
pref("network.protocol-handler.expose.ftp", true);
|
||||
pref("network.protocol-handler.expose.file", true);
|
||||
pref("network.protocol-handler.expose.about", true);
|
||||
pref("network.proxy.backup.ftp", "127.0.0.1");
|
||||
pref("network.proxy.backup.ftp_port", 4444);
|
||||
pref("network.proxy.backup.socks", "127.0.0.1");
|
||||
pref("network.proxy.backup.socks_port", 4444);
|
||||
pref("network.proxy.backup.ssl", "127.0.0.1");
|
||||
pref("network.proxy.backup.ssl_port", 4444);
|
||||
pref("network.proxy.ftp", "127.0.0.1");
|
||||
pref("network.proxy.ftp_port", 4444);
|
||||
pref("network.proxy.http", "127.0.0.1");
|
||||
pref("network.proxy.http_port", 4444);
|
||||
pref("network.proxy.share_proxy_settings", true);
|
||||
pref("network.proxy.socks", "127.0.0.1");
|
||||
pref("network.proxy.socks_port", 4444);
|
||||
pref("network.proxy.socks_remote_dns", true);
|
||||
pref("network.proxy.ssl", "127.0.0.1");
|
||||
pref("network.proxy.ssl_port", 4444);
|
||||
pref("network.proxy.type", 1);
|
||||
pref("network.cookie.prefsMigrated", true);
|
||||
pref("noscript.ABE.enabled", false);
|
||||
pref("noscript.ABE.wanIpAsLocal", false);
|
||||
pref("noscript.firstRunRedirection.pending", "5.1.8.3");
|
||||
pref("noscript.version", "5.1.8.3");
|
||||
pref("noscript.visibleUIChecked", true);
|
||||
pref("pdfjs.disabled", true);
|
||||
pref("pdfjs.enableWebGL", false);
|
||||
pref("plugin.default_plugin_disabled", true);
|
||||
// pref("plugin.state.flash", 0);
|
||||
pref("plugin.state.java", 0);
|
||||
pref("plugin.state.libgnome-shell-browser-plugin", 0);
|
||||
pref("plugins.click_to_play", true);
|
||||
pref("plugins.load_appdir_plugins", false);
|
||||
pref("plugins.update.notifyUser", false);
|
||||
pref("plugins.update.url", "");
|
||||
// PREF: Clear history when Firefox closes
|
||||
// pref("privacy.sanitize.sanitizeOnShutdown", true);
|
||||
// pref("privacy.clearOnShutdown.cache", true);
|
||||
// pref("privacy.clearOnShutdown.cookies", true);
|
||||
// pref("privacy.clearOnShutdown.downloads", true);
|
||||
// pref("privacy.clearOnShutdown.formdata", true);
|
||||
// pref("privacy.clearOnShutdown.history", true);
|
||||
// pref("privacy.clearOnShutdown.offlineApps", true);
|
||||
// pref("privacy.clearOnShutdown.sessions", true);
|
||||
// pref("privacy.clearOnShutdown.openWindows", true);
|
||||
pref("privacy.cpd.offlineApps", true);
|
||||
pref("privacy.cpd.cache", true);
|
||||
pref("privacy.cpd.cookies", true);
|
||||
pref("privacy.cpd.downloads", true);
|
||||
pref("privacy.cpd.formdata", true);
|
||||
pref("privacy.cpd.history", true);
|
||||
pref("privacy.cpd.sessions", true);
|
||||
pref("privacy.donottrackheader.enabled", true);
|
||||
pref("privacy.resistFingerprinting", true);
|
||||
pref("privacy.sanitize.timeSpan", 0);
|
||||
pref("privacy.trackingprotection.enabled", true);
|
||||
pref("privacy.trackingprotection.pbmode.enabled", true);
|
||||
pref("privacy.userContext.enabled", true);
|
||||
pref("reader.parse-on-load.enabled", false);
|
||||
pref("reader.parse-on-load.force-enabled", false);
|
||||
pref("security.csp.enable", true);
|
||||
pref("security.csp.experimentalEnabled", true);
|
||||
pref("security.dialog_enable_delay", 1000);
|
||||
pref("security.fileuri.strict_origin_policy", true);
|
||||
pref("security.insecure_field_warning.contextual.enabled", false);
|
||||
// PREF: Enable insecure password warnings (login forms in non-HTTPS pages)
|
||||
pref("security.insecure_password.ui.enabled", false);
|
||||
pref("security.mixed_content.block_active_content", true);
|
||||
pref("security.mixed_content.block_display_content", true);
|
||||
pref("services.blocklist.update_enabled", false);
|
||||
pref("security.sri.enable", true);
|
||||
pref("security.ssl.errorReporting.automatic", false);
|
||||
pref("security.ssl.errorReporting.enabled", false);
|
||||
pref("services.sync.enabled", false);
|
||||
pref("services.sync.prefs.sync.browser.download.manager.scanWhenDone", false);
|
||||
pref("services.sync.prefs.sync.browser.safebrowsing.enabled", false);
|
||||
pref("services.sync.prefs.sync.browser.search.update", false);
|
||||
pref("services.sync.prefs.sync.extensions.update.enabled", false);
|
||||
// pref("shumway.disabled", true);
|
||||
pref("signon.autofillForms", false);
|
||||
// PREF: Disable password manager
|
||||
pref("signon.rememberSignons", false);
|
||||
pref("startup.homepage_welcome_url", "about:blank");
|
||||
pref("startup.homepage_welcome_url.additional", "about:blank");
|
||||
pref("toolkit.telemetry.archive.enabled", false);
|
||||
pref("toolkit.telemetry.enabled", false);
|
||||
pref("toolkit.telemetry.optoutSample", false);
|
||||
pref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
||||
pref("toolkit.telemetry.server", "");
|
||||
pref("toolkit.telemetry.unified", false);
|
||||
pref("toolkit.telemetry.unifiedIsOptIn", true);
|
||||
pref("webgl.disabled", true);
|
||||
pref("webgl.disable-extensions", true);
|
||||
pref("webgl.disable-fail-if-major-performance-caveat", true);
|
||||
pref("webgl.enable-debug-renderer-info", false);
|
||||
pref("webgl.min_capability_mode", true);
|
||||
// Ensure domain logging is disabled
|
||||
pref("loop.logDomains", false);
|
||||
// Spoof to dual-core cpu
|
||||
pref("dom.maxHardwareConcurrency", 2);
|
||||
// Disable offline cache
|
||||
pref("browser.cache.offline.enable", false);
|
||||
// Prevent tracking over multiple domains
|
||||
pref("privacy.firstparty.isolate", true);
|
||||
pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");
|
||||
// In relation to webrtc
|
||||
pref("media.peerconnection.turn.disable", true);
|
||||
pref("media.peerconnection.use_document_iceservers", false);
|
||||
pref("media.peerconnection.identity.timeout", 1);
|
||||
pref("media.peerconnection.ice.default_address_only", true);
|
||||
// Disable url prefetch
|
||||
pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||
// Set platform, user-agent and locale to same values as Tor Browser 7.0.10
|
||||
pref("general.useragent.override", "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0");
|
||||
pref("general.useragent.locale", "en-US");
|
||||
pref("general.platform.override", "Win32");
|
||||
@@ -1,12 +0,0 @@
|
||||
# Mozilla User Preferences
|
||||
|
||||
/* Do not edit this file.
|
||||
*
|
||||
* If you make changes to this file while the browser is running,
|
||||
* the changes will be overwritten when the browser exits.
|
||||
*
|
||||
* To make a manual change to preferences, you can visit the URL about:config
|
||||
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
|
||||
*/
|
||||
|
||||
user_pref("browser.startup.homepage", "http://i2pd.i2p/");
|
||||
@@ -1 +1 @@
|
||||
{"chrome://browser/content/browser.xul":{"navigator-toolbox":{"iconsize":"small"},"titlebar-placeholder-on-menubar-for-caption-buttons":{"width":"102"},"titlebar-placeholder-on-TabsToolbar-for-captions-buttons":{"width":"102"},"main-window":{"screenX":"30","screenY":"30","width":"1280","height":"720","sizemode":"normal"},"PersonalToolbar":{"collapsed":"false","currentset":"personal-bookmarks"},"toolbar-menubar":{"currentset":"menubar-items"},"TabsToolbar":{"currentset":"tabbrowser-tabs,new-tab-button,alltabs-button"},"addon-bar":{"currentset":"addonbar-closebutton,status-bar"},"nav-bar":{"currentset":"urlbar-container,search-container,bookmarks-menu-button,downloads-button,home-button,noscript-tbb"},"sidebar-title":{"value":""}}}
|
||||
{"chrome://browser/content/browser.xul":{"navigator-toolbox":{"iconsize":"small"},"titlebar-placeholder-on-menubar-for-caption-buttons":{"width":"102"},"titlebar-placeholder-on-TabsToolbar-for-captions-buttons":{"width":"102"},"main-window":{"screenX":"30","screenY":"30","width":"1280","height":"720","sizemode":"normal"},"PersonalToolbar":{"collapsed":"false","currentset":"personal-bookmarks"},"toolbar-menubar":{"currentset":"menubar-items"},"TabsToolbar":{"currentset":"tabbrowser-tabs,new-tab-button,alltabs-button"},"addon-bar":{"currentset":"addonbar-closebutton,status-bar"},"nav-bar":{"currentset":"back-button,forward-button,stop-reload-button,urlbar-container,bookmarks-menu-button,downloads-button,_73a6fe31-595d-460b-a920-fcc0f8843232_-browser-action"},"sidebar-title":{"value":""}}}
|
||||
@@ -1,34 +0,0 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIF5TCCA82gAwIBAgIRANFIiHpTaRY2Z30TQOiuqFcwDQYJKoZIhvcNAQELBQAw
|
||||
cDELMAkGA1UEBhMCWFgxCzAJBgNVBAcTAlhYMQswCQYDVQQJEwJYWDEeMBwGA1UE
|
||||
ChMVSTJQIEFub255bW91cyBOZXR3b3JrMQwwCgYDVQQLEwNJMlAxGTAXBgNVBAMM
|
||||
EGF0b21pa2VAbWFpbC5pMnAwHhcNMTYwODAyMTQyNDEyWhcNMjYwODAyMTQyNDEy
|
||||
WjBwMQswCQYDVQQGEwJYWDELMAkGA1UEBxMCWFgxCzAJBgNVBAkTAlhYMR4wHAYD
|
||||
VQQKExVJMlAgQW5vbnltb3VzIE5ldHdvcmsxDDAKBgNVBAsTA0kyUDEZMBcGA1UE
|
||||
AwwQYXRvbWlrZUBtYWlsLmkycDCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
|
||||
ggIBAMLRmxclaAvm405JLHNNiniUi0aZaBoLJ+afwn2LGfTDUhTD5Y8lW6V9o90n
|
||||
eTNOCaiid7bWpVBkA1M4gZ9TdUnP0POa99jXZbj4PHFRl1l8k4Ap12PUO3hgwtH7
|
||||
7j7j+UPaIuE2y+U7hJbmyQ0v7r8yjGWSTtSqs+exNhyr4Mh7DvacZySZ+oqQdXYA
|
||||
vnfDpBX1dKlN1Nb4XloG0uE1OK1YfJoC+p+v8qXjKagIdZgThdmsWcQ82EGI+Q9u
|
||||
VfrE4m3CNwJy0X86wMNYqHej88wBHnJMmTm+cZtFLVmZsRqnuLAQL1wrfCbGSltR
|
||||
zhVQHTysLwMz9+llTXtzMf+R2kcEAYWiPc5IRVU+LvkN/610r5fuHW+OcQ9ZgRVn
|
||||
PMqlv5PDG2ZxdIOAQQsOd7fH0r5q3MhqlVstVE45Rl33uA+M7wjJK2cvnOoS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PFeUaHJMzMFHBKhrr8lTJeZ82hKBXt5jD3Tbef5Ck
|
||||
n5auKu2D0IjvrzsdIpNMQAhuBPT06TW/LzN/MvardZcaLcBmcutefw6Z7RsedHvj
|
||||
cGpnw4a2u9sHZIUNHzoGq32+7UWXsBI5Ow==
|
||||
-----END CERTIFICATE-----
|
||||
@@ -1,32 +0,0 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIFezCCA2OgAwIBAgIEb8xTzzANBgkqhkiG9w0BAQ0FADBuMQswCQYDVQQGEwJY
|
||||
WDELMAkGA1UECBMCWFgxHjAcBgNVBAcTFUkyUCBBbm9ueW1vdXMgTmV0d29yazEL
|
||||
MAkGA1UEChMCWFgxDDAKBgNVBAsTA0kyUDEXMBUGA1UEAwwOcjRzYXNAbWFpbC5p
|
||||
MnAwHhcNMTYwODExMjIyNDM2WhcNMjYwODExMjIyNDM2WjBuMQswCQYDVQQGEwJY
|
||||
WDELMAkGA1UECBMCWFgxHjAcBgNVBAcTFUkyUCBBbm9ueW1vdXMgTmV0d29yazEL
|
||||
MAkGA1UEChMCWFgxDDAKBgNVBAsTA0kyUDEXMBUGA1UEAwwOcjRzYXNAbWFpbC5p
|
||||
MnAwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDjUMy/aYd0i6Oc3rdc
|
||||
24V/fM2vhviH+cNhAOXsMSrwDSVbFQkuDPIfq4fo1A25rsyULR57vy7XKA51OstX
|
||||
GvREPDhth4cMZjthq0f8AVzPq2vIk8Po65uvKR190yupPQ4FhvGeRkHkqp+SqoIJ
|
||||
lClD8xZEHrUHSYZotm5TLWIgSwa4DuO1q3bMRI8oIWzqhv99FtlmHlC8fjVUN4mR
|
||||
2czhABr0u6RMPOtJwTVxWgT1PKXiLWfmeHb63TcPYGgpJ39iMDOjtgY9jYueoO8J
|
||||
uGJJtkGRIRjOuhDFE9NUlNnljUxUDWvMU7zCO4ozaKMZgoxr1WoIO6ubI/003I53
|
||||
sZ0Q5h8yf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/AZDP/tFvx32cWwCszj5jqUaPo9ZNPb6DxQJDdNaZrFH
|
||||
3CA+PbiaeEz9IH0yBY/6wQgO0k3qOyFQrlkC+YRoYUQNc+6xS38l5ZnYUtBAy8ms
|
||||
N43eODQ/OhsLzy6PwwXdzvR/0g18SrQyTLfbn2b/kwvbC8Qe40QFfkOf5lPXjdnP
|
||||
Ii/lcMuvDMlMhoWGFwWm5bkkXE81TKnFXu2/IMsW6HYb3oiTjkaCap22fCr9l0jj
|
||||
fNr8P7NIRyZ8
|
||||
-----END CERTIFICATE-----
|
||||
@@ -1 +0,0 @@
|
||||
e75a2150455e50e501a074031293bda5b6b24be6
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user