Compare commits

...

94 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
48 changed files with 8663 additions and 8451 deletions

5
.gitignore vendored
View File

@ -15,4 +15,7 @@ src/build
i2pbrowser/
/i2pbrowser*.deb
/i2pbrowser*.rpm
/logs
/logs
/*.jar
/*.msi
/*.exe

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -124,9 +129,25 @@
/
</a>
<h2>
<a href="#tue-september-6" 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>
@ -142,11 +163,11 @@
<li>
Add support for building an .rpm package.
</li>
<li>
Destroy headless process if it goes too long.
</li>
</ul>
<h2>
<a href="#mon-september-5" rel="nofollow">
<span></span>
</a>
Mon, September 5
</h2>
<ul>
@ -164,9 +185,6 @@
</li>
</ul>
<h2>
<a href="#fri-september-2" rel="nofollow">
<span></span>
</a>
Fri, September 2
</h2>
<ul>
@ -178,9 +196,6 @@
</li>
</ul>
<h2>
<a href="#thu-september-1" rel="nofollow">
<span></span>
</a>
Thu, September 1
</h2>
<ul>
@ -189,9 +204,6 @@
</li>
</ul>
<h2>
<a href="#wed-august-31" rel="nofollow">
<span></span>
</a>
Wed, August 31
</h2>
<ul>
@ -206,9 +218,6 @@
</li>
</ul>
<h2>
<a href="#tue-august-30" rel="nofollow">
<span></span>
</a>
Tue, August 30
</h2>
<ul>
@ -220,9 +229,6 @@
</li>
</ul>
<h2>
<a href="#sun-august-28" rel="nofollow">
<span></span>
</a>
Sun, August 28
</h2>
<ul>
@ -237,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>
@ -266,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>
@ -288,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>
@ -316,9 +304,6 @@
</li>
</ul>
<h2>
<a href="#sun-august-7" rel="nofollow">
<span></span>
</a>
Sun, August 7
</h2>
<ul>
@ -342,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,14 @@
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
----------------
@ -5,6 +16,7 @@ Tue, September 6
- 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
----------------

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -124,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

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#L672)
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L609)
+ Description:
+ Access: private

View File

@ -1,454 +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="PACKAGES.html">
PACKAGES
</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.
@ -1291,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,350 +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="PACKAGES.html">
PACKAGES
</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>
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="#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.
@ -1187,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

@ -1,280 +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="PACKAGES.html">
PACKAGES
</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.
@ -1117,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,6 +22,7 @@ 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>
@ -34,51 +35,30 @@ package: net.i2p.i2pfirefox
## Member Variables
## Methods
#### Logger logger [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L)
### validateUserDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L52)
>
+ Description:
+ Access: public
+ Modifiers: static
+ return: void
This method has no parameters.
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L36)
> static FileHandler fh;
### isWindows [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L98)
+ Access: private
+ Modifiers: final
+ Description:
+ Access: protected
+ Modifiers: static
+ return: boolean
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L37)
This method has no parameters.
> // private final int DEFAULT_TIMEOUT = 200;
### println [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L110)
+ Description:
+ Access: public
+ Modifiers: static
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| line | String | |
### logFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L112)
+ Description:
+ Access: private
+ Modifiers: static
+ return: File
This method has no parameters.
## Methods
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L128)
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L131)
+ Description: get the runtime directory creating it if create=true
+ Access: protected
@ -91,7 +71,7 @@ This method has no parameters.
| override | String | |
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L145)
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L148)
+ Description: get the correct runtime directory
+ Access: protected
@ -103,7 +83,7 @@ This method has no parameters.
| override | String | |
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192)
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L195)
+ Description: get the profile directory creating it if necessary
+ Access: protected
@ -116,7 +96,7 @@ This method has no parameters.
| browser | String | |
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L204)
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L207)
+ Description:
+ Access: protected
@ -129,7 +109,7 @@ This method has no parameters.
| browser | String | |
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L210)
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L213)
+ Description:
+ Access: protected
@ -142,7 +122,7 @@ This method has no parameters.
| base | String | |
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L256)
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L259)
+ Description:
+ Access: protected
@ -157,7 +137,7 @@ This method has no parameters.
| base | String | |
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L272)
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L275)
+ Description:
+ Access: private
@ -172,7 +152,7 @@ This method has no parameters.
| base | String | |
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L281)
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L284)
+ Description:
+ Access: private
@ -185,7 +165,7 @@ This method has no parameters.
| destinationFile | File | |
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L292)
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L295)
+ Description:
+ Access: public
@ -197,3 +177,71 @@ This method has no parameters.
| 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#L203)
### 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#L215)
### 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#L237)
### 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#L257)
### 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#L286)
### 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#L304)
### 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#L316)
### 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#L330)
### 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#L343)
### 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,7 @@ This method has no parameters.
| args | String[] | the arguments to pass to the Firefox binary |
### headlessProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L365)
### 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
@ -215,7 +208,7 @@ This method has no parameters.
| args | String[] | the arguments to pass to the Firefox binary |
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L388)
### 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
@ -226,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#L422)
+ 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#L432)
+ 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#L444)
+ 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#L457)
+ 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#L471)
+ Description:
+ Access: private
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| port | int | |
| host | String | |
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L481)
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L413)
+ Description:
+ Access: private
@ -292,7 +228,7 @@ This method has no parameters.
This method has no parameters.
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L488)
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L420)
+ Description:
+ Access: public
@ -304,7 +240,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L551)
### 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
@ -316,7 +252,7 @@ This method has no parameters.
| url | String[] | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L575)
### 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
@ -327,7 +263,7 @@ This method has no parameters.
| privateWindow | boolean | |
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L585)
### 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
@ -336,7 +272,7 @@ This method has no parameters.
This method has no parameters.
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L587)
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L530)
+ Description:
+ Access: private
@ -348,7 +284,7 @@ This method has no parameters.
| inUrl | String | |
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L598)
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L541)
+ Description:
+ Access: public
@ -360,7 +296,7 @@ This method has no parameters.
| args | String[] | |
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L627)
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L574)
+ Description:
+ Access: private

View File

@ -1,468 +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="PACKAGES.html">
PACKAGES
</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.
@ -1305,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,428 +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="PACKAGES.html">
PACKAGES
</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>
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.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.
@ -1265,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

@ -19,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>
@ -29,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
@ -41,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
@ -53,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
@ -65,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
@ -77,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
@ -89,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,284 +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="PACKAGES.html">
PACKAGES
</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.
@ -1121,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

@ -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

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -124,15 +129,60 @@
/
</a>
<h1>
<a href="#packages-for-various-operating-systems" rel="nofollow">
<span></span>
</a>
Packages for various operating systems
</h1>
<h2>
<a href="#windows" rel="nofollow">
<span></span>
</a>
Making a new release:
</h2>
<p>
Releases can be created in a mostly automatic way. With a working Java toolchain
including jpackage installed:
</p>
<ol>
<li>
Set a
<code>
GITHUB_TOKEN
</code>
in the environment containing an API key.
</li>
<li>
Update
<code>
CHANGES.md
</code>
</li>
<li>
Update the version number(
<code>
GITHUB_TAG
</code>
) and version title(
<code>
GITHUB_NAME
</code>
) in
<code>
config.sh
</code>
</li>
<li>
On a Linux machine, run
<code>
./release.sh
</code>
</li>
<li>
On a Windows machine, run
<code>
./windows-release.sh
</code>
</li>
<li>
On whatever machine you check in code with, run ./packages.sh
</li>
</ol>
<h2>
Windows
</h2>
<p>
@ -163,20 +213,14 @@
release.sh on a Linux machine.
</p>
<h3>
<a href="#msi" rel="nofollow">
<span></span>
</a>
MSI
</h3>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
Requires the Wixl toolset.
</p>
<h4>
Status: Works. Maintained.
</h4>
<p>
run:
<code>
@ -184,20 +228,14 @@
</code>
</p>
<h4>
<a href="#exe" rel="nofollow">
<span></span>
</a>
EXE
</h4>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
No special requirements.
</p>
<h4>
Status: Works. Maintained.
</h4>
<p>
run:
<code>
@ -205,20 +243,14 @@
</code>
</p>
<h3>
<a href="#portable-zip" rel="nofollow">
<span></span>
</a>
Portable(.zip)
</h3>
<h4>
<a href="#status-unknown-maintained" rel="nofollow">
<span></span>
</a>
Status: Unknown. Maintained.
</h4>
<p>
No special requirements.
</p>
<h4>
Status: Unknown. Maintained.
</h4>
<p>
run:
<code>
@ -226,9 +258,6 @@
</code>
</p>
<h2>
<a href="#linux" rel="nofollow">
<span></span>
</a>
Linux
</h2>
<p>
@ -242,20 +271,14 @@
.
</p>
<h3>
<a href="#debian" rel="nofollow">
<span></span>
</a>
Debian
</h3>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
Make sure you have a recent Java and jpackage.
</p>
<h4>
Status: Works. Maintained.
</h4>
<p>
run:
<code>
@ -263,26 +286,20 @@
</code>
</p>
<h3>
<a href="#fedora" rel="nofollow">
<span></span>
</a>
Fedora
</h3>
<h4>
<a href="#status-unknown-maintained" rel="nofollow">
<span></span>
</a>
Status: Unknown. Maintained.
</h4>
<p>
I&#39;m a Debian user and don&#39;t have a Fedora machine set up right now. Therefore,
I&rsquo;m a Debian user and don&rsquo;t have a Fedora machine set up right now. Therefore,
I build Fedora packages in a container.
</p>
<p>
Fedora doesn&#39;t have a jpackage in their repositories as far as I can tell so I use
Adoptium&#39;s third-party repository to supply the JDK I use to build the fedora
Fedora doesn&rsquo;t have a jpackage in their repositories as far as I can tell so I use
Adoptium&rsquo;s third-party repository to supply the JDK I use to build the fedora
package.
</p>
<h4>
Status: Unknown. Maintained.
</h4>
<p>
run:
<code>
@ -290,20 +307,14 @@
</code>
</p>
<h3>
<a href="#portable-zip" rel="nofollow">
<span></span>
</a>
Portable(.zip)
</h3>
<h4>
<a href="#status-works-maintained" rel="nofollow">
<span></span>
</a>
Status: Works. Maintained.
</h4>
<p>
Details are platform dependent. Same build-deps as everything else.
</p>
<h4>
Status: Works. Maintained.
</h4>
<p>
run:
<code>
@ -311,15 +322,9 @@
</code>
</p>
<h2>
<a href="#osx" rel="nofollow">
<span></span>
</a>
OSX
</h2>
<h3>
<a href="#todo" rel="nofollow">
<span></span>
</a>
TODO
</h3>
<div id="sourcecode">

View File

@ -1,6 +1,19 @@
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
-------
@ -14,26 +27,26 @@ run: `windows-release.sh` only *after* release.sh on a Linux machine.
### MSI
#### Status: Works. Maintained.
Requires the Wixl toolset.
#### Status: Works. Maintained.
run: `./windows.sh`
#### EXE
#### Status: Works. Maintained.
No special requirements.
#### Status: Works. Maintained.
run: `./windows-exe.sh`
### Portable(.zip)
#### Status: Unknown. Maintained.
No special requirements.
#### Status: Unknown. Maintained.
run: `./windows-portable.sh`
Linux
@ -46,16 +59,14 @@ Java tools in your `PATH`.
### Debian
#### Status: Works. Maintained.
Make sure you have a recent Java and jpackage.
#### Status: Works. Maintained.
run: `ant debian`
### Fedora
#### Status: Unknown. Maintained.
I'm a Debian user and don't have a Fedora machine set up right now. Therefore,
I build Fedora packages in a container.
@ -63,14 +74,16 @@ Fedora doesn't have a jpackage in their repositories as far as I can tell so I u
Adoptium's third-party repository to supply the JDK I use to build the fedora
package.
#### Status: Unknown. Maintained.
run: `ant fedora`
### Portable(.zip)
#### Status: Works. Maintained.
Details are platform dependent. Same build-deps as everything else.
#### Status: Works. Maintained.
run: `ant jpackage`
OSX

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

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

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -124,9 +129,6 @@
/
</a>
<h1>
<a href="#example-commands" rel="nofollow">
<span></span>
</a>
Example Commands:
</h1>
<p>
@ -136,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.
@ -144,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.29" />
<property name="release.number" value="0.0.35" />
<!-- make the update xpi2p -->
<!-- this contains everything except i2ptunnel.config -->
@ -414,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" />

View File

@ -1,6 +1,6 @@
#! /usr/bin/env sh
export GITHUB_USER=eyedeekay
export GITHUB_REPO=i2p.plugins.firefox
export GITHUB_NAME="Mostly packaging stuff, fix first-run Windows thing(I think)"
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.29
export GITHUB_TAG=0.0.35

View File

@ -102,6 +102,11 @@
PACKAGES
</a>
</li>
<li>
<a href="RELEASES.html">
RELEASES
</a>
</li>
<li>
<a href="TODO.html">
TODO
@ -124,9 +129,6 @@
/
</a>
<h1>
<a href="#i2p-plugins-firefox" rel="nofollow">
<span></span>
</a>
i2p.plugins.firefox
</h1>
<p>
@ -155,25 +157,18 @@
</p>
<p>
<strong>
<a href="https://i2pgit.org/i2p-hackers/i2p.firefox" rel="nofollow">
<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
@ -182,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>
@ -204,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
@ -224,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>
@ -242,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>
@ -262,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:
@ -298,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>
@ -318,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
@ -332,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.
@ -355,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.
@ -369,9 +340,6 @@ if (i2pIsRunning()) {
</li>
</ul>
<h3>
<a href="#usability-vs-strict" rel="nofollow">
<span></span>
</a>
Usability vs Strict
</h3>
<p>
@ -380,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>
@ -402,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>
@ -441,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>
@ -460,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
@ -468,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>
@ -492,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

@ -18,45 +18,50 @@ 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
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." \
--name "i2pbrowser_${GITHUB_TAG}_.deb" \
--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." \
--name "i2pbrowser_${GITHUB_TAG}_.rpm" \
--file "i2pbrowser_${GITHUB_TAG}-1.x86_64.rpm" \
--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

Binary file not shown.

Binary file not shown.

View File

@ -32,17 +32,17 @@ public class I2PBrowser extends I2PCommonBrowser {
public boolean usability = false;
private void launchFirefox(boolean privateWindow, String[] url) {
println("I2PFirefox");
logger.info("I2PFirefox");
I2PFirefox.usability = usability;
i2pFirefox.launch(privateWindow, url);
}
private void launchChromium(boolean privateWindow, String[] url) {
println("I2PChromium");
logger.info("I2PChromium");
I2PChromiumProfileBuilder.usability = usability;
i2pChromium.launch(privateWindow, url);
}
private void launchGeneric(boolean privateWindow, String[] url) {
println("I2PChromium");
logger.info("I2PChromium");
i2pGeneral.launch(privateWindow, url);
}
@ -178,7 +178,7 @@ public class I2PBrowser extends I2PCommonBrowser {
public static void main(String[] args) {
validateUserDir();
boolean privateBrowsing = false;
println("I2PBrowser");
logger.info("I2PBrowser");
I2PBrowser i2pBrowser = new I2PBrowser();
ArrayList<String> visitURL = new ArrayList<String>();
if (args != null) {
@ -196,6 +196,10 @@ public class I2PBrowser extends I2PCommonBrowser {
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()) {
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()) {
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()) {
println("Found valid chromium at " + chrome);
logger.info("Found valid chromium at " + chrome);
validChromiums.add(chrome);
}
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 {
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)) {
println("Valid profile directory: " + profileDirectory);
logger.info("Valid profile directory: " + profileDirectory);
} else {
println("Invalid profile directory: " + profileDirectory +
" rebuilding...");
logger.info("Invalid profile directory: " + profileDirectory +
" rebuilding...");
if (!I2PChromiumProfileBuilder.copyBaseProfiletoProfile()) {
println("Failed to rebuild profile directory: " + profileDirectory);
logger.info("Failed to rebuild profile directory: " +
profileDirectory);
return null;
} else {
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;
println("I2PChromium");
logger.info("I2PChromium");
try {
println("Waiting for I2PChromium to close...");
logger.info("Waiting for I2PChromium to close...");
int exit = p.waitFor();
println("I2PChromium exited with value: " + exit);
logger.info("I2PChromium exited with value: " + exit);
} catch (Exception e) {
println("Error: " + e.getMessage());
logger.info("Error: " + e.getMessage());
}
}
}
@ -644,21 +577,25 @@ public class I2PChromium extends I2PCommonBrowser {
public static void main(String[] args) {
validateUserDir();
boolean privateBrowsing = false;
println("I2PChromium");
logger.info("I2PChromium");
I2PChromium i2pChromium = new I2PChromium();
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;
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();
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 {
println("Copying base profile to profile directory");
logger.info("Copying base profile to profile directory");
copyDirectory(baseProfileDir, profileDir, "chromium", usabilityMode());
} catch (Exception e) {
println("Error copying base profile to profile" + e);
logger.info("Error copying base profile to profile" + e);
return false;
}
}
println("Copied base profile to profile directory");
logger.info("Copied base profile to profile directory");
return true;
}

View File

@ -29,15 +29,15 @@ public class I2PChromiumProfileChecker extends I2PCommonBrowser {
public static void main(String[] args) {
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
if (profileDirectory == null) {
println("No profile directory found");
logger.info("No profile directory found");
return;
}
println("Profile directory: " + profileDirectory);
logger.info("Profile directory: " + profileDirectory);
boolean ok = validateProfileDirectory(profileDirectory);
if (ok) {
println("Profile directory is valid");
logger.info("Profile directory is valid");
} else {
println("Profile directory is invalid");
logger.info("Profile directory is invalid");
}
}
/**
@ -50,23 +50,23 @@ public class I2PChromiumProfileChecker extends I2PCommonBrowser {
public static boolean validateProfileDirectory(String profileDirectory) {
File profileDir = new File(profileDirectory);
if (!profileDir.exists()) {
println("Profile directory does not exist");
logger.info("Profile directory does not exist");
return false;
}
if (!profileDir.isDirectory()) {
println("Profile directory is not a directory");
logger.info("Profile directory is not a directory");
return false;
}
if (!profileDir.canRead()) {
println("Profile directory is not readable");
logger.info("Profile directory is not readable");
return false;
}
if (!profileDir.canWrite()) {
println("Profile directory is not writable");
logger.info("Profile directory is not writable");
return false;
}
if (!validateExtensionDirectory(profileDir + "/extensions")) {
println("extensions directory is invalid");
logger.info("extensions directory is invalid");
return false;
}
return true;
@ -81,19 +81,19 @@ public class I2PChromiumProfileChecker extends I2PCommonBrowser {
public static boolean validateFile(String file) {
File f = new File(file);
if (!f.exists()) {
println("User JavaScript file does not exist");
logger.info("User JavaScript file does not exist");
return false;
}
if (!f.isFile()) {
println("User JavaScript file is not a file");
logger.info("User JavaScript file is not a file");
return false;
}
if (!f.canRead()) {
println("User JavaScript file is not readable");
logger.info("User JavaScript file is not readable");
return false;
}
if (!f.canWrite()) {
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 extends I2PCommonBrowser {
public static boolean validateExtensionDirectory(String extensionDirectory) {
File extensionDir = new File(extensionDirectory);
if (!extensionDir.exists()) {
println("Extension directory does not exist");
logger.info("Extension directory does not exist");
return false;
}
if (!extensionDir.isDirectory()) {
println("Extension directory is not a directory");
logger.info("Extension directory is not a directory");
return false;
}
if (!extensionDir.canRead()) {
println("Extension directory is not readable");
logger.info("Extension directory is not readable");
return false;
}
if (!extensionDir.canWrite()) {
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) {
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) {
println("Unpacking base profile to " + profileDirectory);
logger.info("Unpacking base profile to " + profileDirectory);
return unpackProfile(profileDirectory, "chromium", mode);
}
}

View File

@ -6,6 +6,7 @@ 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;
@ -30,8 +31,10 @@ import java.util.zip.ZipInputStream;
*/
public class I2PCommonBrowser {
static Logger logger = Logger.getLogger("browserlauncher");
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 {
@ -50,37 +53,37 @@ public class I2PCommonBrowser {
}
public static void validateUserDir() {
println("Validating user directory");
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);
println("user.dir testing !" + userHomeFile.getAbsolutePath() + ".equals(" +
userDirFile.getAbsolutePath() + ")");
logger.info("user.dir testing !" + userHomeFile.getAbsolutePath() +
".equals(" + userDirFile.getAbsolutePath() + ")");
if (!userDirFile.getAbsolutePath().contains("Program Files")) {
if (!userDirFile.getAbsolutePath().equals(
userHomeFile.getAbsolutePath())) {
println("user.dir is not inconvenient");
logger.info("user.dir is not inconvenient");
if (userDirFile.exists()) {
println("user.dir exists");
logger.info("user.dir exists");
if (userDirFile.isDirectory()) {
println("user.dir is a directory");
logger.info("user.dir is a directory");
if (userDirFile.canWrite()) {
println("user.dir is writable");
logger.info("user.dir is writable");
return;
} else {
println("user.dir is not writable");
logger.info("user.dir is not writable");
}
}
{ println("user.dir is not actually a directory"); }
{ logger.info("user.dir is not actually a directory"); }
} else {
println("user.dir does not exist");
logger.info("user.dir does not exist");
}
} else {
println("user.dir should not be the same as user.home");
logger.info("user.dir should not be the same as user.home");
}
} else {
println("user.dir cannot run from inside Program Files");
logger.info("user.dir cannot run from inside Program Files");
}
if (isWindows())
userHome = new File(userHome, "AppData/Local/I2P").getAbsolutePath();
@ -88,16 +91,16 @@ public class I2PCommonBrowser {
if (!defaultPathFile.exists())
defaultPathFile.mkdirs();
if (!defaultPathFile.isDirectory()) {
println(
logger.info(
"default path exists and is not a directory, get it out of the way");
println(defaultPathFile.getAbsolutePath());
logger.info(defaultPathFile.getAbsolutePath());
}
System.setProperty("user.dir", defaultPathFile.getAbsolutePath());
}
protected static boolean isWindows() {
String osName = System.getProperty("os.name");
println("os.name" + osName);
logger.info("os.name" + osName);
if (osName.contains("windows"))
return true;
if (osName.contains("Windows"))
@ -107,7 +110,7 @@ public class I2PCommonBrowser {
return false;
}
public static void println(String line) { logger.info(line); }
// public static void logger.info(String line) { logger.info(line); }
private static File logFile() {
validateUserDir();
@ -208,16 +211,16 @@ public class I2PCommonBrowser {
protected boolean unpackProfile(String profileDirectory, String browser,
String base) {
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) {
println("Could not find resources");
logger.info("Could not find resources");
return false;
}
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);
@ -225,14 +228,14 @@ public class I2PCommonBrowser {
ZipEntry entry;
// while there are entries I process them
while ((entry = zis.getNextEntry()) != null) {
println("entry: " + entry.getName() + ", " + entry.getSize());
logger.info("entry: " + entry.getName() + ", " + entry.getSize());
// consume all the data from this entry
if (entry.isDirectory()) {
println("Creating directory: " + entry.getName());
logger.info("Creating directory: " + entry.getName());
File dir = new File(profileDirectory + "/" + entry.getName());
dir.mkdirs();
} else {
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);
@ -245,7 +248,7 @@ public class I2PCommonBrowser {
// loop through the Enumeration
} catch (Exception e) {
println("Error copying profile files: " + e.getMessage());
logger.info("Error copying profile files: " + e.getMessage());
return false;
}
return true;
@ -292,11 +295,11 @@ public class I2PCommonBrowser {
public static boolean validateProfileFirstRun(String profileDirectory) {
File profileDir = new File(profileDirectory);
if (!profileDir.exists()) {
println("Profile directory does not exist");
logger.info("Profile directory does not exist");
return false;
}
if (!profileDir.isDirectory()) {
println("Profile directory is not a directory");
logger.info("Profile directory is not a directory");
return false;
}
File frf = new File(profileDir, "first-run");
@ -307,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()) {
println("Found Firefox at " + path);
logger.info("Found Firefox at " + path);
return;
}
}
@ -240,10 +239,10 @@ public class I2PFirefox extends I2PCommonBrowser {
for (String firefox : firefoxes) {
File firefoxFile = new File(firefox);
if (firefoxFile.exists()) {
println("Found valid firefox at " + firefox);
logger.info("Found valid firefox at " + firefox);
validFirefoxes.add(firefox);
}
println("firefox at " + firefox + "does not exist");
logger.info("firefox at " + firefox + "does not exist");
}
return validFirefoxes.toArray(new String[validFirefoxes.size()]);
}
@ -391,93 +390,26 @@ public class I2PFirefox extends I2PCommonBrowser {
int arglength = 0;
if (args != null)
arglength = args.length;
String[] newArgs = new String[arglength + 5];
String[] newArgs = new String[arglength + 4];
newArgs[0] = firefox;
newArgs[1] = "-attach-console";
newArgs[2] = "--new-instance";
newArgs[3] = "--profile";
newArgs[4] = I2PFirefoxProfileBuilder.profileDirectory();
newArgs[1] = "--new-instance";
newArgs[2] = "--profile";
newArgs[3] = I2PFirefoxProfileBuilder.profileDirectory();
if (args != null) {
if (arglength > 0) {
for (int i = 0; i < arglength; i++) {
newArgs[i + 5] = args[i];
newArgs[i + 4] = args[i];
}
}
}
return new ProcessBuilder(newArgs).directory(
I2PFirefoxProfileBuilder.runtimeDirectory(true));
} else {
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++) {
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";
@ -490,16 +422,17 @@ public class I2PFirefox extends I2PCommonBrowser {
if (waitForProxy()) {
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
if (I2PFirefoxProfileChecker.validateProfileDirectory(profileDirectory)) {
println("Valid profile directory: " + profileDirectory);
logger.info("Valid profile directory: " + profileDirectory);
} else {
println("Invalid profile directory: " + profileDirectory +
" rebuilding...");
logger.info("Invalid profile directory: " + profileDirectory +
" rebuilding...");
if (!I2PFirefoxProfileBuilder.copyBaseProfiletoProfile(
usabilityMode())) {
println("Failed to rebuild profile directory: " + profileDirectory);
logger.info("Failed to rebuild profile directory: " +
profileDirectory);
return null;
} else {
println("Rebuilt profile directory: " + profileDirectory);
logger.info("Rebuilt profile directory: " + profileDirectory);
}
}
if (validateProfileFirstRun(profileDirectory)) {
@ -508,13 +441,23 @@ public class I2PFirefox extends I2PCommonBrowser {
try {
Process hp = hpb.start();
try {
int hev = hp.waitFor();
println("Headless browser run completed, exit: " + hev);
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) {
println(e.toString());
logger.info("Headless browser error " + e.toString());
}
} catch (IOException e) {
println(e.toString());
logger.info("Headless browser error " + e.toString());
}
}
}
@ -526,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();
println("I2PFirefox");
logger.info("I2PFirefox");
sleep(2000);
return p;
} catch (Throwable e) {
System.out.println(e);
logger.info(e.toString());
}
}
return null;
@ -554,11 +497,11 @@ public class I2PFirefox extends I2PCommonBrowser {
if (p == null)
return;
try {
println("Waiting for I2PFirefox to close...");
logger.info("Waiting for I2PFirefox to close...");
int exit = p.waitFor();
println("I2PFirefox exited with value: " + exit);
logger.info("I2PFirefox exited with value: " + exit);
} catch (Exception e) {
println("Error: " + e.getMessage());
logger.info("Error: " + e.getMessage());
}
}
}
@ -588,7 +531,7 @@ public class I2PFirefox extends I2PCommonBrowser {
String[] schemes = {"http", "https"};
for (String scheme : schemes) {
if (inUrl.startsWith(scheme)) {
println("Valid URL: " + inUrl);
logger.info("Valid URL: " + inUrl);
return inUrl;
}
}
@ -598,19 +541,25 @@ public class I2PFirefox extends I2PCommonBrowser {
public static void main(String[] args) {
validateUserDir();
boolean privateBrowsing = false;
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;
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));
@ -618,8 +567,6 @@ public class I2PFirefox extends I2PCommonBrowser {
}
}
}
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();
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 {
println("Copying base profile to profile directory");
logger.info("Copying base profile to profile directory");
copyDirectory(baseProfileDir, profileDir, "firefox", base);
} catch (Exception e) {
println("Error copying base profile to profile" + e);
logger.info("Error copying base profile to profile" + e);
return false;
}
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) {
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
@ -30,15 +32,15 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
public static void main(String[] args) {
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
if (profileDirectory == null) {
println("No profile directory found");
logger.info("No profile directory found");
return;
}
println("Profile directory: " + profileDirectory);
logger.info("Profile directory: " + profileDirectory);
boolean ok = validateProfileDirectory(profileDirectory);
if (ok) {
println("Profile directory is valid");
logger.info("Profile directory is valid");
} else {
println("Profile directory is invalid");
logger.info("Profile directory is invalid");
}
}
/**
@ -51,51 +53,54 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
public static boolean validateProfileDirectory(String profileDirectory) {
File profileDir = new File(profileDirectory);
if (!profileDir.exists()) {
println("Profile directory does not exist");
logger.info("Profile directory does not exist");
return false;
}
if (!profileDir.isDirectory()) {
println("Profile directory is not a directory");
logger.info("Profile directory is not a directory");
return false;
}
if (!profileDir.canRead()) {
println("Profile directory is not readable");
logger.info("Profile directory is not readable");
return false;
}
if (!profileDir.canWrite()) {
println("Profile directory is not writable");
logger.info("Profile directory is not writable");
return false;
}
if (!validateFile(profileDir + "/prefs.js")) {
println("prefs.js is not valid");
logger.info("prefs.js is not valid");
return false;
}
if (!validateFile(profileDir + "/user.js")) {
println("user.js is not valid");
logger.info("user.js is not valid");
return false;
}
if (!validateExtensionDirectory(profileDir + "/extensions")) {
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 extends I2PCommonBrowser {
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 extends I2PCommonBrowser {
public static boolean validateFile(String file) {
File f = new File(file);
if (!f.exists()) {
println("User JavaScript file does not exist");
logger.info("User JavaScript file does not exist");
return false;
}
if (!f.isFile()) {
println("User JavaScript file is not a file");
logger.info("User JavaScript file is not a file");
return false;
}
if (!f.canRead()) {
println("User JavaScript file is not readable");
logger.info("User JavaScript file is not readable");
return false;
}
if (!f.canWrite()) {
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 extends I2PCommonBrowser {
public static boolean validateExtensionDirectory(String extensionDirectory) {
File extensionDir = new File(extensionDirectory);
if (!extensionDir.exists()) {
println("Extension directory does not exist");
logger.info("Extension directory does not exist");
return false;
}
if (!extensionDir.isDirectory()) {
println("Extension directory is not a directory");
logger.info("Extension directory is not a directory");
return false;
}
if (!extensionDir.canRead()) {
println("Extension directory is not readable");
logger.info("Extension directory is not readable");
return false;
}
if (!extensionDir.canWrite()) {
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) {
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 {
println("No Browser found.");
logger.info("No Browser found.");
return new ProcessBuilder(args);
}
}
@ -335,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();
println("I2PBrowser");
logger.info("I2PBrowser");
sleep(2000);
return p;
} catch (Throwable e) {
System.out.println(e);
logger.info(e.toString());
}
}
return null;
@ -351,15 +351,16 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
if (waitForProxy()) {
p = launchAndDetatch(privateWindow, url);
try {
println("Waiting for I2PBrowser to close...");
logger.info("Waiting for I2PBrowser to close...");
int exit = p.waitFor();
if (privateWindow) {
if (deleteRuntimeDirectory())
println("Private browsing enforced, deleting runtime directory");
logger.info(
"Private browsing enforced, deleting runtime directory");
}
println("I2PBrowser exited with value: " + exit);
logger.info("I2PBrowser exited with value: " + exit);
} catch (Exception e) {
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)) {
println("Valid URL: " + inUrl);
logger.info("Valid URL: " + inUrl);
return inUrl;
}
}
@ -396,14 +397,14 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
public static void main(String[] args) {
validateUserDir();
boolean privateBrowsing = false;
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;
println(
logger.info(
"private browsing is true, profile will be discarded at end of session");
}
if (!arg.startsWith("-")) {
@ -413,7 +414,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
}
}
}
println("I2PGenericUnsafeBrowser");
logger.info("I2PGenericUnsafeBrowser");
I2PGenericUnsafeBrowser i2pBrowser = new I2PGenericUnsafeBrowser();
i2pBrowser.launch(privateBrowsing,
visitURL.toArray(new String[visitURL.size()]));

View File

@ -7,25 +7,30 @@ 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." \
--name "i2pbrowser-${GITHUB_TAG}.msi" \
--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." \
--name "i2pbrowser-${GITHUB_TAG}.exe" \
--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." \
--name "i2pbrowser-portable-${GITHUB_TAG}.zip" \
--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"