Compare commits

...

173 Commits

Author SHA1 Message Date
idk
a116e9f35e update USAGE.html 2022-09-11 01:47:31 -04:00
idk
3ce7ca9210 update TODO.html 2022-09-11 01:47:27 -04:00
idk
e5e350dae3 update RELEASES.html 2022-09-11 01:47:23 -04:00
idk
5c9835a972 update PACKAGES.html 2022-09-11 01:47:20 -04:00
idk
4f41ba7322 update LICENSE.html 2022-09-11 01:47:16 -04:00
idk
d372f87a6e update I2PGenericUnsafeBrowser.html 2022-09-11 01:47:12 -04:00
idk
4f070d84c3 update I2PFirefoxProfileUnpacker.html 2022-09-11 01:47:09 -04:00
idk
50116c6d4f update I2PFirefoxProfileChecker.html 2022-09-11 01:47:06 -04:00
idk
89f3f10bc2 update I2PFirefoxProfileBuilder.html 2022-09-11 01:47:01 -04:00
idk
8057192698 update I2PFirefox.html 2022-09-11 01:46:58 -04:00
idk
ec8d535f65 update I2PCommonBrowser.html 2022-09-11 01:46:54 -04:00
idk
0e5b7eb4c2 update I2PChromiumProfileUnpacker.html 2022-09-11 01:46:51 -04:00
idk
e8f8235f06 update I2PChromiumProfileChecker.html 2022-09-11 01:46:47 -04:00
idk
a99a4ffc09 update I2PChromiumProfileBuilder.html 2022-09-11 01:46:43 -04:00
idk
a29340c9ef update I2PChromium.html 2022-09-11 01:46:40 -04:00
idk
6fd377403a update I2PBrowser.html 2022-09-11 01:46:37 -04:00
idk
c055352afd update EXAMPLES.html 2022-09-11 01:46:33 -04:00
idk
a23ee60350 update CHANGES.html 2022-09-11 01:46:29 -04:00
idk
03a29fd557 update index.html 2022-09-11 01:46:25 -04:00
idk
1e84c614ce update changelog, release 2022-09-11 01:46:07 -04:00
idk
74a6cded17 do away with clunky logging thing 2022-09-11 01:44:57 -04:00
idk
0a9b7f0678 do away with clunky logging thing 2022-09-11 01:42:07 -04:00
idk
18ab8844c4 Add git clean -fdx to distclean target 2022-09-07 16:39:15 -04:00
idk
73f77dd64f update RELEASES.html 2022-09-07 14:17:53 -04:00
idk
ed76fbe804 update index.html 2022-09-07 14:16:55 -04:00
idk
207d7ffcd0 update packages.sh script 2022-09-07 14:15:31 -04:00
idk
27ebdbdde7 update I2PBrowser.html 2022-09-07 14:00:42 -04:00
idk
acf760e24c update EXAMPLES.html 2022-09-07 14:00:38 -04:00
idk
35a0855dd5 update index.html 2022-09-07 14:00:31 -04:00
idk
475b1d93a5 update RELEASES.html 2022-09-07 13:58:59 -04:00
idk
33a1c4f8b0 update PACKAGES.html 2022-09-07 13:58:56 -04:00
idk
e584557dcc update index.html 2022-09-07 13:58:02 -04:00
idk
44e4b2348d update I2PFirefox.html 2022-09-07 12:07:02 -04:00
idk
c581903d0a update I2PCommonBrowser.html 2022-09-07 12:06:58 -04:00
idk
853d07b7d5 update I2PChromium.html 2022-09-07 12:06:44 -04:00
idk
29b1576936 update CHANGES.html 2022-09-07 12:06:33 -04:00
idk
2ea0850f06 update index.html 2022-09-07 12:06:29 -04:00
idk
5ad93c97aa update changelog 2022-09-07 12:06:06 -04:00
idk
26154f3b7f make waitForProxy always return true if the timeout is zero or less 2022-09-07 12:04:03 -04:00
idk
64505f6617 wait up to 5 seconds for the headless firefox to die(sounds creepy when I say it like that) 2022-09-07 11:58:08 -04:00
idk
800de73b9d wait up to 5 seconds for the headless firefox to die(sounds creepy when I say it like that) 2022-09-07 11:55:10 -04:00
idk
4d605d40b2 wait up to 5 seconds for the headless firefox to die(sounds creepy when I say it like that) 2022-09-07 11:49:21 -04:00
idk
368d9c3423 move all proxy checking into common class(DRY) and add the ability to selectively disable or change the timeout time 2022-09-07 11:45:49 -04:00
idk
76d05d0d53 update I2PFirefoxProfileChecker.html 2022-09-07 04:35:28 -04:00
idk
7e6f11f6b3 update index.html 2022-09-07 04:34:45 -04:00
idk
b9c0fc5e38 fix unclosed scanner 2022-09-07 04:34:36 -04:00
idk
5d4b1a4681 update index.html 2022-09-07 03:51:00 -04:00
idk
b2f604a4a5 fix url argument passing 2022-09-07 03:50:51 -04:00
idk
7e3ae6ad04 update index.html 2022-09-07 03:49:31 -04:00
idk
2edb2a3408 tweak releases slightly 2022-09-07 03:35:50 -04:00
idk
6c1f2bc640 update I2PFirefoxProfileChecker.html 2022-09-07 03:24:08 -04:00
idk
76292fc7c0 update I2PFirefox.html 2022-09-07 03:24:01 -04:00
idk
c354c49128 update index.html 2022-09-07 03:23:27 -04:00
idk
9d66efe846 if the headless process survives destruction, forcibly estroy it 2022-09-07 03:22:11 -04:00
idk
24a08cf7c5 remove -attach-console as it probably does nothing and breaks something 2022-09-07 03:16:13 -04:00
idk
4e19c36817 update RELEASES.html 2022-09-07 00:46:22 -04:00
idk
05dfef06e3 update index.html 2022-09-07 00:45:23 -04:00
idk
8397d7415b update I2PFirefox.html 2022-09-06 23:54:43 -04:00
idk
f9279f494f update index.html 2022-09-06 23:54:11 -04:00
idk
e3c2ab91be Destroy headless process if it goes too long 2022-09-06 23:52:52 -04:00
idk
a8a54f6b4c update CHANGES.html 2022-09-06 23:50:26 -04:00
idk
995e9805a2 Destroy headless process if it goes too long 2022-09-06 23:50:19 -04:00
idk
f3e7c28503 update RELEASES.html 2022-09-06 22:41:50 -04:00
idk
6042f30350 update index.html 2022-09-06 22:40:52 -04:00
idk
ab226e5a4c update PACKAGES.html 2022-09-06 22:38:24 -04:00
idk
e632a49933 update I2PFirefox.html 2022-09-06 22:38:01 -04:00
idk
beef36b36d update index.html 2022-09-06 22:37:27 -04:00
idk
2ed27fa307 update USAGE.html 2022-09-06 22:31:34 -04:00
idk
1a5ce21912 update TODO.html 2022-09-06 22:31:31 -04:00
idk
7754c0b43d update RELEASES.html 2022-09-06 22:31:27 -04:00
idk
b4b2a30935 update PACKAGES.html 2022-09-06 22:31:23 -04:00
idk
81f58b9d48 update LICENSE.html 2022-09-06 22:31:19 -04:00
idk
02ac99531a update I2PGenericUnsafeBrowser.html 2022-09-06 22:31:15 -04:00
idk
2b2aea0748 update I2PFirefoxProfileUnpacker.html 2022-09-06 22:31:12 -04:00
idk
09e6864cb9 update I2PFirefoxProfileChecker.html 2022-09-06 22:31:08 -04:00
idk
f954bf4893 update I2PFirefoxProfileBuilder.html 2022-09-06 22:31:04 -04:00
idk
21f74306c8 update I2PFirefox.html 2022-09-06 22:31:00 -04:00
idk
ccde6b65dc update I2PCommonBrowser.html 2022-09-06 22:30:56 -04:00
idk
f348347115 update I2PChromiumProfileUnpacker.html 2022-09-06 22:30:52 -04:00
idk
ef19f681d0 update I2PChromiumProfileChecker.html 2022-09-06 22:30:48 -04:00
idk
1b60e74f9d update I2PChromiumProfileBuilder.html 2022-09-06 22:30:44 -04:00
idk
9a052f4f3c update I2PChromium.html 2022-09-06 22:30:40 -04:00
idk
1e94b34efe update I2PBrowser.html 2022-09-06 22:30:36 -04:00
idk
01c19d1ffd update EXAMPLES.html 2022-09-06 22:30:33 -04:00
idk
de6b872426 update CHANGES.html 2022-09-06 22:30:29 -04:00
idk
27cb5b8365 update index.html 2022-09-06 22:30:25 -04:00
idk
2d508e1417 update download page 2022-09-06 22:30:14 -04:00
idk
d6a62bb6ee start working on an OSX package, won't have a signer for now but gotta start somewhere 2022-09-06 21:35:27 -04:00
idk
4095e61ad3 minor tweak to releaser script 2022-09-06 21:22:03 -04:00
idk
f107bf92b2 add sha256sums for releases 2022-09-06 21:08:34 -04:00
idk
bf2e964e1a update index.html 2022-09-06 21:06:31 -04:00
idk
8c4647f8b3 update index.html 2022-09-06 20:59:00 -04:00
idk
62bda1aec5 add sha256sums for releases 2022-09-06 20:57:43 -04:00
idk
5c637e900e Fix uploader for fedora package 2022-09-06 20:42:36 -04:00
idk
41b927809b update I2PFirefox.html 2022-09-06 20:25:43 -04:00
idk
f8b70f2a96 update I2PCommonBrowser.html 2022-09-06 20:25:40 -04:00
idk
c9e7a4beba update index.html 2022-09-06 20:25:12 -04:00
idk
40f50aefb5 update I2PFirefoxProfileUnpacker.html 2022-09-06 20:24:44 -04:00
idk
e9dfeb0288 update CHANGES.html 2022-09-06 20:24:05 -04:00
idk
5d121e8927 update index.html 2022-09-06 20:24:02 -04:00
idk
aad78749b4 update index.html 2022-09-06 20:22:17 -04:00
idk
bbaddd3927 update the README 2022-09-06 20:21:04 -04:00
idk
f7c58d0125 update the changelog 2022-09-06 20:12:56 -04:00
idk
0e2dba7bd5 update the changelog 2022-09-06 20:12:31 -04:00
idk
23f1e3491f run headlessly if we find a first-run file 2022-09-06 20:06:50 -04:00
idk
a36a74a44a run headlessly if we find a first-run file 2022-09-06 20:05:29 -04:00
idk
63344656c1 update USAGE.html 2022-09-06 19:38:45 -04:00
idk
260d42a7b3 update TODO.html 2022-09-06 19:38:41 -04:00
idk
4c3f5523d2 update PACKAGES.html 2022-09-06 19:38:38 -04:00
idk
0038f9c186 update LICENSE.html 2022-09-06 19:38:34 -04:00
idk
46469a4e94 update I2PGenericUnsafeBrowser.html 2022-09-06 19:38:30 -04:00
idk
8d8006c956 update I2PFirefoxProfileUnpacker.html 2022-09-06 19:38:27 -04:00
idk
4d35d18c99 update I2PFirefoxProfileChecker.html 2022-09-06 19:38:23 -04:00
idk
8a2b3fee85 update I2PFirefoxProfileBuilder.html 2022-09-06 19:38:20 -04:00
idk
268b791ad7 update I2PFirefox.html 2022-09-06 19:38:16 -04:00
idk
37c7ad9640 update I2PCommonBrowser.html 2022-09-06 19:38:12 -04:00
idk
6928ff423a update I2PChromiumProfileUnpacker.html 2022-09-06 19:38:09 -04:00
idk
a4bde9e63b update I2PChromiumProfileChecker.html 2022-09-06 19:38:05 -04:00
idk
e337f90c0b update I2PChromiumProfileBuilder.html 2022-09-06 19:38:02 -04:00
idk
89b480cd22 update I2PChromium.html 2022-09-06 19:37:58 -04:00
idk
0c4746e8fb update I2PBrowser.html 2022-09-06 19:37:55 -04:00
idk
87b0a07878 update EXAMPLES.html 2022-09-06 19:37:51 -04:00
idk
f09599a2fa update CHANGES.html 2022-09-06 19:37:48 -04:00
idk
2d3071dbb2 update index.html 2022-09-06 19:37:44 -04:00
idk
c79018a29a fedora fixes 2022-09-06 19:35:19 -04:00
idk
bc342cc463 Document package builds 2022-09-06 19:27:02 -04:00
idk
54b427e532 Document package builds 2022-09-06 19:25:43 -04:00
idk
ebc829c5c9 fedora builds 2022-09-06 18:56:39 -04:00
idk
ce5240d658 container-build redhat packages 2022-09-06 18:42:37 -04:00
idk
fdd3aac391 container-build redhat packages 2022-09-06 18:42:01 -04:00
idk
c5281751bb fedora. What the hell. 2022-09-06 18:31:12 -04:00
idk
a3b9f1abce Windows EXE installer, Windows portable zip 2022-09-06 18:29:43 -04:00
idk
f208563c35 start a windows portable 2022-09-06 18:15:21 -04:00
idk
a9e1135ef5 fix windows releaser script 2022-09-05 22:04:23 -04:00
idk
8d3b46b36c make everything distributable better 2022-09-05 22:01:20 -04:00
idk
a7e47cfc15 update I2PCommonBrowser.html 2022-09-05 21:54:29 -04:00
idk
71060cd851 update CHANGES.html 2022-09-05 21:54:03 -04:00
idk
f3dc285ba6 update index.html 2022-09-05 21:53:59 -04:00
idk
bce2f0e286 Windows releaser too. 2022-09-05 21:53:24 -04:00
idk
8e70d9280c Windows releaser too. 2022-09-05 21:52:18 -04:00
idk
ea778bf5da never run inside Program Files, allow per-user install 2022-09-05 21:32:31 -04:00
idk
a3de60fcb1 fix releaser script 2022-09-05 21:28:36 -04:00
idk
459c16aec2 update I2PGenericUnsafeBrowser.html 2022-09-05 21:15:53 -04:00
idk
d35a60cc01 update I2PFirefox.html 2022-09-05 21:15:39 -04:00
idk
733c2b1cc0 update I2PCommonBrowser.html 2022-09-05 21:15:35 -04:00
idk
6b7ab66c99 update I2PChromium.html 2022-09-05 21:15:21 -04:00
idk
4647cd4a0b update I2PBrowser.html 2022-09-05 21:15:18 -04:00
idk
b47fb744c4 update CHANGES.html 2022-09-05 21:15:11 -04:00
idk
a179482b95 release 2022-09-05 21:14:59 -04:00
idk
0f44a3219b update index.html 2022-09-05 21:13:01 -04:00
idk
9c54e16978 debian package 2022-09-05 21:12:53 -04:00
idk
395e1c2c95 debian package 2022-09-05 21:12:10 -04:00
idk
d989337a9c set a default directory in some cases 2022-09-05 21:08:11 -04:00
idk
7dbfdd9cbf make everything distributable better 2022-09-05 18:43:02 -04:00
idk
6605220f4a make it so Windows can find things easier 2022-09-05 18:28:23 -04:00
idk
d0440dcc56 update gitignore 2022-09-05 18:26:00 -04:00
idk
4640cc528c Freestanding packages. Why the heck not. 2022-09-05 18:23:33 -04:00
idk
94e03d045b add support for a Debian package. Yeah a Debian package. 2022-09-05 17:50:04 -04:00
idk
b6a66cf96e update I2PFirefox.html 2022-09-05 10:21:30 -04:00
idk
91f44d29f7 update CHANGES.html 2022-09-05 10:20:59 -04:00
idk
9152da34c9 update index.html 2022-09-05 10:20:55 -04:00
idk
e49cd5d470 update changelog 2022-09-05 10:19:03 -04:00
idk
02c148ccbd always pass --new-instance to firefox 2022-09-05 10:16:52 -04:00
idk
5216ec40f4 update I2PGenericUnsafeBrowser.html 2022-09-05 00:41:31 -04:00
idk
65e67f661b update I2PFirefoxProfileChecker.html 2022-09-05 00:41:23 -04:00
idk
adfda72398 update I2PFirefox.html 2022-09-05 00:41:15 -04:00
idk
5f320087f0 update I2PCommonBrowser.html 2022-09-05 00:41:11 -04:00
idk
86c0c1b68b update I2PChromiumProfileChecker.html 2022-09-05 00:41:04 -04:00
idk
07cc177a95 update I2PChromium.html 2022-09-05 00:40:56 -04:00
idk
40299b00fc update I2PBrowser.html 2022-09-05 00:40:53 -04:00
idk
1c1e048c50 update index.html 2022-09-05 00:40:42 -04:00
idk
084ecb46ff update logging 2022-09-05 00:31:27 -04:00
idk
2b80b4151a move all logging to a proper logging system 2022-09-05 00:19:59 -04:00
60 changed files with 10309 additions and 8095 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.git

