Compare commits
472 Commits
Author | SHA1 | Date | |
---|---|---|---|
44e4b2348d | |||
c581903d0a | |||
853d07b7d5 | |||
29b1576936 | |||
2ea0850f06 | |||
5ad93c97aa | |||
26154f3b7f | |||
64505f6617 | |||
800de73b9d | |||
4d605d40b2 | |||
368d9c3423 | |||
76d05d0d53 | |||
7e6f11f6b3 | |||
b9c0fc5e38 | |||
5d4b1a4681 | |||
b2f604a4a5 | |||
7e3ae6ad04 | |||
2edb2a3408 | |||
6c1f2bc640 | |||
76292fc7c0 | |||
c354c49128 | |||
9d66efe846 | |||
24a08cf7c5 | |||
4e19c36817 | |||
05dfef06e3 | |||
8397d7415b | |||
f9279f494f | |||
e3c2ab91be | |||
a8a54f6b4c | |||
995e9805a2 | |||
f3e7c28503 | |||
6042f30350 | |||
ab226e5a4c | |||
e632a49933 | |||
beef36b36d | |||
2ed27fa307 | |||
1a5ce21912 | |||
7754c0b43d | |||
b4b2a30935 | |||
81f58b9d48 | |||
02ac99531a | |||
2b2aea0748 | |||
09e6864cb9 | |||
f954bf4893 | |||
21f74306c8 | |||
ccde6b65dc | |||
f348347115 | |||
ef19f681d0 | |||
1b60e74f9d | |||
9a052f4f3c | |||
1e94b34efe | |||
01c19d1ffd | |||
de6b872426 | |||
27cb5b8365 | |||
2d508e1417 | |||
d6a62bb6ee | |||
4095e61ad3 | |||
f107bf92b2 | |||
bf2e964e1a | |||
8c4647f8b3 | |||
62bda1aec5 | |||
5c637e900e | |||
41b927809b | |||
f8b70f2a96 | |||
c9e7a4beba | |||
40f50aefb5 | |||
e9dfeb0288 | |||
5d121e8927 | |||
aad78749b4 | |||
bbaddd3927 | |||
f7c58d0125 | |||
0e2dba7bd5 | |||
23f1e3491f | |||
a36a74a44a | |||
63344656c1 | |||
260d42a7b3 | |||
4c3f5523d2 | |||
0038f9c186 | |||
46469a4e94 | |||
8d8006c956 | |||
4d35d18c99 | |||
8a2b3fee85 | |||
268b791ad7 | |||
37c7ad9640 | |||
6928ff423a | |||
a4bde9e63b | |||
e337f90c0b | |||
89b480cd22 | |||
0c4746e8fb | |||
87b0a07878 | |||
f09599a2fa | |||
2d3071dbb2 | |||
c79018a29a | |||
bc342cc463 | |||
54b427e532 | |||
ebc829c5c9 | |||
ce5240d658 | |||
fdd3aac391 | |||
c5281751bb | |||
a3b9f1abce | |||
f208563c35 | |||
a9e1135ef5 | |||
8d3b46b36c | |||
a7e47cfc15 | |||
71060cd851 | |||
f3dc285ba6 | |||
bce2f0e286 | |||
8e70d9280c | |||
ea778bf5da | |||
a3de60fcb1 | |||
459c16aec2 | |||
d35a60cc01 | |||
733c2b1cc0 | |||
6b7ab66c99 | |||
4647cd4a0b | |||
b47fb744c4 | |||
a179482b95 | |||
0f44a3219b | |||
9c54e16978 | |||
395e1c2c95 | |||
d989337a9c | |||
7dbfdd9cbf | |||
6605220f4a | |||
d0440dcc56 | |||
4640cc528c | |||
94e03d045b | |||
b6a66cf96e | |||
91f44d29f7 | |||
9152da34c9 | |||
e49cd5d470 | |||
02c148ccbd | |||
5216ec40f4 | |||
65e67f661b | |||
adfda72398 | |||
5f320087f0 | |||
86c0c1b68b | |||
07cc177a95 | |||
40299b00fc | |||
1c1e048c50 | |||
084ecb46ff | |||
2b80b4151a | |||
e43468c367 | |||
1f770c01ab | |||
4d79219358 | |||
3725be1d5b | |||
5d1afd8dd4 | |||
6234ffdff1 | |||
8802f9448f | |||
31d654ef4f | |||
04894a0977 | |||
a2733d8ffb | |||
100fe7fd95 | |||
91964508d8 | |||
9d347bdfa2 | |||
93f6e01e53 | |||
03ea5ed52c | |||
78bf32bc06 | |||
4420222d7e | |||
8a3b73599a | |||
68300d78ef | |||
b3fba0449c | |||
437d0698c0 | |||
5d504c96f3 | |||
895e7c39af | |||
7a0bbf0d22 | |||
99e33eb030 | |||
73ab706e21 | |||
9b177f17e7 | |||
88346f9d99 | |||
26a0fc6bf9 | |||
5f279ea87a | |||
ce4deba206 | |||
78c379e0a9 | |||
bfdd9a01a8 | |||
7664107c7d | |||
61f8297fe9 | |||
0f538970d0 | |||
86f0ec3943 | |||
59f8d0edf9 | |||
3d4f22676a | |||
d0d0b5aca8 | |||
998305ebe1 | |||
b1596d14bc | |||
6242346178 | |||
34ac0fb641 | |||
7da10def01 | |||
4857f753a6 | |||
de5956a1ce | |||
630b8327b7 | |||
ac309150dc | |||
7b995c9928 | |||
fa2256fd99 | |||
04d93e2411 | |||
4cf8f67752 | |||
f462bf3c3b | |||
80eefa0754 | |||
ea9c0b5351 | |||
3276573f6f | |||
abf4963f68 | |||
bfb51a0036 | |||
1aeb795450 | |||
c427481099 | |||
e7ec201f05 | |||
9db97f60fa | |||
7976e6dc0d | |||
8f37ee4758 | |||
729894fd93 | |||
3600e1f72f | |||
e9bb1b4d8a | |||
7217847504 | |||
4a294e9cda | |||
814d52bfdd | |||
a248728178 | |||
5a7e974a88 | |||
6ff6ca4fb3 | |||
3629b03a3a | |||
afab61f43d | |||
06239a90d2 | |||
d7769d4320 | |||
f234b0703a | |||
2ed6361b41 | |||
2ba798b965 | |||
63b49cdcd7 | |||
8044dcdebc | |||
d07f018beb | |||
48c089ef54 | |||
a199a45e6c | |||
d33794640c | |||
a2cf7b738d | |||
f64f44a251 | |||
ba50604c22 | |||
10ee4c3434 | |||
417e9e399c | |||
67b7050c72 | |||
0a6077cde9 | |||
2987780ec5 | |||
0551c6652d | |||
cb724a0b4b | |||
84bc6480d9 | |||
4d2177a134 | |||
5fa616eaa1 | |||
63bb4de1df | |||
16042bb73d | |||
c9512deeea | |||
6237819213 | |||
ac418aca31 | |||
bdbbc93adb | |||
24edd57c57 | |||
234c0c04be | |||
54486e5da4 | |||
bea33564f0 | |||
6d048490d8 | |||
6cb35c6291 | |||
2a461ed7fb | |||
2488cec304 | |||
0b0346abc3 | |||
657b51c2ee | |||
820790beed | |||
31efc06ae1 | |||
d053d16e56 | |||
d3613d566a | |||
f76fae7c1c | |||
48ba47b274 | |||
2a50bd38a1 | |||
87f24dc0b1 | |||
894e139cc8 | |||
fa554888be | |||
907e71e09c | |||
d687c1c52c | |||
ba9411520c | |||
6bac5992df | |||
63f0cabe1a | |||
3ab272682d | |||
8a3d7b0143 | |||
577426f330 | |||
5c5dd307d4 | |||
6627835357 | |||
47dc34f1c3 | |||
20f620639e | |||
72940f09fb | |||
f14100c0eb | |||
a89024ef8b | |||
186604d7c4 | |||
116144bc18 | |||
a0b7383afd | |||
89f407c171 | |||
b942668af8 | |||
231cb6aa02 | |||
f011e8c85b | |||
af3a99d314 | |||
47b296ce66 | |||
e5799fb837 | |||
655bc45035 | |||
4e51986e02 | |||
ccdd1dc33a | |||
7c7d175c10 | |||
be7155a88f | |||
0473572933 | |||
e0b1eabfee | |||
7d7cffd843 | |||
c9eacd23d3 | |||
d2a1a69d69 | |||
2c28435f7e | |||
fcbda43ca5 | |||
491c7124b7 | |||
2788c000c4 | |||
928d2b2761 | |||
47a3845f96 | |||
f5a7c25aa8 | |||
c48db5046a | |||
05e2dee979 | |||
b719d69d23 | |||
f438b6c292 | |||
53669601fc | |||
5886cf69a2 | |||
6da5998660 | |||
939acd2857 | |||
259e9aea66 | |||
b80787d7ba | |||
1060e6959d | |||
370b547272 | |||
67c487ceb7 | |||
f3bf7a928f | |||
daf642f145 | |||
f7fa3c3eca | |||
b638c4a140 | |||
d77e531867 | |||
1b06f8f296 | |||
158b1cecfe | |||
ba9ee25941 | |||
596bb77102 | |||
7b10fc640d | |||
cc54b85188 | |||
0a814a5e50 | |||
8c66473d88 | |||
30dacc7005 | |||
8e4409a02a | |||
66031ea4c0 | |||
29c6158048 | |||
4d4325a032 | |||
e95f5ceb8f | |||
16f32e97e3 | |||
ae87e04ec7 | |||
c0766b1eb0 | |||
0c56acde13 | |||
82730621ae | |||
932d14e1d7 | |||
1be56efa34 | |||
22bd6ec799 | |||
ab5d73fb40 | |||
3e0002d424 | |||
0a67ca0e1c | |||
174342bce1 | |||
f94fd15e5b | |||
849fc3fdf3 | |||
0329e4f06f | |||
fa83389e73 | |||
9182ceeb5c | |||
343919bef6 | |||
7defc6b137 | |||
a3be32d39a | |||
d88383037e | |||
f889b8fc94 | |||
ce8ec78beb | |||
c6c555cb1c | |||
d4cc2c1d45 | |||
46afb304a5 | |||
35b00a886e | |||
2a4a601176 | |||
a8573b79f9 | |||
5024666f9e | |||
f7fddfdb4b | |||
398bfe4ef1 | |||
f380df9075 | |||
b90c09c17f | |||
6b90f5548a | |||
45f6a1c96b | |||
dca4ffa7e9 | |||
c883f035d5 | |||
de082ceba2 | |||
396ebef9b1 | |||
18e42da0d7 | |||
682a9487ae | |||
9747a456ce | |||
2c608ccbc5 | |||
ef9c5fcb2c | |||
ac3d5a34fb | |||
41d7c188f8 | |||
4e254d59c3 | |||
629162372e | |||
b1bfd39327 | |||
3ee2c7a10d | |||
44ce1d2ed2 | |||
7cef932d3d | |||
c063eae03c | |||
7f9bcbe1c0 | |||
e023469b93 | |||
0cf817bb09 | |||
865c0fca84 | |||
6ecd993531 | |||
b6ab50c337 | |||
3ad98b38ab | |||
8ba4651e32 | |||
3e5b9c049d | |||
e5d36aff8f | |||
fa3fa165b1 | |||
5211c6d7e0 | |||
ce6a31166b | |||
842f4bb992 | |||
5fefdab16d | |||
53d4cf8146 | |||
6daeaf8297 | |||
8645f69067 | |||
4f22360b2f | |||
ccfe0af3f6 | |||
3b204871bf | |||
1f7854b35e | |||
89acc78048 | |||
31291214e2 | |||
2875197bc8 | |||
2bb8d35ed2 | |||
e9424ee482 | |||
2f3fb18eac | |||
51ecaaf1d9 | |||
11f32c211b | |||
6417dba4f5 | |||
4090df0148 | |||
154eec9e01 | |||
365c5ac6e8 | |||
bcb0919efa | |||
2f9b0e3686 | |||
62167a118a | |||
82ccb9c47f | |||
120f92d626 | |||
2c7b9a8fea | |||
20fd681f46 | |||
31c7096edc | |||
292cac5e67 | |||
f6c8408f80 | |||
fb30909e3a | |||
5c66b64671 | |||
a87a003ceb | |||
3b68756a32 | |||
17b6922728 | |||
49d9acc383 | |||
529d763e7a | |||
582699ce1f | |||
6f5390eacd | |||
db45db7058 | |||
9693b1383f | |||
839d6fddb3 | |||
7638e5cfec | |||
b66e8690e2 | |||
ce9aeb3b19 | |||
417fd68f91 | |||
3468cbd637 | |||
acf24565c6 | |||
3c505187e7 | |||
cf9ecca991 | |||
350cab1d33 | |||
717dda7d0b | |||
f5da9b7ca3 | |||
0a17f89b83 | |||
12e82c3d74 | |||
eed2811920 | |||
6e92fcc976 | |||
8d075794c2 | |||
169a3ec988 | |||
6df7706964 | |||
b47093009a | |||
752d7a96d8 | |||
3804c542ad |
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
.git
|
24
.gitignore
vendored
@ -1,5 +1,21 @@
|
|||||||
log
|
log
|
||||||
src/i2p.firefox.base.profile.zip
|
/*.su3
|
||||||
*.su3
|
/*.xpi2p
|
||||||
*.xpi2p
|
/*.zip
|
||||||
*.zip
|
/generated/
|
||||||
|
/i2p.chromium.base.profile/
|
||||||
|
/i2p.firefox.base.profile/
|
||||||
|
/i2p.chromium.usability.profile/
|
||||||
|
/i2p.firefox.usability.profile/
|
||||||
|
i2p.chromium.profile
|
||||||
|
i2p.firefox.profile
|
||||||
|
src/build
|
||||||
|
*.err
|
||||||
|
*.log
|
||||||
|
i2pbrowser/
|
||||||
|
/i2pbrowser*.deb
|
||||||
|
/i2pbrowser*.rpm
|
||||||
|
/logs
|
||||||
|
/*.jar
|
||||||
|
/*.msi
|
||||||
|
/*.exe
|
318
CHANGES.html
Normal file → Executable file
@ -7,6 +7,7 @@
|
|||||||
<meta name="description" content="i2p.plugins.firefox" />
|
<meta name="description" content="i2p.plugins.firefox" />
|
||||||
<meta name="keywords" content="main" />
|
<meta name="keywords" content="main" />
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="navbar">
|
<div id="navbar">
|
||||||
@ -16,6 +17,11 @@
|
|||||||
<div id="shownav">
|
<div id="shownav">
|
||||||
<div id="hidenav">
|
<div id="hidenav">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="..">
|
||||||
|
Up one level ^
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="index.html">
|
<a href="index.html">
|
||||||
index
|
index
|
||||||
@ -26,11 +32,91 @@
|
|||||||
CHANGES
|
CHANGES
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="EXAMPLES.html">
|
||||||
|
EXAMPLES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PBrowser.html">
|
||||||
|
I2PBrowser
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PChromium.html">
|
||||||
|
I2PChromium
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PChromiumProfileBuilder.html">
|
||||||
|
I2PChromiumProfileBuilder
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PChromiumProfileChecker.html">
|
||||||
|
I2PChromiumProfileChecker
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PChromiumProfileUnpacker.html">
|
||||||
|
I2PChromiumProfileUnpacker
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PCommonBrowser.html">
|
||||||
|
I2PCommonBrowser
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PFirefox.html">
|
||||||
|
I2PFirefox
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PFirefoxProfileBuilder.html">
|
||||||
|
I2PFirefoxProfileBuilder
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PFirefoxProfileChecker.html">
|
||||||
|
I2PFirefoxProfileChecker
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PFirefoxProfileUnpacker.html">
|
||||||
|
I2PFirefoxProfileUnpacker
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PGenericUnsafeBrowser.html">
|
||||||
|
I2PGenericUnsafeBrowser
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="LICENSE.html">
|
<a href="LICENSE.html">
|
||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="TODO.html">
|
||||||
|
TODO
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="USAGE.html">
|
||||||
|
USAGE
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<a href="#hidenav">
|
<a href="#hidenav">
|
||||||
@ -39,7 +125,222 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<a id="returnhome" href="/">
|
||||||
|
/
|
||||||
|
</a>
|
||||||
<h2>
|
<h2>
|
||||||
|
<a href="#tue-september-6" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Tue, September 6
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Wait up to 5 seconds for the initializing headless Firefox instance to die on Windows
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add option to disable proxy pre-check by setting timeout to zero or less
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#tue-september-6" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Tue, September 6
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Run headlessly on first-run on Windows.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building an .exe package.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building an .zip Windows portable package.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building an .rpm package.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Destroy headless process if it goes too long.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#mon-september-5" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Mon, September 5
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Fix several issues with running on Windows 11
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Make tunnel nicknames different to avoid double shared tunnels
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building a .deb package.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add support for building an .msi package.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#fri-september-2" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Fri, September 2
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Disable HTTPS only mode in favor of HTTPS-first mode to remove the interstitial on I2P sites.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Clearnet sites still choose HTTPS first and will silently deny downgrades but will not warn HTTP-only users.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#thu-september-1" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Thu, September 1
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Add a jpackage target. Add descriptions to release items.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#wed-august-31" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Wed, August 31
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Add unpacked extensions for Chromium profiles
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add Chromium flags from Ungoogled-Chromium documentation
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add Usability/Strict mode switching for Chromium
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#tue-august-30" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Tue, August 30
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Add Usability/Strict mode switching for Firefox
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Factor out common functions to own class
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#sun-august-28" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Sun, August 28
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Adds support for generically configuring a browser with environment variables.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Bugfix for MSEdgium support
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Add detachable version of launchers
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#sat-august-27" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Sat, August 27
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Added support for passing a URL as a parameter to the cli's
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
revised test.sh
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#mon-august-22" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Mon, August 22
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Completes support for auto-selecting
|
||||||
|
<em>
|
||||||
|
either
|
||||||
|
</em>
|
||||||
|
a Firefox or Chrome instance, automatically
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#sat-august-21" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Sat, August 21
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Adds support for passing the -private flag to start Firefox with --private-window and Chromium --incognito
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#fri-august-20" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Fri, August 20
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Chromium is now a first-class citizen
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#fri-august-19" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Fri, August 19
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Adds the ability to pass --private-window to Firefoxes and --incognito to Chromiums
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Switch Tor Browser to the top of the order on Windows to match i2p.firefox behavior
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#mon-august-8" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Mon, August 8
|
||||||
|
</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Add Chromium support. You heard me. Chromium support.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Update launcher script so it self-discovers the location of the script and uses that to find the bundled jar.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h2>
|
||||||
|
<a href="#sun-august-7" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
Sun, August 7
|
Sun, August 7
|
||||||
</h2>
|
</h2>
|
||||||
<ul>
|
<ul>
|
||||||
@ -63,6 +364,9 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2>
|
<h2>
|
||||||
|
<a href="#saturday-august-6" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
Saturday, August 6
|
Saturday, August 6
|
||||||
</h2>
|
</h2>
|
||||||
<ul>
|
<ul>
|
||||||
@ -76,6 +380,20 @@
|
|||||||
Implemented processBuilder generator
|
Implemented processBuilder generator
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<div id="sourcecode">
|
||||||
|
<span id="sourcehead">
|
||||||
|
<strong>
|
||||||
|
Get the source code:
|
||||||
|
</strong>
|
||||||
|
</span>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||||
|
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="#show">
|
<a href="#show">
|
||||||
Show license
|
Show license
|
||||||
|
87
CHANGES.md
Normal file → Executable file
@ -1,3 +1,90 @@
|
|||||||
|
Tue, September 6
|
||||||
|
----------------
|
||||||
|
|
||||||
|
- Wait up to 5 seconds for the initializing headless Firefox instance to die on Windows
|
||||||
|
- Add option to disable proxy pre-check by setting timeout to zero or less
|
||||||
|
|
||||||
|
Tue, September 6
|
||||||
|
----------------
|
||||||
|
|
||||||
|
- Run headlessly on first-run on Windows.
|
||||||
|
- Add support for building an .exe package.
|
||||||
|
- Add support for building an .zip Windows portable package.
|
||||||
|
- Add support for building an .rpm package.
|
||||||
|
- Destroy headless process if it goes too long.
|
||||||
|
|
||||||
|
Mon, September 5
|
||||||
|
----------------
|
||||||
|
|
||||||
|
- Fix several issues with running on Windows 11
|
||||||
|
- Make tunnel nicknames different to avoid double shared tunnels
|
||||||
|
- Add support for building a .deb package.
|
||||||
|
- Add support for building an .msi package.
|
||||||
|
|
||||||
|
Fri, September 2
|
||||||
|
----------------
|
||||||
|
|
||||||
|
- Disable HTTPS only mode in favor of HTTPS-first mode to remove the interstitial on I2P sites.
|
||||||
|
- Clearnet sites still choose HTTPS first and will silently deny downgrades but will not warn HTTP-only users.
|
||||||
|
|
||||||
|
Thu, September 1
|
||||||
|
----------------
|
||||||
|
|
||||||
|
- Add a jpackage target. Add descriptions to release items.
|
||||||
|
|
||||||
|
Wed, August 31
|
||||||
|
--------------
|
||||||
|
|
||||||
|
- Add unpacked extensions for Chromium profiles
|
||||||
|
- Add Chromium flags from Ungoogled-Chromium documentation
|
||||||
|
- Add Usability/Strict mode switching for Chromium
|
||||||
|
|
||||||
|
Tue, August 30
|
||||||
|
--------------
|
||||||
|
|
||||||
|
- Add Usability/Strict mode switching for Firefox
|
||||||
|
- Factor out common functions to own class
|
||||||
|
|
||||||
|
Sun, August 28
|
||||||
|
--------------
|
||||||
|
|
||||||
|
- Adds support for generically configuring a browser with environment variables.
|
||||||
|
- Bugfix for MSEdgium support
|
||||||
|
- Add detachable version of launchers
|
||||||
|
|
||||||
|
Sat, August 27
|
||||||
|
--------------
|
||||||
|
|
||||||
|
- Added support for passing a URL as a parameter to the cli's
|
||||||
|
- revised test.sh
|
||||||
|
|
||||||
|
Mon, August 22
|
||||||
|
--------------
|
||||||
|
|
||||||
|
- Completes support for auto-selecting *either* a Firefox or Chrome instance, automatically
|
||||||
|
|
||||||
|
Sat, August 21
|
||||||
|
--------------
|
||||||
|
|
||||||
|
- Adds support for passing the -private flag to start Firefox with --private-window and Chromium --incognito
|
||||||
|
|
||||||
|
Fri, August 20
|
||||||
|
--------------
|
||||||
|
|
||||||
|
- Chromium is now a first-class citizen
|
||||||
|
|
||||||
|
Fri, August 19
|
||||||
|
--------------
|
||||||
|
|
||||||
|
- Adds the ability to pass --private-window to Firefoxes and --incognito to Chromiums
|
||||||
|
- Switch Tor Browser to the top of the order on Windows to match i2p.firefox behavior
|
||||||
|
|
||||||
|
Mon, August 8
|
||||||
|
-------------
|
||||||
|
|
||||||
|
- Add Chromium support. You heard me. Chromium support.
|
||||||
|
- Update launcher script so it self-discovers the location of the script and uses that to find the bundled jar.
|
||||||
|
|
||||||
Sun, August 7
|
Sun, August 7
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM fedora
|
||||||
|
RUN yum -y update
|
||||||
|
RUN yum -y install rpm-build
|
||||||
|
ADD . /src/i2p.plugins.firefox
|
||||||
|
WORKDIR /src/i2p.plugins.firefox
|
||||||
|
CMD ./fedora-docker.sh
|
1015
EXAMPLES.html
Normal file
3
EXAMPLES.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private
|
1546
I2PBrowser.html
Normal file
199
I2PBrowser.md
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
# Class I2PBrowser [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java)
|
||||||
|
|
||||||
|
> */
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PBrowser.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. @description I2PBrowser is a that is used to open a browser window to the I2P network. It automatically detects the operating system and available browsers and selects the best one to use with Tor Browser at the top for Firefox and Brave at the top for Chrome.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li>java.util.ArrayList</li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Member Variables
|
||||||
|
|
||||||
|
#### I2PFirefox i2pFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: final
|
||||||
|
|
||||||
|
#### I2PChromium i2pChromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: final
|
||||||
|
|
||||||
|
#### I2PGenericUnsafeBrowser i2pGeneral [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: final
|
||||||
|
|
||||||
|
#### boolean firefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: public
|
||||||
|
|
||||||
|
#### boolean chromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: public
|
||||||
|
|
||||||
|
#### boolean generic [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: public
|
||||||
|
|
||||||
|
#### boolean chromiumFirst [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: public
|
||||||
|
|
||||||
|
#### boolean usability [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: public
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### launchFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L34)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### launchChromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L39)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### launchGeneric [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L44)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### setBrowser [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L67)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| browserPath | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### hasChromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L77)
|
||||||
|
|
||||||
|
+ Description: Return true if there is a Chromium available
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if Chromium is available false otherwise
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### hasFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L94)
|
||||||
|
|
||||||
|
+ Description: Return true if there is a Firefox variant available
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if Firefox variant is available false otherwise
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L114)
|
||||||
|
|
||||||
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L157)
|
||||||
|
|
||||||
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L166)
|
||||||
|
|
||||||
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L168)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| inUrl | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L178)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
1790
I2PChromium.html
Normal file
281
I2PChromium.md
Normal file
@ -0,0 +1,281 @@
|
|||||||
|
# Class I2PChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java)
|
||||||
|
|
||||||
|
> */
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PChromium.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li>java.io.File</li>
|
||||||
|
<li>java.util.ArrayList</li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Member Variables
|
||||||
|
|
||||||
|
#### String[] CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: final
|
||||||
|
|
||||||
|
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### FIND_CHROMIUM_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L51)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### FIND_CHROMIUM_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L67)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### FIND_CHROMIUM_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L85)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### FIND_ALL_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L122)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### FIND_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L142)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### NEARBY_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L156)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### CHROMIUM_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L210)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L222)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### onlyValidChromiums [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L244)
|
||||||
|
|
||||||
|
+ Description: Check our list of chrome paths for a valid chrome binary. Just an existence check for now but should check versions in the future.
|
||||||
|
+ Access: public
|
||||||
|
+ return: a list of usable Chromiums or an empty list if none are found.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L264)
|
||||||
|
|
||||||
|
+ Description: Return the best available Chromium from the list of Chromiums we have.
|
||||||
|
+ Access: public
|
||||||
|
+ return: the path to the best available Chromium or null if none are found.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L293)
|
||||||
|
|
||||||
|
+ Description: Return the best available Chromium from the list of Chromiums we have. if override is passed it will be validated and if it validates it will be used.
|
||||||
|
+ Access: public
|
||||||
|
+ return: the path to the best available Chromium or null if none are found.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| overrideChromium | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L311)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
|
||||||
|
+ Access: public
|
||||||
|
+ return: a ProcessBuilder for the top Chromium binary and the default profile.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L324)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile. @args the arguments to pass to the Chromium binary
|
||||||
|
+ Access: public
|
||||||
|
+ return: a ProcessBuilder for the top Chromium binary and the default profile.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L336)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
|
||||||
|
+ Access: public
|
||||||
|
+ return: a ProcessBuilder for the top Chromium binary and the default profile. Always passes the --incognito flag.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L349)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
|
||||||
|
+ Access: public
|
||||||
|
+ return: a ProcessBuilder for the top Chromium binary and the default profile. Always passes the --incognito flag.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | the arguments to pass to the Chromium binary. |
|
||||||
|
|
||||||
|
|
||||||
|
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L396)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile with a specific set of extended arguments.
|
||||||
|
+ Access: public
|
||||||
|
+ return: a ProcessBuilder for the top Chromium binary and default profile with a specific set of extended arguments.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | the extended arguments to pass to the Chromium binary. |
|
||||||
|
|
||||||
|
|
||||||
|
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L483)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ return: Process
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L530)
|
||||||
|
|
||||||
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L555)
|
||||||
|
|
||||||
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L564)
|
||||||
|
|
||||||
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L566)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| inUrl | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L576)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L608)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| millis | int | |
|
||||||
|
|
||||||
|
|
1313
I2PChromiumProfileBuilder.html
Normal file
111
I2PChromiumProfileBuilder.md
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
# Class I2PChromiumProfileBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java)
|
||||||
|
|
||||||
|
> */
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PChromiumProfileBuilder.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileBuilder is a that builds a profile directory which contains the I2P browser profile for the Chromium browser family. It manages the base profile directory and copies it's contents to the active profile directory which is actually used by Chromium.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li>java.io.File</li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Member Variables
|
||||||
|
|
||||||
|
#### boolean usability [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L31)
|
||||||
|
|
||||||
|
+ Description: get the profile directory creating it if necessary
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### baseProfileDir [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L35)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| file | String | |
|
||||||
|
| mode | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### baseProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L59)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| mode | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L83)
|
||||||
|
|
||||||
|
+ Description: get the runtime directory creating it if create=true
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: the runtime directory or null if it could not be created
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| create | boolean | if true create the runtime directory if it does not exist |
|
||||||
|
|
||||||
|
|
||||||
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L94)
|
||||||
|
|
||||||
|
+ Description: get the correct runtime directory
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: the runtime directory or null if it could not be created or found
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L109)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### copyBaseProfiletoProfile [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L120)
|
||||||
|
|
||||||
|
+ Description: Copy the inert base profile directory to the runtime profile directory
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
1209
I2PChromiumProfileChecker.html
Normal file
75
I2PChromiumProfileChecker.md
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
# Class I2PChromiumProfileChecker [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java)
|
||||||
|
|
||||||
|
> */
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PChromiumProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileChecker is a that checks if the Chromium profile directory exists and is valid.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li>java.io.File</li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## No member variables in this class
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L29)
|
||||||
|
|
||||||
|
+ Description: Output feedback if the profile directory is valid or invalid @description Output feedback if the profile directory is valid or invalid @args unused
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L50)
|
||||||
|
|
||||||
|
+ Description: Return true if the profile directory is valid.
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: true if the profile directory is valid false otherwise
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| profileDirectory | String | the profile directory to check |
|
||||||
|
|
||||||
|
|
||||||
|
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L81)
|
||||||
|
|
||||||
|
+ Description: Return true if the file is valid.
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: true if the file is valid false otherwise
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| file | String | the file to check |
|
||||||
|
|
||||||
|
|
||||||
|
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L108)
|
||||||
|
|
||||||
|
+ Description: Return true if the extension directory is valid.
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: true if the extension directory is valid false otherwise
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| extensionDirectory | String | the extension directory to check |
|
||||||
|
|
||||||
|
|
1139
I2PChromiumProfileUnpacker.html
Normal file
50
I2PChromiumProfileUnpacker.md
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# Class I2PChromiumProfileUnpacker [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java)
|
||||||
|
|
||||||
|
> */
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PChromiumProfileUnpacker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileUnpacker is a that unpacks the Chromium profile zip file into the Chromium base profile directory. This is not used by the Chromium browser instance it's unpacked to the disk to be copied to the active profile directory.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## No member variables in this class
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L23)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L37)
|
||||||
|
|
||||||
|
+ Description: unpack the profile directory
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the profile directory was successfully unpacked
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| profileDirectory | String | |
|
||||||
|
| mode | String | |
|
||||||
|
|
||||||
|
|
1656
I2PCommonBrowser.html
Normal file
240
I2PCommonBrowser.md
Normal file
@ -0,0 +1,240 @@
|
|||||||
|
# Class I2PCommonBrowser [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PCommonBrowser.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li>java.io.File</li>
|
||||||
|
<li>java.io.FileInputStream</li>
|
||||||
|
<li>java.io.FileOutputStream</li>
|
||||||
|
<li>java.io.IOException</li>
|
||||||
|
<li>java.io.InputStream</li>
|
||||||
|
<li>java.io.OutputStream</li>
|
||||||
|
<li>java.net.Socket</li>
|
||||||
|
<li>java.nio.file.Files</li>
|
||||||
|
<li>java.nio.file.StandardCopyOption</li>
|
||||||
|
<li>java.util.logging.FileHandler</li>
|
||||||
|
<li>java.util.logging.Logger</li>
|
||||||
|
<li>java.util.logging.SimpleFormatter</li>
|
||||||
|
<li>java.util.zip.ZipEntry</li>
|
||||||
|
<li>java.util.zip.ZipInputStream</li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Member Variables
|
||||||
|
|
||||||
|
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L36)
|
||||||
|
|
||||||
|
> static FileHandler fh;
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: final
|
||||||
|
|
||||||
|
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L37)
|
||||||
|
|
||||||
|
> // private final int DEFAULT_TIMEOUT = 200;
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L131)
|
||||||
|
|
||||||
|
+ Description: get the runtime directory creating it if create=true
|
||||||
|
+ Access: protected
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: the runtime directory or null if it could not be created
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| create | boolean | if true create the runtime directory if it does not exist |
|
||||||
|
| override | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L148)
|
||||||
|
|
||||||
|
+ Description: get the correct runtime directory
|
||||||
|
+ Access: protected
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: the runtime directory or null if it could not be created or found
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| override | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L195)
|
||||||
|
|
||||||
|
+ Description: get the profile directory creating it if necessary
|
||||||
|
+ Access: protected
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: the profile directory or null if it could not be created
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| envVar | String | |
|
||||||
|
| browser | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L207)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: protected
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| file | String | |
|
||||||
|
| browser | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L213)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: protected
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| profileDirectory | String | |
|
||||||
|
| browser | String | |
|
||||||
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L259)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: protected
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| sourceDirectory | File | |
|
||||||
|
| destinationDirectory | File | |
|
||||||
|
| browser | String | |
|
||||||
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L275)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| source | File | |
|
||||||
|
| destination | File | |
|
||||||
|
| browser | String | |
|
||||||
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L284)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| sourceFile | File | |
|
||||||
|
| destinationFile | File | |
|
||||||
|
|
||||||
|
|
||||||
|
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L295)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| profileDirectory | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L321)
|
||||||
|
|
||||||
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the proxy is ready false if it is not.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L331)
|
||||||
|
|
||||||
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the proxy is ready false if it is not.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||||
|
|
||||||
|
|
||||||
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L343)
|
||||||
|
|
||||||
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the proxy is ready false if it is not.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||||
|
| port | int | the port to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L358)
|
||||||
|
|
||||||
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds. If the timeout is zero or less the check is disabled and always returns true.
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the proxy is ready false if it is not.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||||
|
| port | int | the port to wait for the proxy to be ready on. |
|
||||||
|
| host | String | the host to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
|
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L376)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| port | int | |
|
||||||
|
| host | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### setProxyTimeoutTime [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L391)
|
||||||
|
|
||||||
|
+ Description: Alters the proxy timeout to customized value time in seconds. May be zero.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| time | int | |
|
||||||
|
|
||||||
|
|
1871
I2PFirefox.html
Normal file
310
I2PFirefox.md
Normal file
@ -0,0 +1,310 @@
|
|||||||
|
# Class I2PFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java)
|
||||||
|
|
||||||
|
> */
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PFirefox.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li>java.io.File</li>
|
||||||
|
<li>java.io.IOException</li>
|
||||||
|
<li>java.util.ArrayList</li>
|
||||||
|
<li>java.util.concurrent.TimeUnit</li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Member Variables
|
||||||
|
|
||||||
|
#### String[] FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: final
|
||||||
|
|
||||||
|
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
|
||||||
|
#### boolean usability [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### FIND_FIREFOX_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L44)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### FIND_FIREFOX_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L59)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### FIND_FIREFOX_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L76)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### FIND_ALL_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L112)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### FIND_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L132)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### NEARBY_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L146)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L202)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String[]
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L214)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L236)
|
||||||
|
|
||||||
|
+ Description: Check our list of firefox paths for a valid firefox binary. Just an existence check for now but should check versions in the future.
|
||||||
|
+ Access: public
|
||||||
|
+ return: a list of usable Firefoxes or an empty list if none are found.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L256)
|
||||||
|
|
||||||
|
+ Description: Return the best available Firefox from the list of Firefoxes we have.
|
||||||
|
+ Access: public
|
||||||
|
+ return: the path to the best available Firefox or null if none are found.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L285)
|
||||||
|
|
||||||
|
+ Description: Return the best available Firefox from the list of Firefoxes we have. if override is passed it will be validated and if it validates it will be used.
|
||||||
|
+ Access: public
|
||||||
|
+ return: the path to the best available Firefox or null if none are found.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| overrideFirefox | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L303)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
||||||
|
+ Access: public
|
||||||
|
+ return: a ProcessBuilder for the top Firefox binary and the default profile.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L315)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
||||||
|
+ Access: public
|
||||||
|
+ return: ProcessBuilder
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | the args to pass to the Firefox binary |
|
||||||
|
|
||||||
|
|
||||||
|
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L329)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||||
|
+ Access: public
|
||||||
|
+ return: a ProcessBuilder for the top Firefox binary and the default profile.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L342)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||||
|
+ Access: public
|
||||||
|
+ return: ProcessBuilder
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | the arguments to pass to the Firefox binary |
|
||||||
|
|
||||||
|
|
||||||
|
### headlessProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L364)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --headless flag to open without a window.
|
||||||
|
+ Access: public
|
||||||
|
+ return: ProcessBuilder
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | the arguments to pass to the Firefox binary |
|
||||||
|
|
||||||
|
|
||||||
|
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L387)
|
||||||
|
|
||||||
|
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile with a specific set of extended arguments.
|
||||||
|
+ Access: public
|
||||||
|
+ return: a ProcessBuilder for the top Firefox binary and default profile with a specific set of extended arguments.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | the extended arguments to pass to the Firefox binary. |
|
||||||
|
|
||||||
|
|
||||||
|
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L413)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L420)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ return: Process
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L493)
|
||||||
|
|
||||||
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L517)
|
||||||
|
|
||||||
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L527)
|
||||||
|
|
||||||
|
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory. Uses a semi-permanent profile.
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L529)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| inUrl | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L540)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L573)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| millis | int | |
|
||||||
|
|
||||||
|
|
1327
I2PFirefoxProfileBuilder.html
Normal file
117
I2PFirefoxProfileBuilder.md
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
# Class I2PFirefoxProfileBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java)
|
||||||
|
|
||||||
|
> */
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PFirefoxProfileBuilder.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileBuilder is a that builds a profile directory which contains the I2P browser profile for the Firefox browser family. It manages the base profile directory and copies it's contents to the active profile directory which is actually used by Firefox.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li>java.io.File</li>
|
||||||
|
<li>java.nio.file.Files</li>
|
||||||
|
<li>java.nio.file.StandardCopyOption</li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Member Variables
|
||||||
|
|
||||||
|
#### boolean strict [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L33)
|
||||||
|
|
||||||
|
+ Description: get the profile directory creating it if necessary
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### baseProfileDir [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L37)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| file | String | |
|
||||||
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### baseProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L57)
|
||||||
|
|
||||||
|
+ Description: get the base profile directory creating it if necessary
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L81)
|
||||||
|
|
||||||
|
+ Description: get the runtime directory creating it if create=true
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: the runtime directory or null if it could not be created
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| create | boolean | if true create the runtime directory if it does not exist |
|
||||||
|
|
||||||
|
|
||||||
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L92)
|
||||||
|
|
||||||
|
+ Description: get the correct runtime directory
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: the runtime directory or null if it could not be created or found
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### copyBaseProfiletoProfile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L112)
|
||||||
|
|
||||||
|
+ Description: Copy the inert base profile directory to the runtime profile directory
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| base | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### copyStrictOptions [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L151)
|
||||||
|
|
||||||
|
+ Description: Copy the strict options from the base profile to the profile
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: true if successful false otherwise
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| base | String | |
|
||||||
|
|
||||||
|
|
1363
I2PFirefoxProfileChecker.html
Normal file
131
I2PFirefoxProfileChecker.md
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
# Class I2PFirefoxProfileChecker [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java)
|
||||||
|
|
||||||
|
> */
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PFirefoxProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileChecker is a that checks if the Firefox profile directory exists and is valid.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li>java.io.BufferedReader</li>
|
||||||
|
<li>java.io.File</li>
|
||||||
|
<li>java.io.FileNotFoundException</li>
|
||||||
|
<li>java.io.FileReader</li>
|
||||||
|
<li>java.io.FileWriter</li>
|
||||||
|
<li>java.io.IOException</li>
|
||||||
|
<li>java.util.Scanner</li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## No member variables in this class
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L32)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53)
|
||||||
|
|
||||||
|
+ Description: Return true if the profile directory is valid.
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: true if the profile directory is valid false otherwise
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| profileDirectory | String | the profile directory to check |
|
||||||
|
|
||||||
|
|
||||||
|
### deRestrictHTTPSAndSetupHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L86)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| profile | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L109)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| fileToBeModified | File | |
|
||||||
|
|
||||||
|
|
||||||
|
### undoHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L115)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| fileToBeModified | File | |
|
||||||
|
|
||||||
|
|
||||||
|
### undoValue [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L138)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| oldString | String | |
|
||||||
|
| newString | String | |
|
||||||
|
| fileToBeModified | File | |
|
||||||
|
|
||||||
|
|
||||||
|
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L172)
|
||||||
|
|
||||||
|
+ Description: Return true if the file is valid.
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: true if the file is valid false otherwise
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| file | String | the file to check |
|
||||||
|
|
||||||
|
|
||||||
|
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199)
|
||||||
|
|
||||||
|
+ Description: Return true if the extension directory is valid.
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: true if the extension directory is valid false otherwise
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| extensionDirectory | String | the extension directory to check |
|
||||||
|
|
||||||
|
|
1143
I2PFirefoxProfileUnpacker.html
Normal file
50
I2PFirefoxProfileUnpacker.md
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# Class I2PFirefoxProfileUnpacker [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java)
|
||||||
|
|
||||||
|
> */
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PFirefoxProfileUnpacker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileUnpacker is a that unpacks the I2P Firefox profile from a zip file embedded in the `jar` file. The zip is unpacked to a base directory where it is left untouched and the base profile is copied to the active profile directory.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## No member variables in this class
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L23)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| args | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L37)
|
||||||
|
|
||||||
|
+ Description: unpack the profile directory
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the profile directory was successfully unpacked
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| profileDirectory | String | |
|
||||||
|
| base | String | |
|
||||||
|
|
||||||
|
|
1667
I2PGenericUnsafeBrowser.html
Normal file
242
I2PGenericUnsafeBrowser.md
Normal file
@ -0,0 +1,242 @@
|
|||||||
|
# Class I2PGenericUnsafeBrowser [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
Access: public
|
||||||
|
Description:
|
||||||
|
> I2PChromiumProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PGenericUnsafeBrowser is a wrapper which sets common environment variables for the process controlled by a processbuilder. ALWAYS ALWAYS ALWAYS try the Firefox and Chromium specific launchers first.
|
||||||
|
|
||||||
|
Author: idk
|
||||||
|
Parent class: I2PCommonBrowser
|
||||||
|
package: net.i2p.i2pfirefox
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
Show dependencies
|
||||||
|
</summary>
|
||||||
|
<ul>
|
||||||
|
<li>java.io.File</li>
|
||||||
|
<li>java.io.IOException</li>
|
||||||
|
<li>java.net.Socket</li>
|
||||||
|
<li>java.util.ArrayList</li>
|
||||||
|
<li>java.util.Scanner</li>
|
||||||
|
</ul>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Member Variables
|
||||||
|
|
||||||
|
#### int DEFAULT_TIMEOUT [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: final
|
||||||
|
|
||||||
|
#### String BROWSER [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
|
||||||
|
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L)
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
+ Access: private
|
||||||
|
|
||||||
|
## Methods
|
||||||
|
|
||||||
|
### getDefaultWindowsBrowser [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L90)
|
||||||
|
|
||||||
|
+ Description: Obtains the default browser for the Windows platform which by now should be Edgium in the worst-case scenario but in case it isn't we can use this function to figure it out. It can find: 1. The current user's HTTPS default browser if they configured it to be non-default 2. The current user's HTTP default browser if they configured it to be non-default 3. Edgium if it's available 4. iexplore if it's not and it will return the first one we find in exactly that order. Adapted from: and from:
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### getDefaultOutOfRegistry [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L118)
|
||||||
|
|
||||||
|
+ Description: obtains information out of the Windows registry.
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| hkeyquery | String | registry entry to ask for. |
|
||||||
|
|
||||||
|
|
||||||
|
### scanAPath [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L144)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| dir | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### getAnyUnixBrowser [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L159)
|
||||||
|
|
||||||
|
+ Description: Find any browser in our list within a UNIX path
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### findUnsafeBrowserAnywhere [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L178)
|
||||||
|
|
||||||
|
+ Description: Find any usable browser and output the whole path
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### deleteRuntimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L229)
|
||||||
|
|
||||||
|
+ Description: delete the runtime directory
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L245)
|
||||||
|
|
||||||
|
+ Description: get the runtime directory creating it if create=true
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: the runtime directory or null if it could not be created
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| create | boolean | if true create the runtime directory if it does not exist |
|
||||||
|
|
||||||
|
|
||||||
|
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L256)
|
||||||
|
|
||||||
|
+ Description: get the correct runtime directory
|
||||||
|
+ Access: public
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: the runtime directory or null if it could not be created or found
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L278)
|
||||||
|
|
||||||
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the proxy is ready false if it is not.
|
||||||
|
|
||||||
|
This method has no parameters.
|
||||||
|
|
||||||
|
|
||||||
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L288)
|
||||||
|
|
||||||
|
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the proxy is ready false if it is not.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||||
|
|
||||||
|
|
||||||
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L300)
|
||||||
|
|
||||||
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the proxy is ready false if it is not.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||||
|
| port | int | the port to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
|
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L314)
|
||||||
|
|
||||||
|
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||||
|
+ Access: public
|
||||||
|
+ return: true if the proxy is ready false if it is not.
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||||
|
| port | int | the port to wait for the proxy to be ready on. |
|
||||||
|
| host | String | the host to wait for the proxy to be ready on. |
|
||||||
|
|
||||||
|
|
||||||
|
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L328)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ return: Process
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L350)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: public
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| privateWindow | boolean | |
|
||||||
|
| url | String[] | |
|
||||||
|
|
||||||
|
|
||||||
|
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L367)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: void
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| millis | int | |
|
||||||
|
|
||||||
|
|
||||||
|
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L375)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ Modifiers: static
|
||||||
|
+ return: String
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| inUrl | String | |
|
||||||
|
|
||||||
|
|
||||||
|
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L385)
|
||||||
|
|
||||||
|
+ Description:
|
||||||
|
+ Access: private
|
||||||
|
+ return: boolean
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ----- | ----- | ----- |
|
||||||
|
| port | int | |
|
||||||
|
| host | String | |
|
||||||
|
|
||||||
|
|
1655
LICENSE.html
Normal file → Executable file
0
LICENSE.md
Normal file → Executable file
1254
PACKAGES.html
Normal file
91
PACKAGES.md
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
Packages for various operating systems
|
||||||
|
======================================
|
||||||
|
|
||||||
|
Making a new release:
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
Releases can be created in a mostly automatic way. With a working Java toolchain
|
||||||
|
including jpackage installed:
|
||||||
|
|
||||||
|
0. Set a `GITHUB_TOKEN` in the environment containing an API key.
|
||||||
|
1. Update the version number(`GITHUB_TAG`) and version title(`GITHUB_NAME`) in `config.sh`
|
||||||
|
2. On a Linux machine, run `./release.sh`
|
||||||
|
3. On a Windows machine, run `./windows-release.sh`
|
||||||
|
|
||||||
|
|
||||||
|
Windows
|
||||||
|
-------
|
||||||
|
|
||||||
|
All Windows packages require building on a Windows machine. In order to build
|
||||||
|
them, check out i2p.firefox in an adjacent directory and `source` i2p.firefox/config.sh
|
||||||
|
to set the path to the Java toolchain you want to use.
|
||||||
|
|
||||||
|
run: `ant jar` before any of these scripts.
|
||||||
|
|
||||||
|
run: `windows-release.sh` only *after* release.sh on a Linux machine.
|
||||||
|
|
||||||
|
### MSI
|
||||||
|
|
||||||
|
Requires the Wixl toolset.
|
||||||
|
|
||||||
|
#### Status: Works. Maintained.
|
||||||
|
|
||||||
|
run: `./windows.sh`
|
||||||
|
|
||||||
|
#### EXE
|
||||||
|
|
||||||
|
No special requirements.
|
||||||
|
|
||||||
|
#### Status: Works. Maintained.
|
||||||
|
|
||||||
|
run: `./windows-exe.sh`
|
||||||
|
|
||||||
|
### Portable(.zip)
|
||||||
|
|
||||||
|
No special requirements.
|
||||||
|
|
||||||
|
#### Status: Unknown. Maintained.
|
||||||
|
|
||||||
|
run: `./windows-portable.sh`
|
||||||
|
|
||||||
|
Linux
|
||||||
|
-----
|
||||||
|
|
||||||
|
All Linux packages require building on a Linux machines. Debian packages must
|
||||||
|
be built on Debian, Fedora packages must be built on Fedora. Some leeway for
|
||||||
|
derivative distros. Portable can be b build anywhere with a jpackage. Have
|
||||||
|
Java tools in your `PATH`.
|
||||||
|
|
||||||
|
### Debian
|
||||||
|
|
||||||
|
Make sure you have a recent Java and jpackage.
|
||||||
|
|
||||||
|
#### Status: Works. Maintained.
|
||||||
|
|
||||||
|
run: `ant debian`
|
||||||
|
|
||||||
|
### Fedora
|
||||||
|
|
||||||
|
I'm a Debian user and don't have a Fedora machine set up right now. Therefore,
|
||||||
|
I build Fedora packages in a container.
|
||||||
|
|
||||||
|
Fedora doesn't have a jpackage in their repositories as far as I can tell so I use
|
||||||
|
Adoptium's third-party repository to supply the JDK I use to build the fedora
|
||||||
|
package.
|
||||||
|
|
||||||
|
#### Status: Unknown. Maintained.
|
||||||
|
|
||||||
|
run: `ant fedora`
|
||||||
|
|
||||||
|
### Portable(.zip)
|
||||||
|
|
||||||
|
Details are platform dependent. Same build-deps as everything else.
|
||||||
|
|
||||||
|
#### Status: Works. Maintained.
|
||||||
|
|
||||||
|
run: `ant jpackage`
|
||||||
|
|
||||||
|
OSX
|
||||||
|
---
|
||||||
|
|
||||||
|
### TODO
|
173
README.md
Normal file → Executable file
@ -2,8 +2,56 @@
|
|||||||
|
|
||||||
A port of the batch scripts from i2p.firefox to Java.
|
A port of the batch scripts from i2p.firefox to Java.
|
||||||
|
|
||||||
|
**Status:** This package is maintained. It cannot solve all your problems. Fingerprinting
|
||||||
|
is a reality in modern browsers. Exploits are too. This software attempts to provide a
|
||||||
|
best-possible baseline of privacy first, security a close second for browsing the web that
|
||||||
|
exists within I2P. Do not expect it to withstand attacks from very powerful adversaries
|
||||||
|
who can spend time and money to screw up your life. Do expect it to resist advertisers,
|
||||||
|
trackers, and jerks using off-the-shelf techniques and exploits. It is fundamentally unable
|
||||||
|
to make changes which un-trust your browser vendor, your OS, your package manager or any
|
||||||
|
other system that exists underneath it. **It is just a profile manager.**
|
||||||
|
|
||||||
|
**All packages require a running I2P router.**
|
||||||
|
|
||||||
|
**[Windows users should see the Easy-Install Bundle](https://i2pgit.org/i2p-hackers/i2p.firefox)**
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
|
### Using a Binary
|
||||||
|
|
||||||
|
```sh
|
||||||
|
|
||||||
|
mkdir ~/tmp-i2pfirefox && cd ~/tmp-i2pfirefox
|
||||||
|
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.16/i2pfirefox.zip
|
||||||
|
unzip i2pfirefox.zip
|
||||||
|
./i2pfirefox.cmd
|
||||||
|
|
||||||
|
#or if you want to use a Chromium
|
||||||
|
|
||||||
|
./i2pchromium.cmd
|
||||||
|
```
|
||||||
|
|
||||||
|
### Build Dependencies
|
||||||
|
|
||||||
|
You will need `ant`, `java` and for building the Chromium profile, a Go application
|
||||||
|
called `crx3` which is used to interact with the Chrome app store. I've been using Java 17
|
||||||
|
on Debian mostly, on Debian and Ubuntu, install the dependencies with:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo apt-get install openjdk-17* ant golang-go
|
||||||
|
go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||||
|
```
|
||||||
|
|
||||||
|
For Fedora, use Yum, for Arch use pacman or something else but make sure to tell everyone
|
||||||
|
about it. Once you have that installed, when building, make sure to add `$GOPATH/bin/`
|
||||||
|
to your `$PATH`.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
export PATH=$PATH:$HOME/go/bin
|
||||||
|
```
|
||||||
|
|
||||||
|
Will almost always work.
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
||||||
This is not actually a plugin yet, but it will be soon. The important bit is the jar.
|
This is not actually a plugin yet, but it will be soon. The important bit is the jar.
|
||||||
@ -12,9 +60,7 @@ produces the jar as a by-product, or you can:
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
||||||
cd src
|
ant jar
|
||||||
ant
|
|
||||||
cd ..
|
|
||||||
```
|
```
|
||||||
|
|
||||||
To build just the jar. You'll know it worked if you can:
|
To build just the jar. You'll know it worked if you can:
|
||||||
@ -24,16 +70,14 @@ To build just the jar. You'll know it worked if you can:
|
|||||||
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
||||||
```
|
```
|
||||||
|
|
||||||
and a new Firefox instance comes up with a fresh profile. This is just a default Firefox
|
and a new Firefox instance comes up with a fresh profile, ready-to-use for I2P browsing.
|
||||||
profile, configuring it for I2P requires you to put a pre-configured Firefox profile into
|
|
||||||
the `i2p.firefox.base.profile` directory or otherwise supply a static, pre-configured
|
|
||||||
profile.
|
|
||||||
|
|
||||||
The cooler thing you can do with it is add it to an I2P distribution and somewhere in it,
|
The cooler thing you can do with it is add it to an I2P distribution and somewhere in it,
|
||||||
add a UI element that triggers something along the lines of this:
|
add a UI element that triggers something along the lines of this:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
|
||||||
|
// Firefox Example
|
||||||
if (i2pIsRunning()) {
|
if (i2pIsRunning()) {
|
||||||
logger.warning("I2P is already running");
|
logger.warning("I2P is already running");
|
||||||
System.out.println("I2PFirefox");
|
System.out.println("I2PFirefox");
|
||||||
@ -42,4 +86,119 @@ if (i2pIsRunning()) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```java
|
||||||
|
|
||||||
|
// Chromium Example
|
||||||
|
if (i2pIsRunning()) {
|
||||||
|
logger.warning("I2P is already running");
|
||||||
|
System.out.println("I2PChromium");
|
||||||
|
I2PChromium i2pChromium = new I2PChromium();
|
||||||
|
i2pChromium.launch();
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```java
|
||||||
|
|
||||||
|
// Auto-Select Example, chooses Firefox first, then Chromium
|
||||||
|
if (i2pIsRunning()) {
|
||||||
|
logger.warning("I2P is already running");
|
||||||
|
System.out.println("I2PBrowser");
|
||||||
|
I2PBrowser i2pBrowser = new I2PBrowser();
|
||||||
|
/*
|
||||||
|
* toggle chromium to the top of the order by doing:
|
||||||
|
I2PBrowser.chromiumFirst = true;
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
i2pBrowser.launch(privateBrowsing);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
to add a browser management tool to it.
|
to add a browser management tool to it.
|
||||||
|
|
||||||
|
### Browser Discovery Methods
|
||||||
|
|
||||||
|
This tool looks for browsers on the host system, creates a workspace to use for I2P
|
||||||
|
purposes, and launches the browser inside of that workspace. The details of the
|
||||||
|
workspace vary from browser to browser but roughly corresponds to a browser profile.
|
||||||
|
In order to be successful this tool uses 3 main types of browser discovery methods,
|
||||||
|
in this order:
|
||||||
|
|
||||||
|
1. "Local" discovery, where a browser is in a subdirectory of the directory where you
|
||||||
|
ran the launcher. This will only happen if the user unpacked a portable browser into
|
||||||
|
the same directory where they ran the launcher.
|
||||||
|
2. "Path-Based" discovery, where it scans common browser installation directories
|
||||||
|
until it finds one which it can use. On Unix, it simply scans the directories on the
|
||||||
|
`PATH` for a browser it knows about. On Windows, default paths to browser install
|
||||||
|
directories are hard-coded and included in the binary. This is what usually happens.
|
||||||
|
3. "System-Based" discovery, where it defers to the host system to make a choice
|
||||||
|
about the browser and counts on browser vendors to honor the system proxy environment
|
||||||
|
variables. This is a catch-all solution which works with most browsers, but does
|
||||||
|
not apply any customizations.
|
||||||
|
|
||||||
|
There is a little subtlety here though.
|
||||||
|
|
||||||
|
- The path to Edgium on Windows will **always** resolve during path-based discovery,
|
||||||
|
resulting in a positive test for Chromium when launching the browser in auto-select
|
||||||
|
mode. So Windows will never reach stage 3 unless expressly forced to. If Firefox or
|
||||||
|
a variant is installed, it will be chosen before Edgium unless directed otherwise.
|
||||||
|
- Linux is unaware of a Tor Browser path because Tor Browser is rarely, if ever,
|
||||||
|
installed on-path. What is on path is virtually always a wrapper for Tor Browser
|
||||||
|
which is installed either as the main user or it's own user. Linux will only use
|
||||||
|
Tor Browser if it's discovered in "Local" mode.
|
||||||
|
- The above is also true of OSX for now but doesn't have to remain so.
|
||||||
|
- I really only test Phase 3 with Dillo and Edgium. **YMMV.**
|
||||||
|
|
||||||
|
### Usability vs Strict
|
||||||
|
|
||||||
|
This is basically a profile-management tool geared toward minimizing the
|
||||||
|
differences between browser users which are passively discernible while
|
||||||
|
they are browsing I2P. It assumes that they are part of a highly fragmented
|
||||||
|
browsing environment where they are already unique, and therefore consolidation
|
||||||
|
on configuration is a goal. However, this goal sometimes also conflicts with
|
||||||
|
usability. To allow users a safe set of choices, we offer "Coarse" configuration
|
||||||
|
in 2 modes. We recommend that you do not deviate from these configurations if
|
||||||
|
you have browser application fingerprinting as a concern.
|
||||||
|
|
||||||
|
#### Usability Mode
|
||||||
|
|
||||||
|
TODO: description
|
||||||
|
|
||||||
|
Pros: Allows a restricted subset of Javascript
|
||||||
|
Pros: Less likely to try and reach the clearnet
|
||||||
|
|
||||||
|
Cons: Looks very different from Tor Browser
|
||||||
|
Cons: Plugin updates can create temporary uniqueness
|
||||||
|
|
||||||
|
##### Usability Extension Set
|
||||||
|
|
||||||
|
- **I2P In Private Browsing**
|
||||||
|
- **uMatrix**
|
||||||
|
- **jsRestrictor**
|
||||||
|
- **LocalCDN**
|
||||||
|
- **Onion in Container Tabs**
|
||||||
|
- **HTTPS EveryWhere** in some configurations
|
||||||
|
|
||||||
|
##### Usability user.js characteristics
|
||||||
|
|
||||||
|
TODO: Summarize differences
|
||||||
|
|
||||||
|
#### Strict Mode
|
||||||
|
|
||||||
|
TODO: description
|
||||||
|
|
||||||
|
Pros: Does not allow Javascript by default
|
||||||
|
Pros: Looks a lot like Tor Browser especially if you're using Tor Browser
|
||||||
|
|
||||||
|
Cons: More work to use
|
||||||
|
Cons: Temporary uniqueness can be created by enabling Javascript for specific sites
|
||||||
|
Cons: More likely to try and reach the clearnet
|
||||||
|
|
||||||
|
##### Strict Extension Set
|
||||||
|
|
||||||
|
- **NoScript**
|
||||||
|
- **I2P In Private Browsing**
|
||||||
|
- **HTTPS EveryWhere** in some configurations
|
||||||
|
|
||||||
|
##### Strict user.js characteristics
|
||||||
|
|
||||||
|
TODO: Summarize differences
|
||||||
|
1062
RELEASES.html
Normal file
12
RELEASES.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
Sums for release 0.0.31
|
||||||
|
==============================
|
||||||
|
|
||||||
|
- [b4281b944433069681ece1124bf5ac1a527dcef9d29ce999ab0dac7a0bbee70e i2pfirefox.jar](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pfirefox.jar)
|
||||||
|
- [5b21bb74ce6715bd48bcc019a1165f1f27a15bd831c1a723d8b90f7cb82498df i2pfirefox.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pfirefox.zip)
|
||||||
|
- [86b0ae9040d64651cc13027a9861d0fdf2afaac4a4cdb9cbef69e82cc92adb67 i2pbrowser.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser.zip)
|
||||||
|
- [3a08a52a41463e0b5324101eb097f533bbac8b7db44964a2f90d305247320ecc i2pbrowser_0.0.31_.deb](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser_0.0.31_.deb)
|
||||||
|
- [67739c09653b52d8bdb75b2c742aa8c21a8a7c278b7c05e25957747afede218b i2pbrowser-0.0.31_.rpm](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser-0.0.31_.rpm)
|
||||||
|
- [f40ef6126af9fd93272c2935e1fb056a6aceb2dfbbb0aafe1847708c40a3220a i2pbrowser.msi](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser.msi)
|
||||||
|
- [33ecc96815f3e6934112f138b54bb64fde93565dcafae000d73b2539449f10ed i2pbrowser.exe](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser.exe)
|
||||||
|
- [6a620cd58fda291945fa010e3411fac817f2b9f87f572b67697de0e16e694efd i2pbrowser-portable.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.31/i2pbrowser-portable.zip)
|
||||||
|
|
9
TODO.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
To-Do List:
|
||||||
|
===========
|
||||||
|
|
||||||
|
1. Decide on an GUI component for launching the browser/variants with the choices:
|
||||||
|
- Launch $firefox_variant in I2P Mode
|
||||||
|
- Launch $chromium_variant in I2P Mode
|
||||||
|
- Launch system default browser in I2P Mode(Potentially Unsafe!)
|
||||||
|
2. Registry-based discovery of Firefox variants
|
||||||
|
3. Registry-based discovery of Chrome variants
|
1082
USAGE.html
Normal file
58
USAGE.md
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
Example Commands:
|
||||||
|
=================
|
||||||
|
|
||||||
|
These scripts are designed so that they can be executed on both Windows and Unix.
|
||||||
|
|
||||||
|
The top command is for Unixes and should work on most POSIX shells. After it runs, the script will terminate preventing Windows commands from running.
|
||||||
|
|
||||||
|
The second and third command is for Windows and won't be reachable on Linux(because the top command will be run and the script will exit).
|
||||||
|
|
||||||
|
Both determine the path to the script, use it to find the jar file, and execute a single command.
|
||||||
|
|
||||||
|
Auto-Select in Persistent Mode
|
||||||
|
|
||||||
|
```sh
|
||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser
|
||||||
|
```
|
||||||
|
|
||||||
|
Auto-Select in Private Browsing Mode
|
||||||
|
|
||||||
|
```sh
|
||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private
|
||||||
|
```
|
||||||
|
|
||||||
|
Firefox in Persistent Mode
|
||||||
|
|
||||||
|
```sh
|
||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
||||||
|
```
|
||||||
|
|
||||||
|
Firefox in Private Browsing Mode
|
||||||
|
|
||||||
|
```sh
|
||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private
|
||||||
|
```
|
||||||
|
|
||||||
|
Chromium in Persistent Mode
|
||||||
|
|
||||||
|
```sh
|
||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium
|
||||||
|
```
|
||||||
|
|
||||||
|
Chromium in Private Browsing Mode
|
||||||
|
|
||||||
|
```sh
|
||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private
|
||||||
|
```
|
362
build.xml
Normal file → Executable file
@ -2,13 +2,177 @@
|
|||||||
<project basedir="." default="all" name="i2pfirefox">
|
<project basedir="." default="all" name="i2pfirefox">
|
||||||
<property file="override.properties"/>
|
<property file="override.properties"/>
|
||||||
|
|
||||||
<target name="all" depends="clean,i2pFirefoxBaseProfileZip,plugin" />
|
<target name="all" depends="clean,i2pFirefoxBaseProfileZip,i2pChromiumBaseProfileZip,plugin" />
|
||||||
|
|
||||||
<target name="war" >
|
<target name="war" >
|
||||||
<ant dir="src" target="build" />
|
<ant dir="src" target="build" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="i2pFirefoxBaseProfileZip">
|
<target name="examples" >
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md"/>
|
||||||
|
<arg value="Example Commands:" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="=================" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="printf">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="These scripts are designed so that they can be executed on both Windows and Unix.\n\nThe top command is for Unixes and should work on most POSIX shells. After it runs, the script will terminate preventing Windows commands from running.\n\nThe second and third command is for Windows and won't be reachable on
|
||||||
|
Linux(because the top command will be run and the script will exit).\n\nBoth determine the path to the script, use it to find the jar file, and execute a single command.\n\n" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="Auto-Select in Persistent Mode" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```sh" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="cat">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="i2pbrowser.cmd" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="Auto-Select in Private Browsing Mode" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```sh" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="cat">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="i2pbrowser-private.cmd" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="Firefox in Persistent Mode" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```sh" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="cat">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="i2pfirefox.cmd" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="Firefox in Private Browsing Mode" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```sh" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="cat">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="i2pfirefox-private.cmd" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="Chromium in Persistent Mode" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```sh" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="cat">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="i2pchromium.cmd" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="Chromium in Private Browsing Mode" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```sh" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="cat">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="i2pchromium-private.cmd" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="echo">
|
||||||
|
<redirector output="USAGE.md" append="true"/>
|
||||||
|
<arg value="```" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="jar" depends="distclean,i2pFirefoxBaseProfileZip,i2pFirefoxUsabilityProfileZip,i2pChromiumBaseProfileZip">
|
||||||
|
<ant dir="src" target="jar" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="i2pFirefoxBaseProfileZip" depends="i2pFirefoxUsabilityProfileZip">
|
||||||
<exec executable="rm" failonerror="false" dir="src">
|
<exec executable="rm" failonerror="false" dir="src">
|
||||||
<arg value="-rf" />
|
<arg value="-rf" />
|
||||||
<arg value="i2p.firefox.base.profile.zip" />
|
<arg value="i2p.firefox.base.profile.zip" />
|
||||||
@ -19,6 +183,131 @@
|
|||||||
<arg value="i2p.firefox.base.profile"/>
|
<arg value="i2p.firefox.base.profile"/>
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
|
<target name="i2pFirefoxUsabilityProfileZip">
|
||||||
|
<exec executable="rm" failonerror="false" dir="src">
|
||||||
|
<arg value="-rf" />
|
||||||
|
<arg value="i2p.firefox.usability.profile.zip" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="zip" failonerror="true" dir="src">
|
||||||
|
<arg value="-r"/>
|
||||||
|
<arg value="i2p.firefox.usability.profile.zip"/>
|
||||||
|
<arg value="i2p.firefox.usability.profile"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="i2pChromiumBaseProfile">
|
||||||
|
<exec executable="crx3" failonerror="true">
|
||||||
|
<arg value="download"/>
|
||||||
|
<arg value="ikdjcmomgldfciocnpekfndklkfgglpe" />
|
||||||
|
<arg value="-u=true"/>
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg value="src/i2p.chromium.base.profile/extensions/i2pchrome.js.crx" />
|
||||||
|
</exec>
|
||||||
|
<!--
|
||||||
|
TODO: I don't want to deal with licensing issues while on a headfull of cold
|
||||||
|
medicine and COVID. SO for now I'm only including a plugin written by a person
|
||||||
|
who I'm pretty sure isn't going to sue me for it(me). In order to more closely
|
||||||
|
mirror the behavior of the Firefox profile, we should at least include a script
|
||||||
|
blocking plugin, such as ScriptSafe. uBlock was also suggested and I tend to
|
||||||
|
agree. However, since we have to load extensions unpacked, they won't be updated
|
||||||
|
automatically. This is probably good for working against fingerprinting but it's
|
||||||
|
also more work should a plugin have a security vulnerability.
|
||||||
|
-->
|
||||||
|
<exec executable="crx3" failonerror="true">
|
||||||
|
<arg value="download"/>
|
||||||
|
<arg value="doojmbjmlfjjnbmnoijecmcbfeoakpjm" />
|
||||||
|
<arg value="-u=true"/>
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg value="src/i2p.chromium.base.profile/extensions/noscript.js.crx" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="i2pChromiumUsabilityProfile">
|
||||||
|
<exec executable="crx3" failonerror="true">
|
||||||
|
<arg value="download"/>
|
||||||
|
<arg value="ikdjcmomgldfciocnpekfndklkfgglpe" />
|
||||||
|
<arg value="-u=true"/>
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg value="src/i2p.chromium.usability.profile/extensions/i2pchrome.js.crx" />
|
||||||
|
</exec>
|
||||||
|
<!--
|
||||||
|
TODO: I don't want to deal with licensing issues while on a headfull of cold
|
||||||
|
medicine and COVID. SO for now I'm only including a plugin written by a person
|
||||||
|
who I'm pretty sure isn't going to sue me for it(me). In order to more closely
|
||||||
|
mirror the behavior of the Firefox profile, we should at least include a script
|
||||||
|
blocking plugin, such as ScriptSafe. uBlock was also suggested and I tend to
|
||||||
|
agree. However, since we have to load extensions unpacked, they won't be updated
|
||||||
|
automatically. This is probably good for working against fingerprinting but it's
|
||||||
|
also more work should a plugin have a security vulnerability.
|
||||||
|
-->
|
||||||
|
<exec executable="crx3" failonerror="true">
|
||||||
|
<arg value="download"/>
|
||||||
|
<arg value="cjpalhdlnbpafiamejdnhcphjbkeiagm" />
|
||||||
|
<arg value="-u=true"/>
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg value="src/i2p.chromium.usability.profile/extensions/ublock.js.crx" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="crx3" failonerror="true">
|
||||||
|
<arg value="download"/>
|
||||||
|
<arg value="ammoloihpcbognfddfjcljgembpibcmb" />
|
||||||
|
<arg value="-u=true"/>
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg value="src/i2p.chromium.usability.profile/extensions/jshelter.js.crx" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="crx3" failonerror="true">
|
||||||
|
<arg value="download"/>
|
||||||
|
<arg value="njdfdhgcmkocbgbhcioffdbicglldapd" />
|
||||||
|
<arg value="-u=true"/>
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg value="src/i2p.chromium.usability.profile/extensions/localcdn.js.crx" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="i2pChromiumBaseProfileZip">
|
||||||
|
<exec executable="rm" failonerror="false" dir="src">
|
||||||
|
<arg value="-rf" />
|
||||||
|
<arg value="i2p.chromium.base.profile.zip" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="zip" failonerror="true" dir="src">
|
||||||
|
<arg value="-r"/>
|
||||||
|
<arg value="i2p.chromium.base.profile.zip"/>
|
||||||
|
<arg value="i2p.chromium.base.profile"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="i2pChromiumUsabilityProfileZip">
|
||||||
|
<exec executable="rm" failonerror="false" dir="src">
|
||||||
|
<arg value="-rf" />
|
||||||
|
<arg value="i2p.chromium.usability.profile.zip" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="zip" failonerror="true" dir="src">
|
||||||
|
<arg value="-r"/>
|
||||||
|
<arg value="i2p.chromium.usability.profile.zip"/>
|
||||||
|
<arg value="i2p.chromium.usability.profile"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="freeZip" depends="jar">
|
||||||
|
<exec executable="rm" failonerror="false" dir="src">
|
||||||
|
<arg value="-rf" />
|
||||||
|
<arg value="i2pbrowser.zip" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="zip" failonerror="true">
|
||||||
|
<arg value="-r"/>
|
||||||
|
<arg value="i2pfirefox.zip"/>
|
||||||
|
<arg value="src/build/i2pfirefox.jar"/>
|
||||||
|
<arg value="i2pfirefox.cmd"/>
|
||||||
|
<arg value="i2pchromium.cmd"/>
|
||||||
|
<arg value="i2pfirefox-private.cmd"/>
|
||||||
|
<arg value="i2pchromium-private.cmd"/>
|
||||||
|
<arg value="i2pfirefox-usability.cmd"/>
|
||||||
|
<arg value="i2pchromium-usability.cmd"/>
|
||||||
|
<arg value="i2pfirefox-usability-private.cmd"/>
|
||||||
|
<arg value="i2pchromium-usability-private.cmd"/>
|
||||||
|
<arg value="LICENSE.md"/>
|
||||||
|
<arg value="README.md"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="plugin" depends="war">
|
<target name="plugin" depends="war">
|
||||||
<delete>
|
<delete>
|
||||||
@ -28,7 +317,7 @@
|
|||||||
<delete dir="plugin/eepsite/docroot/torrents/" />
|
<delete dir="plugin/eepsite/docroot/torrents/" />
|
||||||
<!-- get version number -->
|
<!-- get version number -->
|
||||||
<buildnumber file="scripts/build.number" />
|
<buildnumber file="scripts/build.number" />
|
||||||
<property name="release.number" value="0.0.5" />
|
<property name="release.number" value="0.0.34" />
|
||||||
|
|
||||||
<!-- make the update xpi2p -->
|
<!-- make the update xpi2p -->
|
||||||
<!-- this contains everything except i2ptunnel.config -->
|
<!-- this contains everything except i2ptunnel.config -->
|
||||||
@ -45,16 +334,6 @@
|
|||||||
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
||||||
<arg value="version=${release.number}-b${build.number}" />
|
<arg value="version=${release.number}-b${build.number}" />
|
||||||
</exec>
|
</exec>
|
||||||
<!--<exec executable="pack200" failonerror="true">
|
|
||||||
<arg value="-r" />
|
|
||||||
<arg value="plugin/lib/i2pfirefox.jar" />
|
|
||||||
<arg value="src/build/i2pfirefox.jar" />
|
|
||||||
</exec>
|
|
||||||
<exec executable="pack200" failonerror="true">
|
|
||||||
<arg value="-r" />
|
|
||||||
<arg value="plugin/eepsite/webapps/firefox.war" />
|
|
||||||
<arg value="src/build/firefox.war.jar" />
|
|
||||||
</exec>-->
|
|
||||||
<input message="Enter su3 signing key password:" addproperty="release.password.su3" />
|
<input message="Enter su3 signing key password:" addproperty="release.password.su3" />
|
||||||
<fail message="You must enter a password." >
|
<fail message="You must enter a password." >
|
||||||
<condition>
|
<condition>
|
||||||
@ -85,6 +364,23 @@
|
|||||||
|
|
||||||
<target name="distclean" depends="clean" />
|
<target name="distclean" depends="clean" />
|
||||||
|
|
||||||
|
<target name="clangFmt">
|
||||||
|
<exec executable="clang-format">
|
||||||
|
<arg value="-i"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PBrowser.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PChromium.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefox.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java"/>
|
||||||
|
<arg value="src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="clean" >
|
<target name="clean" >
|
||||||
<ant dir="src" target="clean" />
|
<ant dir="src" target="clean" />
|
||||||
<defaultexcludes remove="**/*~"/>
|
<defaultexcludes remove="**/*~"/>
|
||||||
@ -92,8 +388,13 @@
|
|||||||
<fileset dir="." includes="*/*.~ **/*.*~ */**/*.*~ *.*~" />
|
<fileset dir="." includes="*/*.~ **/*.*~ */**/*.*~ *.*~" />
|
||||||
</delete>
|
</delete>
|
||||||
<delete dir="i2p.firefox.base.profile" />
|
<delete dir="i2p.firefox.base.profile" />
|
||||||
|
<delete dir="i2p.firefox.usability.profile" />
|
||||||
<delete dir="i2p.firefox.profile" />
|
<delete dir="i2p.firefox.profile" />
|
||||||
<delete dir="src/i2p.firefox.profile.zip" />
|
<delete dir="src/i2p.firefox.profile.zip" />
|
||||||
|
<delete dir="i2p.chromium.base.profile" />
|
||||||
|
<delete dir="i2p.chromium.usability.profile" />
|
||||||
|
<delete dir="i2p.chromium.profile" />
|
||||||
|
<delete dir="src/i2p.chromium.profile.zip" />
|
||||||
<delete file="plugin/i2ptunnel.config" />
|
<delete file="plugin/i2ptunnel.config" />
|
||||||
<delete file="plugin/plugin.config" />
|
<delete file="plugin/plugin.config" />
|
||||||
<delete file="plugin/i2pfirefox.config" />
|
<delete file="plugin/i2pfirefox.config" />
|
||||||
@ -114,5 +415,38 @@
|
|||||||
<delete file="plugin.zip" />
|
<delete file="plugin.zip" />
|
||||||
<delete dir="plugin/eepsite/docroot/torrents/" />
|
<delete dir="plugin/eepsite/docroot/torrents/" />
|
||||||
</target>
|
</target>
|
||||||
|
<target name="jpackage" depends="jar">
|
||||||
|
<delete dir="i2pbrowser" />
|
||||||
|
<exec executable="jpackage" failonerror="true">
|
||||||
|
<arg value="--type"/> <arg value="app-image"/>
|
||||||
|
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||||
|
<arg value="--app-version"/> <arg value="${release_number}"/>
|
||||||
|
<arg value="--input"/> <arg value="src/build"/>
|
||||||
|
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||||
|
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||||
|
</exec>
|
||||||
|
<exec executable="rm" failonerror="true">
|
||||||
|
<arg value="-rf" />
|
||||||
|
<arg value="i2pbrowser.zip" />
|
||||||
|
</exec>
|
||||||
|
<exec executable="zip" failonerror="true">
|
||||||
|
<arg value="-r"/>
|
||||||
|
<arg value="i2pbrowser.zip"/>
|
||||||
|
<arg value="i2pbrowser"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
<target name="debian" depends="jar">
|
||||||
|
<exec executable="bash" failonerror="true">
|
||||||
|
<arg value="--verbose"/>
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="./debian.sh"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
<target name="fedora" depends="jar">
|
||||||
|
<exec executable="bash" failonerror="true">
|
||||||
|
<arg value="--verbose"/>
|
||||||
|
<arg value="-c"/>
|
||||||
|
<arg value="./fedora.sh"/>
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
6
config.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
export GITHUB_USER=eyedeekay
|
||||||
|
export GITHUB_REPO=i2p.plugins.firefox
|
||||||
|
export GITHUB_NAME="wait up to 5 seconds for the headless firefox to die(sounds creepy when I say it like that)"
|
||||||
|
export GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
||||||
|
export GITHUB_TAG=0.0.34
|
16
debian.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
. ./config.sh
|
||||||
|
jpackage --verbose \
|
||||||
|
--type deb \
|
||||||
|
--linux-deb-maintainer hankhill19580@gmail.com \
|
||||||
|
--linux-menu-group "Network;WebBrowser;P2P" \
|
||||||
|
--linux-app-category "Network" \
|
||||||
|
--linux-package-deps "firefox|chromium|brave|firefox-esr|librewolf|icecat" \
|
||||||
|
--linux-shortcut \
|
||||||
|
--license-file LICENSE.md \
|
||||||
|
--name i2pbrowser \
|
||||||
|
--app-version "$GITHUB_TAG" \
|
||||||
|
--input src/build \
|
||||||
|
--main-jar i2pfirefox.jar \
|
||||||
|
--main-class net.i2p.i2pfirefox.I2PBrowser
|
28
fedora-docker.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
. ./config.sh
|
||||||
|
|
||||||
|
cat <<EOF > /etc/yum.repos.d/adoptium.repo
|
||||||
|
[Adoptium]
|
||||||
|
name=Adoptium
|
||||||
|
baseurl=https://packages.adoptium.net/artifactory/rpm/${DISTRIBUTION_NAME:-$(. /etc/os-release; echo $ID)}/\$releasever/\$basearch
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
|
||||||
|
EOF
|
||||||
|
yum -y update
|
||||||
|
yum -y install temurin-18-jdk
|
||||||
|
|
||||||
|
jpackage --verbose \
|
||||||
|
--type rpm \
|
||||||
|
--linux-menu-group "Network;WebBrowser;P2P" \
|
||||||
|
--linux-app-category "Network" \
|
||||||
|
--linux-package-deps "firefox|chromium|brave|firefox-esr|librewolf|icecat" \
|
||||||
|
--linux-shortcut \
|
||||||
|
--license-file LICENSE.md \
|
||||||
|
--name i2pbrowser \
|
||||||
|
--app-version "$GITHUB_TAG" \
|
||||||
|
--input src/build \
|
||||||
|
--main-jar i2pfirefox.jar \
|
||||||
|
--main-class net.i2p.i2pfirefox.I2PBrowser
|
||||||
|
ls *.rpm
|
7
fedora.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
. ./config.sh
|
||||||
|
docker build -t eyedeekay/i2p.plugins.firefox .
|
||||||
|
docker rm -f i2pbrowser-fedora
|
||||||
|
docker run --name i2pbrowser-fedora eyedeekay/i2p.plugins.firefox
|
||||||
|
docker cp i2pbrowser-fedora:/src/i2p.plugins.firefox/i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm .
|
3
i2pbrowser-private.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private
|
@ -1,3 +1,3 @@
|
|||||||
:; java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $?
|
||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser
|
3
i2pchromium-private.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private
|
3
i2pchromium-usability-private.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private -usability; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private -usability
|
3
i2pchromium-usability.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -usability; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -usability
|
3
i2pchromium.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium
|
3
i2pfirefox-private-usability.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private -usability; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private -usability
|
3
i2pfirefox-private.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private
|
3
i2pfirefox-usability.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -usability; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -usability
|
3
i2pfirefox.cmd
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
|
||||||
|
@ECHO OFF
|
||||||
|
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
0
i2plogo.png
Normal file → Executable file
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
463
index.html
Normal file → Executable file
@ -7,6 +7,7 @@
|
|||||||
<meta name="description" content="i2p.plugins.firefox" />
|
<meta name="description" content="i2p.plugins.firefox" />
|
||||||
<meta name="keywords" content="main" />
|
<meta name="keywords" content="main" />
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="navbar">
|
<div id="navbar">
|
||||||
@ -16,6 +17,11 @@
|
|||||||
<div id="shownav">
|
<div id="shownav">
|
||||||
<div id="hidenav">
|
<div id="hidenav">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="..">
|
||||||
|
Up one level ^
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="index.html">
|
<a href="index.html">
|
||||||
index
|
index
|
||||||
@ -26,11 +32,91 @@
|
|||||||
CHANGES
|
CHANGES
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="EXAMPLES.html">
|
||||||
|
EXAMPLES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PBrowser.html">
|
||||||
|
I2PBrowser
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PChromium.html">
|
||||||
|
I2PChromium
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PChromiumProfileBuilder.html">
|
||||||
|
I2PChromiumProfileBuilder
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PChromiumProfileChecker.html">
|
||||||
|
I2PChromiumProfileChecker
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PChromiumProfileUnpacker.html">
|
||||||
|
I2PChromiumProfileUnpacker
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PCommonBrowser.html">
|
||||||
|
I2PCommonBrowser
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PFirefox.html">
|
||||||
|
I2PFirefox
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PFirefoxProfileBuilder.html">
|
||||||
|
I2PFirefoxProfileBuilder
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PFirefoxProfileChecker.html">
|
||||||
|
I2PFirefoxProfileChecker
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PFirefoxProfileUnpacker.html">
|
||||||
|
I2PFirefoxProfileUnpacker
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="I2PGenericUnsafeBrowser.html">
|
||||||
|
I2PGenericUnsafeBrowser
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="LICENSE.html">
|
<a href="LICENSE.html">
|
||||||
LICENSE
|
LICENSE
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="PACKAGES.html">
|
||||||
|
PACKAGES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="RELEASES.html">
|
||||||
|
RELEASES
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="TODO.html">
|
||||||
|
TODO
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="USAGE.html">
|
||||||
|
USAGE
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
<a href="#hidenav">
|
<a href="#hidenav">
|
||||||
@ -39,16 +125,121 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<a id="returnhome" href="/">
|
||||||
|
/
|
||||||
|
</a>
|
||||||
<h1>
|
<h1>
|
||||||
|
<a href="#i2p-plugins-firefox" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
i2p.plugins.firefox
|
i2p.plugins.firefox
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
A port of the batch scripts from i2p.firefox to Java.
|
A port of the batch scripts from i2p.firefox to Java.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
Status:
|
||||||
|
</strong>
|
||||||
|
This package is maintained. It cannot solve all your problems. Fingerprinting
|
||||||
|
is a reality in modern browsers. Exploits are too. This software attempts to provide a
|
||||||
|
best-possible baseline of privacy first, security a close second for browsing the web that
|
||||||
|
exists within I2P. Do not expect it to withstand attacks from very powerful adversaries
|
||||||
|
who can spend time and money to screw up your life. Do expect it to resist advertisers,
|
||||||
|
trackers, and jerks using off-the-shelf techniques and exploits. It is fundamentally unable
|
||||||
|
to make changes which un-trust your browser vendor, your OS, your package manager or any
|
||||||
|
other system that exists underneath it.
|
||||||
|
<strong>
|
||||||
|
It is just a profile manager.
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
All packages require a running I2P router.
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>
|
||||||
|
<a href="https://i2pgit.org/i2p-hackers/i2p.firefox" rel="nofollow">
|
||||||
|
Windows users should see the Easy-Install Bundle
|
||||||
|
</a>
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
<h2>
|
<h2>
|
||||||
|
<a href="#getting-started" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
Getting started
|
Getting started
|
||||||
</h2>
|
</h2>
|
||||||
<h3>
|
<h3>
|
||||||
|
<a href="#using-a-binary" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Using a Binary
|
||||||
|
</h3>
|
||||||
|
<div>
|
||||||
|
<pre>
|
||||||
|
mkdir ~/tmp-i2pfirefox && cd ~/tmp-i2pfirefox
|
||||||
|
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.16/i2pfirefox.zip
|
||||||
|
unzip i2pfirefox.zip
|
||||||
|
./i2pfirefox.cmd
|
||||||
|
|
||||||
|
#or if you want to use a Chromium
|
||||||
|
|
||||||
|
./i2pchromium.cmd
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
<h3>
|
||||||
|
<a href="#build-dependencies" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Build Dependencies
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
You will need
|
||||||
|
<code>
|
||||||
|
ant
|
||||||
|
</code>
|
||||||
|
,
|
||||||
|
<code>
|
||||||
|
java
|
||||||
|
</code>
|
||||||
|
and for building the Chromium profile, a Go application
|
||||||
|
called
|
||||||
|
<code>
|
||||||
|
crx3
|
||||||
|
</code>
|
||||||
|
which is used to interact with the Chrome app store. I've been using Java 17
|
||||||
|
on Debian mostly, on Debian and Ubuntu, install the dependencies with:
|
||||||
|
</p>
|
||||||
|
<div>
|
||||||
|
<pre>sudo apt-get install openjdk-17* ant golang-go
|
||||||
|
go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
For Fedora, use Yum, for Arch use pacman or something else but make sure to tell everyone
|
||||||
|
about it. Once you have that installed, when building, make sure to add
|
||||||
|
<code>
|
||||||
|
$GOPATH/bin/
|
||||||
|
</code>
|
||||||
|
to your
|
||||||
|
<code>
|
||||||
|
$PATH
|
||||||
|
</code>
|
||||||
|
.
|
||||||
|
</p>
|
||||||
|
<div>
|
||||||
|
<pre>export PATH=$PATH:$HOME/go/bin
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
Will almost always work.
|
||||||
|
</p>
|
||||||
|
<h3>
|
||||||
|
<a href="#building" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
Building
|
Building
|
||||||
</h3>
|
</h3>
|
||||||
<p>
|
<p>
|
||||||
@ -56,42 +247,278 @@
|
|||||||
To generate that, you can either generate the full plugin, which will not work but
|
To generate that, you can either generate the full plugin, which will not work but
|
||||||
produces the jar as a by-product, or you can:
|
produces the jar as a by-product, or you can:
|
||||||
</p>
|
</p>
|
||||||
<pre><code>
|
<div>
|
||||||
cd src
|
<pre>
|
||||||
ant
|
ant jar
|
||||||
cd ..
|
</pre>
|
||||||
</code></pre>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
To build just the jar. You’ll know it worked if you can:
|
To build just the jar. You'll know it worked if you can:
|
||||||
</p>
|
</p>
|
||||||
<pre><code>
|
<div>
|
||||||
|
<pre>
|
||||||
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
||||||
</code></pre>
|
</pre>
|
||||||
|
</div>
|
||||||
<p>
|
<p>
|
||||||
and a new Firefox instance comes up with a fresh profile. This is just a default Firefox
|
and a new Firefox instance comes up with a fresh profile, ready-to-use for I2P browsing.
|
||||||
profile, configuring it for I2P requires you to put a pre-configured Firefox profile into
|
|
||||||
the
|
|
||||||
<code>
|
|
||||||
i2p.firefox.base.profile
|
|
||||||
</code>
|
|
||||||
directory or otherwise supply a static, pre-configured
|
|
||||||
profile.
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The cooler thing you can do with it is add it to an I2P distribution and somewhere in it,
|
The cooler thing you can do with it is add it to an I2P distribution and somewhere in it,
|
||||||
add a UI element that triggers something along the lines of this:
|
add a UI element that triggers something along the lines of this:
|
||||||
</p>
|
</p>
|
||||||
<pre><code>
|
<div>
|
||||||
|
<pre>
|
||||||
|
// Firefox Example
|
||||||
if (i2pIsRunning()) {
|
if (i2pIsRunning()) {
|
||||||
logger.warning("I2P is already running");
|
logger.warning("I2P is already running");
|
||||||
System.out.println("I2PFirefox");
|
System.out.println("I2PFirefox");
|
||||||
I2PFirefox i2pFirefox = new I2PFirefox();
|
I2PFirefox i2pFirefox = new I2PFirefox();
|
||||||
i2pFirefox.launch();
|
i2pFirefox.launch();
|
||||||
}
|
}
|
||||||
</code></pre>
|
</pre>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<pre>
|
||||||
|
// Chromium Example
|
||||||
|
if (i2pIsRunning()) {
|
||||||
|
logger.warning("I2P is already running");
|
||||||
|
System.out.println("I2PChromium");
|
||||||
|
I2PChromium i2pChromium = new I2PChromium();
|
||||||
|
i2pChromium.launch();
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<pre>
|
||||||
|
// Auto-Select Example, chooses Firefox first, then Chromium
|
||||||
|
if (i2pIsRunning()) {
|
||||||
|
logger.warning("I2P is already running");
|
||||||
|
System.out.println("I2PBrowser");
|
||||||
|
I2PBrowser i2pBrowser = new I2PBrowser();
|
||||||
|
/*
|
||||||
|
* toggle chromium to the top of the order by doing:
|
||||||
|
I2PBrowser.chromiumFirst = true;
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
i2pBrowser.launch(privateBrowsing);
|
||||||
|
}
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
<p>
|
<p>
|
||||||
to add a browser management tool to it.
|
to add a browser management tool to it.
|
||||||
</p>
|
</p>
|
||||||
|
<h3>
|
||||||
|
<a href="#browser-discovery-methods" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Browser Discovery Methods
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
This tool looks for browsers on the host system, creates a workspace to use for I2P
|
||||||
|
purposes, and launches the browser inside of that workspace. The details of the
|
||||||
|
workspace vary from browser to browser but roughly corresponds to a browser profile.
|
||||||
|
In order to be successful this tool uses 3 main types of browser discovery methods,
|
||||||
|
in this order:
|
||||||
|
</p>
|
||||||
|
<ol>
|
||||||
|
<li>
|
||||||
|
"Local" discovery, where a browser is in a subdirectory of the directory where you
|
||||||
|
ran the launcher. This will only happen if the user unpacked a portable browser into
|
||||||
|
the same directory where they ran the launcher.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
"Path-Based" discovery, where it scans common browser installation directories
|
||||||
|
until it finds one which it can use. On Unix, it simply scans the directories on the
|
||||||
|
<code>
|
||||||
|
PATH
|
||||||
|
</code>
|
||||||
|
for a browser it knows about. On Windows, default paths to browser install
|
||||||
|
directories are hard-coded and included in the binary. This is what usually happens.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
"System-Based" discovery, where it defers to the host system to make a choice
|
||||||
|
about the browser and counts on browser vendors to honor the system proxy environment
|
||||||
|
variables. This is a catch-all solution which works with most browsers, but does
|
||||||
|
not apply any customizations.
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
<p>
|
||||||
|
There is a little subtlety here though.
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
The path to Edgium on Windows will
|
||||||
|
<strong>
|
||||||
|
always
|
||||||
|
</strong>
|
||||||
|
resolve during path-based discovery,
|
||||||
|
resulting in a positive test for Chromium when launching the browser in auto-select
|
||||||
|
mode. So Windows will never reach stage 3 unless expressly forced to. If Firefox or
|
||||||
|
a variant is installed, it will be chosen before Edgium unless directed otherwise.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Linux is unaware of a Tor Browser path because Tor Browser is rarely, if ever,
|
||||||
|
installed on-path. What is on path is virtually always a wrapper for Tor Browser
|
||||||
|
which is installed either as the main user or it's own user. Linux will only use
|
||||||
|
Tor Browser if it's discovered in "Local" mode.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
The above is also true of OSX for now but doesn't have to remain so.
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
I really only test Phase 3 with Dillo and Edgium.
|
||||||
|
<strong>
|
||||||
|
YMMV.
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h3>
|
||||||
|
<a href="#usability-vs-strict" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Usability vs Strict
|
||||||
|
</h3>
|
||||||
|
<p>
|
||||||
|
This is basically a profile-management tool geared toward minimizing the
|
||||||
|
differences between browser users which are passively discernible while
|
||||||
|
they are browsing I2P. It assumes that they are part of a highly fragmented
|
||||||
|
browsing environment where they are already unique, and therefore consolidation
|
||||||
|
on configuration is a goal. However, this goal sometimes also conflicts with
|
||||||
|
usability. To allow users a safe set of choices, we offer "Coarse" configuration
|
||||||
|
in 2 modes. We recommend that you do not deviate from these configurations if
|
||||||
|
you have browser application fingerprinting as a concern.
|
||||||
|
</p>
|
||||||
|
<h4>
|
||||||
|
<a href="#usability-mode" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Usability Mode
|
||||||
|
</h4>
|
||||||
|
<p>
|
||||||
|
TODO: description
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Pros: Allows a restricted subset of Javascript
|
||||||
|
Pros: Less likely to try and reach the clearnet
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Cons: Looks very different from Tor Browser
|
||||||
|
Cons: Plugin updates can create temporary uniqueness
|
||||||
|
</p>
|
||||||
|
<h5>
|
||||||
|
<a href="#usability-extension-set" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Usability Extension Set
|
||||||
|
</h5>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<strong>
|
||||||
|
I2P In Private Browsing
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<strong>
|
||||||
|
uMatrix
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<strong>
|
||||||
|
jsRestrictor
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<strong>
|
||||||
|
LocalCDN
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<strong>
|
||||||
|
Onion in Container Tabs
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<strong>
|
||||||
|
HTTPS EveryWhere
|
||||||
|
</strong>
|
||||||
|
in some configurations
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h5>
|
||||||
|
<a href="#usability-user-js-characteristics" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Usability user.js characteristics
|
||||||
|
</h5>
|
||||||
|
<p>
|
||||||
|
TODO: Summarize differences
|
||||||
|
</p>
|
||||||
|
<h4>
|
||||||
|
<a href="#strict-mode" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Strict Mode
|
||||||
|
</h4>
|
||||||
|
<p>
|
||||||
|
TODO: description
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Pros: Does not allow Javascript by default
|
||||||
|
Pros: Looks a lot like Tor Browser especially if you're using Tor Browser
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Cons: More work to use
|
||||||
|
Cons: Temporary uniqueness can be created by enabling Javascript for specific sites
|
||||||
|
Cons: More likely to try and reach the clearnet
|
||||||
|
</p>
|
||||||
|
<h5>
|
||||||
|
<a href="#strict-extension-set" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Strict Extension Set
|
||||||
|
</h5>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<strong>
|
||||||
|
NoScript
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<strong>
|
||||||
|
I2P In Private Browsing
|
||||||
|
</strong>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<strong>
|
||||||
|
HTTPS EveryWhere
|
||||||
|
</strong>
|
||||||
|
in some configurations
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<h5>
|
||||||
|
<a href="#strict-user-js-characteristics" rel="nofollow">
|
||||||
|
<span></span>
|
||||||
|
</a>
|
||||||
|
Strict user.js characteristics
|
||||||
|
</h5>
|
||||||
|
<p>
|
||||||
|
TODO: Summarize differences
|
||||||
|
</p>
|
||||||
|
<div id="sourcecode">
|
||||||
|
<span id="sourcehead">
|
||||||
|
<strong>
|
||||||
|
Get the source code:
|
||||||
|
</strong>
|
||||||
|
</span>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||||
|
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="#show">
|
<a href="#show">
|
||||||
Show license
|
Show license
|
||||||
|
10
javadoc.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
ant distclean
|
||||||
|
rm -rf docs
|
||||||
|
|
||||||
|
~/.cargo/bin/lojidoc src/java/net/i2p/i2pfirefox/ -s -l > report.log
|
||||||
|
~/.cargo/bin/lojidoc -c src/java/net/i2p/i2pfirefox/ -s
|
||||||
|
mv -v generated/net/i2p/i2pfirefox/*.md .
|
||||||
|
rm -rf generated
|
||||||
|
git add ./*.md
|
11
osx-dmg.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
. ./config.sh
|
||||||
|
jpackage \
|
||||||
|
--verbose \
|
||||||
|
--type dmg \
|
||||||
|
--license-file LICENSE.md \
|
||||||
|
--name i2pbrowser \
|
||||||
|
--app-version "$GITHUB_TAG" \
|
||||||
|
--input src/build \
|
||||||
|
--main-jar i2pfirefox.jar \
|
||||||
|
--main-class net.i2p.i2pfirefox.I2PBrowser
|
61
packages.sh
Executable file
@ -0,0 +1,61 @@
|
|||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
. ./config.sh
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pfirefox.jar"
|
||||||
|
echo "Downloaded jar"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pfirefox.zip"
|
||||||
|
echo "Downloaded freestanding zip"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser.zip"
|
||||||
|
echo "Downloaded jpackage zip"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser_${GITHUB_TAG}_.deb"
|
||||||
|
echo "Downloaded debian package"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser-${GITHUB_TAG}_.rpm"
|
||||||
|
echo "Downloaded fedora package"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser.msi"
|
||||||
|
echo "Downloaded MSI package"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser.exe"
|
||||||
|
echo "Downloaded EXE package"
|
||||||
|
github-release download --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--name "i2pbrowser-portable.zip"
|
||||||
|
echo "Downloaded Windows ZIP package"
|
||||||
|
|
||||||
|
echo "Sums for release ${GITHUB_TAG}" | tee RELEASES.md
|
||||||
|
echo "==============================" | tee -a RELEASES.md
|
||||||
|
echo "" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pfirefox.jar)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.jar)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pfirefox.zip)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.zip)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser.zip)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.zip)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser_${GITHUB_TAG}_.deb)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser_${GITHUB_TAG}_amd64.deb)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser-${GITHUB_TAG}_.rpm)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm.rpm)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser.msi)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.msi)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser.exe)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.exe)" | tee -a RELEASES.md
|
||||||
|
echo "- [$(sha256sum i2pbrowser-portable.zip)](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser-portable.zip)" | tee -a RELEASES.md
|
||||||
|
echo "" | tee -a RELEASES.md
|
||||||
|
|
||||||
|
git add RELEASES.md
|
||||||
|
edgar
|
||||||
|
git commit -am "Update releases page"
|
||||||
|
git push --all
|
64
release.sh
@ -1,30 +1,68 @@
|
|||||||
#! /usr/bin/env sh
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
GITHUB_USER=eyedeekay
|
. ./config.sh
|
||||||
GITHUB_REPO=i2p.plugins.firefox
|
ant distclean clangFmt
|
||||||
GITHUB_NAME="Initial Release"
|
./javadoc.sh
|
||||||
GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
NUMLINE=`grep release.number build.xml | head -n 1`
|
||||||
GITHUB_TAG=0.0.5
|
sed -i "s|$NUMLINE| <property name=\"release.number\" value=\"$GITHUB_TAG\" />|g" build.xml
|
||||||
ant distclean
|
edgar && git push --all
|
||||||
cd src && \
|
ant jar freeZip jpackage debian fedora
|
||||||
ant
|
|
||||||
github-release release --user "${GITHUB_USER}" \
|
github-release release --user "${GITHUB_USER}" \
|
||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--name "${GITHUB_NAME}" \
|
--name "${GITHUB_NAME}" \
|
||||||
--description "${GITHUB_DESCRIPTION}" \
|
--description "${GITHUB_DESCRIPTION}" \
|
||||||
--tag "${GITHUB_TAG}"
|
--tag "${GITHUB_TAG}"; true
|
||||||
sleep 2s
|
sleep 2s
|
||||||
|
github-release edit --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--name "${GITHUB_NAME}" \
|
||||||
|
--description "${GITHUB_DESCRIPTION}" \
|
||||||
|
--tag "${GITHUB_TAG}"; true
|
||||||
|
echo "Relase ${GITHUB_TAG} setup"
|
||||||
|
jarsum=$(sha256sum "src/build/i2pfirefox.jar")
|
||||||
github-release upload --user "${GITHUB_USER}" \
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--tag "${GITHUB_TAG}" \
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a .jar. Useful as a library or for advanced users. ${jarsum}" \
|
||||||
--name "i2pfirefox.jar" \
|
--name "i2pfirefox.jar" \
|
||||||
--file "build/i2pfirefox.jar" \
|
--file "src/build/i2pfirefox.jar" \
|
||||||
--replace
|
--replace
|
||||||
cd ../
|
echo "Uploaded jar"
|
||||||
zip -r i2pfirefox.zip src/build/i2pfirefox.jar i2pbrowser.cmd LICENSE.md README.md
|
zipsum=$(sha256sum "i2pfirefox.zip")
|
||||||
github-release upload --user "${GITHUB_USER}" \
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
--repo "${GITHUB_REPO}" \
|
--repo "${GITHUB_REPO}" \
|
||||||
--tag "${GITHUB_TAG}" \
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a .jar and a set of semi-univeral launcher scripts. ${zipsum}" \
|
||||||
--name "i2pfirefox.zip" \
|
--name "i2pfirefox.zip" \
|
||||||
--file "i2pfirefox.zip" \
|
--file "i2pfirefox.zip" \
|
||||||
--replace
|
--replace
|
||||||
|
echo "Uploaded freestanding zip"
|
||||||
|
jvmsum=$(sha256sum "i2pbrowser.zip")
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a Jpackage, does not require a JVM. ${jvmsum}" \
|
||||||
|
--name "i2pbrowser.zip" \
|
||||||
|
--file "i2pbrowser.zip" \
|
||||||
|
--replace
|
||||||
|
echo "Uploaded jpackage zip"
|
||||||
|
debsum=$(sha256sum "i2pbrowser_${GITHUB_TAG}_amd64.deb")
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a Jpackage inside of a Debian package. ${debsum}" \
|
||||||
|
--name "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
|
||||||
|
--file "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
|
||||||
|
--replace
|
||||||
|
echo "Uploaded debian package"
|
||||||
|
rpmsum=$(sha256sum i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm)
|
||||||
|
github-release upload --user "${GITHUB_USER}" \
|
||||||
|
--repo "${GITHUB_REPO}" \
|
||||||
|
--tag "${GITHUB_TAG}" \
|
||||||
|
--label "I2P Browser launcher as a Jpackage inside of a Fedora package. ${rpmsum}" \
|
||||||
|
--name "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
|
||||||
|
--file "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
|
||||||
|
--replace
|
||||||
|
echo "Uploaded fedora package"
|
||||||
|
git pull github --tags
|
||||||
|
git push --all
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#Build Number for ANT. Do not edit!
|
#Build Number for ANT. Do not edit!
|
||||||
#Sun Aug 07 20:17:38 EDT 2022
|
#Tue Aug 30 12:27:51 EDT 2022
|
||||||
build.number=85
|
build.number=90
|
||||||
|
15
showhider.css
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* edgar showhider CSS file */
|
||||||
|
#show {display:none; }
|
||||||
|
#hide {display:block; }
|
||||||
|
#show:target {display: block; }
|
||||||
|
#hide:target {display: none; }
|
||||||
|
|
||||||
|
#shownav {display:none; }
|
||||||
|
#hidenav {display:block; }
|
||||||
|
#shownav:target {display: block; }
|
||||||
|
#hidenav:target {display: none; }
|
||||||
|
|
||||||
|
#donate {display:none; }
|
||||||
|
#hidedonate {display:block; }
|
||||||
|
#donate:target {display: block; }
|
||||||
|
#hidedonate:target {display: none; }
|
@ -43,6 +43,9 @@
|
|||||||
<target name="jar" depends="builddep, compile">
|
<target name="jar" depends="builddep, compile">
|
||||||
<jar destfile="build/i2pfirefox.jar" basedir="./build/obj" includes="**/*.class" >
|
<jar destfile="build/i2pfirefox.jar" basedir="./build/obj" includes="**/*.class" >
|
||||||
<fileset file="i2p.firefox.base.profile.zip" />
|
<fileset file="i2p.firefox.base.profile.zip" />
|
||||||
|
<fileset file="i2p.firefox.usability.profile.zip" />
|
||||||
|
<fileset file="i2p.chromium.base.profile.zip" />
|
||||||
|
<fileset file="i2p.chromium.usability.profile.zip" />
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
BIN
src/i2p.chromium.base.profile.zip
Normal file
5
src/i2p.chromium.base.profile/LICENSE.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
This browser profile is entirely composed of the work of Free Software developers.
|
||||||
|
The licenses for the sub-projects may be found in the extensions directories themselves.
|
||||||
|
|
||||||
|
i2p.chromium.usabilty.profile/extensions/i2pchrome.js/
|
||||||
|
i2p.chromium.usabilty.profile/extensions/noscript.js/
|
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2019 idk
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
@ -0,0 +1,64 @@
|
|||||||
|
default: zip
|
||||||
|
|
||||||
|
install: uninstall
|
||||||
|
mkdir -p /usr/share/webext/i2pchrome.js@eyedeekay.github.io \
|
||||||
|
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/
|
||||||
|
cp -rv options /usr/share/webext/i2pchrome.js@eyedeekay.github.io/options
|
||||||
|
cp -rv icons /usr/share/webext/i2pchrome.js@eyedeekay.github.io/icons
|
||||||
|
cp -rv _locales /usr/share/webext/i2pchrome.js@eyedeekay.github.io/_locales
|
||||||
|
cp background.js /usr/share/webext/i2pchrome.js@eyedeekay.github.io
|
||||||
|
cp proxy.js /usr/share/webext/i2pchrome.js@eyedeekay.github.io
|
||||||
|
cp info.js /usr/share/webext/i2pchrome.js@eyedeekay.github.io
|
||||||
|
cp content.js /usr/share/webext/i2pchrome.js@eyedeekay.github.io
|
||||||
|
cp info.css /usr/share/webext/i2pchrome.js@eyedeekay.github.io
|
||||||
|
cp window.html /usr/share/webext/i2pchrome.js@eyedeekay.github.io
|
||||||
|
cp manifest.json /usr/share/webext/i2pchrome.js@eyedeekay.github.io/
|
||||||
|
cp README.md /usr/share/webext/i2pchrome.js@eyedeekay.github.io
|
||||||
|
cp LICENSE /usr/share/webext/i2pchrome.js@eyedeekay.github.io
|
||||||
|
ln -sf /usr/share/webext/i2pchrome.js@eyedeekay.github.io \
|
||||||
|
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/i2pchrome.js@eyedeekay.github.io
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -rf /usr/share/webext/i2pchrome.js@eyedeekay.github.io \
|
||||||
|
/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/i2pchrome.js@eyedeekay.github.io
|
||||||
|
|
||||||
|
clobber:
|
||||||
|
rm -f ../i2pchrome.js.zip ../i2p_proxy*.xpi
|
||||||
|
|
||||||
|
VERSION=1.29
|
||||||
|
|
||||||
|
xpi:
|
||||||
|
mv ~/Downloads/i2p_proxy-$(VERSION)-an+fx.xpi ../i2pchrome.js@eyedeekay.github.io.xpi
|
||||||
|
|
||||||
|
cp:
|
||||||
|
cp ../i2pchrome.js@eyedeekay.github.io.xpi ./i2pchrome.js@eyedeekay.github.io.xpi
|
||||||
|
|
||||||
|
version:
|
||||||
|
sed -i 's|$(shell grep "\"version\": " manifest.json)| \"version\": \"$(VERSION)\",|g' manifest.json
|
||||||
|
|
||||||
|
zip: version
|
||||||
|
zip --exclude="./i2pchrome.js@eyedeekay.github.io.xpi" \
|
||||||
|
--exclude="i2pchrome.js.png" -r -FS ../i2pchrome.js.zip *
|
||||||
|
|
||||||
|
profile-install:
|
||||||
|
cp ./i2pchrome.js@eyedeekay.github.io.xpi $(HOME)/.mozilla/firefox/firefox.profile.i2p/firefox.profile.i2p/extensions
|
||||||
|
cp ./i2pchrome.js@eyedeekay.github.io.xpi $(HOME)/.mozilla/firefox/.firefox.profile.i2p.default/extensions
|
||||||
|
|
||||||
|
to-profile:
|
||||||
|
cp ./i2pchrome.js@eyedeekay.github.io.xpi /usr/local/lib/firefox.profile.i2p/firefox.profile.i2p/extensions/
|
||||||
|
|
||||||
|
pi: profile-install
|
||||||
|
|
||||||
|
DESC="A simple plugin for configuring an i2p browser."
|
||||||
|
|
||||||
|
release:
|
||||||
|
gothub release -u eyedeekay -r i2pchrome.js -t $(VERSION) -n $(VERSION) -d $(DESC)
|
||||||
|
|
||||||
|
upload:
|
||||||
|
gothub upload -u eyedeekay -r i2pchrome.js -t $(VERSION) -n "i2pchrome.js@eyedeekay.github.io.xpi" -f "../i2pchrome.js@eyedeekay.github.io.xpi"
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
#cleancss -O1 all -O2 all --format beautify home.css -o .home.css && mv .home.css home.css
|
||||||
|
#cleancss -O1 all -O2 all --format beautify info.css -o .info.css && mv .info.css info.css
|
||||||
|
find . -path ./node_modules -prune -o -name '*.js' -exec prettier --write {} \;
|
||||||
|
find . -path ./node_modules -prune -o -name '*.json' -exec prettier --write {} \;
|
@ -0,0 +1,2 @@
|
|||||||
|
I2P Plugin For Chromium Persona
|
||||||
|
===============================
|
@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"extensionName": {
|
||||||
|
"message": "i2pchrome.js",
|
||||||
|
"description": "Name of the extension."
|
||||||
|
},
|
||||||
|
"extensionDescription": {
|
||||||
|
"message": "Set up a browser to use the i2p http proxy automatically",
|
||||||
|
"description": "Description of the extension."
|
||||||
|
},
|
||||||
|
"titlePreface": {
|
||||||
|
"message": "I2P Browser - ",
|
||||||
|
"description": "Preface for the browser titlebar"
|
||||||
|
},
|
||||||
|
"titlePrefacePrivate": {
|
||||||
|
"message": "I2P Browser (Private) - ",
|
||||||
|
"description": "Preface for the browser titlebar"
|
||||||
|
},
|
||||||
|
"resetMessage": {
|
||||||
|
"message": "Reset Tunnel",
|
||||||
|
"description": "Message for the Reset Tunnel button"
|
||||||
|
},
|
||||||
|
"infoTitle": {
|
||||||
|
"message": "I2P Help",
|
||||||
|
"description": "Title for the help menu"
|
||||||
|
},
|
||||||
|
"infoMessage": {
|
||||||
|
"message": "You are now free to browse the eepWeb! Your browser is now configured to browse anonymously on the I2P network. As you browse, your traffic will be routed through other network nodes to disguise it's origin, both from the server and from the nodes themselves.",
|
||||||
|
"description": "Help Message"
|
||||||
|
},
|
||||||
|
"helpMessage": {
|
||||||
|
"message": "Get additional help",
|
||||||
|
"description": "Help Message"
|
||||||
|
},
|
||||||
|
"newsMessage": {
|
||||||
|
"message": "Visit the I2P Blog to learn the latest about i2p.",
|
||||||
|
"description": "Help Message"
|
||||||
|
},
|
||||||
|
"forumMessage": {
|
||||||
|
"message": "Visit the I2P Forum to learn more or ask for assistance",
|
||||||
|
"description": "Help Message"
|
||||||
|
},
|
||||||
|
"clearData": {
|
||||||
|
"message": "Clear all browsing data",
|
||||||
|
"description": "Help Message"
|
||||||
|
},
|
||||||
|
"hostText": {
|
||||||
|
"message": "Host: ",
|
||||||
|
"description": "Host for the HTTP or SOCKS5 Proxy"
|
||||||
|
},
|
||||||
|
"portText": {
|
||||||
|
"message": "Port: ",
|
||||||
|
"description": "Port for the HTTP or SOCKS5 Proxy"
|
||||||
|
},
|
||||||
|
"controlHelpText": {
|
||||||
|
"message": "These options will be inert if used with the default i2p HTTP or SOCKS proxy.",
|
||||||
|
"description": "Help for configuring the options for the Reset Tunnel button"
|
||||||
|
},
|
||||||
|
"controlHostText": {
|
||||||
|
"message": "Control Host: ",
|
||||||
|
"description": "Host for the Reset Tunnel button"
|
||||||
|
},
|
||||||
|
"controlPortText": {
|
||||||
|
"message": "Control Port: ",
|
||||||
|
"description": "Port for the Reset Tunnel button"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
[{"description":"treehash per file","signed_content":{"payload":"eyJjb250ZW50X2hhc2hlcyI6W3siYmxvY2tfc2l6ZSI6NDA5NiwiZGlnZXN0Ijoic2hhMjU2IiwiZmlsZXMiOlt7InBhdGgiOiJMSUNFTlNFIiwicm9vdF9oYXNoIjoiTTVJb3kyR21yTExkazZaTllkNVJTMGpNM1VvNjlmWnVkT01OY1FfMkNodyJ9LHsicGF0aCI6Ik1ha2VmaWxlIiwicm9vdF9oYXNoIjoiR1MxYW40UEluMGZ2dnFCOUZCOXpqV1JCYjNDdWtQeFdDV09WOE1jU0N3ayJ9LHsicGF0aCI6IlJFQURNRS5tZCIsInJvb3RfaGFzaCI6ImdWd3B6TlpscVlGVm9LZVpWdTVKLXVaelhySTdQYlFtR2tic3NlR1cwNW8ifSx7InBhdGgiOiJfbG9jYWxlcy9lbi9tZXNzYWdlcy5qc29uIiwicm9vdF9oYXNoIjoiaDEzM2pHZXRsWGk2Z3RCbVNfYU5uUHY5cHhsTWhlaE51VHBtcEkyWVJoVSJ9LHsicGF0aCI6ImJhY2tncm91bmQuanMiLCJyb290X2hhc2giOiI0cWxYaDFOZGlGYWNpNGh0RGw3dGtKTkJsdWFfd0F5YTBib1JDMnh6QlA0In0seyJwYXRoIjoiYnJvd3Nlci1wb2x5ZmlsbC5qcyIsInJvb3RfaGFzaCI6IjFoWlVuR2JXeldjNmVBYmo3cUI2WGFPVGxBdk1BMU9aeDJoUDA0dF9zYVEifSx7InBhdGgiOiJjb250ZW50LmpzIiwicm9vdF9oYXNoIjoiYXgxZnpWUThpc05DWXh5UW5sWkRNbmNPRENnSWZQRFZRTzkzSkhYMmoyZyJ9LHsicGF0aCI6ImRldmVsb3Blci5wbmciLCJyb290X2hhc2giOiJ2ZGZwWTVwNDJNb2oybXFCeURLZFlvamFVSzhLYnFBZUkzNVJhTzQxbjNZIn0seyJwYXRoIjoiZGlyZWN0b3J5LnBuZyIsInJvb3RfaGFzaCI6Imk1eVhuTlJlWnBRT0w2VUxKUTNITjhxWkRxWEt4dUROWHBuUGt0Y0xBX1kifSx7InBhdGgiOiJkb25lLnBuZyIsInJvb3RfaGFzaCI6IjllTXctbmp5ZVpKYlU4a2xkZVlwQjdrTzFDMFloOXo1RHlfVFM4N00yd0kifSx7InBhdGgiOiJleHRlbnNpb25zLnBuZyIsInJvb3RfaGFzaCI6InVtZ2RfSFp6Rm1aRVZVT3NSWkFKOHg5ZG02QkU3UUlRQ002aFhNNXdMbWMifSx7InBhdGgiOiJmaW5pc2hlZC5wbmciLCJyb290X2hhc2giOiJuQ3Z6VFFQR0xpRHJCeUhuU001X0hzVVF3ak81VDAtM0phaXJ3VlF0Skd3In0seyJwYXRoIjoiaG9tZS5jc3MiLCJyb290X2hhc2giOiJDaUFNRVlfSFJKRHhsSHdiZmhFLTdDaGtrX1JzSFpnRVQzaHM3QWVZRVpJIn0seyJwYXRoIjoiaG9tZS5odG1sIiwicm9vdF9oYXNoIjoick1iOC1WZG4tWjhjVVlMeUNNbl9fZksta3NPVFJpR205bGk1WnJ1SHBBWSJ9LHsicGF0aCI6ImkycHNldHByb3h5LmpzLnBuZyIsInJvb3RfaGFzaCI6InlJamN1YmlBYTVTMWpsVGJhZGJkZV9qLXlIQ0FqREpCaDhUdHdWQUN5U1EifSx7InBhdGgiOiJpY29ucy90b29waWUucG5nIiwicm9vdF9oYXNoIjoiM3haaVZISTNtUU9jMFJHU1lnWFIxUXV3Z0xlNlZSVURsZWFvNVZwN0lfQSJ9LHsicGF0aCI6ImluZm8uY3NzIiwicm9vdF9oYXNoIjoialBsQVduNUs4Ulc3RnhvaGR4cF9HVndnN1ZBTWdvWXExZml0X0tRbzlSSSJ9LHsicGF0aCI6ImluZm8uanMiLCJyb290X2hhc2giOiJpSWtfZUdyTXdYdEFKTUpHVnpLUlhaRTg4ZWVHTjBrMGtEYTRuMTVLb2s4In0seyJwYXRoIjoibWFuYWdlci5wbmciLCJyb290X2hhc2giOiJyMC1kQ1BrVkpueHkyNDFwdzQwS3lIOWJEenM1TjhEdnY0NHJxQVhJSE9rIn0seyJwYXRoIjoibWFuaWZlc3QuanNvbiIsInJvb3RfaGFzaCI6ImVkcUt1WFNNTUFqS0dVNFlQV1dyUFFPYzBMRDhwVHRoRGZUVWtEVXdOZXcifSx7InBhdGgiOiJvcHRpb25zL29wdGlvbnMuY3NzIiwicm9vdF9oYXNoIjoiNmZQYlZCMTNoN2Q3NkNvY3VDNU5KN3ZqOE9HQ0I2ZVk0cEVETHJ6U3FKYyJ9LHsicGF0aCI6Im9wdGlvbnMvb3B0aW9ucy5odG1sIiwicm9vdF9oYXNoIjoiNkRFQnhvVWFSb2RETVBSODFnMGp3QTVNTTBmVXhuNmpXeXZzaHYzZ2dqUSJ9LHsicGF0aCI6Im9wdGlvbnMvb3B0aW9ucy5qcyIsInJvb3RfaGFzaCI6IjJSLXIyVlVFRzhRalZMdHFzVHlKbXBEM28zRXdGVjdFLUlyVk9qSmJWVE0ifSx7InBhdGgiOiJwZW9wbGUucG5nIiwicm9vdF9oYXNoIjoia0ZnbjdiTWU0WVJUSkViRXFvSTJZWEd5UnNLZlBpVUpwUXV6Y3l0YXhtYyJ9LHsicGF0aCI6InBsdWdpbnMucG5nIiwicm9vdF9oYXNoIjoiYkpnZkF1VUF1QnprVV9MRXdQVHZVYlF5dGYwQm4xSTV1TmFsOEtyU0hjcyJ9LHsicGF0aCI6InByaXZhY3kuanMiLCJyb290X2hhc2giOiJMTWZOdmRTWXMtVjh0YWpPbVplTDhjZ3hKUldKVmdnaVhqX3o0XzZkVzRzIn0seyJwYXRoIjoicHJveHkuanMiLCJyb290X2hhc2giOiJyVnhjQ2VvcDk1dmhLX3oxZGk5MHplOUd3M0steWgxdF8xMlViZTVsNG5nIn0seyJwYXRoIjoic2hhZGVzLnBuZyIsInJvb3RfaGFzaCI6IjhrQ1Z2QktuaWtMZVZtQnVMa01WNEZzNlQtWklieGoxMFZJS3lHRUtVNDAifSx7InBhdGgiOiJzeW5jLnBuZyIsInJvb3RfaGFzaCI6IjV6d1ZVWkdYMnlsRGN5d1hjdzJpaUR0N28yX1F2ajNPaHIwWG5QWEl5RnMifSx7InBhdGgiOiJ1bnBhY2tlZC5wbmciLCJyb290X2hhc2giOiJLUUZ3YXFIdU8yT01HZTZNNXd5ZG1xcnJwbkNEdW9yUFU3aVc3QVhRMmdJIn0seyJwYXRoIjoid2luZG93Lmh0bWwiLCJyb290X2hhc2giOiJBVU5OU1BqLVJabXYtRS13NnhXcXl5LS1iRVhsMkM5OEl4VDJEdWVGZDZRIn1dLCJmb3JtYXQiOiJ0cmVlaGFzaCIsImhhc2hfYmxvY2tfc2l6ZSI6NDA5Nn1dLCJpdGVtX2lkIjoiaWtkamNtb21nbGRmY2lvY25wZWtmbmRrbGtmZ2dscGUiLCJpdGVtX3ZlcnNpb24iOiIxLjI5IiwicHJvdG9jb2xfdmVyc2lvbiI6MX0","signatures":[{"header":{"kid":"publisher"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"MnagjSc3N-RaPvxHuzypCDuVFz-JbwCW1LKcg4HqS5M-T9KkEH5NoNa9ipUdWBkwrSF0sFAU-jHUSHQ6Ht75SH3wROOS0chVQf7dYw7KjZMHLd-LAAIBygApS8DNrWE931b5XM-vh_F3VYlbvziiL1roW7OAZgoIUy_MPQ07Ynbfl0K-UyVXeUJY9qzYGCRdKFG_wsvajIGM1Y60aw66MKs2zKLarwLCRqKAN_A31nzYBm-QjoUPSK4jnzAm5Lv24oVfsWJNXmJ8nPQO3pRCF8AT0rA8ue2cEqA3zSLOkHQupmmLSmjBKBPMmPtFJCgeKvzPajo32JuAaCkWokhiwQ"},{"header":{"kid":"webstore"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"P02kDKuZmltr_huxTnsbIzMzERDvbdwsce3ZbEJjWbE7n01TXoQr7Z62LtqZMcau2m78A-eydRwMQ6TnpvFxNoHIDFOA9d4mGdfhSwTSR4-rGJa3cSo_66VznYzMAVzfssW4_o1iTksdOtbebQCQ5TS7f2bNe1AQMx7lTDoiskVaFNeY2adByacpQp2yXWHAx9K_98hG1J-njNvokairY0ZdaJcR76pN2v9W-D8A6Wvaxy4WeAXZyFoJy_eFNjP4yG-6nZ1OtxirQ7kiDx1fKtvcDx2hEBC5noaMXygVZszAsvrrMgkhlsb1bBdptAJRPUAXXXjp6Ijk2U6z8S-V0g"}]}}]
|
@ -0,0 +1,54 @@
|
|||||||
|
function platformCallback(platformInfo) {
|
||||||
|
if (platformInfo.PlatformOs == "android") {
|
||||||
|
console.log("android detected");
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
console.log("desktop detected");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function isDroid() {
|
||||||
|
return chrome.runtime.getPlatformInfo(platformCallback);
|
||||||
|
}
|
||||||
|
|
||||||
|
function isLocalHost(url) {
|
||||||
|
//var x = new RegExp("/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/")
|
||||||
|
var r = false; ///(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^::1$)|(^[fF][cCdD])/.test(url)
|
||||||
|
if (r == false) {
|
||||||
|
r = url.indexOf("://localhost:") != -1;
|
||||||
|
}
|
||||||
|
if (r == false) {
|
||||||
|
r = url.indexOf("://127.0.0.1:") != -1;
|
||||||
|
}
|
||||||
|
console.log("localhost:", r, "on url", url);
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
|
function isRouterHost(url) {
|
||||||
|
var controlPort = 7657; //getControlPort();
|
||||||
|
var r = false;
|
||||||
|
if (r == false) {
|
||||||
|
r = url.indexOf("://localhost:" + controlPort) != -1;
|
||||||
|
}
|
||||||
|
if (r == false) {
|
||||||
|
r = url.indexOf("://127.0.0.1:" + controlPort) != -1;
|
||||||
|
}
|
||||||
|
console.log("routerhost:", r, "on url", url);
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
|
chrome.webRequest.onBeforeRequest.addListener(
|
||||||
|
function (details) {
|
||||||
|
let localhost = isLocalHost(details.url);
|
||||||
|
let routerhost = isRouterHost(details.url);
|
||||||
|
console.log("localhost: ", localhost, "routerhost: ", routerhost);
|
||||||
|
if (localhost) {
|
||||||
|
if (!routerhost) {
|
||||||
|
return { cancel: true };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ urls: ["<all_urls>"] },
|
||||||
|
["blocking"]
|
||||||
|
);
|
@ -0,0 +1,19 @@
|
|||||||
|
/*var infoTitle = document.getElementById("text-section-header");
|
||||||
|
infoTitle.textContent = chrome.i18n.getMessage("infoTitle");
|
||||||
|
*/
|
||||||
|
/*var infoMessage = document.getElementById("text-section-helptext");
|
||||||
|
infoMessage.textContent = chrome.i18n.getMessage("infoMessage");
|
||||||
|
|
||||||
|
var helpMessage = document.getElementById("window-create-forum-panel");
|
||||||
|
helpMessage.textContent = chrome.i18n.getMessage("forumMessage");*/
|
||||||
|
/*
|
||||||
|
var helpMessage = document.getElementById('window-create-help-panel');
|
||||||
|
helpMessage.textContent = chrome.i18n.getMessage("helpMessage")
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
var newsMessage = document.getElementById("window-create-news-panel");
|
||||||
|
newsMessage.textContent = chrome.i18n.getMessage("newsMessage");
|
||||||
|
|
||||||
|
var clearData = document.getElementByID("clear-chrome-data");
|
||||||
|
cleardata.textContent = chrome.i18n.getMessage("clearData");
|
||||||
|
*/
|
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 41 KiB |
BIN
src/i2p.chromium.base.profile/extensions/i2pchrome.js/done.png
Normal file
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 42 KiB |
290
src/i2p.chromium.base.profile/extensions/i2pchrome.js/home.css
Normal file
@ -0,0 +1,290 @@
|
|||||||
|
* {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0
|
||||||
|
}
|
||||||
|
html {
|
||||||
|
height: 100%
|
||||||
|
}
|
||||||
|
a,
|
||||||
|
button {
|
||||||
|
color: #3b6bbf;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 700;
|
||||||
|
word-wrap: break-word;
|
||||||
|
outline: 0
|
||||||
|
}
|
||||||
|
.applicationDesc {
|
||||||
|
color: #81888f;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 700;
|
||||||
|
word-wrap: break-word;
|
||||||
|
outline: 0
|
||||||
|
}
|
||||||
|
.applicationDesc:hover,
|
||||||
|
a:hover,
|
||||||
|
button:hover {
|
||||||
|
color: #495057;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 700;
|
||||||
|
word-wrap: break-word;
|
||||||
|
outline: 0
|
||||||
|
}
|
||||||
|
button {
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #3b6bbf;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 700;
|
||||||
|
word-wrap: break-word;
|
||||||
|
outline: 0
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
font-family: "Droid Sans","Noto Sans",Ubuntu,"Segoe UI","Lucida Grande",Verdana,Helvetica,sans-serif;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0;
|
||||||
|
color: #495057;
|
||||||
|
background-attachment: fixed;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 700;
|
||||||
|
word-wrap: break-word;
|
||||||
|
outline: 0
|
||||||
|
}
|
||||||
|
.background {
|
||||||
|
background-color: #f8f8ff;
|
||||||
|
height: 100%
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
line-height: 32px;
|
||||||
|
font-size: 17px;
|
||||||
|
font-family: "Droid Sans","Noto Sans",Ubuntu,"Segoe UI","Lucida Grande",Verdana,Helvetica,sans-serif;
|
||||||
|
text-decoration: none;
|
||||||
|
color: #495057;
|
||||||
|
font-weight: 700;
|
||||||
|
word-wrap: break-word;
|
||||||
|
outline: 0
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
min-height: 3rem;
|
||||||
|
padding: 1rem;
|
||||||
|
margin: 1.5rem;
|
||||||
|
display: inline-block;
|
||||||
|
border: 1px solid #d9d9d6;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc;
|
||||||
|
background: #f8f8ff;
|
||||||
|
min-width: 95%
|
||||||
|
}
|
||||||
|
.application-info,
|
||||||
|
.extended-info {
|
||||||
|
min-height: 3rem;
|
||||||
|
padding: 1rem;
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
display: inline-block;
|
||||||
|
border: 1px solid #d9d9d6;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc;
|
||||||
|
background: #f8f8ff;
|
||||||
|
min-width: 95%
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
margin-right: auto;
|
||||||
|
font-family: "Droid Sans","Noto Sans",Ubuntu,"Segoe UI","Lucida Grande",Verdana,Helvetica,sans-serif;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 32px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #41465f;
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
border-radius: 2px 2px 0 0;
|
||||||
|
width: 90%;
|
||||||
|
padding-left: 5%
|
||||||
|
}
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
margin-right: auto;
|
||||||
|
font-family: "Droid Sans","Noto Sans",Ubuntu,"Segoe UI","Lucida Grande",Verdana,Helvetica,sans-serif;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 25px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #41465f;
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
border-radius: 2px 2px 0 0;
|
||||||
|
width: 90%;
|
||||||
|
padding-left: 5%
|
||||||
|
}
|
||||||
|
h4 {
|
||||||
|
margin-right: auto;
|
||||||
|
font-family: "Droid Sans","Noto Sans",Ubuntu,"Segoe UI","Lucida Grande",Verdana,Helvetica,sans-serif;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 20px!important;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #41465f;
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
border-radius: 2px 2px 0 0;
|
||||||
|
width: 90%;
|
||||||
|
padding-left: 5%
|
||||||
|
}
|
||||||
|
.showhider {
|
||||||
|
margin-right: auto;
|
||||||
|
font-family: "Droid Sans","Noto Sans",Ubuntu,"Segoe UI","Lucida Grande",Verdana,Helvetica,sans-serif;
|
||||||
|
text-transform: uppercase;
|
||||||
|
background: 0 0!important;
|
||||||
|
border: none;
|
||||||
|
padding: 0!important;
|
||||||
|
width: 90%;
|
||||||
|
color: #3b6bbf;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 700;
|
||||||
|
word-wrap: break-word;
|
||||||
|
outline: 0;
|
||||||
|
text-align: left
|
||||||
|
}
|
||||||
|
#links .showhider {
|
||||||
|
font-size: 25px
|
||||||
|
}
|
||||||
|
.section-header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
margin-bottom: 80px
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
margin-left: 2rem;
|
||||||
|
list-style: none
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
min-height: 3rem;
|
||||||
|
padding: .5rem;
|
||||||
|
background: #dee2e6;
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
width: 64%;
|
||||||
|
min-width: 64%;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc;
|
||||||
|
margin: .5rem .5rem .5rem 32%
|
||||||
|
}
|
||||||
|
#readyness {
|
||||||
|
min-height: 5rem;
|
||||||
|
padding: .5rem;
|
||||||
|
margin: .5rem;
|
||||||
|
width: 42%;
|
||||||
|
min-width: 42%;
|
||||||
|
background: #dee2e6;
|
||||||
|
text-align: center!important;
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc
|
||||||
|
}
|
||||||
|
#onboarding {
|
||||||
|
min-height: 5rem;
|
||||||
|
padding: .5rem;
|
||||||
|
margin: .5rem;
|
||||||
|
width: 42%;
|
||||||
|
min-width: 42%;
|
||||||
|
font-size: 2rem;
|
||||||
|
background: #a48fe1;
|
||||||
|
text-align: center!important;
|
||||||
|
border: 1px solid #a48fe1;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc
|
||||||
|
}
|
||||||
|
#i2pbrowser-description {
|
||||||
|
width: 50%;
|
||||||
|
min-width: 50%;
|
||||||
|
min-height: 5rem;
|
||||||
|
padding: .5rem;
|
||||||
|
display: inline;
|
||||||
|
background: #dee2e6;
|
||||||
|
float: right;
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc
|
||||||
|
}
|
||||||
|
#applicationExplain,
|
||||||
|
#controlExplain,
|
||||||
|
#linksExplain {
|
||||||
|
min-height: 5rem;
|
||||||
|
padding: .5rem;
|
||||||
|
margin: .5rem;
|
||||||
|
width: 30%;
|
||||||
|
min-width: 30%;
|
||||||
|
background: #dee2e6;
|
||||||
|
float: left;
|
||||||
|
text-align: center!important;
|
||||||
|
border: 1px solid #dee2e6;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc
|
||||||
|
}
|
||||||
|
#proxyReady {
|
||||||
|
min-height: 3rem;
|
||||||
|
padding: .5rem;
|
||||||
|
margin: .2rem;
|
||||||
|
width: 38%;
|
||||||
|
min-width: 38%;
|
||||||
|
display: inline;
|
||||||
|
background: #d9d9d6;
|
||||||
|
float: right;
|
||||||
|
text-align: center!important;
|
||||||
|
border: 1px solid #d9d9d6;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc
|
||||||
|
}
|
||||||
|
#proxyUnready {
|
||||||
|
min-height: 3rem;
|
||||||
|
padding: .5rem;
|
||||||
|
margin: .2rem;
|
||||||
|
width: 38%;
|
||||||
|
min-width: 38%;
|
||||||
|
display: inline;
|
||||||
|
float: right;
|
||||||
|
text-align: center!important;
|
||||||
|
border: 1px solid #ffc56d;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: #ffc56d;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc
|
||||||
|
}
|
||||||
|
#consoleOn {
|
||||||
|
min-height: 3rem;
|
||||||
|
padding: .5rem;
|
||||||
|
margin: .2rem;
|
||||||
|
width: 38%;
|
||||||
|
min-width: 38%;
|
||||||
|
display: inline;
|
||||||
|
float: left;
|
||||||
|
text-align: center!important;
|
||||||
|
border: 1px solid #f7e59a;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: #f7e59a;
|
||||||
|
box-shadow: inset 0 0 0 1px #fff,0 0 1px #ccc
|
||||||
|
}
|
||||||
|
.onboardingContent {
|
||||||
|
font-size: .8rem!important;
|
||||||
|
text-align: left;
|
||||||
|
display: none
|
||||||
|
}
|
||||||
|
#proxy-check {
|
||||||
|
visibility: hidden
|
||||||
|
}
|
||||||
|
#info-content {
|
||||||
|
display: none
|
||||||
|
}
|
||||||
|
.consoleOn:hover #proxy-check,
|
||||||
|
.proxyReady:hover #proxy-check {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
max-width: 100%
|
||||||
|
}
|
||||||
|
img.readyness {
|
||||||
|
height: 100%;
|
||||||
|
width: auto
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 399px) {
|
||||||
|
.application-info {
|
||||||
|
display: none
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<link rel="stylesheet" href="home.css"/>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<!--<div>-->
|
||||||
|
<script src="home.js" type="text/javascript"></script>
|
||||||
|
<script src="content.js" type="text/javascript"></script>
|
||||||
|
<div class='background'>
|
||||||
|
<div class='content'>
|
||||||
|
<div class='section-header'>
|
||||||
|
<h1 id="text-section-header">I2P Browsing</h1>
|
||||||
|
</div>
|
||||||
|
<div id="i2pbrowser-version"></div>
|
||||||
|
<div id="i2pbrowser-description">
|
||||||
|
<p id="description">I2P in Private Browsing is a webextension to secure and enhance your I2P use in the browser.</p>
|
||||||
|
<p id="beta">This is an experimental product.</p>
|
||||||
|
</div>
|
||||||
|
<div id="readyness">
|
||||||
|
<div id="consoleOn" class="hideIfI2PConsoleOff">
|
||||||
|
<img class="readyness" src="http://proxy.i2p/themes/console/images/local_up.png" alt="Proxy is not ready."/>
|
||||||
|
<span id="proxy-check">Proxy is ready.</span>
|
||||||
|
</div>
|
||||||
|
<!--<div id="proxyUnready" class="hideIfI2PProxyOn">The proxy is not ready yet.</div>-->
|
||||||
|
<div id="proxyReady" class="hideIfI2PProxyOff">
|
||||||
|
<img class="readyness" src="http://proxy.i2p/themes/console/images/local_up.png" alt="Proxy is not ready."/>
|
||||||
|
<span id="proxy-check">Proxy is ready.</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="onboarding" class="hideIfI2PConsoleOff">
|
||||||
|
<h3 id="onboardingTitle">New to I2P? Learn more here.</h3>
|
||||||
|
<h4 id="onboardingZero"><button id="onboardingButtonZero" class="showhider" onclick="flipVisibility('onboardingContentZero')">Protect your Privacy</button></h4>
|
||||||
|
<p id="onboardingContentZero" class="onboardingContent">I2P Browser allows you to surf the internet using the private and secure I2P network. When using it, you are protected against tracking, surveillance, and censorship as a first-class participant in the I2P network. I2P Browser isolates cookies and deletes your browser history after your session. These modifications ensure your privacy and security are protected in the browser.</p>
|
||||||
|
<h4 id="onboardingOne"><button id="onboardingButtonOne" class="showhider" onclick="flipVisibility('onboardingContentOne')">Configure your Experience</button></h4>
|
||||||
|
<p id="onboardingContentOne" class="onboardingContent">We also provide you with additional settings for bumping up your browser security. Our Security Settings allow you to block elements that could be used to attack your computer. Click below to see what the different options do. Note: By default, NoScript and HTTPS Everywhere are not included on the toolbar, but you can customize your toolbar to add them. With all the security and privacy features provided by I2P, your experience while browsing the internet may be a little different. Things may be a bit slower, and depending on your security level, some elements may not work or load. You may also be asked to prove you are a human and not a robot.</p>
|
||||||
|
<h4 id="onboardingTwo"><button id="onboardingButtonTwo" class="showhider" onclick="flipVisibility('onboardingContentTwo')">Share Files</button></h4>
|
||||||
|
<p id="onboardingContentTwo" class="onboardingContent">I2P is capable of using peer-to-peer applications like BitTorrent, protecting your identity when you share files. Our anonymous bittorrent client is available in the browser.</p>
|
||||||
|
<h4 id="onboardingThree"><button id="onboardingButtonThree" class="showhider" onclick="flipVisibility('onboardingContentThree')">Hidden e-mail</button></h4>
|
||||||
|
<p id="onboardingContentThree" class="onboardingContent">There is also an anonymous e-mail service available inside of I2P, which is accessible from our browser via the menu directly below.</p>
|
||||||
|
<h4 id="onboardingFour"><button id="onboardingButtonFour" class="showhider" onclick="flipVisibility('onboardingContentFour')">Experience Tips</button></h4>
|
||||||
|
<p id="onboardingContentFour" class="onboardingContent">With all the security and privacy features provided by I2P, your experience while browsing the internet may be a little different. Things may be a bit slower, and depending on your security level, some elements may not work or load. You may also be asked to prove you are a human and not a robot.</p>
|
||||||
|
</div>
|
||||||
|
<!--<p class="hideIfI2POn">&aboutI2p.warn_not_running; <a href="about:i2p">&aboutI2p.refresh_text;</a> &aboutI2p.reccommend_not_running;</p>-->
|
||||||
|
<div class="application-info">
|
||||||
|
<p class="hideIfI2PConsoleOff">
|
||||||
|
<h3 id="applicationHeader">Applications</h3>
|
||||||
|
<p id="applicationExplain">These applications use I2P to provide them with security and privacy.</p>
|
||||||
|
<ul>
|
||||||
|
<li class="application">
|
||||||
|
<a id="window-visit-i2ptunnel" class="applicationName" target="_blank" href="http://127.0.0.1:7657/i2ptunnel">Hidden Services Manager </a>
|
||||||
|
<span id="i2ptunnel" class="applicationDesc">I2P has a web-based interface for configuring .i2p services like web sites, to set up your own web sites, go here:</span>
|
||||||
|
</li>
|
||||||
|
<li class="application">
|
||||||
|
<a id="window-visit-susimail" class="applicationName" target="_blank" href="http://127.0.0.1:7657/susimail">E-Mail </a>
|
||||||
|
<span id="susimail" class="applicationDesc">I2P also bundles a webmail client which can be used to access in-I2P e-mail. To use it, go here:</span>
|
||||||
|
</li>
|
||||||
|
<li class="application">
|
||||||
|
<a id="window-visit-snark" class="applicationName" target="_blank" href="http://127.0.0.1:7657/i2psnark">BitTorrent </a>
|
||||||
|
<span id="snark" class="applicationDesc">I2P is capable of anonymous Peer-to-Peer file sharing, to use the built-in bittorrent client go here:</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="extended-info">
|
||||||
|
<h3 id="links"><button id="fliplinks" class="showhider">Links</button></h3>
|
||||||
|
<div id="info-content">
|
||||||
|
<p id="linksExplain">If you want to get more information about I2P, you can visit these links.</p>
|
||||||
|
<p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a id="window-visit-webpage" href="https://eyedeekay.github.io/I2P-Confiuration-for-Chromium/">Homepage: </a>
|
||||||
|
<span id="webpage" class="applicationDesc">More information is available here.</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a id="window-visit-sources" href="https://github.com/eyedeekay/I2P-Confiuration-for-Chromium">Source Code: </a>
|
||||||
|
<span id="sources" class="applicationDesc">Browse the source or contribute here.</span>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a id="window-visit-releases" href="https://github.com/eyedeekay/I2P-Confiuration-for-Chromium">Releases: </a>
|
||||||
|
<span id="releases" class="applicationDesc">Check for new releases here.</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--</div>-->
|
||||||
|
</body>
|
||||||
|
</html>
|
After Width: | Height: | Size: 357 KiB |
After Width: | Height: | Size: 54 KiB |
@ -0,0 +1,54 @@
|
|||||||
|
body,
|
||||||
|
html {
|
||||||
|
width: 50rem
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
margin: 10px
|
||||||
|
}
|
||||||
|
.panel {
|
||||||
|
margin: 5px
|
||||||
|
}
|
||||||
|
span.identity {
|
||||||
|
width: 100px;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 1em
|
||||||
|
}
|
||||||
|
figcaption {
|
||||||
|
display: inline
|
||||||
|
}
|
||||||
|
.section-header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
margin-bottom: 8px
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
font-size: 12px
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 25px
|
||||||
|
}
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
font-size: 18px
|
||||||
|
}
|
||||||
|
h4 {
|
||||||
|
font-size: 13px!important
|
||||||
|
}
|
||||||
|
#links .showhider {
|
||||||
|
font-size: 18px
|
||||||
|
}
|
||||||
|
#onboarding {
|
||||||
|
font-size: 2rem
|
||||||
|
}
|
||||||
|
img.readyness {
|
||||||
|
height: 2rem
|
||||||
|
}
|
||||||
|
#proxyUnready {
|
||||||
|
min-height: 2rem
|
||||||
|
}
|
||||||
|
#proxyReady {
|
||||||
|
min-height: 2rem
|
||||||
|
}
|
||||||
|
#consoleOn {
|
||||||
|
min-height: 2rem
|
||||||
|
}
|
123
src/i2p.chromium.base.profile/extensions/i2pchrome.js/info.js
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
document.addEventListener("click", (clickEvent) => {
|
||||||
|
if (clickEvent.target.id === "window-create-help-panel") {
|
||||||
|
let createData = {
|
||||||
|
type: "panel",
|
||||||
|
incognito: true,
|
||||||
|
};
|
||||||
|
let creating = chrome.tabs.create(createData);
|
||||||
|
creating.then(() => {
|
||||||
|
console.log("The help panel has been created");
|
||||||
|
});
|
||||||
|
} else if (clickEvent.target.id === "window-create-news-panel") {
|
||||||
|
let createData = {
|
||||||
|
type: "panel",
|
||||||
|
incognito: true,
|
||||||
|
};
|
||||||
|
let creating = chrome.tabs.create(createData);
|
||||||
|
creating.then(() => {
|
||||||
|
console.log("The news panel has been created");
|
||||||
|
});
|
||||||
|
} else if (clickEvent.target.id === "generate-fresh-tunnel") {
|
||||||
|
function refreshIdentity() {
|
||||||
|
console.log("Generating new identity");
|
||||||
|
const Http = new XMLHttpRequest();
|
||||||
|
const url = "http://" + controlHost + ":" + controlPort;
|
||||||
|
Http.open("GET", url);
|
||||||
|
Http.send();
|
||||||
|
Http.onreadystatechange = (event) => {
|
||||||
|
console.log(Http.responseText);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
refreshIdentity();
|
||||||
|
} else if (clickEvent.target.id === "window-preface-title") {
|
||||||
|
console.log("attempting to create homepage tab");
|
||||||
|
goHome();
|
||||||
|
} else if (clickEvent.target.id === "window-visit-homepage") {
|
||||||
|
console.log("attempting to create homepage tab");
|
||||||
|
goHome();
|
||||||
|
} else if (clickEvent.target.id === "window-visit-readme") {
|
||||||
|
console.log("attempting to create readme tab");
|
||||||
|
goIndex();
|
||||||
|
} else if (clickEvent.target.id === "window-visit-i2ptunnel") {
|
||||||
|
console.log("attempting to create i2ptunnel tab");
|
||||||
|
goTunnel();
|
||||||
|
} else if (clickEvent.target.id === "window-visit-susimail") {
|
||||||
|
console.log("attempting to create susimail tab");
|
||||||
|
goMail();
|
||||||
|
} else if (clickEvent.target.id === "window-visit-snark") {
|
||||||
|
console.log("attempting to create snark tab");
|
||||||
|
goSnark();
|
||||||
|
} else if (clickEvent.target.id === "clear-chrome-data") {
|
||||||
|
forgetBrowsingData();
|
||||||
|
} else if (clickEvent.target.id === "check-i2p-control") {
|
||||||
|
//echo("I2P Router Detected", "panel-section-i2pcontrol-check");
|
||||||
|
} else if (clickEvent.target.id === "enable-web-rtc") {
|
||||||
|
if (clickEvent.target.checked) {
|
||||||
|
chrome.runtime.sendMessage({ rtc: "enableWebRTC" });
|
||||||
|
} else {
|
||||||
|
chrome.runtime.sendMessage({ rtc: "disableWebRTC" });
|
||||||
|
}
|
||||||
|
checkPeerConnection();
|
||||||
|
return;
|
||||||
|
} else if (clickEvent.target.id === "disable-history") {
|
||||||
|
if (clickEvent.target.checked) {
|
||||||
|
chrome.runtime.sendMessage({ history: "disableHistory" });
|
||||||
|
} else {
|
||||||
|
chrome.runtime.sendMessage({ history: "enableHistory" });
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
clickEvent.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
|
function proxyReadiness() {
|
||||||
|
console.log(this.responseText);
|
||||||
|
}
|
||||||
|
|
||||||
|
control_host = "localhost";
|
||||||
|
control_port = "7657";
|
||||||
|
|
||||||
|
function onTabCreated() {
|
||||||
|
console.log("Tab Created");
|
||||||
|
}
|
||||||
|
|
||||||
|
function goIndex() {
|
||||||
|
let createData = {
|
||||||
|
url: "index.html",
|
||||||
|
};
|
||||||
|
console.log("visiting readme");
|
||||||
|
let creating = chrome.tabs.create(createData);
|
||||||
|
}
|
||||||
|
|
||||||
|
function goHome() {
|
||||||
|
let createData = {
|
||||||
|
url: "home.html",
|
||||||
|
};
|
||||||
|
console.log("visiting homepage");
|
||||||
|
let creating = chrome.tabs.create(createData);
|
||||||
|
}
|
||||||
|
|
||||||
|
function goTunnel() {
|
||||||
|
let createData = {
|
||||||
|
url: "http://" + control_host + ":" + control_port + "/i2ptunnel",
|
||||||
|
};
|
||||||
|
console.log("visiting i2ptunnel");
|
||||||
|
let creating = chrome.tabs.create(createData);
|
||||||
|
}
|
||||||
|
|
||||||
|
function goMail() {
|
||||||
|
let createData = {
|
||||||
|
url: "http://" + control_host + ":" + control_port + "/susimail",
|
||||||
|
};
|
||||||
|
console.log("visiting mail");
|
||||||
|
let creating = chrome.tabs.create(createData);
|
||||||
|
}
|
||||||
|
|
||||||
|
function goSnark() {
|
||||||
|
let createData = {
|
||||||
|
url: "http://" + control_host + ":" + control_port + "/i2psnark",
|
||||||
|
};
|
||||||
|
console.log("visiting snark");
|
||||||
|
let creating = chrome.tabs.create(createData);
|
||||||
|
}
|
After Width: | Height: | Size: 7.8 KiB |
@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"update_url": "https://clients2.google.com/service/update2/crx",
|
||||||
|
|
||||||
|
"permissions": [
|
||||||
|
"browsingData",
|
||||||
|
"notifications",
|
||||||
|
"proxy",
|
||||||
|
"privacy",
|
||||||
|
"storage",
|
||||||
|
"webRequest",
|
||||||
|
"webRequestBlocking",
|
||||||
|
"*://127.0.0.1/*",
|
||||||
|
"*://localhost/*",
|
||||||
|
"<all_urls>"
|
||||||
|
],
|
||||||
|
"manifest_version": 2,
|
||||||
|
"name": "__MSG_extensionName__",
|
||||||
|
"version": "1.29",
|
||||||
|
"description": "__MSG_extensionDescription__",
|
||||||
|
"homepage_url": "https://github.com/eyedeekay/I2P-Configuration-For-Chromium",
|
||||||
|
"icons": {
|
||||||
|
"48": "icons/toopie.png"
|
||||||
|
},
|
||||||
|
"browser_action": {
|
||||||
|
"browser_style": true,
|
||||||
|
"default_icon": "icons/toopie.png",
|
||||||
|
"default_title": "__MSG_extensionName__",
|
||||||
|
"default_popup": "window.html"
|
||||||
|
},
|
||||||
|
"options_ui": {
|
||||||
|
"page": "options/options.html"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"scripts": [
|
||||||
|
"browser-polyfill.js",
|
||||||
|
"background.js",
|
||||||
|
"proxy.js",
|
||||||
|
"info.js",
|
||||||
|
"privacy.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"default_locale": "en"
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
body {
|
||||||
|
width: 25em;
|
||||||
|
font-family: "Open Sans Light", sans-serif;
|
||||||
|
font-size: 0.9em;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
|
||||||
|
section.scheme-options {
|
||||||
|
padding: 0.5em 0;
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clear-button {
|
||||||
|
margin: 0 1.3em 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
section.scheme-options input,
|
||||||
|
section.scheme-options>select,
|
||||||
|
#clear-button {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
display: block;
|
||||||
|
padding: 0.2em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
label:hover {
|
||||||
|
background-color: #EAEFF2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 1.2em;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
width: 350px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin: 10px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel {
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span.identity {
|
||||||
|
width: 100px;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-options {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.identity-options {
|
||||||
|
display: none;
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<link rel="stylesheet" href="options.css"/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<section class="scheme-options">
|
||||||
|
<span class="title">Proxy Scheme:</span>
|
||||||
|
<select id="proxy_scheme">
|
||||||
|
<option value="http" selected="selected">HTTP</option>
|
||||||
|
<option value="socks5">SOCKS5</option>
|
||||||
|
</select>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="scheme-options proxy-options">
|
||||||
|
<div class="title" >Proxy Options</div>
|
||||||
|
|
||||||
|
<label id="portText">Host: </label>
|
||||||
|
<input type="text" data="host" id="host" value="127.0.0.1"/>
|
||||||
|
<br>
|
||||||
|
<label id="hostText">Port: </label>
|
||||||
|
<input type="text" data="port" id="port" value="4444"/>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section class="scheme-options identity-options">
|
||||||
|
<div class="panel">
|
||||||
|
<div id="identity-list">Identity list?</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="scheme-options control-options">
|
||||||
|
<div class="title" >Controller Options</div>
|
||||||
|
<p id="controlHelpText"> These options will be inert if used with the default i2p HTTP or SOCKS
|
||||||
|
proxy. </p>
|
||||||
|
<label id="controlPortText">Control Host: </label>
|
||||||
|
<input type="text" data="controlhost" id="controlhost" value="127.0.0.1"/>
|
||||||
|
<br>
|
||||||
|
<label id="controlHostText">Control Port: </label>
|
||||||
|
<input type="text" data="controlport" id="controlport" value="4444"/>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<input type="button" value="Save preferences" id="save-button"/>
|
||||||
|
|
||||||
|
<script src="options.js"></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
@ -0,0 +1,193 @@
|
|||||||
|
function isDroid() {
|
||||||
|
var gettingInfo = browser.runtime.getPlatformInfo();
|
||||||
|
gettingInfo.then((got) => {
|
||||||
|
if (got.os == "android") {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function SetHostText() {
|
||||||
|
var hostid = document.getElementById("hostText");
|
||||||
|
hostid.textContent = chrome.i18n.getMessage("hostText");
|
||||||
|
}
|
||||||
|
|
||||||
|
function SetPortText() {
|
||||||
|
var portid = document.getElementById("portText");
|
||||||
|
portid.textContent = chrome.i18n.getMessage("portText");
|
||||||
|
}
|
||||||
|
|
||||||
|
function SetControlHostText() {
|
||||||
|
var controlhostid = document.getElementById("controlHostText");
|
||||||
|
controlhostid.textContent = chrome.i18n.getMessage("controlHostText");
|
||||||
|
}
|
||||||
|
|
||||||
|
function setupProxy() {
|
||||||
|
var Host = getHost();
|
||||||
|
var Port = getPort();
|
||||||
|
var Scheme = getScheme();
|
||||||
|
var config = {
|
||||||
|
mode: "fixed_servers",
|
||||||
|
rules: {
|
||||||
|
singleProxy: {
|
||||||
|
scheme: Scheme,
|
||||||
|
host: Host,
|
||||||
|
port: parseInt(Port),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
chrome.proxy.settings.set(
|
||||||
|
{
|
||||||
|
value: config,
|
||||||
|
scope: "regular",
|
||||||
|
},
|
||||||
|
function () {}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function SetControlPortText() {
|
||||||
|
var controlportid = document.getElementById("controlPortText");
|
||||||
|
controlportid.textContent = chrome.i18n.getMessage("controlPortText");
|
||||||
|
}
|
||||||
|
|
||||||
|
function SetControlHelpText() {
|
||||||
|
var portid = document.getElementById("controlHelpText");
|
||||||
|
portid.textContent = chrome.i18n.getMessage("controlHelpText");
|
||||||
|
}
|
||||||
|
|
||||||
|
function getScheme() {
|
||||||
|
const proxy_scheme = document.querySelector("#proxy_scheme");
|
||||||
|
console.log("Got i2p proxy scheme:", proxy_scheme.value);
|
||||||
|
if (proxy_scheme == "HTTP") {
|
||||||
|
return "http";
|
||||||
|
}
|
||||||
|
if (proxy_scheme == "SOCKS") {
|
||||||
|
return "socks";
|
||||||
|
}
|
||||||
|
return proxy_scheme.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getHost() {
|
||||||
|
proxy_host = document.getElementById("host").value;
|
||||||
|
console.log("Got i2p proxy host:", proxy_host);
|
||||||
|
if (proxy_host == undefined) {
|
||||||
|
return "127.0.0.1";
|
||||||
|
}
|
||||||
|
return proxy_host;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getPort() {
|
||||||
|
proxy_port = document.getElementById("port").value;
|
||||||
|
console.log("Got i2p proxy port:", proxy_port);
|
||||||
|
if (proxy_port == undefined) {
|
||||||
|
return "4444";
|
||||||
|
}
|
||||||
|
return proxy_port;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getControlHost() {
|
||||||
|
control_host = document.getElementById("controlhost").value;
|
||||||
|
console.log("Got i2p control host:", control_host);
|
||||||
|
if (control_host == undefined) {
|
||||||
|
return "127.0.0.1";
|
||||||
|
}
|
||||||
|
return control_host;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getControlPort() {
|
||||||
|
control_port = document.getElementById("controlport").value;
|
||||||
|
console.log("Got i2p control port:", control_port);
|
||||||
|
if (control_port == undefined) {
|
||||||
|
return "4444";
|
||||||
|
}
|
||||||
|
return control_port;
|
||||||
|
}
|
||||||
|
|
||||||
|
function checkStoredSettings(storedSettings) {
|
||||||
|
let defaultSettings = {};
|
||||||
|
if (!storedSettings.proxy_scheme) {
|
||||||
|
defaultSettings["proxy_scheme"] = "http";
|
||||||
|
}
|
||||||
|
if (!storedSettings.proxy_host) {
|
||||||
|
defaultSettings["proxy_host"] = "127.0.0.1";
|
||||||
|
}
|
||||||
|
if (!storedSettings.proxy_port) {
|
||||||
|
defaultSettings["proxy_port"] = 4444;
|
||||||
|
}
|
||||||
|
if (!storedSettings.control_host) {
|
||||||
|
defaultSettings["control_host"] = "127.0.0.1";
|
||||||
|
}
|
||||||
|
if (!storedSettings.control_port) {
|
||||||
|
defaultSettings["control_port"] = 4444;
|
||||||
|
}
|
||||||
|
chrome.storage.local.set(defaultSettings);
|
||||||
|
}
|
||||||
|
|
||||||
|
function onError(e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
function storeSettings() {
|
||||||
|
let proxy_scheme = getScheme();
|
||||||
|
let proxy_host = getHost();
|
||||||
|
let proxy_port = getPort();
|
||||||
|
let control_host = getControlHost();
|
||||||
|
let control_port = getControlPort();
|
||||||
|
chrome.storage.local.set({
|
||||||
|
proxy_scheme,
|
||||||
|
proxy_host,
|
||||||
|
proxy_port,
|
||||||
|
control_host,
|
||||||
|
control_port,
|
||||||
|
});
|
||||||
|
console.log("storing proxy scheme:", proxy_scheme);
|
||||||
|
console.log("storing proxy host:", proxy_host);
|
||||||
|
console.log("storing proxy port:", proxy_port);
|
||||||
|
console.log("storing control host:", control_host);
|
||||||
|
console.log("storing control port:", control_port);
|
||||||
|
setupProxy();
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateUI(restoredSettings) {
|
||||||
|
const selectList = document.querySelector("#proxy_scheme");
|
||||||
|
selectList.value = restoredSettings.proxy_scheme;
|
||||||
|
console.log("showing proxy scheme:", selectList.value);
|
||||||
|
|
||||||
|
const hostitem = document.getElementById("host");
|
||||||
|
hostitem.value = restoredSettings.proxy_host;
|
||||||
|
console.log("showing proxy host:", hostitem.value);
|
||||||
|
|
||||||
|
const portitem = document.getElementById("port");
|
||||||
|
portitem.value = restoredSettings.proxy_port;
|
||||||
|
console.log("showing proxy port:", portitem.value);
|
||||||
|
|
||||||
|
const controlhostitem = document.getElementById("controlhost");
|
||||||
|
controlhostitem.value = restoredSettings.control_host;
|
||||||
|
console.log("showing control host:", controlhostitem.value);
|
||||||
|
|
||||||
|
const controlportitem = document.getElementById("controlport");
|
||||||
|
controlportitem.value = restoredSettings.control_port;
|
||||||
|
console.log("showing control port:", controlportitem.value);
|
||||||
|
|
||||||
|
SetHostText();
|
||||||
|
SetPortText();
|
||||||
|
SetControlHostText();
|
||||||
|
SetControlPortText();
|
||||||
|
SetControlHelpText();
|
||||||
|
setupProxy();
|
||||||
|
}
|
||||||
|
|
||||||
|
function onError(e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
|
chrome.storage.local.get(function (got) {
|
||||||
|
checkStoredSettings(got);
|
||||||
|
updateUI(got);
|
||||||
|
});
|
||||||
|
|
||||||
|
const saveButton = document.querySelector("#save-button");
|
||||||
|
saveButton.addEventListener("click", storeSettings);
|
||||||
|
|
||||||
|
//EXPERIMENTAL: Open in I2P Tab
|
BIN
src/i2p.chromium.base.profile/extensions/i2pchrome.js/people.png
Normal file
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 21 KiB |
277
src/i2p.chromium.base.profile/extensions/i2pchrome.js/privacy.js
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
var titlepref = chrome.i18n.getMessage("titlePreface");
|
||||||
|
|
||||||
|
/* This disables protected content, which is a form of digital restrictions
|
||||||
|
management dependent on identifying information */
|
||||||
|
function disableDigitalRestrictionsManagement(platformInfo) {
|
||||||
|
if (platformInfo.PlatformOs == "android") {
|
||||||
|
chrome.privacy.websites.protectedContentEnabled.set({ value: false });
|
||||||
|
} else if (platformInfo.PlatformOs == "windows") {
|
||||||
|
chrome.privacy.websites.protectedContentEnabled.set({ value: false });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getBrowser() {
|
||||||
|
if (typeof chrome !== "undefined") {
|
||||||
|
if (typeof browser !== "undefined") {
|
||||||
|
return "Firefox";
|
||||||
|
} else {
|
||||||
|
return "Chrome";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return "Chrome";
|
||||||
|
} /* else {
|
||||||
|
return "Edge";
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
|
||||||
|
function setAllPrivacy() {
|
||||||
|
chrome.privacy.network.networkPredictionEnabled.set({ value: false });
|
||||||
|
if (getBrowser() == "Chrome") {
|
||||||
|
chrome.privacy.services.alternateErrorPagesEnabled.set({ value: false });
|
||||||
|
chrome.privacy.services.autofillEnabled.set({ value: false });
|
||||||
|
chrome.privacy.services.passwordSavingEnabled.set({ value: false });
|
||||||
|
chrome.privacy.services.safeBrowsingEnabled.set({ value: false });
|
||||||
|
chrome.privacy.services.safeBrowsingExtendedReportingEnabled.set({
|
||||||
|
value: false,
|
||||||
|
});
|
||||||
|
chrome.privacy.services.searchSuggestEnabled.set({ value: false });
|
||||||
|
chrome.privacy.services.spellingServiceEnabled.set({ value: false });
|
||||||
|
chrome.privacy.services.translationServiceEnabled.set({ value: false });
|
||||||
|
chrome.privacy.websites.thirdPartyCookiesAllowed.set({ value: false });
|
||||||
|
chrome.privacy.websites.doNotTrackEnabled.set({ value: true });
|
||||||
|
chrome.privacy.websites.hyperlinkAuditingEnabled.set({ value: false });
|
||||||
|
chrome.privacy.websites.referrersEnabled.set({ value: false });
|
||||||
|
//chrome.privacy.services.hotwordSearchEnabled.set({ value: false });
|
||||||
|
} else {
|
||||||
|
browser.privacy.websites.hyperlinkAuditingEnabled.set({ value: false });
|
||||||
|
browser.privacy.websites.firstPartyIsolate.set({ value: true });
|
||||||
|
browser.privacy.websites.resistFingerprinting.set({ value: true });
|
||||||
|
// browser.privacy.websites.thirdPartyCookiesAllowed.set({ value: false });
|
||||||
|
browser.privacy.websites.trackingProtectionMode.set({ value: true });
|
||||||
|
browser.privacy.websites.cookieConfig.set({
|
||||||
|
value: {
|
||||||
|
behavior: "reject_third_party",
|
||||||
|
nonPersistentCookies: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
browser.privacy.network.networkPredictionEnabled.set({ value: false });
|
||||||
|
}
|
||||||
|
return chrome.runtime.getPlatformInfo(disableDigitalRestrictionsManagement);
|
||||||
|
}
|
||||||
|
|
||||||
|
setAllPrivacy();
|
||||||
|
|
||||||
|
function ResetPeerConnection() {
|
||||||
|
AssurePeerConnection();
|
||||||
|
}
|
||||||
|
|
||||||
|
function EnablePeerConnection() {
|
||||||
|
AssurePeerConnection();
|
||||||
|
console.log("Enabled WebRTC");
|
||||||
|
}
|
||||||
|
|
||||||
|
function AssurePeerConnection() {
|
||||||
|
chrome.privacy.network.webRTCIPHandlingPolicy.set({
|
||||||
|
value: "disable_non_proxied_udp",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
chrome.tabs.onCreated.addListener(AssurePeerConnection);
|
||||||
|
|
||||||
|
var defaultSettings = {
|
||||||
|
since: "forever",
|
||||||
|
dataTypes: ["downloads", "passwords", "formData", "localStorage", "history"],
|
||||||
|
};
|
||||||
|
|
||||||
|
function onError(therror) {
|
||||||
|
console.error(therror);
|
||||||
|
}
|
||||||
|
|
||||||
|
function forgetBrowsingData(storedSettings) {
|
||||||
|
function getSince(selectedSince) {
|
||||||
|
if (selectedSince === "forever") {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
const times = {
|
||||||
|
hour: () => 1000 * 60 * 60,
|
||||||
|
day: () => 1000 * 60 * 60 * 24,
|
||||||
|
week: () => 1000 * 60 * 60 * 24 * 7,
|
||||||
|
};
|
||||||
|
|
||||||
|
const sinceMilliseconds = times[selectedSince].call();
|
||||||
|
return Date.now() - sinceMilliseconds;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getTypes(selectedTypes) {
|
||||||
|
let dataTypes = {};
|
||||||
|
for (let item of selectedTypes) {
|
||||||
|
dataTypes[item] = true;
|
||||||
|
}
|
||||||
|
return dataTypes;
|
||||||
|
}
|
||||||
|
|
||||||
|
const since = getSince(defaultSettings.since);
|
||||||
|
const dataTypes = getTypes(defaultSettings.dataTypes);
|
||||||
|
|
||||||
|
function notify() {
|
||||||
|
let dataTypesString = Object.keys(dataTypes).join(", ");
|
||||||
|
let sinceString = new Date(since).toLocaleString();
|
||||||
|
chrome.notifications.create({
|
||||||
|
type: "basic",
|
||||||
|
title: "Removed browsing data",
|
||||||
|
message: `Removed ${dataTypesString}\n for I2P Browsing`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function deepCleanHistory(historyItems) {
|
||||||
|
console.log("Deep cleaning history");
|
||||||
|
for (let item of historyItems) {
|
||||||
|
if (i2pHost(item.url)) {
|
||||||
|
chrome.history.deleteUrl({
|
||||||
|
url: item.url,
|
||||||
|
});
|
||||||
|
chrome.browsingData.removeCache({});
|
||||||
|
console.log("cleared Cache");
|
||||||
|
chrome.browsingData
|
||||||
|
.removePasswords({
|
||||||
|
hostnames: [i2pHostName(item.url)],
|
||||||
|
since,
|
||||||
|
})
|
||||||
|
.then(onContextGotLog);
|
||||||
|
console.log("cleared Passwords");
|
||||||
|
chrome.browsingData
|
||||||
|
.removeDownloads({
|
||||||
|
hostnames: [i2pHostName(item.url)],
|
||||||
|
since,
|
||||||
|
})
|
||||||
|
.then(onContextGotLog);
|
||||||
|
console.log("cleared Downloads");
|
||||||
|
chrome.browsingData
|
||||||
|
.removeFormData({
|
||||||
|
hostnames: [i2pHostName(item.url)],
|
||||||
|
since,
|
||||||
|
})
|
||||||
|
.then(onContextGotLog);
|
||||||
|
console.log("cleared Form Data");
|
||||||
|
chrome.browsingData
|
||||||
|
.removeLocalStorage({
|
||||||
|
hostnames: [i2pHostName(item.url)],
|
||||||
|
since,
|
||||||
|
})
|
||||||
|
.then(onContextGotLog);
|
||||||
|
console.log("cleared Local Storage");
|
||||||
|
|
||||||
|
let contexts = chrome.contextualIdentities.query({
|
||||||
|
name: titlepref,
|
||||||
|
});
|
||||||
|
|
||||||
|
function deepCleanCookies(cookies) {
|
||||||
|
for (let cookie of cookies) {
|
||||||
|
var removing = chrome.cookies.remove({
|
||||||
|
firstPartyDomain: cookie.firstPartyDomain,
|
||||||
|
name: cookie.name,
|
||||||
|
url: item.url,
|
||||||
|
});
|
||||||
|
removing.then(onContextGotLog, onError);
|
||||||
|
}
|
||||||
|
console.log("Cleared cookies");
|
||||||
|
}
|
||||||
|
|
||||||
|
function deepCleanContext(cookieStoreIds) {
|
||||||
|
for (let cookieStoreId of cookieStoreIds) {
|
||||||
|
var removing = chrome.cookies.getAll({
|
||||||
|
firstPartyDomain: null,
|
||||||
|
storeId: cookieStoreId.cookieStoreId,
|
||||||
|
});
|
||||||
|
removing.then(deepCleanCookies, onError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
contexts.then(deepCleanContext, onError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
notify();
|
||||||
|
}
|
||||||
|
|
||||||
|
var searching = chrome.history.search({
|
||||||
|
text: "i2p",
|
||||||
|
startTime: 0,
|
||||||
|
});
|
||||||
|
|
||||||
|
searching.then(deepCleanHistory);
|
||||||
|
|
||||||
|
setAllPrivacy();
|
||||||
|
ResetPeerConnection();
|
||||||
|
}
|
||||||
|
|
||||||
|
function i2pHostName(url) {
|
||||||
|
let hostname = "";
|
||||||
|
if (url.indexOf("://") > -1) {
|
||||||
|
hostname = url.split("/")[2];
|
||||||
|
} else {
|
||||||
|
hostname = url.split("/")[0];
|
||||||
|
}
|
||||||
|
return hostname;
|
||||||
|
}
|
||||||
|
|
||||||
|
function i2pHost(url) {
|
||||||
|
let hostname = i2pHostName(url);
|
||||||
|
return hostname.endsWith(".i2p");
|
||||||
|
}
|
||||||
|
|
||||||
|
function onContextGotLog(contexts) {
|
||||||
|
if (contexts !== null) {
|
||||||
|
for (let context of contexts) {
|
||||||
|
console.log(context);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
chrome.runtime.onMessage.addListener(message);
|
||||||
|
|
||||||
|
function enableHistory() {
|
||||||
|
function checkStoredSettings(storedSettings) {
|
||||||
|
storedSettings["disable_history"] = false;
|
||||||
|
console.log(storedSettings);
|
||||||
|
function enablehistory(settings) {
|
||||||
|
console.log("Store History:", settings);
|
||||||
|
}
|
||||||
|
let setting = chrome.storage.local.set(storedSettings);
|
||||||
|
setting.then(enablehistory);
|
||||||
|
}
|
||||||
|
const gettingStoredSettings = chrome.storage.local.get();
|
||||||
|
gettingStoredSettings.then(checkStoredSettings, onError);
|
||||||
|
}
|
||||||
|
|
||||||
|
function disableHistory() {
|
||||||
|
function checkStoredSettings(storedSettings) {
|
||||||
|
storedSettings["disable_history"] = true;
|
||||||
|
console.log(storedSettings);
|
||||||
|
function enablehistory(settings) {
|
||||||
|
console.log("Store History:", settings);
|
||||||
|
}
|
||||||
|
var setting = chrome.storage.local.set(storedSettings);
|
||||||
|
setting.then(enablehistory);
|
||||||
|
}
|
||||||
|
const gettingStoredSettings = chrome.storage.local.get();
|
||||||
|
gettingStoredSettings.then(checkStoredSettings, onError);
|
||||||
|
}
|
||||||
|
|
||||||
|
function message(recieved) {
|
||||||
|
console.log(recieved);
|
||||||
|
if (recieved.rtc === "enableWebRTC") {
|
||||||
|
console.log("enableWebRTC");
|
||||||
|
EnablePeerConnection();
|
||||||
|
} else if (recieved.rtc === "disableWebRTC") {
|
||||||
|
console.log("disableWebRTC");
|
||||||
|
ResetPeerConnection();
|
||||||
|
}
|
||||||
|
if (recieved.history === "enableHistory") {
|
||||||
|
console.log("enableHistory");
|
||||||
|
enableHistory();
|
||||||
|
} else if (recieved.history === "disableHistory") {
|
||||||
|
console.log("disableHistory");
|
||||||
|
disableHistory();
|
||||||
|
}
|
||||||
|
}
|
161
src/i2p.chromium.base.profile/extensions/i2pchrome.js/proxy.js
Normal file
@ -0,0 +1,161 @@
|
|||||||
|
function platformCallback(platformInfo) {
|
||||||
|
if (platformInfo.PlatformOs == "android") {
|
||||||
|
console.log("android detected");
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
console.log("desktop detected");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function isDroid() {
|
||||||
|
return chrome.runtime.getPlatformInfo(platformCallback);
|
||||||
|
}
|
||||||
|
|
||||||
|
//chrome.privacy.network.peerConnectionEnabled.set({value: false});
|
||||||
|
|
||||||
|
chrome.privacy.network.networkPredictionEnabled.set({ value: false });
|
||||||
|
chrome.privacy.network.webRTCIPHandlingPolicy.set({
|
||||||
|
value: "disable_non_proxied_udp",
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log("Preliminarily disabled WebRTC.");
|
||||||
|
|
||||||
|
function shouldProxyRequest(requestInfo) {
|
||||||
|
return requestInfo.parentFrameId != -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleProxyRequest(requestInfo) {
|
||||||
|
console.log(`Proxying: ${requestInfo.url}`);
|
||||||
|
console.log(" ", getScheme(), getHost(), ":", getPort());
|
||||||
|
return { type: getScheme(), host: getHost(), port: getPort() };
|
||||||
|
}
|
||||||
|
|
||||||
|
var proxy_scheme = "HTTP";
|
||||||
|
|
||||||
|
function getScheme() {
|
||||||
|
if (proxy_scheme == undefined) {
|
||||||
|
proxy_scheme = "http";
|
||||||
|
}
|
||||||
|
if (proxy_scheme == "HTTP") {
|
||||||
|
proxy_scheme = "http";
|
||||||
|
}
|
||||||
|
if (proxy_scheme == "SOCKS") {
|
||||||
|
proxy_scheme = "socks";
|
||||||
|
}
|
||||||
|
console.log("Got i2p proxy scheme:", proxy_scheme);
|
||||||
|
return proxy_scheme;
|
||||||
|
}
|
||||||
|
|
||||||
|
var proxy_host = "127.0.0.1";
|
||||||
|
|
||||||
|
function getHost() {
|
||||||
|
if (proxy_host == undefined) {
|
||||||
|
proxy_host = "127.0.0.1";
|
||||||
|
}
|
||||||
|
console.log("Got i2p proxy host:", proxy_host);
|
||||||
|
return proxy_host;
|
||||||
|
}
|
||||||
|
|
||||||
|
var proxy_port = "4444";
|
||||||
|
|
||||||
|
function getPort() {
|
||||||
|
if (proxy_port == undefined) {
|
||||||
|
proxy_port = "4444";
|
||||||
|
}
|
||||||
|
console.log("Got i2p proxy port:", proxy_port);
|
||||||
|
return proxy_port;
|
||||||
|
}
|
||||||
|
|
||||||
|
var control_port = "7657";
|
||||||
|
|
||||||
|
function getControlPort() {
|
||||||
|
if (control_port == undefined) {
|
||||||
|
return "7657";
|
||||||
|
}
|
||||||
|
console.log("Got i2p control port:", control_port);
|
||||||
|
return control_port;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getBrowser() {
|
||||||
|
if (typeof chrome !== "undefined") {
|
||||||
|
if (typeof browser !== "undefined") {
|
||||||
|
return "Firefox";
|
||||||
|
} else {
|
||||||
|
return "Chrome";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return "Chrome";
|
||||||
|
}
|
||||||
|
/* else {
|
||||||
|
return "Edge";
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
|
||||||
|
function setupProxy() {
|
||||||
|
var Host = getHost();
|
||||||
|
var Port = getPort();
|
||||||
|
var Scheme = getScheme();
|
||||||
|
var config = {
|
||||||
|
mode: "fixed_servers",
|
||||||
|
rules: {
|
||||||
|
singleProxy: {
|
||||||
|
scheme: Scheme,
|
||||||
|
host: Host,
|
||||||
|
port: parseInt(Port),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
chrome.proxy.settings.set({
|
||||||
|
value: config,
|
||||||
|
scope: "regular",
|
||||||
|
},
|
||||||
|
function() {}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
setupProxy();
|
||||||
|
|
||||||
|
function checkStoredSettings(storedSettings) {
|
||||||
|
let defaultSettings = {};
|
||||||
|
if (!storedSettings.proxy_scheme) {
|
||||||
|
defaultSettings["proxy_scheme"] = "http";
|
||||||
|
}
|
||||||
|
if (!storedSettings.proxy_host) {
|
||||||
|
defaultSettings["proxy_host"] = "127.0.0.1";
|
||||||
|
}
|
||||||
|
if (!storedSettings.proxy_port) {
|
||||||
|
defaultSettings["proxy_port"] = 4444;
|
||||||
|
}
|
||||||
|
if (!storedSettings.control_host) {
|
||||||
|
defaultSettings["control_host"] = "127.0.0.1";
|
||||||
|
}
|
||||||
|
if (!storedSettings.control_port) {
|
||||||
|
defaultSettings["control_port"] = 4444;
|
||||||
|
}
|
||||||
|
chrome.storage.local.set(defaultSettings);
|
||||||
|
}
|
||||||
|
|
||||||
|
function update(restoredSettings) {
|
||||||
|
proxy_scheme = restoredSettings.proxy_scheme;
|
||||||
|
console.log("restoring proxy scheme:", proxy_scheme);
|
||||||
|
proxy_host = restoredSettings.proxy_host;
|
||||||
|
console.log("restoring proxy host:", proxy_host);
|
||||||
|
proxy_port = restoredSettings.proxy_port;
|
||||||
|
console.log("restoring proxy port:", proxy_port);
|
||||||
|
control_host = restoredSettings.control_host;
|
||||||
|
console.log("restoring control host:", control_host);
|
||||||
|
control_port = restoredSettings.control_port;
|
||||||
|
console.log("restoring control port:", control_port);
|
||||||
|
}
|
||||||
|
|
||||||
|
chrome.storage.local.get(function(got) {
|
||||||
|
checkStoredSettings(got);
|
||||||
|
update(got);
|
||||||
|
setupProxy();
|
||||||
|
});
|
||||||
|
|
||||||
|
chrome.windows.onCreated.addListener(() => {
|
||||||
|
const gettingStoredSettings = chrome.storage.local.get();
|
||||||
|
gettingStoredSettings.then(setupProxy, onError);
|
||||||
|
});
|
BIN
src/i2p.chromium.base.profile/extensions/i2pchrome.js/shades.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
src/i2p.chromium.base.profile/extensions/i2pchrome.js/sync.png
Normal file
After Width: | Height: | Size: 130 KiB |
After Width: | Height: | Size: 29 KiB |
@ -0,0 +1,86 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<link rel="stylesheet" href="home.css"/>
|
||||||
|
<link rel="stylesheet" href="info.css"/>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="panel">
|
||||||
|
<div class="section-header panel-section panel-section-header">
|
||||||
|
<div id="text-section-header" class="text-section-header"><h1>The Invisible Internet Browser</h1></div>
|
||||||
|
</div>
|
||||||
|
<div class="panel-section-separator"></div>
|
||||||
|
<div id="i2pbrowser-version"></div>
|
||||||
|
<div id="i2pbrowser-description">
|
||||||
|
<p id="description">You are now able to use I2P in this browser.</p>
|
||||||
|
<p id="beta">It is experimental.</p>
|
||||||
|
</div>
|
||||||
|
<div id="readyness">
|
||||||
|
<img class="readyness" src="http://proxy.i2p/themes/console/images/local_up.png" alt="Proxy is not ready."/>
|
||||||
|
<span id="proxy-check">Proxy is ready.</span>
|
||||||
|
<img class="readyness" src="http://proxy.i2p/themes/console/images/local_up.png" alt="Proxy is not ready."/>
|
||||||
|
<span id="proxy-check">Proxy is ready.</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel-section-separator"></div>
|
||||||
|
<div class="browser-info">
|
||||||
|
<p class="hideIfI2PConsoleOff">
|
||||||
|
<h3 id="controlHeader">Controls</h3>
|
||||||
|
<p id="controlExplain">These controls are used to tailor your I2P Browsing Experience</p>
|
||||||
|
<ul>
|
||||||
|
<li class="application">
|
||||||
|
<a id="clear-browser-data" href="#">Clear Browsing Data: </a>
|
||||||
|
<span id="clear-desc" class="applicationDesc">Use this to erase your browsing data.</span>
|
||||||
|
</li>
|
||||||
|
<li class="application">
|
||||||
|
<a id="window-visit-readme" href="#">READ ME!</a>
|
||||||
|
<span id="readme" class="applicationDesc">If you didn't read the instructions, you may be using this extension incorrectly! Do you remember creating an "I2P Browsing Mode" profile? Click here to make sure!</span>
|
||||||
|
</li>
|
||||||
|
<!--<li class="application">
|
||||||
|
<input type="checkbox" id="disable-history" name="disablehistory" value="history">
|
||||||
|
<label for="disable-history">Disable History in I2P Tabs</label>
|
||||||
|
<span id="histDesc" class="applicationDesc">History is automatically cleared when your I2P tabs are closed. If you want to clear history as you go, check this box.</span>
|
||||||
|
</li>-->
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="panel-section-separator"></div>
|
||||||
|
<div class="application-info">
|
||||||
|
<p class="hideIfI2PConsoleOff">
|
||||||
|
<h3 id="applicationHeader">Applications</h3>
|
||||||
|
<p id="applicationExplain">These applications use I2P to provide them with security and privacy.</p>
|
||||||
|
<ul>
|
||||||
|
<li class="application">
|
||||||
|
<button id="window-visit-homepage" target="_blank" class="applicationName window-visit-homepage" href="#">Home Page</button>
|
||||||
|
<span id="abouthome" class="applicationDesc">For more information about this extension, go here:</span>
|
||||||
|
</li>
|
||||||
|
<li class="application">
|
||||||
|
<button id="window-visit-i2ptunnel" target="_blank" class="applicationName">Hidden Services Manager</button>
|
||||||
|
<span id="i2ptunnel" class="applicationDesc">I2P has a web-based interface for configuring .i2p services like web sites, to set up your own web sites, go here:</span>
|
||||||
|
</li>
|
||||||
|
<li class="application">
|
||||||
|
<button id="window-visit-susimail" target="_blank" class="applicationName">E-Mail</button>
|
||||||
|
<span id="susimail" class="applicationDesc">I2P also bundles a webmail client which can be used to access in-I2P e-mail. To use it, go here:</span>
|
||||||
|
</li>
|
||||||
|
<li class="application">
|
||||||
|
<button id="window-visit-snark" target="_blank" class="applicationName">BitTorrent</button>
|
||||||
|
<span id="snark" class="applicationDesc">I2P is capable of anonymous Peer-to-Peer file sharing, to use the built-in bittorrent client go here:</span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="context.js"></script>
|
||||||
|
<script src="privacy.js"></script>
|
||||||
|
<script src="info.js"></script>
|
||||||
|
<script src="content.js" crossorigin="anonymous"></script>
|
||||||
|
<script src="i2pcontrol/i2pcontrol.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
16
src/i2p.chromium.base.profile/extensions/noscript.js/COPYING
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
NoScript - a Firefox extension for whitelist driven safe JavaScript execution
|
||||||
|
Copyright (C) 2005-2021 Giorgio Maone <https://maone.net>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
232
src/i2p.chromium.base.profile/extensions/noscript.js/LICENSE
Normal file
@ -0,0 +1,232 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
“This License” refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||||
|
|
||||||
|
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||||
|
|
||||||
|
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||||
|
|
||||||
|
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||||
|
|
||||||
|
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||||
|
|
||||||
|
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||||
|
|
||||||
|
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||||
|
|
||||||
|
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||||
|
|
||||||
|
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||||
|
|
||||||
|
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
|