6
.gitignore vendored
View File

@ -13,3 +13,9 @@ src/build
*.err
*.log
i2pbrowser/
/i2pbrowser*.deb
/i2pbrowser*.rpm
/logs
/*.jar
/*.msi
/*.exe

View File

@ -97,6 +97,16 @@
LICENSE
</a>
</li>
<li>
<a href="PACKAGES.html">
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -119,9 +129,62 @@
/
</a>
<h2>
<a href="#fri-september-2" rel="nofollow">
<span></span>
</a>
Sun, September 11
</h2>
<ul>
<li>
Make the logging a little more sensible
</li>
</ul>
<h2>
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>
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>
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>
Fri, September 2
</h2>
<ul>
@ -133,9 +196,6 @@
</li>
</ul>
<h2>
<a href="#thu-september-1" rel="nofollow">
<span></span>
</a>
Thu, September 1
</h2>
<ul>
@ -144,9 +204,6 @@
</li>
</ul>
<h2>
<a href="#wed-august-31" rel="nofollow">
<span></span>
</a>
Wed, August 31
</h2>
<ul>
@ -161,9 +218,6 @@
</li>
</ul>
<h2>
<a href="#tue-august-30" rel="nofollow">
<span></span>
</a>
Tue, August 30
</h2>
<ul>
@ -175,9 +229,6 @@
</li>
</ul>
<h2>
<a href="#sun-august-28" rel="nofollow">
<span></span>
</a>
Sun, August 28
</h2>
<ul>
@ -192,23 +243,17 @@
</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&#39;s
Added support for passing a URL as a parameter to the cli&rsquo;s
</li>
<li>
revised test.sh
</li>
</ul>
<h2>
<a href="#mon-august-22" rel="nofollow">
<span></span>
</a>
Mon, August 22
</h2>
<ul>
@ -221,20 +266,14 @@
</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
Adds support for passing the -private flag to start Firefox with &ndash;private-window and Chromium &ndash;incognito
</li>
</ul>
<h2>
<a href="#fri-august-20" rel="nofollow">
<span></span>
</a>
Fri, August 20
</h2>
<ul>
@ -243,23 +282,17 @@
</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
Adds the ability to pass &ndash;private-window to Firefoxes and &ndash;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>
@ -271,9 +304,6 @@
</li>
</ul>
<h2>
<a href="#sun-august-7" rel="nofollow">
<span></span>
</a>
Sun, August 7
</h2>
<ul>
@ -297,9 +327,6 @@
</li>
</ul>
<h2>
<a href="#saturday-august-6" rel="nofollow">
<span></span>
</a>
Saturday, August 6
</h2>
<ul>

View File

@ -1,3 +1,31 @@
Sun, September 11
-----------------
- Make the logging a little more sensible
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
----------------

6
Dockerfile Normal file
View 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

View File

@ -97,6 +97,16 @@
LICENSE
</a>
</li>
<li>
<a href="PACKAGES.html">
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -119,7 +129,7 @@
/
</a>
<p>
:; dir=$(CDPATH= cd -- &#34;$(dirname -- &#34;$0&#34;)&#34; &amp;&amp; pwd); java -cp &#34;$dir&#34;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
:; dir=$(CDPATH= cd &ndash; &ldquo;$(dirname &ndash; &ldquo;$0&rdquo;)&rdquo; &amp;&amp; pwd); java -cp &ldquo;$dir&rdquo;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private
</p>

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@ 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
@ -152,7 +153,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L156)
### 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
@ -163,7 +164,7 @@ This method has no parameters.
| privateWindow | boolean | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L165)
### 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
@ -172,7 +173,7 @@ This method has no parameters.
This method has no parameters.
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L167)
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L168)
+ Description:
+ Access: private
@ -184,7 +185,7 @@ This method has no parameters.
| inUrl | String | |
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L177)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L178)
+ Description:
+ Access: public

File diff suppressed because it is too large Load Diff

View File

@ -18,8 +18,6 @@ package: net.i2p.i2pfirefox
</summary>
<ul>
<li>java.io.File</li>
<li>java.io.IOException</li>
<li>java.net.Socket</li>
<li>java.util.ArrayList</li>
</ul>
</details>
@ -33,13 +31,6 @@ package: net.i2p.i2pfirefox
+ Access: private
+ Modifiers: final
#### int DEFAULT_TIMEOUT [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
>
+ Access: private
+ Modifiers: final
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
>
@ -48,7 +39,7 @@ package: net.i2p.i2pfirefox
## Methods
### FIND_CHROMIUM_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L54)
### FIND_CHROMIUM_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L51)
+ Description:
+ Access: private
@ -58,7 +49,7 @@ package: net.i2p.i2pfirefox
This method has no parameters.
### FIND_CHROMIUM_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L70)
### FIND_CHROMIUM_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L67)
+ Description:
+ Access: private
@ -68,7 +59,7 @@ This method has no parameters.
This method has no parameters.
### FIND_CHROMIUM_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L88)
### FIND_CHROMIUM_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L85)
+ Description:
+ Access: private
@ -78,7 +69,7 @@ This method has no parameters.
This method has no parameters.
### FIND_ALL_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L125)
### FIND_ALL_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L122)
+ Description:
+ Access: private
@ -88,7 +79,7 @@ This method has no parameters.
This method has no parameters.
### FIND_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L145)
### FIND_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L142)
+ Description:
+ Access: private
@ -98,7 +89,7 @@ This method has no parameters.
This method has no parameters.
### NEARBY_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L159)
### NEARBY_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L156)
+ Description:
+ Access: private
@ -108,7 +99,7 @@ This method has no parameters.
This method has no parameters.
### CHROMIUM_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L213)
### CHROMIUM_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L210)
+ Description:
+ Access: private
@ -118,7 +109,7 @@ This method has no parameters.
This method has no parameters.
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L225)
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L222)
+ Description:
+ Access: private
@ -128,7 +119,7 @@ This method has no parameters.
This method has no parameters.
### onlyValidChromiums [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L247)
### 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
@ -137,7 +128,7 @@ This method has no parameters.
This method has no parameters.
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L267)
### 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
@ -146,7 +137,7 @@ This method has no parameters.
This method has no parameters.
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L296)
### 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
@ -157,7 +148,7 @@ This method has no parameters.
| overrideChromium | String | |
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L314)
### 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
@ -166,7 +157,7 @@ This method has no parameters.
This method has no parameters.
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L327)
### 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
@ -177,7 +168,7 @@ This method has no parameters.
| args | String[] | |
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L339)
### 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
@ -186,7 +177,7 @@ This method has no parameters.
This method has no parameters.
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L352)
### 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
@ -197,7 +188,7 @@ This method has no parameters.
| args | String[] | the arguments to pass to the Chromium binary. |
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L399)
### 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
@ -208,64 +199,7 @@ This method has no parameters.
| args | String[] | the extended arguments to pass to the Chromium binary. |
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L493)
+ 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/I2PChromium.java#L503)
+ 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/I2PChromium.java#L515)
+ 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/I2PChromium.java#L528)
+ 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. |
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L541)
+ Description:
+ Access: private
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| port | int | |
| host | String | |
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L551)
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L483)
+ Description:
+ Access: public
@ -277,7 +211,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L598)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L531)
+ 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
@ -289,7 +223,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L623)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L556)
+ 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
@ -300,7 +234,7 @@ This method has no parameters.
| privateWindow | boolean | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L632)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L565)
+ 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
@ -309,7 +243,7 @@ This method has no parameters.
This method has no parameters.
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L634)
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L567)
+ Description:
+ Access: private
@ -321,7 +255,7 @@ This method has no parameters.
| inUrl | String | |
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L644)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L577)
+ Description:
+ Access: public
@ -333,7 +267,7 @@ This method has no parameters.
| args | String[] | |
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L671)
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L609)
+ Description:
+ Access: private

View File

@ -1,449 +1,422 @@
<html>
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</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>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
Class I2PChromiumProfileBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br />
Description:
<br />
&gt; I2PChromiumProfileBuilder.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com">
hankhill19580@gmail.com
</a>
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&rsquo;s contents to the active profile directory which is actually used by Chromium.
</p>
<p>
Author: idk
<br />
Parent class: I2PCommonBrowser
<br />
package: net.i2p.i2pfirefox
</p>
<h2>
Dependencies
</h2>
<p>
<details>
<br />
<summary>
<br />
Show dependencies
<br />
</summary>
<br />
<ul>
<br />
<li>
java.io.File
</li>
</ul>
<br />
</details>
</p>
<h2>
Member Variables
</h2>
<h4>
boolean usability
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L">
[src]
</a>
</h4>
<blockquote></blockquote>
<ul>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
</ul>
<h2>
Methods
</h2>
<h3>
profileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L31">
[src]
</a>
</h3>
<ul>
<li>
Description: get the profile directory creating it if necessary
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br />
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
baseProfileDir
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L35">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: private
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| file | String | |
<br />
| mode | String | |
</p>
<h3>
baseProfileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L59">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| mode | String | |
</p>
<h3>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L83">
[src]
</a>
</h3>
<ul>
<li>
Description: get the runtime directory creating it if create=true
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: the runtime directory or null if it could not be created
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| create | boolean | if true create the runtime directory if it does not exist |
</p>
<h3>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L94">
[src]
</a>
</h3>
<ul>
<li>
Description: get the correct runtime directory
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: the runtime directory or null if it could not be created or found
<br />
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
usabilityMode
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L109">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: private
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br />
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
copyBaseProfiletoProfile
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L120">
[src]
</a>
</h3>
<ul>
<li>
Description: Copy the inert base profile directory to the runtime profile directory
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br />
</li>
</ul>
<p>
This method has no parameters.
</p>
<div id="sourcecode">
<span id="sourcehead">
<strong>
Get the source code:
</strong>
</span>
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</li>
<li>
<a href="TODO.html">
TODO
</a>
</li>
<li>
<a href="USAGE.html">
USAGE
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
</a>
</li>
</ul>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
<a href="#class-i2pchromiumprofilebuilder-src" rel="nofollow">
<span></span>
</a>
Class I2PChromiumProfileBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java" rel="nofollow">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br>
Description:
</p>
<blockquote>
<p>
I2PChromiumProfileBuilder.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
hankhill19580@gmail.com
</a>
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&#39;s contents to the active profile directory which is actually used by Chromium.
</p>
</blockquote>
<p>
Author: idk
<br>
Parent class: I2PCommonBrowser
<br>
package: net.i2p.i2pfirefox
</p>
<h2>
<a href="#dependencies" rel="nofollow">
<span></span>
</a>
Dependencies
</h2>
<p>
<details>
<br>
<summary>
</p>
<pre><code>Show dependencies
</code></pre>
<p>
<br>
<ul>
<br>
<li>
java.io.File
</li>
</ul>
<br>
<h2>
<a href="#member-variables" rel="nofollow">
<span></span>
</a>
Member Variables
</h2>
<h4>
<a href="#boolean-usability-src" rel="nofollow">
<span></span>
</a>
boolean usability
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L" rel="nofollow">
[src]
</a>
</h4>
<blockquote></blockquote>
<ul>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
</ul>
<h2>
<a href="#methods" rel="nofollow">
<span></span>
</a>
Methods
</h2>
<h3>
<a href="#profiledirectory-src" rel="nofollow">
<span></span>
</a>
profileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L31" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: get the profile directory creating it if necessary
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#baseprofiledir-src" rel="nofollow">
<span></span>
</a>
baseProfileDir
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L35" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| file | String | |
<br>
| mode | String | |
</p>
<h3>
<a href="#baseprofiledirectory-src" rel="nofollow">
<span></span>
</a>
baseProfileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L59" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| mode | String | |
</p>
<h3>
<a href="#runtimedirectory-src" rel="nofollow">
<span></span>
</a>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L83" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: get the runtime directory creating it if create=true
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: the runtime directory or null if it could not be created
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| create | boolean | if true create the runtime directory if it does not exist |
</p>
<h3>
<a href="#runtimedirectory-src" rel="nofollow">
<span></span>
</a>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L94" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: get the correct runtime directory
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: the runtime directory or null if it could not be created or found
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#usabilitymode-src" rel="nofollow">
<span></span>
</a>
usabilityMode
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L109" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#copybaseprofiletoprofile-src" rel="nofollow">
<span></span>
</a>
copyBaseProfiletoProfile
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L120" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Copy the inert base profile directory to the runtime profile directory
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
This method has no parameters.
</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)
<div>
<a href="#show">
Show license
</a>
</li>
</ul>
</div>
<div>
<a href="#show">
Show license
</a>
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -1286,18 +1259,20 @@ consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
</code></pre>
<a href="#hide">
Hide license
<a href="#hide">
Hide license
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</body>
</html>

View File

@ -1,343 +1,330 @@
<html>
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</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>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
Class I2PChromiumProfileChecker
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br />
Description:
<br />
&gt; I2PChromiumProfileChecker.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com">
hankhill19580@gmail.com
</a>
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.
</p>
<p>
Author: idk
<br />
Parent class: I2PCommonBrowser
<br />
package: net.i2p.i2pfirefox
</p>
<h2>
Dependencies
</h2>
<p>
<details>
<br />
<summary>
<br />
Show dependencies
<br />
</summary>
<br />
<ul>
<br />
<li>
java.io.File
</li>
</ul>
<br />
</details>
</p>
<h2>
No member variables in this class
</h2>
<h2>
Methods
</h2>
<h3>
main
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L29">
[src]
</a>
</h3>
<ul>
<li>
Description: Output feedback if the profile directory is valid or invalid @description Output feedback if the profile directory is valid or invalid @args unused
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| args | String[] | |
</p>
<h3>
validateProfileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L50">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the profile directory is valid.
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the profile directory is valid false otherwise
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| profileDirectory | String | the profile directory to check |
</p>
<h3>
validateFile
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L81">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the file is valid.
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the file is valid false otherwise
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| file | String | the file to check |
</p>
<h3>
validateExtensionDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L108">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the extension directory is valid.
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the extension directory is valid false otherwise
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| extensionDirectory | String | the extension directory to check |
</p>
<div id="sourcecode">
<span id="sourcehead">
<strong>
Get the source code:
</strong>
</span>
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</li>
<li>
<a href="TODO.html">
TODO
</a>
</li>
<li>
<a href="USAGE.html">
USAGE
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
</a>
</li>
</ul>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
<a href="#class-i2pchromiumprofilechecker-src" rel="nofollow">
<span></span>
</a>
Class I2PChromiumProfileChecker
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java" rel="nofollow">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br>
Description:
</p>
<blockquote>
<p>
I2PChromiumProfileChecker.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
hankhill19580@gmail.com
</a>
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.
</p>
</blockquote>
<p>
Author: idk
<br>
package: net.i2p.i2pfirefox
</p>
<h2>
<a href="#dependencies" rel="nofollow">
<span></span>
</a>
Dependencies
</h2>
<p>
<details>
<br>
<summary>
</p>
<pre><code>Show dependencies
</code></pre>
<p>
<br>
<ul>
<br>
<li>
java.io.File
</li>
</ul>
<br>
<h2>
<a href="#no-member-variables-in-this-class" rel="nofollow">
<span></span>
</a>
No member variables in this class
</h2>
<h2>
<a href="#methods" rel="nofollow">
<span></span>
</a>
Methods
</h2>
<h3>
<a href="#main-src" rel="nofollow">
<span></span>
</a>
main
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L29" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Output feedback if the profile directory is valid or invalid @description Output feedback if the profile directory is valid or invalid @args unused
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| args | String[] | |
</p>
<h3>
<a href="#validateprofiledirectory-src" rel="nofollow">
<span></span>
</a>
validateProfileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L50" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the profile directory is valid.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the profile directory is valid false otherwise
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| profileDirectory | String | the profile directory to check |
</p>
<h3>
<a href="#validatefile-src" rel="nofollow">
<span></span>
</a>
validateFile
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L81" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the file is valid.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the file is valid false otherwise
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| file | String | the file to check |
</p>
<h3>
<a href="#validateextensiondirectory-src" rel="nofollow">
<span></span>
</a>
validateExtensionDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L108" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the extension directory is valid.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the extension directory is valid false otherwise
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| extensionDirectory | String | the extension directory to check |
</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)
<div>
<a href="#show">
Show license
</a>
</li>
</ul>
</div>
<div>
<a href="#show">
Show license
</a>
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -1180,18 +1167,20 @@ consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
</code></pre>
<a href="#hide">
Hide license
<a href="#hide">
Hide license
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</body>
</html>

View File

@ -7,6 +7,7 @@ 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

View File

@ -1,275 +1,266 @@
<html>
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</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>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
Class I2PChromiumProfileUnpacker
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br />
Description:
<br />
&gt; I2PChromiumProfileUnpacker.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com">
hankhill19580@gmail.com
</a>
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&rsquo;s unpacked to the disk to be copied to the active profile directory.
</p>
<p>
Author: idk
<br />
Parent class: I2PCommonBrowser
<br />
package: net.i2p.i2pfirefox
</p>
<h2>
Dependencies
</h2>
<p>
<details>
<br />
<summary>
<br />
Show dependencies
<br />
</summary>
<br />
<ul>
<br />
</ul>
<br />
</details>
</p>
<h2>
No member variables in this class
</h2>
<h2>
Methods
</h2>
<h3>
main
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L23">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| args | String[] | |
</p>
<h3>
unpackProfile
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L37">
[src]
</a>
</h3>
<ul>
<li>
Description: unpack the profile directory
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
return: true if the profile directory was successfully unpacked
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| profileDirectory | String | |
<br />
| mode | String | |
</p>
<div id="sourcecode">
<span id="sourcehead">
<strong>
Get the source code:
</strong>
</span>
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</li>
<li>
<a href="TODO.html">
TODO
</a>
</li>
<li>
<a href="USAGE.html">
USAGE
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
</a>
</li>
</ul>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
<a href="#class-i2pchromiumprofileunpacker-src" rel="nofollow">
<span></span>
</a>
Class I2PChromiumProfileUnpacker
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java" rel="nofollow">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br>
Description:
</p>
<blockquote>
<p>
I2PChromiumProfileUnpacker.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
hankhill19580@gmail.com
</a>
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&#39;s unpacked to the disk to be copied to the active profile directory.
</p>
</blockquote>
<p>
Author: idk
<br>
Parent class: I2PCommonBrowser
<br>
package: net.i2p.i2pfirefox
</p>
<h2>
<a href="#dependencies" rel="nofollow">
<span></span>
</a>
Dependencies
</h2>
<p>
<details>
<br>
<summary>
</p>
<pre><code>Show dependencies
</code></pre>
<p>
<br>
<ul>
<br>
</ul>
<br>
<h2>
<a href="#no-member-variables-in-this-class" rel="nofollow">
<span></span>
</a>
No member variables in this class
</h2>
<h2>
<a href="#methods" rel="nofollow">
<span></span>
</a>
Methods
</h2>
<h3>
<a href="#main-src" rel="nofollow">
<span></span>
</a>
main
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L23" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| args | String[] | |
</p>
<h3>
<a href="#unpackprofile-src" rel="nofollow">
<span></span>
</a>
unpackProfile
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L37" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: unpack the profile directory
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the profile directory was successfully unpacked
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| profileDirectory | String | |
<br>
| mode | String | |
</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)
<div>
<a href="#show">
Show license
</a>
</li>
</ul>
</div>
<div>
<a href="#show">
Show license
</a>
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -1112,18 +1103,20 @@ consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
</code></pre>
<a href="#hide">
Hide license
<a href="#hide">
Hide license
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -22,18 +22,43 @@ package: net.i2p.i2pfirefox
<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>
## No member variables in this class
## Member Variables
#### Logger logger [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L)
>
+ Access: public
+ Modifiers: static
#### [[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#L38)
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L131)
+ Description: get the runtime directory creating it if create=true
+ Access: protected
@ -46,7 +71,7 @@ package: net.i2p.i2pfirefox
| override | String | |
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L55)
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L148)
+ Description: get the correct runtime directory
+ Access: protected
@ -58,7 +83,7 @@ package: net.i2p.i2pfirefox
| override | String | |
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L102)
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L195)
+ Description: get the profile directory creating it if necessary
+ Access: protected
@ -71,7 +96,7 @@ package: net.i2p.i2pfirefox
| browser | String | |
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L114)
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L207)
+ Description:
+ Access: protected
@ -84,7 +109,7 @@ package: net.i2p.i2pfirefox
| browser | String | |
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L120)
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L213)
+ Description:
+ Access: protected
@ -97,7 +122,7 @@ package: net.i2p.i2pfirefox
| base | String | |
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L167)
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L259)
+ Description:
+ Access: protected
@ -112,7 +137,7 @@ package: net.i2p.i2pfirefox
| base | String | |
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L183)
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L275)
+ Description:
+ Access: private
@ -127,7 +152,7 @@ package: net.i2p.i2pfirefox
| base | String | |
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192)
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L284)
+ Description:
+ Access: private
@ -140,7 +165,7 @@ package: net.i2p.i2pfirefox
| destinationFile | File | |
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L203)
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L295)
+ Description:
+ Access: public
@ -152,3 +177,71 @@ package: net.i2p.i2pfirefox
| 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 | |

File diff suppressed because it is too large Load Diff

View File

@ -19,8 +19,8 @@ package: net.i2p.i2pfirefox
<ul>
<li>java.io.File</li>
<li>java.io.IOException</li>
<li>java.net.Socket</li>
<li>java.util.ArrayList</li>
<li>java.util.concurrent.TimeUnit</li>
</ul>
</details>
@ -33,13 +33,6 @@ package: net.i2p.i2pfirefox
+ Access: private
+ Modifiers: final
#### int DEFAULT_TIMEOUT [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L)
>
+ Access: private
+ Modifiers: final
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L)
>
@ -55,7 +48,7 @@ package: net.i2p.i2pfirefox
## Methods
### FIND_FIREFOX_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L45)
### FIND_FIREFOX_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L44)
+ Description:
+ Access: private
@ -65,7 +58,7 @@ package: net.i2p.i2pfirefox
This method has no parameters.
### FIND_FIREFOX_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L60)
### FIND_FIREFOX_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L59)
+ Description:
+ Access: private
@ -75,7 +68,7 @@ This method has no parameters.
This method has no parameters.
### FIND_FIREFOX_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L77)
### FIND_FIREFOX_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L76)
+ Description:
+ Access: private
@ -85,7 +78,7 @@ This method has no parameters.
This method has no parameters.
### FIND_ALL_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L113)
### FIND_ALL_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L112)
+ Description:
+ Access: private
@ -95,7 +88,7 @@ This method has no parameters.
This method has no parameters.
### FIND_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L133)
### FIND_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L132)
+ Description:
+ Access: private
@ -105,7 +98,7 @@ This method has no parameters.
This method has no parameters.
### NEARBY_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L147)
### NEARBY_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L146)
+ Description:
+ Access: private
@ -115,7 +108,7 @@ This method has no parameters.
This method has no parameters.
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L201)
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L202)
+ Description:
+ Access: private
@ -125,7 +118,7 @@ This method has no parameters.
This method has no parameters.
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L213)
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L214)
+ Description:
+ Access: private
@ -135,7 +128,7 @@ This method has no parameters.
This method has no parameters.
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L235)
### 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
@ -144,7 +137,7 @@ This method has no parameters.
This method has no parameters.
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L255)
### 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
@ -153,7 +146,7 @@ This method has no parameters.
This method has no parameters.
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L284)
### 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
@ -164,7 +157,7 @@ This method has no parameters.
| overrideFirefox | String | |
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L302)
### 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
@ -173,7 +166,7 @@ This method has no parameters.
This method has no parameters.
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L314)
### 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
@ -184,7 +177,7 @@ This method has no parameters.
| args | String[] | the args to pass to the Firefox binary |
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L328)
### 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
@ -193,7 +186,7 @@ This method has no parameters.
This method has no parameters.
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L341)
### 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
@ -204,7 +197,18 @@ This method has no parameters.
| args | String[] | the arguments to pass to the Firefox binary |
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L364)
### 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
@ -215,64 +219,7 @@ This method has no parameters.
| args | String[] | the extended arguments to pass to the Firefox binary. |
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L397)
+ 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/I2PFirefox.java#L407)
+ 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/I2PFirefox.java#L419)
+ 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/I2PFirefox.java#L432)
+ 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. |
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L446)
+ Description:
+ Access: private
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| port | int | |
| host | String | |
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L456)
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L413)
+ Description:
+ Access: private
@ -281,7 +228,7 @@ This method has no parameters.
This method has no parameters.
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L463)
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L420)
+ Description:
+ Access: public
@ -293,7 +240,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L511)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L494)
+ 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
@ -305,7 +252,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L535)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L518)
+ 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
@ -316,7 +263,7 @@ This method has no parameters.
| privateWindow | boolean | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L545)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L528)
+ 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
@ -325,7 +272,7 @@ This method has no parameters.
This method has no parameters.
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L547)
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L530)
+ Description:
+ Access: private
@ -337,7 +284,7 @@ This method has no parameters.
| inUrl | String | |
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L558)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L541)
+ Description:
+ Access: public
@ -349,7 +296,7 @@ This method has no parameters.
| args | String[] | |
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L586)
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L574)
+ Description:
+ Access: private

View File

@ -1,463 +1,436 @@
<html>
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</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>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
Class I2PFirefoxProfileBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br />
Description:
<br />
&gt; I2PFirefoxProfileBuilder.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com">
hankhill19580@gmail.com
</a>
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&rsquo;s contents to the active profile directory which is actually used by Firefox.
</p>
<p>
Author: idk
<br />
Parent class: I2PCommonBrowser
<br />
package: net.i2p.i2pfirefox
</p>
<h2>
Dependencies
</h2>
<p>
<details>
<br />
<summary>
<br />
Show dependencies
<br />
</summary>
<br />
<ul>
<br />
<li>
java.io.File
</li>
<li>
java.nio.file.Files
</li>
<li>
java.nio.file.StandardCopyOption
</li>
</ul>
<br />
</details>
</p>
<h2>
Member Variables
</h2>
<h4>
boolean strict
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L">
[src]
</a>
</h4>
<blockquote></blockquote>
<ul>
<li>
Access: private
<br />
</li>
<li>
Modifiers: static
</li>
</ul>
<h2>
Methods
</h2>
<h3>
profileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L33">
[src]
</a>
</h3>
<ul>
<li>
Description: get the profile directory creating it if necessary
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br />
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
baseProfileDir
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L37">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: private
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| file | String | |
<br />
| base | String | |
</p>
<h3>
baseProfileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L57">
[src]
</a>
</h3>
<ul>
<li>
Description: get the base profile directory creating it if necessary
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| base | String | |
</p>
<h3>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L81">
[src]
</a>
</h3>
<ul>
<li>
Description: get the runtime directory creating it if create=true
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: the runtime directory or null if it could not be created
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| create | boolean | if true create the runtime directory if it does not exist |
</p>
<h3>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L92">
[src]
</a>
</h3>
<ul>
<li>
Description: get the correct runtime directory
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: the runtime directory or null if it could not be created or found
<br />
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
copyBaseProfiletoProfile
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L112">
[src]
</a>
</h3>
<ul>
<li>
Description: Copy the inert base profile directory to the runtime profile directory
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| base | String | |
</p>
<h3>
copyStrictOptions
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L151">
[src]
</a>
</h3>
<ul>
<li>
Description: Copy the strict options from the base profile to the profile
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: true if successful false otherwise
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| base | String | |
</p>
<div id="sourcecode">
<span id="sourcehead">
<strong>
Get the source code:
</strong>
</span>
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</li>
<li>
<a href="TODO.html">
TODO
</a>
</li>
<li>
<a href="USAGE.html">
USAGE
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
</a>
</li>
</ul>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
<a href="#class-i2pfirefoxprofilebuilder-src" rel="nofollow">
<span></span>
</a>
Class I2PFirefoxProfileBuilder
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java" rel="nofollow">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br>
Description:
</p>
<blockquote>
<p>
I2PFirefoxProfileBuilder.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
hankhill19580@gmail.com
</a>
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&#39;s contents to the active profile directory which is actually used by Firefox.
</p>
</blockquote>
<p>
Author: idk
<br>
Parent class: I2PCommonBrowser
<br>
package: net.i2p.i2pfirefox
</p>
<h2>
<a href="#dependencies" rel="nofollow">
<span></span>
</a>
Dependencies
</h2>
<p>
<details>
<br>
<summary>
</p>
<pre><code>Show dependencies
</code></pre>
<p>
<br>
<ul>
<br>
<li>
java.io.File
</li>
<li>
java.nio.file.Files
</li>
<li>
java.nio.file.StandardCopyOption
</li>
</ul>
<br>
<h2>
<a href="#member-variables" rel="nofollow">
<span></span>
</a>
Member Variables
</h2>
<h4>
<a href="#boolean-strict-src" rel="nofollow">
<span></span>
</a>
boolean strict
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L" rel="nofollow">
[src]
</a>
</h4>
<blockquote></blockquote>
<ul>
<li>
Access: private
<br>
</li>
<li>
Modifiers: static
</li>
</ul>
<h2>
<a href="#methods" rel="nofollow">
<span></span>
</a>
Methods
</h2>
<h3>
<a href="#profiledirectory-src" rel="nofollow">
<span></span>
</a>
profileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L33" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: get the profile directory creating it if necessary
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#baseprofiledir-src" rel="nofollow">
<span></span>
</a>
baseProfileDir
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L37" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| file | String | |
<br>
| base | String | |
</p>
<h3>
<a href="#baseprofiledirectory-src" rel="nofollow">
<span></span>
</a>
baseProfileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L57" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: get the base profile directory creating it if necessary
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: String
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| base | String | |
</p>
<h3>
<a href="#runtimedirectory-src" rel="nofollow">
<span></span>
</a>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L81" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: get the runtime directory creating it if create=true
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: the runtime directory or null if it could not be created
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| create | boolean | if true create the runtime directory if it does not exist |
</p>
<h3>
<a href="#runtimedirectory-src" rel="nofollow">
<span></span>
</a>
runtimeDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L92" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: get the correct runtime directory
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: the runtime directory or null if it could not be created or found
<br>
</li>
</ul>
<p>
This method has no parameters.
</p>
<h3>
<a href="#copybaseprofiletoprofile-src" rel="nofollow">
<span></span>
</a>
copyBaseProfiletoProfile
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L112" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Copy the inert base profile directory to the runtime profile directory
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| base | String | |
</p>
<h3>
<a href="#copystrictoptions-src" rel="nofollow">
<span></span>
</a>
copyStrictOptions
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L151" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Copy the strict options from the base profile to the profile
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: true if successful false otherwise
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| base | String | |
</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)
<div>
<a href="#show">
Show license
</a>
</li>
</ul>
</div>
<div>
<a href="#show">
Show license
</a>
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -1300,18 +1273,20 @@ consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
</code></pre>
<a href="#hide">
Hide license
<a href="#hide">
Hide license
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</body>
</html>

View File

@ -1,421 +1,472 @@
<html>
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</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>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
Class I2PFirefoxProfileChecker
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br />
Description:
<br />
&gt; I2PFirefoxProfileChecker.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com">
hankhill19580@gmail.com
</a>
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.
</p>
<p>
Author: idk
<br />
Parent class: I2PCommonBrowser
<br />
package: net.i2p.i2pfirefox
</p>
<h2>
Dependencies
</h2>
<p>
<details>
<br />
<summary>
<br />
Show dependencies
<br />
</summary>
<br />
<ul>
<br />
<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>
<br />
</details>
</p>
<h2>
No member variables in this class
</h2>
<h2>
Methods
</h2>
<h3>
main
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L32">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| args | String[] | |
</p>
<h3>
validateProfileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the profile directory is valid.
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the profile directory is valid false otherwise
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| profileDirectory | String | the profile directory to check |
</p>
<h3>
deRestrictHTTPSAndSetupHomepage
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L86">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: private
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| profile | String | |
</p>
<h3>
undoHttpsOnlyMode
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L109">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: private
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| fileToBeModified | File | |
</p>
<h3>
undoHomepage
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L115">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: private
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| fileToBeModified | File | |
</p>
<h3>
undoValue
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L138">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: private
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| oldString | String | |
<br />
| newString | String | |
<br />
| fileToBeModified | File | |
</p>
<h3>
validateFile
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L172">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the file is valid.
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the file is valid false otherwise
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| file | String | the file to check |
</p>
<h3>
validateExtensionDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the extension directory is valid.
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the extension directory is valid false otherwise
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| extensionDirectory | String | the extension directory to check |
</p>
<div id="sourcecode">
<span id="sourcehead">
<strong>
Get the source code:
</strong>
</span>
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</li>
<li>
<a href="TODO.html">
TODO
</a>
</li>
<li>
<a href="USAGE.html">
USAGE
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
</a>
</li>
</ul>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
<a href="#class-i2pfirefoxprofilechecker-src" rel="nofollow">
<span></span>
</a>
Class I2PFirefoxProfileChecker
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java" rel="nofollow">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br>
Description:
</p>
<blockquote>
<p>
I2PFirefoxProfileChecker.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
hankhill19580@gmail.com
</a>
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.
</p>
</blockquote>
<p>
Author: idk
<br>
package: net.i2p.i2pfirefox
</p>
<h2>
<a href="#dependencies" rel="nofollow">
<span></span>
</a>
Dependencies
</h2>
<p>
<details>
<br>
<summary>
</p>
<pre><code>Show dependencies
</code></pre>
<p>
<br>
<ul>
<br>
<li>
java.io.BufferedReader
</li>
<li>
java.io.File
</li>
<li>
java.io.FileReader
</li>
<li>
java.io.FileWriter
</li>
<li>
java.io.IOException
</li>
</ul>
<br>
<h2>
<a href="#no-member-variables-in-this-class" rel="nofollow">
<span></span>
</a>
No member variables in this class
</h2>
<h2>
<a href="#methods" rel="nofollow">
<span></span>
</a>
Methods
</h2>
<h3>
<a href="#main-src" rel="nofollow">
<span></span>
</a>
main
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| args | String[] | |
</p>
<h3>
<a href="#validateprofiledirectory-src" rel="nofollow">
<span></span>
</a>
validateProfileDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L51" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the profile directory is valid.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the profile directory is valid false otherwise
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| profileDirectory | String | the profile directory to check |
</p>
<h3>
<a href="#derestricthttps-src" rel="nofollow">
<span></span>
</a>
deRestrictHTTPS
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| profile | String | |
</p>
<h3>
<a href="#undohttpsonlymode-src" rel="nofollow">
<span></span>
</a>
undoHttpsOnlyMode
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: private
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: boolean
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| fileToBeModified | File | |
</p>
<h3>
<a href="#validatefile-src" rel="nofollow">
<span></span>
</a>
validateFile
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the file is valid.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the file is valid false otherwise
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| file | String | the file to check |
</p>
<h3>
<a href="#validateextensiondirectory-src" rel="nofollow">
<span></span>
</a>
validateExtensionDirectory
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: Return true if the extension directory is valid.
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: true if the extension directory is valid false otherwise
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| extensionDirectory | String | the extension directory to check |
</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)
<div>
<a href="#show">
Show license
</a>
</li>
</ul>
</div>
<div>
<a href="#show">
Show license
</a>
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -1258,18 +1309,20 @@ consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
</code></pre>
<a href="#hide">
Hide license
<a href="#hide">
Hide license
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</body>
</html>

View File

@ -7,6 +7,7 @@ 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
@ -18,9 +19,11 @@ package: net.i2p.i2pfirefox
<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>
@ -28,7 +31,7 @@ package: net.i2p.i2pfirefox
## Methods
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L32)
+ Description:
+ Access: public
@ -40,7 +43,7 @@ package: net.i2p.i2pfirefox
| args | String[] | |
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L51)
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53)
+ Description: Return true if the profile directory is valid.
+ Access: public
@ -52,7 +55,7 @@ package: net.i2p.i2pfirefox
| profileDirectory | String | the profile directory to check |
### deRestrictHTTPS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84)
### deRestrictHTTPSAndSetupHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L86)
+ Description:
+ Access: private
@ -64,7 +67,7 @@ package: net.i2p.i2pfirefox
| profile | String | |
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104)
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L109)
+ Description:
+ Access: private
@ -76,7 +79,33 @@ package: net.i2p.i2pfirefox
| fileToBeModified | File | |
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140)
### 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
@ -88,7 +117,7 @@ package: net.i2p.i2pfirefox
| file | String | the file to check |
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167)
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199)
+ Description: Return true if the extension directory is valid.
+ Access: public

View File

@ -1,279 +1,270 @@
<html>
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<head>
<title>
i2p.plugins.fire...
</title>
<meta name="author" content="eyedeekay" />
<meta name="description" content="i2p.plugins.firefox" />
<meta name="keywords" content="main" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="showhider.css" />
</head>
<body>
<div id="navbar">
<a href="#shownav">
Show navigation
</a>
<div id="shownav">
<div id="hidenav">
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</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>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
Class I2PFirefoxProfileUnpacker
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br />
Description:
<br />
&gt; I2PFirefoxProfileUnpacker.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com">
hankhill19580@gmail.com
</a>
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
<code>
jar
</code>
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.
</p>
<p>
Author: idk
<br />
Parent class: I2PCommonBrowser
<br />
package: net.i2p.i2pfirefox
</p>
<h2>
Dependencies
</h2>
<p>
<details>
<br />
<summary>
<br />
Show dependencies
<br />
</summary>
<br />
<ul>
<br />
</ul>
<br />
</details>
</p>
<h2>
No member variables in this class
</h2>
<h2>
Methods
</h2>
<h3>
main
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L23">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| args | String[] | |
</p>
<h3>
unpackProfile
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L37">
[src]
</a>
</h3>
<ul>
<li>
Description: unpack the profile directory
<br />
</li>
<li>
Access: public
<br />
</li>
<li>
return: true if the profile directory was successfully unpacked
<br />
</li>
</ul>
<p>
| Name | Type | Description |
<br />
| &mdash;&ndash; | &mdash;&ndash; | &mdash;&ndash; |
<br />
| profileDirectory | String | |
<br />
| base | String | |
</p>
<div id="sourcecode">
<span id="sourcehead">
<strong>
Get the source code:
</strong>
</span>
<ul>
<li>
<a href="..">
Up one level ^
</a>
</li>
<li>
<a href="index.html">
index
</a>
</li>
<li>
<a href="CHANGES.html">
CHANGES
</a>
</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>
<a href="LICENSE.html">
LICENSE
</a>
</li>
<li>
<a href="TODO.html">
TODO
</a>
</li>
<li>
<a href="USAGE.html">
USAGE
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
</a>
</li>
</ul>
<br>
<a href="#hidenav">
Hide Navigation
</a>
</div>
</div>
</div>
<a id="returnhome" href="/">
/
</a>
<h1>
<a href="#class-i2pfirefoxprofileunpacker-src" rel="nofollow">
<span></span>
</a>
Class I2PFirefoxProfileUnpacker
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java" rel="nofollow">
[src]
</a>
</h1>
<blockquote>
<p>
*/
</p>
</blockquote>
<p>
Access: public
<br>
Description:
</p>
<blockquote>
<p>
I2PFirefoxProfileUnpacker.java Copyright C 2022 idk
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
hankhill19580@gmail.com
</a>
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
<code>
jar
</code>
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.
</p>
</blockquote>
<p>
Author: idk
<br>
Parent class: I2PCommonBrowser
<br>
package: net.i2p.i2pfirefox
</p>
<h2>
<a href="#dependencies" rel="nofollow">
<span></span>
</a>
Dependencies
</h2>
<p>
<details>
<br>
<summary>
</p>
<pre><code>Show dependencies
</code></pre>
<p>
<br>
<ul>
<br>
</ul>
<br>
<h2>
<a href="#no-member-variables-in-this-class" rel="nofollow">
<span></span>
</a>
No member variables in this class
</h2>
<h2>
<a href="#methods" rel="nofollow">
<span></span>
</a>
Methods
</h2>
<h3>
<a href="#main-src" rel="nofollow">
<span></span>
</a>
main
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L23" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description:
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
Modifiers: static
</li>
<li>
return: void
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| args | String[] | |
</p>
<h3>
<a href="#unpackprofile-src" rel="nofollow">
<span></span>
</a>
unpackProfile
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L37" rel="nofollow">
[src]
</a>
</h3>
<ul>
<li>
Description: unpack the profile directory
<br>
</li>
<li>
Access: public
<br>
</li>
<li>
return: true if the profile directory was successfully unpacked
<br>
</li>
</ul>
<p>
| Name | Type | Description |
<br>
| ----- | ----- | ----- |
<br>
| profileDirectory | String | |
<br>
| base | String | |
</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)
<div>
<a href="#show">
Show license
</a>
</li>
</ul>
</div>
<div>
<a href="#show">
Show license
</a>
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
<div id="show">
<div id="hide">
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -1116,18 +1107,20 @@ consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
</code></pre>
<a href="#hide">
Hide license
<a href="#hide">
Hide license
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</div>
</div>
<div>
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
</div>
<div>
<a href="https://geti2p.net/">
<img src="i2plogo.png"></img>
I2P
</a>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -192,7 +192,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L349)
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L350)
+ Description:
+ Access: public
@ -204,7 +204,7 @@ This method has no parameters.
| url | String[] | |
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L367)
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L368)
+ Description:
+ Access: private
@ -216,7 +216,7 @@ This method has no parameters.
| millis | int | |
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L375)
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L376)
+ Description:
+ Access: private
@ -228,7 +228,7 @@ This method has no parameters.
| inUrl | String | |
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L385)
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L386)
+ Description:
+ Access: private

File diff suppressed because it is too large Load Diff

1209
PACKAGES.html Normal file

File diff suppressed because it is too large Load Diff

92
PACKAGES.md Normal file
View File

@ -0,0 +1,92 @@
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 `CHANGES.md`
2. Update the version number(`GITHUB_TAG`) and version title(`GITHUB_NAME`) in `config.sh`
3. On a Linux machine, run `./release.sh`
4. On a Windows machine, run `./windows-release.sh`
5. On whatever machine you check in code with, run ./packages.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

View File

@ -2,6 +2,19 @@
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
### Using a Binary

1055
RELEASES.html Normal file

File diff suppressed because it is too large Load Diff

12
RELEASES.md Normal file
View File

@ -0,0 +1,12 @@
Sums for release 0.0.34
==============================
- [d324173b6e9fb78dbb9eb8363d094cab3803ee3279d266dba42500be7f558305 i2pfirefox.jar](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.34/i2pfirefox.jar)
- [8a2f18d79d0b2ee67bc7904dce48f42ddb8c0df6ed30779f8c315c80e0ac0ece i2pfirefox.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.34/i2pfirefox.zip)
- [baa6b9443e5750d3ef6ea9685656cc28830b9d0dbcc745cde68cfadde8e98b31 i2pbrowser.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.34/i2pbrowser.zip)
- [63a36b615998f318b4dba8026cb246c0e7df4c4bb379ad04144c7de3e2250e8d i2pbrowser_0.0.34_amd64.deb](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.34/i2pbrowser_0.0.34_amd64.deb)
- [c2743a5a1f95786d9c496162ff786d9b753d7eb24ff1bd90047317f7e8d242bf i2pbrowser-0.0.34-1.x86_64.rpm](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.34/i2pbrowser-0.0.34-1.x86_64.rpm)
- [62282fe664837e8f81b0b0f89ced0def6852838b825bf30a745c1bd403bd4151 i2pbrowser.msi](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.34/i2pbrowser.msi)
- [930fca054cf1754c52a477de3476c9bb0d618e2c1e92ea4b8aca6a0363efde27 i2pbrowser.exe](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.34/i2pbrowser.exe)
- [a84bea6ed996fa8c5535df1950a42d7d31197e8526c6a328d9098b716512d3d3 i2pbrowser-portable.zip](https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.34/i2pbrowser-portable.zip)

View File

@ -97,6 +97,16 @@
LICENSE
</a>
</li>
<li>
<a href="PACKAGES.html">
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -119,9 +129,6 @@
/
</a>
<h1>
<a href="#to-do-list" rel="nofollow">
<span></span>
</a>
To-Do List:
</h1>
<ol>

View File

@ -97,6 +97,16 @@
LICENSE
</a>
</li>
<li>
<a href="PACKAGES.html">
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -119,9 +129,6 @@
/
</a>
<h1>
<a href="#example-commands" rel="nofollow">
<span></span>
</a>
Example Commands:
</h1>
<p>
@ -131,7 +138,7 @@
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.
</p>
<p>
The second and third command is for Windows and won&#39;t be reachable on Linux(because the top command will be run and the script will exit).
The second and third command is for Windows and won&rsquo;t be reachable on Linux(because the top command will be run and the script will exit).
</p>
<p>
Both determine the path to the script, use it to find the jar file, and execute a single command.
@ -139,57 +146,45 @@
<p>
Auto-Select in Persistent Mode
</p>
<div>
<pre>:; dir=$(CDPATH= cd -- &#34;$(dirname -- &#34;$0&#34;)&#34; &amp;&amp; pwd); java -cp &#34;$dir&#34;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $?
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- &quot;$(dirname -- &quot;$0&quot;)&quot; &amp;&amp; pwd); java -cp &quot;$dir&quot;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser
</pre>
</div>
</code></pre>
<p>
Auto-Select in Private Browsing Mode
</p>
<div>
<pre>:; dir=$(CDPATH= cd -- &#34;$(dirname -- &#34;$0&#34;)&#34; &amp;&amp; pwd); java -cp &#34;$dir&#34;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private; exit $?
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- &quot;$(dirname -- &quot;$0&quot;)&quot; &amp;&amp; pwd); java -cp &quot;$dir&quot;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private
</pre>
</div>
</code></pre>
<p>
Firefox in Persistent Mode
</p>
<div>
<pre>:; dir=$(CDPATH= cd -- &#34;$(dirname -- &#34;$0&#34;)&#34; &amp;&amp; pwd); java -cp &#34;$dir&#34;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- &quot;$(dirname -- &quot;$0&quot;)&quot; &amp;&amp; pwd); java -cp &quot;$dir&quot;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
</pre>
</div>
</code></pre>
<p>
Firefox in Private Browsing Mode
</p>
<div>
<pre>:; dir=$(CDPATH= cd -- &#34;$(dirname -- &#34;$0&#34;)&#34; &amp;&amp; pwd); java -cp &#34;$dir&#34;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private; exit $?
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- &quot;$(dirname -- &quot;$0&quot;)&quot; &amp;&amp; pwd); java -cp &quot;$dir&quot;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private
</pre>
</div>
</code></pre>
<p>
Chromium in Persistent Mode
</p>
<div>
<pre>:; dir=$(CDPATH= cd -- &#34;$(dirname -- &#34;$0&#34;)&#34; &amp;&amp; pwd); java -cp &#34;$dir&#34;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium; exit $?
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- &quot;$(dirname -- &quot;$0&quot;)&quot; &amp;&amp; pwd); java -cp &quot;$dir&quot;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium
</pre>
</div>
</code></pre>
<p>
Chromium in Private Browsing Mode
</p>
<div>
<pre>:; dir=$(CDPATH= cd -- &#34;$(dirname -- &#34;$0&#34;)&#34; &amp;&amp; pwd); java -cp &#34;$dir&#34;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- &quot;$(dirname -- &quot;$0&quot;)&quot; &amp;&amp; pwd); java -cp &quot;$dir&quot;/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private
</pre>
</div>
</code></pre>
<div id="sourcecode">
<span id="sourcehead">
<strong>

View File

@ -317,7 +317,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<delete dir="plugin/eepsite/docroot/torrents/" />
<!-- get version number -->
<buildnumber file="scripts/build.number" />
<property name="release.number" value="0.0.24" />
<property name="release.number" value="0.0.35" />
<!-- make the update xpi2p -->
<!-- this contains everything except i2ptunnel.config -->
@ -392,6 +392,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<delete dir="i2p.firefox.profile" />
<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" />
@ -413,6 +414,9 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<delete file="i2pfirefox-update.su3" />
<delete file="plugin.zip" />
<delete dir="plugin/eepsite/docroot/torrents/" />
<exec executable="git">
<arg value="clean"/> <arg value="-fdx"/>
</exec>
</target>
<target name="jpackage" depends="jar">
<delete dir="i2pbrowser" />
@ -434,4 +438,18 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
<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>

6
config.sh Executable file
View 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.35

16
debian.sh Executable file
View 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
View 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
View 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 .

View File

@ -97,6 +97,16 @@
LICENSE
</a>
</li>
<li>
<a href="PACKAGES.html">
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -119,28 +129,46 @@
/
</a>
<h1>
<a href="#i2p-plugins-firefox" rel="nofollow">
<span></span>
</a>
i2p.plugins.firefox
</h1>
<p>
A port of the batch scripts from i2p.firefox to Java.
</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">
Windows users should see the Easy-Install Bundle
</a>
</strong>
</p>
<h2>
<a href="#getting-started" rel="nofollow">
<span></span>
</a>
Getting started
</h2>
<h3>
<a href="#using-a-binary" rel="nofollow">
<span></span>
</a>
Using a Binary
</h3>
<div>
<pre>
<pre><code class="language-sh">
mkdir ~/tmp-i2pfirefox &amp;&amp; cd ~/tmp-i2pfirefox
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.16/i2pfirefox.zip
unzip i2pfirefox.zip
@ -149,12 +177,8 @@ unzip i2pfirefox.zip
#or if you want to use a Chromium
./i2pchromium.cmd
</pre>
</div>
</code></pre>
<h3>
<a href="#build-dependencies" rel="nofollow">
<span></span>
</a>
Build Dependencies
</h3>
<p>
@ -171,14 +195,12 @@ unzip i2pfirefox.zip
<code>
crx3
</code>
which is used to interact with the Chrome app store. I&#39;ve been using Java 17
which is used to interact with the Chrome app store. I&rsquo;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
<pre><code class="language-sh">sudo apt-get install openjdk-17* ant golang-go
go install github.com/mediabuyerbot/go-crx3/crx3@latest
</pre>
</div>
</code></pre>
<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
@ -191,17 +213,12 @@ go install github.com/mediabuyerbot/go-crx3/crx3@latest
</code>
.
</p>
<div>
<pre>export PATH=$PATH:$HOME/go/bin
</pre>
</div>
<pre><code class="language-sh">export PATH=$PATH:$HOME/go/bin
</code></pre>
<p>
Will almost always work.
</p>
<h3>
<a href="#building" rel="nofollow">
<span></span>
</a>
Building
</h3>
<p>
@ -209,19 +226,15 @@ go install github.com/mediabuyerbot/go-crx3/crx3@latest
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:
</p>
<div>
<pre>
<pre><code class="language-sh">
ant jar
</pre>
</div>
</code></pre>
<p>
To build just the jar. You&#39;ll know it worked if you can:
To build just the jar. You&rsquo;ll know it worked if you can:
</p>
<div>
<pre>
<pre><code class="language-sh">
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
</pre>
</div>
</code></pre>
<p>
and a new Firefox instance comes up with a fresh profile, ready-to-use for I2P browsing.
</p>
@ -229,34 +242,29 @@ java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
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:
</p>
<div>
<pre>
<pre><code class="language-java">
// Firefox Example
if (i2pIsRunning()) {
logger.warning(&#34;I2P is already running&#34;);
System.out.println(&#34;I2PFirefox&#34;);
logger.warning(&quot;I2P is already running&quot;);
System.out.println(&quot;I2PFirefox&quot;);
I2PFirefox i2pFirefox = new I2PFirefox();
i2pFirefox.launch();
}
</pre>
</div>
<div>
<pre>
</code></pre>
<pre><code class="language-java">
// Chromium Example
if (i2pIsRunning()) {
logger.warning(&#34;I2P is already running&#34;);
System.out.println(&#34;I2PChromium&#34;);
logger.warning(&quot;I2P is already running&quot;);
System.out.println(&quot;I2PChromium&quot;);
I2PChromium i2pChromium = new I2PChromium();
i2pChromium.launch();
}
</pre>
</div>
<div>
<pre>
</code></pre>
<pre><code class="language-java">
// Auto-Select Example, chooses Firefox first, then Chromium
if (i2pIsRunning()) {
logger.warning(&#34;I2P is already running&#34;);
System.out.println(&#34;I2PBrowser&#34;);
logger.warning(&quot;I2P is already running&quot;);
System.out.println(&quot;I2PBrowser&quot;);
I2PBrowser i2pBrowser = new I2PBrowser();
/*
* toggle chromium to the top of the order by doing:
@ -265,15 +273,11 @@ if (i2pIsRunning()) {
*/
i2pBrowser.launch(privateBrowsing);
}
</pre>
</div>
</code></pre>
<p>
to add a browser management tool to it.
</p>
<h3>
<a href="#browser-discovery-methods" rel="nofollow">
<span></span>
</a>
Browser Discovery Methods
</h3>
<p>
@ -285,12 +289,12 @@ if (i2pIsRunning()) {
</p>
<ol>
<li>
&#34;Local&#34; discovery, where a browser is in a subdirectory of the directory where you
&ldquo;Local&rdquo; 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>
&#34;Path-Based&#34; discovery, where it scans common browser installation directories
&ldquo;Path-Based&rdquo; 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
@ -299,7 +303,7 @@ if (i2pIsRunning()) {
directories are hard-coded and included in the binary. This is what usually happens.
</li>
<li>
&#34;System-Based&#34; discovery, where it defers to the host system to make a choice
&ldquo;System-Based&rdquo; 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.
@ -322,11 +326,11 @@ if (i2pIsRunning()) {
<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&#39;s own user. Linux will only use
Tor Browser if it&#39;s discovered in &#34;Local&#34; mode.
which is installed either as the main user or it&rsquo;s own user. Linux will only use
Tor Browser if it&rsquo;s discovered in &ldquo;Local&rdquo; mode.
</li>
<li>
The above is also true of OSX for now but doesn&#39;t have to remain so.
The above is also true of OSX for now but doesn&rsquo;t have to remain so.
</li>
<li>
I really only test Phase 3 with Dillo and Edgium.
@ -336,9 +340,6 @@ if (i2pIsRunning()) {
</li>
</ul>
<h3>
<a href="#usability-vs-strict" rel="nofollow">
<span></span>
</a>
Usability vs Strict
</h3>
<p>
@ -347,14 +348,11 @@ if (i2pIsRunning()) {
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 &#34;Coarse&#34; configuration
usability. To allow users a safe set of choices, we offer &ldquo;Coarse&rdquo; 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>
@ -369,9 +367,6 @@ if (i2pIsRunning()) {
Cons: Plugin updates can create temporary uniqueness
</p>
<h5>
<a href="#usability-extension-set" rel="nofollow">
<span></span>
</a>
Usability Extension Set
</h5>
<ul>
@ -408,18 +403,12 @@ if (i2pIsRunning()) {
</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>
@ -427,7 +416,7 @@ if (i2pIsRunning()) {
</p>
<p>
Pros: Does not allow Javascript by default
Pros: Looks a lot like Tor Browser especially if you&#39;re using Tor Browser
Pros: Looks a lot like Tor Browser especially if you&rsquo;re using Tor Browser
</p>
<p>
Cons: More work to use
@ -435,9 +424,6 @@ if (i2pIsRunning()) {
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>
@ -459,9 +445,6 @@ if (i2pIsRunning()) {
</li>
</ul>
<h5>
<a href="#strict-user-js-characteristics" rel="nofollow">
<span></span>
</a>
Strict user.js characteristics
</h5>
<p>

11
osx-dmg.sh Executable file
View 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
View 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}_amd64.deb"
echo "Downloaded debian package"
github-release download --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--name "i2pbrowser-${GITHUB_TAG}-1.x86_64.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/${GITHUB_USER}/${GITHUB_REPO}/releases/download/${GITHUB_TAG}/i2pfirefox.jar)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pfirefox.zip)](https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/${GITHUB_TAG}/i2pfirefox.zip)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser.zip)](https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/${GITHUB_TAG}/i2pbrowser.zip)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser_${GITHUB_TAG}_amd64.deb)](https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/${GITHUB_TAG}/i2pbrowser_${GITHUB_TAG}_amd64.deb)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm)](https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/${GITHUB_TAG}/i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser.msi)](https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/${GITHUB_TAG}/i2pbrowser.msi)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser.exe)](https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/${GITHUB_TAG}/i2pbrowser.exe)" | tee -a RELEASES.md
echo "- [$(sha256sum i2pbrowser-portable.zip)](https://github.com/${GITHUB_USER}/${GITHUB_REPO}/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

View File

@ -1,16 +1,12 @@
#! /usr/bin/env sh
GITHUB_USER=eyedeekay
GITHUB_REPO=i2p.plugins.firefox
GITHUB_NAME="That fixes a brand-new NPE."
GITHUB_DESCRIPTION=$(cat CHANGES.md)
GITHUB_TAG=0.0.24
ant distclean
. ./config.sh
ant distclean clangFmt
./javadoc.sh
NUMLINE=`grep release.number build.xml | head -n 1`
sed -i "s|$NUMLINE| <property name=\"release.number\" value=\"$GITHUB_TAG\" />|g" build.xml
edgar && git push --all
ant jar freeZip jpackage
ant jar freeZip jpackage debian fedora
github-release release --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--name "${GITHUB_NAME}" \
@ -22,30 +18,51 @@ github-release edit --user "${GITHUB_USER}" \
--name "${GITHUB_NAME}" \
--description "${GITHUB_DESCRIPTION}" \
--tag "${GITHUB_TAG}"; true
echo "Relase $GITHUB_TAG setup"
echo "Relase ${GITHUB_TAG} setup"
jarsum=$(sha256sum "src/build/i2pfirefox.jar")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a .jar." \
--label "I2P Browser launcher as a .jar. Useful as a library or for advanced users. ${jarsum}" \
--name "i2pfirefox.jar" \
--file "src/build/i2pfirefox.jar" \
--replace
echo "Uploaded jar"
zipsum=$(sha256sum "i2pfirefox.zip")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a .jar and a set of semi-univeral launcher scripts." \
--label "I2P Browser launcher as a .jar and a set of semi-univeral launcher scripts. ${zipsum}" \
--name "i2pfirefox.zip" \
--file "i2pfirefox.zip" \
--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, Linux Only for now unless you BYO." \
--label "I2P Browser launcher as a Jpackage, does not require a JVM. ${jvmsum}" \
--name "i2pbrowser.zip" \
--file "i2pbrowser.zip" \
--replace
--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

Binary file not shown.

View File

@ -2,6 +2,6 @@ This browser profile is entirely composed of the work of Free Software developer
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/jshelter.js
i2p.chromium.usabilty.profile/extensions/localcdn.js
i2p.chromium.usabilty.profile/extensions/ublock.js
i2p.chromium.usabilty.profile/extensions/jshelter.js/
i2p.chromium.usabilty.profile/extensions/localcdn.js/
i2p.chromium.usabilty.profile/extensions/ublock.js/

Binary file not shown.

View File

@ -20,7 +20,7 @@ import java.util.ArrayList;
* @author idk
* @since 0.0.16
*/
public class I2PBrowser {
public class I2PBrowser extends I2PCommonBrowser {
private final I2PFirefox i2pFirefox = new I2PFirefox();
private final I2PChromium i2pChromium = new I2PChromium();
private final I2PGenericUnsafeBrowser i2pGeneral =
@ -32,17 +32,17 @@ public class I2PBrowser {
public boolean usability = false;
private void launchFirefox(boolean privateWindow, String[] url) {
System.out.println("I2PFirefox");
logger.info("I2PFirefox");
I2PFirefox.usability = usability;
i2pFirefox.launch(privateWindow, url);
}
private void launchChromium(boolean privateWindow, String[] url) {
System.out.println("I2PChromium");
logger.info("I2PChromium");
I2PChromiumProfileBuilder.usability = usability;
i2pChromium.launch(privateWindow, url);
}
private void launchGeneric(boolean privateWindow, String[] url) {
System.out.println("I2PChromium");
logger.info("I2PChromium");
i2pGeneral.launch(privateWindow, url);
}
@ -112,6 +112,7 @@ public class I2PBrowser {
* @since 0.0.17
*/
public void launch(boolean privateWindow, String[] url) {
validateUserDir();
if (generic)
this.launchGeneric(privateWindow, url);
if ((chromium && firefox) || (!chromium && !firefox)) {
@ -175,8 +176,9 @@ public class I2PBrowser {
}
public static void main(String[] args) {
validateUserDir();
boolean privateBrowsing = false;
System.out.println("I2PBrowser");
logger.info("I2PBrowser");
I2PBrowser i2pBrowser = new I2PBrowser();
ArrayList<String> visitURL = new ArrayList<String>();
if (args != null) {
@ -194,6 +196,10 @@ public class I2PBrowser {
if (arg.equals("-usability")) {
i2pBrowser.usability = true;
}
if (arg.equals("-noproxycheck")) {
logger.info("zeroing out proxy check");
i2pBrowser.setProxyTimeoutTime(0);
}
if (!arg.startsWith("-")) {
visitURL.add(ValidURL(arg));
}

View File

@ -1,8 +1,6 @@
package net.i2p.i2pfirefox;
import java.io.File;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;
/**
@ -21,7 +19,6 @@ import java.util.ArrayList;
*/
public class I2PChromium extends I2PCommonBrowser {
private final String[] CHROMIUM_SEARCH_PATHS = CHROMIUM_FINDER();
private final int DEFAULT_TIMEOUT = 200;
private Process p = null;
/**
@ -35,7 +32,7 @@ public class I2PChromium extends I2PCommonBrowser {
for (String path : CHROMIUM_SEARCH_PATHS) {
File f = new File(path);
if (f.exists()) {
System.out.println("Found Chromium at " + path);
logger.info("Found Chromium at " + path);
return;
}
}
@ -44,7 +41,7 @@ public class I2PChromium extends I2PCommonBrowser {
for (String path : CHROMIUM_SEARCH_PATHS) {
File f = new File(path);
if (f.exists()) {
System.out.println("Found Chromium at " + path);
logger.info("Found Chromium at " + path);
return;
}
}
@ -250,10 +247,10 @@ public class I2PChromium extends I2PCommonBrowser {
for (String chrome : chromees) {
File chromeFile = new File(chrome);
if (chromeFile.exists()) {
System.out.println("Found valid chromium at " + chrome);
logger.info("Found valid chromium at " + chrome);
validChromiums.add(chrome);
}
System.out.println("chrome at " + chrome + "does not exist");
logger.info("chrome at " + chrome + "does not exist");
}
return validChromiums.toArray(new String[validChromiums.size()]);
}
@ -478,91 +475,27 @@ public class I2PChromium extends I2PCommonBrowser {
return new ProcessBuilder(newArgs).directory(
I2PChromiumProfileBuilder.runtimeDirectory(true));
} else {
System.out.println("No Chromium found.");
logger.info("No Chromium found.");
return new ProcessBuilder(args);
}
}
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of 200 seconds.
*
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy() { return waitForProxy(DEFAULT_TIMEOUT); }
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout) {
return waitForProxy(timeout, 4444);
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port) {
return waitForProxy(timeout, port, "localhost");
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @param host the host to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port, String host) {
for (int i = 0; i < timeout; i++) {
if (checkifPortIsOccupied(port, host)) {
return true;
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
return false;
}
private boolean checkifPortIsOccupied(int port, String host) {
try {
Socket socket = new Socket(host, port);
socket.close();
return true;
} catch (IOException e) {
return false;
}
}
public Process launchAndDetatch(boolean privateWindow, String[] url) {
validateUserDir();
if (waitForProxy()) {
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
if (I2PChromiumProfileChecker.validateProfileDirectory(
profileDirectory)) {
System.out.println("Valid profile directory: " + profileDirectory);
logger.info("Valid profile directory: " + profileDirectory);
} else {
System.out.println("Invalid profile directory: " + profileDirectory +
" rebuilding...");
logger.info("Invalid profile directory: " + profileDirectory +
" rebuilding...");
if (!I2PChromiumProfileBuilder.copyBaseProfiletoProfile()) {
System.out.println("Failed to rebuild profile directory: " +
profileDirectory);
logger.info("Failed to rebuild profile directory: " +
profileDirectory);
return null;
} else {
System.out.println("Rebuilt profile directory: " + profileDirectory);
logger.info("Rebuilt profile directory: " + profileDirectory);
}
}
if (validateProfileFirstRun(profileDirectory))
@ -574,12 +507,12 @@ public class I2PChromium extends I2PCommonBrowser {
pb = this.defaultProcessBuilder(url);
}
try {
System.out.println(pb.command());
logger.info(pb.command().toString());
p = pb.start();
sleep(2000);
return p;
} catch (Throwable e) {
System.out.println(e);
logger.info(e.toString());
}
}
return null;
@ -600,13 +533,13 @@ public class I2PChromium extends I2PCommonBrowser {
p = launchAndDetatch(privateWindow, url);
if (p == null)
return;
System.out.println("I2PChromium");
logger.info("I2PChromium");
try {
System.out.println("Waiting for I2PChromium to close...");
logger.info("Waiting for I2PChromium to close...");
int exit = p.waitFor();
System.out.println("I2PChromium exited with value: " + exit);
logger.info("I2PChromium exited with value: " + exit);
} catch (Exception e) {
System.out.println("Error: " + e.getMessage());
logger.info("Error: " + e.getMessage());
}
}
}
@ -642,22 +575,27 @@ public class I2PChromium extends I2PCommonBrowser {
}
public static void main(String[] args) {
validateUserDir();
boolean privateBrowsing = false;
System.out.println("I2PChromium");
logger.info("I2PChromium");
I2PChromium i2pChromium = new I2PChromium();
System.out.println("checking for private browsing");
logger.info("checking for private browsing");
ArrayList<String> visitURL = new ArrayList<String>();
if (args != null) {
if (args.length > 0) {
for (String arg : args) {
if (arg.equals("-private")) {
privateBrowsing = true;
System.out.println(
logger.info(
"private browsing is true, profile will be discarded at end of session");
}
if (arg.equals("-usability")) {
I2PChromiumProfileBuilder.usability = true;
}
if (arg.equals("-noproxycheck")) {
logger.info("zeroing out proxy check");
i2pChromium.setProxyTimeoutTime(0);
}
if (!arg.startsWith("-")) {
// check if it's a URL
visitURL.add(ValidURL(arg));

View File

@ -120,8 +120,8 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
public static boolean copyBaseProfiletoProfile() {
String baseProfile = baseProfileDirectory(usabilityMode());
String profile = profileDirectory();
System.out.println("Copying base profile to profile directory: " +
baseProfile + " -> " + profile);
logger.info("Copying base profile to profile directory: " + baseProfile +
" -> " + profile);
if (baseProfile.isEmpty() || profile.isEmpty()) {
return false;
}
@ -129,14 +129,14 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
File profileDir = new File(profile);
if (!profileDir.exists()) {
try {
System.out.println("Copying base profile to profile directory");
logger.info("Copying base profile to profile directory");
copyDirectory(baseProfileDir, profileDir, "chromium", usabilityMode());
} catch (Exception e) {
System.out.println("Error copying base profile to profile" + e);
logger.info("Error copying base profile to profile" + e);
return false;
}
}
System.out.println("Copied base profile to profile directory");
logger.info("Copied base profile to profile directory");
return true;
}

View File

@ -18,7 +18,7 @@ import java.io.File;
* @author idk
* @since 0.0.1
*/
public class I2PChromiumProfileChecker {
public class I2PChromiumProfileChecker extends I2PCommonBrowser {
/**
* Output feedback if the profile directory is valid or invalid
*
@ -29,15 +29,15 @@ public class I2PChromiumProfileChecker {
public static void main(String[] args) {
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
if (profileDirectory == null) {
System.out.println("No profile directory found");
logger.info("No profile directory found");
return;
}
System.out.println("Profile directory: " + profileDirectory);
logger.info("Profile directory: " + profileDirectory);
boolean ok = validateProfileDirectory(profileDirectory);
if (ok) {
System.out.println("Profile directory is valid");
logger.info("Profile directory is valid");
} else {
System.out.println("Profile directory is invalid");
logger.info("Profile directory is invalid");
}
}
/**
@ -50,23 +50,23 @@ public class I2PChromiumProfileChecker {
public static boolean validateProfileDirectory(String profileDirectory) {
File profileDir = new File(profileDirectory);
if (!profileDir.exists()) {
System.out.println("Profile directory does not exist");
logger.info("Profile directory does not exist");
return false;
}
if (!profileDir.isDirectory()) {
System.out.println("Profile directory is not a directory");
logger.info("Profile directory is not a directory");
return false;
}
if (!profileDir.canRead()) {
System.out.println("Profile directory is not readable");
logger.info("Profile directory is not readable");
return false;
}
if (!profileDir.canWrite()) {
System.out.println("Profile directory is not writable");
logger.info("Profile directory is not writable");
return false;
}
if (!validateExtensionDirectory(profileDir + "/extensions")) {
System.out.println("extensions directory is invalid");
logger.info("extensions directory is invalid");
return false;
}
return true;
@ -81,19 +81,19 @@ public class I2PChromiumProfileChecker {
public static boolean validateFile(String file) {
File f = new File(file);
if (!f.exists()) {
System.out.println("User JavaScript file does not exist");
logger.info("User JavaScript file does not exist");
return false;
}
if (!f.isFile()) {
System.out.println("User JavaScript file is not a file");
logger.info("User JavaScript file is not a file");
return false;
}
if (!f.canRead()) {
System.out.println("User JavaScript file is not readable");
logger.info("User JavaScript file is not readable");
return false;
}
if (!f.canWrite()) {
System.out.println("User JavaScript file is not writable");
logger.info("User JavaScript file is not writable");
return false;
}
return true;
@ -108,19 +108,19 @@ public class I2PChromiumProfileChecker {
public static boolean validateExtensionDirectory(String extensionDirectory) {
File extensionDir = new File(extensionDirectory);
if (!extensionDir.exists()) {
System.out.println("Extension directory does not exist");
logger.info("Extension directory does not exist");
return false;
}
if (!extensionDir.isDirectory()) {
System.out.println("Extension directory is not a directory");
logger.info("Extension directory is not a directory");
return false;
}
if (!extensionDir.canRead()) {
System.out.println("Extension directory is not readable");
logger.info("Extension directory is not readable");
return false;
}
if (!extensionDir.canWrite()) {
System.out.println("Extension directory is not writable");
logger.info("Extension directory is not writable");
return false;
}
return true;

View File

@ -23,7 +23,7 @@ public class I2PChromiumProfileUnpacker extends I2PCommonBrowser {
public static void main(String[] args) {
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
if (profileDirectory == null) {
System.out.println("No profile directory found");
logger.info("No profile directory found");
return;
}
}
@ -35,7 +35,7 @@ public class I2PChromiumProfileUnpacker extends I2PCommonBrowser {
* @since 0.0.1
*/
public boolean unpackProfile(String profileDirectory, String mode) {
System.out.println("Unpacking base profile to " + profileDirectory);
logger.info("Unpacking base profile to " + profileDirectory);
return unpackProfile(profileDirectory, "chromium", mode);
}
}

View File

@ -6,8 +6,12 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.logging.FileHandler;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
@ -27,6 +31,95 @@ import java.util.zip.ZipInputStream;
*/
public class I2PCommonBrowser {
static public Logger logger = Logger.getLogger("browserlauncher");
static FileHandler fh;
// private final int DEFAULT_TIMEOUT = 200;
private static int CONFIGURED_TIMEOUT = 200;
public I2PCommonBrowser() {
try {
// This block configure the logger with handler and formatter
fh = new FileHandler(logFile().toString());
logger.addHandler(fh);
SimpleFormatter formatter = new SimpleFormatter();
fh.setFormatter(formatter);
// the following statement is used to log any messages
logger.info("Browser log");
} catch (SecurityException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void validateUserDir() {
logger.info("Validating user directory");
String userDir = System.getProperty("user.dir");
String userHome = System.getProperty("user.home");
File userDirFile = new File(userDir);
File userHomeFile = new File(userHome);
logger.info("user.dir testing !" + userHomeFile.getAbsolutePath() +
".equals(" + userDirFile.getAbsolutePath() + ")");
if (!userDirFile.getAbsolutePath().contains("Program Files")) {
if (!userDirFile.getAbsolutePath().equals(
userHomeFile.getAbsolutePath())) {
logger.info("user.dir is not inconvenient");
if (userDirFile.exists()) {
logger.info("user.dir exists");
if (userDirFile.isDirectory()) {
logger.info("user.dir is a directory");
if (userDirFile.canWrite()) {
logger.info("user.dir is writable");
return;
} else {
logger.info("user.dir is not writable");
}
}
{ logger.info("user.dir is not actually a directory"); }
} else {
logger.info("user.dir does not exist");
}
} else {
logger.info("user.dir should not be the same as user.home");
}
} else {
logger.info("user.dir cannot run from inside Program Files");
}
if (isWindows())
userHome = new File(userHome, "AppData/Local/I2P").getAbsolutePath();
File defaultPathFile = new File(userHome, "i2p/i2pbrowser");
if (!defaultPathFile.exists())
defaultPathFile.mkdirs();
if (!defaultPathFile.isDirectory()) {
logger.info(
"default path exists and is not a directory, get it out of the way");
logger.info(defaultPathFile.getAbsolutePath());
}
System.setProperty("user.dir", defaultPathFile.getAbsolutePath());
}
protected static boolean isWindows() {
String osName = System.getProperty("os.name");
logger.info("os.name" + osName);
if (osName.contains("windows"))
return true;
if (osName.contains("Windows"))
return true;
if (osName.contains("WINDOWS"))
return true;
return false;
}
// public static void logger.info(String line) { logger.info(line); }
private static File logFile() {
validateUserDir();
String userDir = System.getProperty("user.dir");
File log = new File(userDir, "logs");
if (!log.exists())
log.mkdirs();
return new File(log, "browserlauncher.log");
}
/**
* get the runtime directory, creating it if create=true
@ -118,16 +211,16 @@ public class I2PCommonBrowser {
protected boolean unpackProfile(String profileDirectory, String browser,
String base) {
System.out.println("Unpacking base profile to " + profileDirectory);
logger.info("Unpacking base profile to " + profileDirectory);
try {
final InputStream resources =
this.getClass().getClassLoader().getResourceAsStream(
"i2p." + browser + "." + base + ".profile.zip");
if (resources == null) {
System.out.println("Could not find resources");
logger.info("Could not find resources");
return false;
}
System.out.println(resources.toString());
logger.info(resources.toString());
// InputStream corresponds to a zip file. Unzip it.
// Files.copy(r, new File(profileDirectory).toPath(),
// StandardCopyOption.REPLACE_EXISTING);
@ -135,15 +228,14 @@ public class I2PCommonBrowser {
ZipEntry entry;
// while there are entries I process them
while ((entry = zis.getNextEntry()) != null) {
System.out.println("entry: " + entry.getName() + ", " +
entry.getSize());
logger.info("entry: " + entry.getName() + ", " + entry.getSize());
// consume all the data from this entry
if (entry.isDirectory()) {
System.out.println("Creating directory: " + entry.getName());
logger.info("Creating directory: " + entry.getName());
File dir = new File(profileDirectory + "/" + entry.getName());
dir.mkdirs();
} else {
System.out.println("Creating file: " + entry.getName());
logger.info("Creating file: " + entry.getName());
File file = new File(profileDirectory + "/" + entry.getName());
file.createNewFile();
Files.copy(zis, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
@ -156,7 +248,7 @@ public class I2PCommonBrowser {
// loop through the Enumeration
} catch (Exception e) {
System.out.println("Error copying profile files: " + e.getMessage());
logger.info("Error copying profile files: " + e.getMessage());
return false;
}
return true;
@ -203,11 +295,11 @@ public class I2PCommonBrowser {
public static boolean validateProfileFirstRun(String profileDirectory) {
File profileDir = new File(profileDirectory);
if (!profileDir.exists()) {
System.out.println("Profile directory does not exist");
logger.info("Profile directory does not exist");
return false;
}
if (!profileDir.isDirectory()) {
System.out.println("Profile directory is not a directory");
logger.info("Profile directory is not a directory");
return false;
}
File frf = new File(profileDir, "first-run");
@ -218,4 +310,83 @@ public class I2PCommonBrowser {
}
return false;
}
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of 200 seconds.
*
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy() { return waitForProxy(CONFIGURED_TIMEOUT); }
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout) {
return waitForProxy(timeout, 4444);
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port) {
return waitForProxy(timeout, port, "localhost");
}
/**
* 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.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @param host the host to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port, String host) {
logger.info("waiting up to " + timeout + "seconds for a proxy");
if (timeout <= 0) {
return true;
}
for (int i = 0; i < timeout; i++) {
logger.info("Waiting for proxy");
if (checkifPortIsOccupied(port, host)) {
return true;
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
return false;
}
private boolean checkifPortIsOccupied(int port, String host) {
try {
Socket socket = new Socket(host, port);
socket.close();
return true;
} catch (IOException e) {
return false;
}
}
/**
* Alters the proxy timeout to customized value time, in seconds.
* May be zero.
*
* @param time
*/
public void setProxyTimeoutTime(int time) { CONFIGURED_TIMEOUT = time; }
}

View File

@ -2,8 +2,8 @@ package net.i2p.i2pfirefox;
import java.io.File;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
/**
* I2PFirefox.java
@ -21,7 +21,6 @@ import java.util.ArrayList;
*/
public class I2PFirefox extends I2PCommonBrowser {
private final String[] FIREFOX_SEARCH_PATHS = FIREFOX_FINDER();
private final int DEFAULT_TIMEOUT = 200;
private Process p = null;
public static boolean usability = false;
@ -36,7 +35,7 @@ public class I2PFirefox extends I2PCommonBrowser {
for (String path : FIREFOX_SEARCH_PATHS) {
File f = new File(path);
if (f.exists()) {
System.out.println("Found Firefox at " + path);
logger.info("Found Firefox at " + path);
return;
}
}
@ -184,6 +183,8 @@ public class I2PFirefox extends I2PCommonBrowser {
// list the files in the user.dir directory
if (userFiles != null) {
for (File userFile : userFiles) {
if (userFile.isDirectory())
continue;
if (userFile.getName().equals("firefox") ||
userFile.getName().equals("firefox-bin") ||
userFile.getName().equals("firefox-esr") ||
@ -238,10 +239,10 @@ public class I2PFirefox extends I2PCommonBrowser {
for (String firefox : firefoxes) {
File firefoxFile = new File(firefox);
if (firefoxFile.exists()) {
System.out.println("Found valid firefox at " + firefox);
logger.info("Found valid firefox at " + firefox);
validFirefoxes.add(firefox);
}
System.out.println("firefox at " + firefox + "does not exist");
logger.info("firefox at " + firefox + "does not exist");
}
return validFirefoxes.toArray(new String[validFirefoxes.size()]);
}
@ -330,7 +331,7 @@ public class I2PFirefox extends I2PCommonBrowser {
}
/**
* * Build a ProcessBuilder for the top Firefox binary and
* Build a ProcessBuilder for the top Firefox binary and
* the default profile. Pass the --private-window flag to
* open a private window.
*
@ -351,6 +352,28 @@ public class I2PFirefox extends I2PCommonBrowser {
return processBuilder(argList.toArray(new String[argList.size()]));
}
/**
* Build a ProcessBuilder for the top Firefox binary and
* the default profile. Pass the --headless flag to open
* without a window.
*
* @param args the arguments to pass to the Firefox binary
* @return a ProcessBuilder for the top Firefox binary and
* the default profile.
*/
public ProcessBuilder headlessProcessBuilder(String[] args) {
ArrayList<String> argList = new ArrayList<String>();
argList.add("--headless");
if (args != null) {
if (args.length > 0) {
for (String arg : args) {
argList.add(arg);
}
}
}
return processBuilder(argList.toArray(new String[argList.size()]));
}
/**
* Build a ProcessBuilder for the top Firefox binary and
* the default profile, with a specific set of extended
@ -369,7 +392,7 @@ public class I2PFirefox extends I2PCommonBrowser {
arglength = args.length;
String[] newArgs = new String[arglength + 4];
newArgs[0] = firefox;
newArgs[1] = "-attach-console";
newArgs[1] = "--new-instance";
newArgs[2] = "--profile";
newArgs[3] = I2PFirefoxProfileBuilder.profileDirectory();
if (args != null) {
@ -382,77 +405,11 @@ public class I2PFirefox extends I2PCommonBrowser {
return new ProcessBuilder(newArgs).directory(
I2PFirefoxProfileBuilder.runtimeDirectory(true));
} else {
System.out.println("No Firefox found.");
logger.info("No Firefox found.");
return new ProcessBuilder(args);
}
}
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of 200 seconds.
*
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy() { return waitForProxy(DEFAULT_TIMEOUT); }
/**
* Waits for an HTTP proxy on port 4444 to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout) {
return waitForProxy(timeout, 4444);
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port) {
return waitForProxy(timeout, port, "localhost");
}
/**
* Waits for an HTTP proxy on the specified port to be ready.
* Returns false on timeout of the specified number of seconds.
*
* @param timeout the number of seconds to wait for the proxy to be ready.
* @param port the port to wait for the proxy to be ready on.
* @param host the host to wait for the proxy to be ready on.
* @return true if the proxy is ready, false if it is not.
* @since 0.0.1
*/
public boolean waitForProxy(int timeout, int port, String host) {
for (int i = 0; i < timeout; i++) {
System.out.println("Waiting for proxy");
if (checkifPortIsOccupied(port, host)) {
return true;
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
return false;
}
private boolean checkifPortIsOccupied(int port, String host) {
try {
Socket socket = new Socket(host, port);
socket.close();
return true;
} catch (IOException e) {
return false;
}
}
private String usabilityMode() {
if (usability) {
return "usability";
@ -461,24 +418,50 @@ public class I2PFirefox extends I2PCommonBrowser {
}
public Process launchAndDetatch(boolean privateWindow, String[] url) {
validateUserDir();
if (waitForProxy()) {
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
if (I2PFirefoxProfileChecker.validateProfileDirectory(profileDirectory)) {
System.out.println("Valid profile directory: " + profileDirectory);
logger.info("Valid profile directory: " + profileDirectory);
} else {
System.out.println("Invalid profile directory: " + profileDirectory +
" rebuilding...");
logger.info("Invalid profile directory: " + profileDirectory +
" rebuilding...");
if (!I2PFirefoxProfileBuilder.copyBaseProfiletoProfile(
usabilityMode())) {
System.out.println("Failed to rebuild profile directory: " +
profileDirectory);
logger.info("Failed to rebuild profile directory: " +
profileDirectory);
return null;
} else {
System.out.println("Rebuilt profile directory: " + profileDirectory);
logger.info("Rebuilt profile directory: " + profileDirectory);
}
}
if (validateProfileFirstRun(profileDirectory))
return null;
if (validateProfileFirstRun(profileDirectory)) {
if (isWindows()) {
ProcessBuilder hpb = headlessProcessBuilder(url);
try {
Process hp = hpb.start();
try {
boolean hev = hp.waitFor(5, TimeUnit.SECONDS);
logger.info("Headless browser run completed, exit: " + hev);
if (!hev)
hp.destroy();
hev = hp.waitFor(5, TimeUnit.SECONDS);
if (hp.isAlive()) {
int forcedExitCode = hp.destroyForcibly().waitFor();
logger.info("Headless browser run forcibly terminated, exit: " +
forcedExitCode);
}
int exitCode = hp.exitValue();
logger.info("Headless browser run completed, exit: " + exitCode);
} catch (InterruptedException e) {
logger.info("Headless browser error " + e.toString());
}
} catch (IOException e) {
logger.info("Headless browser error " + e.toString());
}
}
}
ProcessBuilder pb;
if (privateWindow) {
pb = privateProcessBuilder(url);
@ -486,13 +469,13 @@ public class I2PFirefox extends I2PCommonBrowser {
pb = defaultProcessBuilder(url);
}
try {
System.out.println(pb.command());
logger.info(pb.command().toString());
p = pb.start();
System.out.println("I2PFirefox");
logger.info("I2PFirefox");
sleep(2000);
return p;
} catch (Throwable e) {
System.out.println(e);
logger.info(e.toString());
}
}
return null;
@ -514,11 +497,11 @@ public class I2PFirefox extends I2PCommonBrowser {
if (p == null)
return;
try {
System.out.println("Waiting for I2PFirefox to close...");
logger.info("Waiting for I2PFirefox to close...");
int exit = p.waitFor();
System.out.println("I2PFirefox exited with value: " + exit);
logger.info("I2PFirefox exited with value: " + exit);
} catch (Exception e) {
System.out.println("Error: " + e.getMessage());
logger.info("Error: " + e.getMessage());
}
}
}
@ -548,7 +531,7 @@ public class I2PFirefox extends I2PCommonBrowser {
String[] schemes = {"http", "https"};
for (String scheme : schemes) {
if (inUrl.startsWith(scheme)) {
System.out.println("Valid URL: " + inUrl);
logger.info("Valid URL: " + inUrl);
return inUrl;
}
}
@ -556,20 +539,27 @@ public class I2PFirefox extends I2PCommonBrowser {
}
public static void main(String[] args) {
validateUserDir();
boolean privateBrowsing = false;
System.out.println("checking for private browsing");
logger.info("checking for private browsing");
logger.info("I2PFirefox");
I2PFirefox i2pFirefox = new I2PFirefox();
ArrayList<String> visitURL = new ArrayList<String>();
if (args != null) {
if (args.length > 0) {
for (String arg : args) {
if (arg.equals("-private")) {
privateBrowsing = true;
System.out.println(
logger.info(
"private browsing is true, profile will be discarded at end of session");
}
if (arg.equals("-usability")) {
usability = true;
}
if (arg.equals("-noproxycheck")) {
logger.info("zeroing out proxy check");
i2pFirefox.setProxyTimeoutTime(0);
}
if (!arg.startsWith("-")) {
// check if it's a URL
visitURL.add(ValidURL(arg));
@ -577,8 +567,6 @@ public class I2PFirefox extends I2PCommonBrowser {
}
}
}
System.out.println("I2PFirefox");
I2PFirefox i2pFirefox = new I2PFirefox();
i2pFirefox.launch(privateBrowsing,
visitURL.toArray(new String[visitURL.size()]));
}

View File

@ -112,8 +112,8 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
public static boolean copyBaseProfiletoProfile(String base) {
String baseProfile = baseProfileDirectory(base);
String profile = profileDirectory();
System.out.println("Copying base profile to profile directory: " +
baseProfile + " -> " + profile);
logger.info("Copying base profile to profile directory: " + baseProfile +
" -> " + profile);
if (baseProfile.isEmpty() || profile.isEmpty()) {
return false;
}
@ -122,13 +122,13 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
if (!profileDir.exists()) {
try {
System.out.println("Copying base profile to profile directory");
logger.info("Copying base profile to profile directory");
copyDirectory(baseProfileDir, profileDir, "firefox", base);
} catch (Exception e) {
System.out.println("Error copying base profile to profile" + e);
logger.info("Error copying base profile to profile" + e);
return false;
}
System.out.println("Copied base profile to profile directory");
logger.info("Copied base profile to profile directory");
}
// if user.js does not exist yet, make an empty one.
// if (!touch(profileDir.toString(), "user.js")) {
@ -171,7 +171,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
Files.copy(baseOverrides.toPath(), userOverrides.toPath(),
StandardCopyOption.REPLACE_EXISTING);
} catch (Exception e) {
System.out.println("Error copying base profile to profile" + e);
logger.info("Error copying base profile to profile" + e);
return false;
}
// if user-overrides.js does not exist yet, make an empty one.

View File

@ -2,9 +2,11 @@ package net.i2p.i2pfirefox;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
/**
* I2PFirefoxProfileChecker.java
@ -22,7 +24,7 @@ import java.io.IOException;
* @author idk
* @since 0.0.1
*/
public class I2PFirefoxProfileChecker {
public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
/**
* @param args unused
@ -30,15 +32,15 @@ public class I2PFirefoxProfileChecker {
public static void main(String[] args) {
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
if (profileDirectory == null) {
System.out.println("No profile directory found");
logger.info("No profile directory found");
return;
}
System.out.println("Profile directory: " + profileDirectory);
logger.info("Profile directory: " + profileDirectory);
boolean ok = validateProfileDirectory(profileDirectory);
if (ok) {
System.out.println("Profile directory is valid");
logger.info("Profile directory is valid");
} else {
System.out.println("Profile directory is invalid");
logger.info("Profile directory is invalid");
}
}
/**
@ -51,51 +53,54 @@ public class I2PFirefoxProfileChecker {
public static boolean validateProfileDirectory(String profileDirectory) {
File profileDir = new File(profileDirectory);
if (!profileDir.exists()) {
System.out.println("Profile directory does not exist");
logger.info("Profile directory does not exist");
return false;
}
if (!profileDir.isDirectory()) {
System.out.println("Profile directory is not a directory");
logger.info("Profile directory is not a directory");
return false;
}
if (!profileDir.canRead()) {
System.out.println("Profile directory is not readable");
logger.info("Profile directory is not readable");
return false;
}
if (!profileDir.canWrite()) {
System.out.println("Profile directory is not writable");
logger.info("Profile directory is not writable");
return false;
}
if (!validateFile(profileDir + "/prefs.js")) {
System.out.println("prefs.js is not valid");
logger.info("prefs.js is not valid");
return false;
}
if (!validateFile(profileDir + "/user.js")) {
System.out.println("user.js is not valid");
logger.info("user.js is not valid");
return false;
}
if (!validateExtensionDirectory(profileDir + "/extensions")) {
System.out.println("extensions directory is invalid");
logger.info("extensions directory is invalid");
return false;
}
return deRestrictHTTPS(profileDir.toString());
return deRestrictHTTPSAndSetupHomepage(profileDir.toString());
}
private static boolean deRestrictHTTPS(String profile) {
private static boolean deRestrictHTTPSAndSetupHomepage(String profile) {
// String profile = profileDirectory();
File profileDir = new File(profile);
if (profileDir.exists()) {
File prefOverrides = new File(profile, "prefs.js");
if (prefOverrides.exists()) {
undoHttpsOnlyMode(prefOverrides);
undoHomepage(prefOverrides);
}
File userSettings = new File(profile, "user.js");
if (userSettings.exists()) {
undoHttpsOnlyMode(userSettings);
undoHomepage(userSettings);
}
File userOverrides = new File(profile, "user-overrides.js");
if (userOverrides.exists()) {
undoHttpsOnlyMode(userOverrides);
undoHomepage(userOverrides);
}
}
return false;
@ -104,6 +109,33 @@ public class I2PFirefoxProfileChecker {
private static boolean undoHttpsOnlyMode(File fileToBeModified) {
String oldString = "\"dom.security.https_only_mode\", true";
String newString = "\"dom.security.https_only_mode\", false";
return undoValue(oldString, newString, fileToBeModified);
}
private static boolean undoHomepage(File fileToBeModified) {
String oldString = "\"browser.startup.homepage\", true";
File file = new File("Student.txt");
String newString =
"\"browser.startup.homepage\", \"http://127.0.0.1:7657\"";
try {
try (Scanner scanner = new Scanner(file)) {
// now read the file line by line...
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
if (line.contains("browser.startup.homepage")) {
oldString = line.toString();
return undoValue(oldString, newString, fileToBeModified);
}
}
}
} catch (FileNotFoundException e) {
// handle this
}
return true;
}
private static boolean undoValue(String oldString, String newString,
File fileToBeModified) {
String oldContent = "";
BufferedReader reader = null;
FileWriter writer = null;
@ -140,19 +172,19 @@ public class I2PFirefoxProfileChecker {
public static boolean validateFile(String file) {
File f = new File(file);
if (!f.exists()) {
System.out.println("User JavaScript file does not exist");
logger.info("User JavaScript file does not exist");
return false;
}
if (!f.isFile()) {
System.out.println("User JavaScript file is not a file");
logger.info("User JavaScript file is not a file");
return false;
}
if (!f.canRead()) {
System.out.println("User JavaScript file is not readable");
logger.info("User JavaScript file is not readable");
return false;
}
if (!f.canWrite()) {
System.out.println("User JavaScript file is not writable");
logger.info("User JavaScript file is not writable");
return false;
}
return true;
@ -167,19 +199,19 @@ public class I2PFirefoxProfileChecker {
public static boolean validateExtensionDirectory(String extensionDirectory) {
File extensionDir = new File(extensionDirectory);
if (!extensionDir.exists()) {
System.out.println("Extension directory does not exist");
logger.info("Extension directory does not exist");
return false;
}
if (!extensionDir.isDirectory()) {
System.out.println("Extension directory is not a directory");
logger.info("Extension directory is not a directory");
return false;
}
if (!extensionDir.canRead()) {
System.out.println("Extension directory is not readable");
logger.info("Extension directory is not readable");
return false;
}
if (!extensionDir.canWrite()) {
System.out.println("Extension directory is not writable");
logger.info("Extension directory is not writable");
return false;
}
return true;

View File

@ -23,7 +23,7 @@ public class I2PFirefoxProfileUnpacker extends I2PCommonBrowser {
public static void main(String[] args) {
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
if (profileDirectory == null) {
System.out.println("No profile directory found");
logger.info("No profile directory found");
return;
}
}

View File

@ -216,7 +216,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
pb.environment().put("NO_PROXY", "http://127.0.0.1:7657");
return pb;
} else {
System.out.println("No Browser found.");
logger.info("No Browser found.");
return new ProcessBuilder(args);
}
}
@ -326,6 +326,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
}
public Process launchAndDetatch(boolean privateWindow, String[] url) {
validateUserDir();
if (waitForProxy()) {
ProcessBuilder pb;
if (privateWindow) {
@ -334,13 +335,13 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
pb = baseProcessBuilder(url);
}
try {
System.out.println(pb.command());
logger.info(pb.command().toString());
p = pb.start();
System.out.println("I2PBrowser");
logger.info("I2PBrowser");
sleep(2000);
return p;
} catch (Throwable e) {
System.out.println(e);
logger.info(e.toString());
}
}
return null;
@ -350,16 +351,16 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
if (waitForProxy()) {
p = launchAndDetatch(privateWindow, url);
try {
System.out.println("Waiting for I2PBrowser to close...");
logger.info("Waiting for I2PBrowser to close...");
int exit = p.waitFor();
if (privateWindow) {
if (deleteRuntimeDirectory())
System.out.println(
logger.info(
"Private browsing enforced, deleting runtime directory");
}
System.out.println("I2PBrowser exited with value: " + exit);
logger.info("I2PBrowser exited with value: " + exit);
} catch (Exception e) {
System.out.println("Error: " + e.getMessage());
logger.info("Error: " + e.getMessage());
}
}
}
@ -376,7 +377,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
String[] schemes = {"http", "https"};
for (String scheme : schemes) {
if (inUrl.startsWith(scheme)) {
System.out.println("Valid URL: " + inUrl);
logger.info("Valid URL: " + inUrl);
return inUrl;
}
}
@ -394,15 +395,16 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
//
public static void main(String[] args) {
validateUserDir();
boolean privateBrowsing = false;
System.out.println("checking for private browsing");
logger.info("checking for private browsing");
ArrayList<String> visitURL = new ArrayList<String>();
if (args != null) {
if (args.length > 0) {
for (String arg : args) {
if (arg.equals("-private")) {
privateBrowsing = true;
System.out.println(
logger.info(
"private browsing is true, profile will be discarded at end of session");
}
if (!arg.startsWith("-")) {
@ -412,7 +414,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
}
}
}
System.out.println("I2PGenericUnsafeBrowser");
logger.info("I2PGenericUnsafeBrowser");
I2PGenericUnsafeBrowser i2pBrowser = new I2PGenericUnsafeBrowser();
i2pBrowser.launch(privateBrowsing,
visitURL.toArray(new String[visitURL.size()]));

18
windows-exe.sh Executable file
View File

@ -0,0 +1,18 @@
#! /usr/bin/env sh
. ./config.sh
jpackage \
--verbose \
--type exe \
--win-dir-chooser \
--win-help-url "https://geti2p.net" \
--win-menu \
--win-menu-group "I2P Browser Configurer" \
--win-shortcut \
--win-shortcut-prompt \
--win-per-user-install \
--license-file LICENSE.md \
--name i2pbrowser \
--app-version "$GITHUB_TAG" \
--input src/build \
--main-jar i2pfirefox.jar \
--main-class net.i2p.i2pfirefox.I2PBrowser

18
windows-portable.sh Executable file
View File

@ -0,0 +1,18 @@
#! /usr/bin/env sh
. ./config.sh
mkdir -p tmp
cp -v LICENSE.md tmp/LICENSE.md
rm -rf i2pbrowser-portable
jpackage \
--verbose \
--type app-image \
--name i2pbrowser-portable \
--app-version "$GITHUB_TAG" \
--input src/build \
--main-jar i2pfirefox.jar \
--resource-dir tmp \
--main-class net.i2p.i2pfirefox.I2PBrowser
rm -rf tmp
cp -v LICENSE.md i2pbrowser-portable/LICENSE.md
rm i2pbrowser-portable.zip -f
zip -r i2pbrowser-portable-${GITHUB_TAG}.zip i2pbrowser-portable

36
windows-release.sh Executable file
View File

@ -0,0 +1,36 @@
#! /usr/bin/env sh
git pull --all
. ../i2p.firefox/config.sh
. ./config.sh
. "${HOME}/github-release-config.sh"
ant distclean jar
./windows.sh
./windows-exe.sh
./windows-portable.sh
msisum=$(sha256sum "i2pbrowser-${GITHUB_TAG}.msi")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a Jpackage inside of an MSI package. ${msisum}" \
--name "i2pbrowser.msi" \
--file "i2pbrowser-${GITHUB_TAG}.msi" \
--replace
echo "Uploaded MSI package"
exesum=$(sha256sum "i2pbrowser-${GITHUB_TAG}.exe")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a Jpackage inside of an EXE package. ${exesum}" \
--name "i2pbrowser.exe" \
--file "i2pbrowser-${GITHUB_TAG}.exe" \
--replace
echo "Uploaded EXE package"
zipsum=$(sha256sum "i2pbrowser-portable-${GITHUB_TAG}.zip")
github-release upload --user "${GITHUB_USER}" \
--repo "${GITHUB_REPO}" \
--tag "${GITHUB_TAG}" \
--label "I2P Browser launcher as a Jpackage inside of an zip to be run from a directory on Windows. ${zipsum}" \
--name "i2pbrowser-portable.zip" \
--file "i2pbrowser-portable-${GITHUB_TAG}.zip" \
--replace
echo "Uploaded Windows ZIP package"

18
windows.sh Executable file
View File

@ -0,0 +1,18 @@
#! /usr/bin/env sh
. ./config.sh
jpackage \
--verbose \
--type msi \
--win-dir-chooser \
--win-help-url "https://geti2p.net" \
--win-menu \
--win-menu-group "I2P Browser Configurer" \
--win-shortcut \
--win-shortcut-prompt \
--win-per-user-install \
--license-file LICENSE.md \
--name i2pbrowser \
--app-version "$GITHUB_TAG" \
--input src/build \
--main-jar i2pfirefox.jar \
--main-class net.i2p.i2pfirefox.I2PBrowser