Compare commits
177 Commits
Author | SHA1 | Date | |
---|---|---|---|
ab47e252cd | |||
7846a3d566 | |||
abb8be09c4 | |||
49fbe74d2c | |||
a116e9f35e | |||
3ce7ca9210 | |||
e5e350dae3 | |||
5c9835a972 | |||
4f41ba7322 | |||
d372f87a6e | |||
4f070d84c3 | |||
50116c6d4f | |||
89f3f10bc2 | |||
8057192698 | |||
ec8d535f65 | |||
0e5b7eb4c2 | |||
e8f8235f06 | |||
a99a4ffc09 | |||
a29340c9ef | |||
6fd377403a | |||
c055352afd | |||
a23ee60350 | |||
03a29fd557 | |||
1e84c614ce | |||
74a6cded17 | |||
0a9b7f0678 | |||
18ab8844c4 | |||
73f77dd64f | |||
ed76fbe804 | |||
207d7ffcd0 | |||
27ebdbdde7 | |||
acf760e24c | |||
35a0855dd5 | |||
475b1d93a5 | |||
33a1c4f8b0 | |||
e584557dcc | |||
44e4b2348d | |||
c581903d0a | |||
853d07b7d5 | |||
29b1576936 | |||
2ea0850f06 | |||
5ad93c97aa | |||
26154f3b7f | |||
64505f6617 | |||
800de73b9d | |||
4d605d40b2 | |||
368d9c3423 | |||
76d05d0d53 | |||
7e6f11f6b3 | |||
b9c0fc5e38 | |||
5d4b1a4681 | |||
b2f604a4a5 | |||
7e3ae6ad04 | |||
2edb2a3408 | |||
6c1f2bc640 | |||
76292fc7c0 | |||
c354c49128 | |||
9d66efe846 | |||
24a08cf7c5 | |||
4e19c36817 | |||
05dfef06e3 | |||
8397d7415b | |||
f9279f494f | |||
e3c2ab91be | |||
a8a54f6b4c | |||
995e9805a2 | |||
f3e7c28503 | |||
6042f30350 | |||
ab226e5a4c | |||
e632a49933 | |||
beef36b36d | |||
2ed27fa307 | |||
1a5ce21912 | |||
7754c0b43d | |||
b4b2a30935 | |||
81f58b9d48 | |||
02ac99531a | |||
2b2aea0748 | |||
09e6864cb9 | |||
f954bf4893 | |||
21f74306c8 | |||
ccde6b65dc | |||
f348347115 | |||
ef19f681d0 | |||
1b60e74f9d | |||
9a052f4f3c | |||
1e94b34efe | |||
01c19d1ffd | |||
de6b872426 | |||
27cb5b8365 | |||
2d508e1417 | |||
d6a62bb6ee | |||
4095e61ad3 | |||
f107bf92b2 | |||
bf2e964e1a | |||
8c4647f8b3 | |||
62bda1aec5 | |||
5c637e900e | |||
41b927809b | |||
f8b70f2a96 | |||
c9e7a4beba | |||
40f50aefb5 | |||
e9dfeb0288 | |||
5d121e8927 | |||
aad78749b4 | |||
bbaddd3927 | |||
f7c58d0125 | |||
0e2dba7bd5 | |||
23f1e3491f | |||
a36a74a44a | |||
63344656c1 | |||
260d42a7b3 | |||
4c3f5523d2 | |||
0038f9c186 | |||
46469a4e94 | |||
8d8006c956 | |||
4d35d18c99 | |||
8a2b3fee85 | |||
268b791ad7 | |||
37c7ad9640 | |||
6928ff423a | |||
a4bde9e63b | |||
e337f90c0b | |||
89b480cd22 | |||
0c4746e8fb | |||
87b0a07878 | |||
f09599a2fa | |||
2d3071dbb2 | |||
c79018a29a | |||
bc342cc463 | |||
54b427e532 | |||
ebc829c5c9 | |||
ce5240d658 | |||
fdd3aac391 | |||
c5281751bb | |||
a3b9f1abce | |||
f208563c35 | |||
a9e1135ef5 | |||
8d3b46b36c | |||
a7e47cfc15 | |||
71060cd851 | |||
f3dc285ba6 | |||
bce2f0e286 | |||
8e70d9280c | |||
ea778bf5da | |||
a3de60fcb1 | |||
459c16aec2 | |||
d35a60cc01 | |||
733c2b1cc0 | |||
6b7ab66c99 | |||
4647cd4a0b | |||
b47fb744c4 | |||
a179482b95 | |||
0f44a3219b | |||
9c54e16978 | |||
395e1c2c95 | |||
d989337a9c | |||
7dbfdd9cbf | |||
6605220f4a | |||
d0440dcc56 | |||
4640cc528c | |||
94e03d045b | |||
b6a66cf96e | |||
91f44d29f7 | |||
9152da34c9 | |||
e49cd5d470 | |||
02c148ccbd | |||
5216ec40f4 | |||
65e67f661b | |||
adfda72398 | |||
5f320087f0 | |||
86c0c1b68b | |||
07cc177a95 | |||
40299b00fc | |||
1c1e048c50 | |||
084ecb46ff | |||
2b80b4151a |
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
.git
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -13,3 +13,9 @@ src/build
|
||||
*.err
|
||||
*.log
|
||||
i2pbrowser/
|
||||
/i2pbrowser*.deb
|
||||
/i2pbrowser*.rpm
|
||||
/logs
|
||||
/*.jar
|
||||
/*.msi
|
||||
/*.exe
|
111
CHANGES.html
111
CHANGES.html
@ -97,6 +97,16 @@
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
@ -119,9 +129,62 @@
|
||||
/
|
||||
</a>
|
||||
<h2>
|
||||
<a href="#fri-september-2" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Sun, September 11
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Make the logging a little more sensible
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Tue, September 6
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Wait up to 5 seconds for the initializing headless Firefox instance to die on Windows
|
||||
</li>
|
||||
<li>
|
||||
Add option to disable proxy pre-check by setting timeout to zero or less
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Tue, September 6
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Run headlessly on first-run on Windows.
|
||||
</li>
|
||||
<li>
|
||||
Add support for building an .exe package.
|
||||
</li>
|
||||
<li>
|
||||
Add support for building an .zip Windows portable package.
|
||||
</li>
|
||||
<li>
|
||||
Add support for building an .rpm package.
|
||||
</li>
|
||||
<li>
|
||||
Destroy headless process if it goes too long.
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Mon, September 5
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Fix several issues with running on Windows 11
|
||||
</li>
|
||||
<li>
|
||||
Make tunnel nicknames different to avoid double shared tunnels
|
||||
</li>
|
||||
<li>
|
||||
Add support for building a .deb package.
|
||||
</li>
|
||||
<li>
|
||||
Add support for building an .msi package.
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Fri, September 2
|
||||
</h2>
|
||||
<ul>
|
||||
@ -133,9 +196,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#thu-september-1" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Thu, September 1
|
||||
</h2>
|
||||
<ul>
|
||||
@ -144,9 +204,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#wed-august-31" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Wed, August 31
|
||||
</h2>
|
||||
<ul>
|
||||
@ -161,9 +218,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#tue-august-30" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Tue, August 30
|
||||
</h2>
|
||||
<ul>
|
||||
@ -175,9 +229,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#sun-august-28" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Sun, August 28
|
||||
</h2>
|
||||
<ul>
|
||||
@ -192,23 +243,17 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#sat-august-27" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Sat, August 27
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Added support for passing a URL as a parameter to the cli's
|
||||
Added support for passing a URL as a parameter to the cli’s
|
||||
</li>
|
||||
<li>
|
||||
revised test.sh
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#mon-august-22" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Mon, August 22
|
||||
</h2>
|
||||
<ul>
|
||||
@ -221,20 +266,14 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#sat-august-21" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Sat, August 21
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Adds support for passing the -private flag to start Firefox with --private-window and Chromium --incognito
|
||||
Adds support for passing the -private flag to start Firefox with –private-window and Chromium –incognito
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#fri-august-20" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Fri, August 20
|
||||
</h2>
|
||||
<ul>
|
||||
@ -243,23 +282,17 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#fri-august-19" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Fri, August 19
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Adds the ability to pass --private-window to Firefoxes and --incognito to Chromiums
|
||||
Adds the ability to pass –private-window to Firefoxes and –incognito to Chromiums
|
||||
</li>
|
||||
<li>
|
||||
Switch Tor Browser to the top of the order on Windows to match i2p.firefox behavior
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#mon-august-8" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Mon, August 8
|
||||
</h2>
|
||||
<ul>
|
||||
@ -271,9 +304,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#sun-august-7" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Sun, August 7
|
||||
</h2>
|
||||
<ul>
|
||||
@ -297,9 +327,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#saturday-august-6" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Saturday, August 6
|
||||
</h2>
|
||||
<ul>
|
||||
|
28
CHANGES.md
28
CHANGES.md
@ -1,3 +1,31 @@
|
||||
Sun, September 11
|
||||
-----------------
|
||||
|
||||
- Make the logging a little more sensible
|
||||
|
||||
Tue, September 6
|
||||
----------------
|
||||
|
||||
- Wait up to 5 seconds for the initializing headless Firefox instance to die on Windows
|
||||
- Add option to disable proxy pre-check by setting timeout to zero or less
|
||||
|
||||
Tue, September 6
|
||||
----------------
|
||||
|
||||
- Run headlessly on first-run on Windows.
|
||||
- Add support for building an .exe package.
|
||||
- Add support for building an .zip Windows portable package.
|
||||
- Add support for building an .rpm package.
|
||||
- Destroy headless process if it goes too long.
|
||||
|
||||
Mon, September 5
|
||||
----------------
|
||||
|
||||
- Fix several issues with running on Windows 11
|
||||
- Make tunnel nicknames different to avoid double shared tunnels
|
||||
- Add support for building a .deb package.
|
||||
- Add support for building an .msi package.
|
||||
|
||||
Fri, September 2
|
||||
----------------
|
||||
|
||||
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM fedora
|
||||
RUN yum -y update
|
||||
RUN yum -y install rpm-build
|
||||
ADD . /src/i2p.plugins.firefox
|
||||
WORKDIR /src/i2p.plugins.firefox
|
||||
CMD ./fedora-docker.sh
|
@ -97,6 +97,16 @@
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
@ -119,7 +129,7 @@
|
||||
/
|
||||
</a>
|
||||
<p>
|
||||
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
|
||||
:; dir=$(CDPATH= cd – “$(dirname – “$0”)” && pwd); java -cp “$dir”/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
|
||||
@ECHO OFF
|
||||
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private
|
||||
</p>
|
||||
|
1308
I2PBrowser.html
1308
I2PBrowser.html
File diff suppressed because it is too large
Load Diff
@ -7,6 +7,7 @@ Description:
|
||||
> I2PBrowser.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. @description I2PBrowser is a that is used to open a browser window to the I2P network. It automatically detects the operating system and available browsers and selects the best one to use with Tor Browser at the top for Firefox and Brave at the top for Chrome.
|
||||
|
||||
Author: idk
|
||||
Parent class: I2PCommonBrowser
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
@ -152,7 +153,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L156)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L157)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
|
||||
+ Access: public
|
||||
@ -163,7 +164,7 @@ This method has no parameters.
|
||||
| privateWindow | boolean | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L165)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L166)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
|
||||
+ Access: public
|
||||
@ -172,7 +173,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L167)
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L168)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -184,7 +185,7 @@ This method has no parameters.
|
||||
| inUrl | String | |
|
||||
|
||||
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L177)
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L178)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
|
1959
I2PChromium.html
1959
I2PChromium.html
File diff suppressed because it is too large
Load Diff
112
I2PChromium.md
112
I2PChromium.md
@ -18,8 +18,6 @@ package: net.i2p.i2pfirefox
|
||||
</summary>
|
||||
<ul>
|
||||
<li>java.io.File</li>
|
||||
<li>java.io.IOException</li>
|
||||
<li>java.net.Socket</li>
|
||||
<li>java.util.ArrayList</li>
|
||||
</ul>
|
||||
</details>
|
||||
@ -33,13 +31,6 @@ package: net.i2p.i2pfirefox
|
||||
+ Access: private
|
||||
+ Modifiers: final
|
||||
|
||||
#### int DEFAULT_TIMEOUT [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
|
||||
|
||||
>
|
||||
|
||||
+ Access: private
|
||||
+ Modifiers: final
|
||||
|
||||
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
|
||||
|
||||
>
|
||||
@ -48,7 +39,7 @@ package: net.i2p.i2pfirefox
|
||||
|
||||
## Methods
|
||||
|
||||
### FIND_CHROMIUM_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L54)
|
||||
### FIND_CHROMIUM_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L51)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -58,7 +49,7 @@ package: net.i2p.i2pfirefox
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIND_CHROMIUM_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L70)
|
||||
### FIND_CHROMIUM_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L67)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -68,7 +59,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIND_CHROMIUM_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L88)
|
||||
### FIND_CHROMIUM_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L85)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -78,7 +69,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIND_ALL_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L125)
|
||||
### FIND_ALL_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L122)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -88,7 +79,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIND_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L145)
|
||||
### FIND_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L142)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -98,7 +89,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### NEARBY_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L159)
|
||||
### NEARBY_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L156)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -108,7 +99,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### CHROMIUM_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L213)
|
||||
### CHROMIUM_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L210)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -118,7 +109,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L225)
|
||||
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L222)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -128,7 +119,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### onlyValidChromiums [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L247)
|
||||
### onlyValidChromiums [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L244)
|
||||
|
||||
+ Description: Check our list of chrome paths for a valid chrome binary. Just an existence check for now but should check versions in the future.
|
||||
+ Access: public
|
||||
@ -137,7 +128,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L267)
|
||||
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L264)
|
||||
|
||||
+ Description: Return the best available Chromium from the list of Chromiums we have.
|
||||
+ Access: public
|
||||
@ -146,7 +137,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L296)
|
||||
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L293)
|
||||
|
||||
+ Description: Return the best available Chromium from the list of Chromiums we have. if override is passed it will be validated and if it validates it will be used.
|
||||
+ Access: public
|
||||
@ -157,7 +148,7 @@ This method has no parameters.
|
||||
| overrideChromium | String | |
|
||||
|
||||
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L314)
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L311)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
|
||||
+ Access: public
|
||||
@ -166,7 +157,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L327)
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L324)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile. @args the arguments to pass to the Chromium binary
|
||||
+ Access: public
|
||||
@ -177,7 +168,7 @@ This method has no parameters.
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L339)
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L336)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
|
||||
+ Access: public
|
||||
@ -186,7 +177,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L352)
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L349)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
|
||||
+ Access: public
|
||||
@ -197,7 +188,7 @@ This method has no parameters.
|
||||
| args | String[] | the arguments to pass to the Chromium binary. |
|
||||
|
||||
|
||||
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L399)
|
||||
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L396)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile with a specific set of extended arguments.
|
||||
+ Access: public
|
||||
@ -208,64 +199,7 @@ This method has no parameters.
|
||||
| args | String[] | the extended arguments to pass to the Chromium binary. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L493)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L503)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L515)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
| port | int | the port to wait for the proxy to be ready on. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L528)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
| port | int | the port to wait for the proxy to be ready on. |
|
||||
| host | String | the host to wait for the proxy to be ready on. |
|
||||
|
||||
|
||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L541)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| port | int | |
|
||||
| host | String | |
|
||||
|
||||
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L551)
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L483)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -277,7 +211,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L598)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L531)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||
+ Access: public
|
||||
@ -289,7 +223,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L623)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L556)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||
+ Access: public
|
||||
@ -300,7 +234,7 @@ This method has no parameters.
|
||||
| privateWindow | boolean | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L632)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L565)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||
+ Access: public
|
||||
@ -309,7 +243,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L634)
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L567)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -321,7 +255,7 @@ This method has no parameters.
|
||||
| inUrl | String | |
|
||||
|
||||
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L644)
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L577)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -333,7 +267,7 @@ This method has no parameters.
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L671)
|
||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L609)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
|
@ -1,449 +1,422 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PChromiumProfileBuilder
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br />
|
||||
Description:
|
||||
<br />
|
||||
> 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’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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| create | boolean | if true create the runtime directory if it does not exist |
|
||||
</p>
|
||||
<h3>
|
||||
runtimeDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L94">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the correct runtime directory
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: the runtime directory or null if it could not be created or found
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
This method has no parameters.
|
||||
</p>
|
||||
<h3>
|
||||
usabilityMode
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L109">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
This method has no parameters.
|
||||
</p>
|
||||
<h3>
|
||||
copyBaseProfiletoProfile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L120">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Copy the inert base profile directory to the runtime profile directory
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: boolean
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
This method has no parameters.
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
<a href="#class-i2pchromiumprofilebuilder-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Class I2PChromiumProfileBuilder
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br>
|
||||
Description:
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>
|
||||
I2PChromiumProfileBuilder.java Copyright C 2022 idk
|
||||
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
|
||||
hankhill19580@gmail.com
|
||||
</a>
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileBuilder is a that builds a profile directory which contains the I2P browser profile for the Chromium browser family. It manages the base profile directory and copies it's contents to the active profile directory which is actually used by Chromium.
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Author: idk
|
||||
<br>
|
||||
Parent class: I2PCommonBrowser
|
||||
<br>
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
<a href="#dependencies" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br>
|
||||
<summary>
|
||||
</p>
|
||||
<pre><code>Show dependencies
|
||||
</code></pre>
|
||||
<p>
|
||||
<br>
|
||||
<ul>
|
||||
<br>
|
||||
<li>
|
||||
java.io.File
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<h2>
|
||||
<a href="#member-variables" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Member Variables
|
||||
</h2>
|
||||
<h4>
|
||||
<a href="#boolean-usability-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
boolean usability
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h4>
|
||||
<blockquote></blockquote>
|
||||
<ul>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#methods" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Methods
|
||||
</h2>
|
||||
<h3>
|
||||
<a href="#profiledirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
profileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L31" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the profile directory creating it if necessary
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
This method has no parameters.
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#baseprofiledir-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
baseProfileDir
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L35" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| file | String | |
|
||||
<br>
|
||||
| mode | String | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#baseprofiledirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
baseProfileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L59" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| mode | String | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#runtimedirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
runtimeDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L83" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the runtime directory creating it if create=true
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: the runtime directory or null if it could not be created
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| create | boolean | if true create the runtime directory if it does not exist |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#runtimedirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
runtimeDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L94" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the correct runtime directory
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: the runtime directory or null if it could not be created or found
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
This method has no parameters.
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#usabilitymode-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
usabilityMode
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L109" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
This method has no parameters.
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#copybaseprofiletoprofile-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
copyBaseProfiletoProfile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L120" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Copy the inert base profile directory to the runtime profile directory
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: boolean
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
This method has no parameters.
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1286,18 +1259,20 @@ consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,343 +1,330 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PChromiumProfileChecker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br />
|
||||
Description:
|
||||
<br />
|
||||
> 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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| extensionDirectory | String | the extension directory to check |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
<a href="#class-i2pchromiumprofilechecker-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Class I2PChromiumProfileChecker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br>
|
||||
Description:
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>
|
||||
I2PChromiumProfileChecker.java Copyright C 2022 idk
|
||||
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
|
||||
hankhill19580@gmail.com
|
||||
</a>
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileChecker is a that checks if the Chromium profile directory exists and is valid.
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Author: idk
|
||||
<br>
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
<a href="#dependencies" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br>
|
||||
<summary>
|
||||
</p>
|
||||
<pre><code>Show dependencies
|
||||
</code></pre>
|
||||
<p>
|
||||
<br>
|
||||
<ul>
|
||||
<br>
|
||||
<li>
|
||||
java.io.File
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<h2>
|
||||
<a href="#no-member-variables-in-this-class" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
No member variables in this class
|
||||
</h2>
|
||||
<h2>
|
||||
<a href="#methods" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Methods
|
||||
</h2>
|
||||
<h3>
|
||||
<a href="#main-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
main
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L29" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Output feedback if the profile directory is valid or invalid @description Output feedback if the profile directory is valid or invalid @args unused
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: void
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#validateprofiledirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
validateProfileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L50" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the profile directory is valid.
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: true if the profile directory is valid false otherwise
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| profileDirectory | String | the profile directory to check |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#validatefile-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
validateFile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L81" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the file is valid.
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: true if the file is valid false otherwise
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| file | String | the file to check |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#validateextensiondirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
validateExtensionDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L108" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the extension directory is valid.
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: true if the extension directory is valid false otherwise
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| extensionDirectory | String | the extension directory to check |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1180,18 +1167,20 @@ consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -7,6 +7,7 @@ Description:
|
||||
> I2PChromiumProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileChecker is a that checks if the Chromium profile directory exists and is valid.
|
||||
|
||||
Author: idk
|
||||
Parent class: I2PCommonBrowser
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
|
@ -1,275 +1,266 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PChromiumProfileUnpacker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br />
|
||||
Description:
|
||||
<br />
|
||||
> 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’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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| profileDirectory | String | |
|
||||
<br />
|
||||
| mode | String | |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
<a href="#class-i2pchromiumprofileunpacker-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Class I2PChromiumProfileUnpacker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br>
|
||||
Description:
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>
|
||||
I2PChromiumProfileUnpacker.java Copyright C 2022 idk
|
||||
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
|
||||
hankhill19580@gmail.com
|
||||
</a>
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileUnpacker is a that unpacks the Chromium profile zip file into the Chromium base profile directory. This is not used by the Chromium browser instance it's unpacked to the disk to be copied to the active profile directory.
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Author: idk
|
||||
<br>
|
||||
Parent class: I2PCommonBrowser
|
||||
<br>
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
<a href="#dependencies" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br>
|
||||
<summary>
|
||||
</p>
|
||||
<pre><code>Show dependencies
|
||||
</code></pre>
|
||||
<p>
|
||||
<br>
|
||||
<ul>
|
||||
<br>
|
||||
</ul>
|
||||
<br>
|
||||
<h2>
|
||||
<a href="#no-member-variables-in-this-class" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
No member variables in this class
|
||||
</h2>
|
||||
<h2>
|
||||
<a href="#methods" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Methods
|
||||
</h2>
|
||||
<h3>
|
||||
<a href="#main-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
main
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L23" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: void
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#unpackprofile-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
unpackProfile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L37" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: unpack the profile directory
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
return: true if the profile directory was successfully unpacked
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| profileDirectory | String | |
|
||||
<br>
|
||||
| mode | String | |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1112,18 +1103,20 @@ consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
@ -22,18 +22,43 @@ package: net.i2p.i2pfirefox
|
||||
<li>java.io.IOException</li>
|
||||
<li>java.io.InputStream</li>
|
||||
<li>java.io.OutputStream</li>
|
||||
<li>java.net.Socket</li>
|
||||
<li>java.nio.file.Files</li>
|
||||
<li>java.nio.file.StandardCopyOption</li>
|
||||
<li>java.util.logging.FileHandler</li>
|
||||
<li>java.util.logging.Logger</li>
|
||||
<li>java.util.logging.SimpleFormatter</li>
|
||||
<li>java.util.zip.ZipEntry</li>
|
||||
<li>java.util.zip.ZipInputStream</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
## No member variables in this class
|
||||
## Member Variables
|
||||
|
||||
#### Logger logger [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L)
|
||||
|
||||
>
|
||||
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
|
||||
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L36)
|
||||
|
||||
> static FileHandler fh;
|
||||
|
||||
+ Access: private
|
||||
+ Modifiers: final
|
||||
|
||||
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L37)
|
||||
|
||||
> // private final int DEFAULT_TIMEOUT = 200;
|
||||
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
|
||||
## Methods
|
||||
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L38)
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L131)
|
||||
|
||||
+ Description: get the runtime directory creating it if create=true
|
||||
+ Access: protected
|
||||
@ -46,7 +71,7 @@ package: net.i2p.i2pfirefox
|
||||
| override | String | |
|
||||
|
||||
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L55)
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L148)
|
||||
|
||||
+ Description: get the correct runtime directory
|
||||
+ Access: protected
|
||||
@ -58,7 +83,7 @@ package: net.i2p.i2pfirefox
|
||||
| override | String | |
|
||||
|
||||
|
||||
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L102)
|
||||
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L195)
|
||||
|
||||
+ Description: get the profile directory creating it if necessary
|
||||
+ Access: protected
|
||||
@ -71,7 +96,7 @@ package: net.i2p.i2pfirefox
|
||||
| browser | String | |
|
||||
|
||||
|
||||
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L114)
|
||||
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L207)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
@ -84,7 +109,7 @@ package: net.i2p.i2pfirefox
|
||||
| browser | String | |
|
||||
|
||||
|
||||
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L120)
|
||||
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L213)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
@ -97,7 +122,7 @@ package: net.i2p.i2pfirefox
|
||||
| base | String | |
|
||||
|
||||
|
||||
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L167)
|
||||
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L259)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
@ -112,7 +137,7 @@ package: net.i2p.i2pfirefox
|
||||
| base | String | |
|
||||
|
||||
|
||||
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L183)
|
||||
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L275)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -127,7 +152,7 @@ package: net.i2p.i2pfirefox
|
||||
| base | String | |
|
||||
|
||||
|
||||
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192)
|
||||
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L284)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -140,7 +165,7 @@ package: net.i2p.i2pfirefox
|
||||
| destinationFile | File | |
|
||||
|
||||
|
||||
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L203)
|
||||
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L295)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -152,3 +177,71 @@ package: net.i2p.i2pfirefox
|
||||
| profileDirectory | String | |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L321)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L331)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L343)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
| port | int | the port to wait for the proxy to be ready on. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L358)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds. If the timeout is zero or less the check is disabled and always returns true.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
| port | int | the port to wait for the proxy to be ready on. |
|
||||
| host | String | the host to wait for the proxy to be ready on. |
|
||||
|
||||
|
||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L376)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| port | int | |
|
||||
| host | String | |
|
||||
|
||||
|
||||
### setProxyTimeoutTime [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L391)
|
||||
|
||||
+ Description: Alters the proxy timeout to customized value time in seconds. May be zero.
|
||||
+ Access: public
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| time | int | |
|
||||
|
||||
|
||||
|
2076
I2PFirefox.html
2076
I2PFirefox.html
File diff suppressed because it is too large
Load Diff
125
I2PFirefox.md
125
I2PFirefox.md
@ -19,8 +19,8 @@ package: net.i2p.i2pfirefox
|
||||
<ul>
|
||||
<li>java.io.File</li>
|
||||
<li>java.io.IOException</li>
|
||||
<li>java.net.Socket</li>
|
||||
<li>java.util.ArrayList</li>
|
||||
<li>java.util.concurrent.TimeUnit</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
@ -33,13 +33,6 @@ package: net.i2p.i2pfirefox
|
||||
+ Access: private
|
||||
+ Modifiers: final
|
||||
|
||||
#### int DEFAULT_TIMEOUT [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L)
|
||||
|
||||
>
|
||||
|
||||
+ Access: private
|
||||
+ Modifiers: final
|
||||
|
||||
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L)
|
||||
|
||||
>
|
||||
@ -55,7 +48,7 @@ package: net.i2p.i2pfirefox
|
||||
|
||||
## Methods
|
||||
|
||||
### FIND_FIREFOX_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L45)
|
||||
### FIND_FIREFOX_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L44)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -65,7 +58,7 @@ package: net.i2p.i2pfirefox
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIND_FIREFOX_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L60)
|
||||
### FIND_FIREFOX_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L59)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -75,7 +68,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIND_FIREFOX_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L77)
|
||||
### FIND_FIREFOX_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L76)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -85,7 +78,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIND_ALL_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L113)
|
||||
### FIND_ALL_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L112)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -95,7 +88,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIND_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L133)
|
||||
### FIND_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L132)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -105,7 +98,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### NEARBY_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L147)
|
||||
### NEARBY_FIREFOX_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L146)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -115,7 +108,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L201)
|
||||
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L202)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -125,7 +118,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L213)
|
||||
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L214)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -135,7 +128,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L235)
|
||||
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L236)
|
||||
|
||||
+ Description: Check our list of firefox paths for a valid firefox binary. Just an existence check for now but should check versions in the future.
|
||||
+ Access: public
|
||||
@ -144,7 +137,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L255)
|
||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L256)
|
||||
|
||||
+ Description: Return the best available Firefox from the list of Firefoxes we have.
|
||||
+ Access: public
|
||||
@ -153,7 +146,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L284)
|
||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L285)
|
||||
|
||||
+ Description: Return the best available Firefox from the list of Firefoxes we have. if override is passed it will be validated and if it validates it will be used.
|
||||
+ Access: public
|
||||
@ -164,7 +157,7 @@ This method has no parameters.
|
||||
| overrideFirefox | String | |
|
||||
|
||||
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L302)
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L303)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
||||
+ Access: public
|
||||
@ -173,7 +166,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L314)
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L315)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
||||
+ Access: public
|
||||
@ -184,7 +177,7 @@ This method has no parameters.
|
||||
| args | String[] | the args to pass to the Firefox binary |
|
||||
|
||||
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L328)
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L329)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||
+ Access: public
|
||||
@ -193,7 +186,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L341)
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L342)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||
+ Access: public
|
||||
@ -204,7 +197,18 @@ This method has no parameters.
|
||||
| args | String[] | the arguments to pass to the Firefox binary |
|
||||
|
||||
|
||||
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L364)
|
||||
### headlessProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L364)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --headless flag to open without a window.
|
||||
+ Access: public
|
||||
+ return: ProcessBuilder
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| args | String[] | the arguments to pass to the Firefox binary |
|
||||
|
||||
|
||||
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L387)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile with a specific set of extended arguments.
|
||||
+ Access: public
|
||||
@ -215,64 +219,7 @@ This method has no parameters.
|
||||
| args | String[] | the extended arguments to pass to the Firefox binary. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L397)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L407)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L419)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
| port | int | the port to wait for the proxy to be ready on. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L432)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
|
||||
+ Access: public
|
||||
+ return: true if the proxy is ready false if it is not.
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
| port | int | the port to wait for the proxy to be ready on. |
|
||||
| host | String | the host to wait for the proxy to be ready on. |
|
||||
|
||||
|
||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L446)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| port | int | |
|
||||
| host | String | |
|
||||
|
||||
|
||||
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L456)
|
||||
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L413)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -281,7 +228,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L463)
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L420)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -293,7 +240,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L511)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L494)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
|
||||
+ Access: public
|
||||
@ -305,7 +252,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L535)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L518)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory.
|
||||
+ Access: public
|
||||
@ -316,7 +263,7 @@ This method has no parameters.
|
||||
| privateWindow | boolean | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L545)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L528)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Firefox with the profile directory. Uses a semi-permanent profile.
|
||||
+ Access: public
|
||||
@ -325,7 +272,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L547)
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L530)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -337,7 +284,7 @@ This method has no parameters.
|
||||
| inUrl | String | |
|
||||
|
||||
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L558)
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L541)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -349,7 +296,7 @@ This method has no parameters.
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L586)
|
||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L574)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
|
@ -1,463 +1,436 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PFirefoxProfileBuilder
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br />
|
||||
Description:
|
||||
<br />
|
||||
> 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’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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| base | String | |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
<a href="#class-i2pfirefoxprofilebuilder-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Class I2PFirefoxProfileBuilder
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br>
|
||||
Description:
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>
|
||||
I2PFirefoxProfileBuilder.java Copyright C 2022 idk
|
||||
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
|
||||
hankhill19580@gmail.com
|
||||
</a>
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileBuilder is a that builds a profile directory which contains the I2P browser profile for the Firefox browser family. It manages the base profile directory and copies it's contents to the active profile directory which is actually used by Firefox.
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Author: idk
|
||||
<br>
|
||||
Parent class: I2PCommonBrowser
|
||||
<br>
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
<a href="#dependencies" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br>
|
||||
<summary>
|
||||
</p>
|
||||
<pre><code>Show dependencies
|
||||
</code></pre>
|
||||
<p>
|
||||
<br>
|
||||
<ul>
|
||||
<br>
|
||||
<li>
|
||||
java.io.File
|
||||
</li>
|
||||
<li>
|
||||
java.nio.file.Files
|
||||
</li>
|
||||
<li>
|
||||
java.nio.file.StandardCopyOption
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<h2>
|
||||
<a href="#member-variables" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Member Variables
|
||||
</h2>
|
||||
<h4>
|
||||
<a href="#boolean-strict-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
boolean strict
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h4>
|
||||
<blockquote></blockquote>
|
||||
<ul>
|
||||
<li>
|
||||
Access: private
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
<a href="#methods" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Methods
|
||||
</h2>
|
||||
<h3>
|
||||
<a href="#profiledirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
profileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L33" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the profile directory creating it if necessary
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
This method has no parameters.
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#baseprofiledir-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
baseProfileDir
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L37" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| file | String | |
|
||||
<br>
|
||||
| base | String | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#baseprofiledirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
baseProfileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L57" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the base profile directory creating it if necessary
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| base | String | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#runtimedirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
runtimeDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L81" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the runtime directory creating it if create=true
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: the runtime directory or null if it could not be created
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| create | boolean | if true create the runtime directory if it does not exist |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#runtimedirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
runtimeDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L92" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the correct runtime directory
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: the runtime directory or null if it could not be created or found
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
This method has no parameters.
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#copybaseprofiletoprofile-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
copyBaseProfiletoProfile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L112" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Copy the inert base profile directory to the runtime profile directory
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: boolean
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| base | String | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#copystrictoptions-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
copyStrictOptions
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L151" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Copy the strict options from the base profile to the profile
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: true if successful false otherwise
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| base | String | |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1300,18 +1273,20 @@ consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,421 +1,472 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PFirefoxProfileChecker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br />
|
||||
Description:
|
||||
<br />
|
||||
> 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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| extensionDirectory | String | the extension directory to check |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
<a href="#class-i2pfirefoxprofilechecker-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Class I2PFirefoxProfileChecker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br>
|
||||
Description:
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>
|
||||
I2PFirefoxProfileChecker.java Copyright C 2022 idk
|
||||
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
|
||||
hankhill19580@gmail.com
|
||||
</a>
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileChecker is a that checks if the Firefox profile directory exists and is valid.
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Author: idk
|
||||
<br>
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
<a href="#dependencies" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br>
|
||||
<summary>
|
||||
</p>
|
||||
<pre><code>Show dependencies
|
||||
</code></pre>
|
||||
<p>
|
||||
<br>
|
||||
<ul>
|
||||
<br>
|
||||
<li>
|
||||
java.io.BufferedReader
|
||||
</li>
|
||||
<li>
|
||||
java.io.File
|
||||
</li>
|
||||
<li>
|
||||
java.io.FileReader
|
||||
</li>
|
||||
<li>
|
||||
java.io.FileWriter
|
||||
</li>
|
||||
<li>
|
||||
java.io.IOException
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<h2>
|
||||
<a href="#no-member-variables-in-this-class" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
No member variables in this class
|
||||
</h2>
|
||||
<h2>
|
||||
<a href="#methods" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Methods
|
||||
</h2>
|
||||
<h3>
|
||||
<a href="#main-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
main
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: void
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#validateprofiledirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
validateProfileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L51" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the profile directory is valid.
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: true if the profile directory is valid false otherwise
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| profileDirectory | String | the profile directory to check |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#derestricthttps-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
deRestrictHTTPS
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: boolean
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| profile | String | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#undohttpsonlymode-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
undoHttpsOnlyMode
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: boolean
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| fileToBeModified | File | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#validatefile-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
validateFile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the file is valid.
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: true if the file is valid false otherwise
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| file | String | the file to check |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#validateextensiondirectory-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
validateExtensionDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the extension directory is valid.
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: true if the extension directory is valid false otherwise
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| extensionDirectory | String | the extension directory to check |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1258,18 +1309,20 @@ consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -7,6 +7,7 @@ Description:
|
||||
> I2PFirefoxProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileChecker is a that checks if the Firefox profile directory exists and is valid.
|
||||
|
||||
Author: idk
|
||||
Parent class: I2PCommonBrowser
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
@ -18,9 +19,11 @@ package: net.i2p.i2pfirefox
|
||||
<ul>
|
||||
<li>java.io.BufferedReader</li>
|
||||
<li>java.io.File</li>
|
||||
<li>java.io.FileNotFoundException</li>
|
||||
<li>java.io.FileReader</li>
|
||||
<li>java.io.FileWriter</li>
|
||||
<li>java.io.IOException</li>
|
||||
<li>java.util.Scanner</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
@ -28,7 +31,7 @@ package: net.i2p.i2pfirefox
|
||||
|
||||
## Methods
|
||||
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30)
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L32)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -40,7 +43,7 @@ package: net.i2p.i2pfirefox
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L51)
|
||||
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53)
|
||||
|
||||
+ Description: Return true if the profile directory is valid.
|
||||
+ Access: public
|
||||
@ -52,7 +55,7 @@ package: net.i2p.i2pfirefox
|
||||
| profileDirectory | String | the profile directory to check |
|
||||
|
||||
|
||||
### deRestrictHTTPS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84)
|
||||
### deRestrictHTTPSAndSetupHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L86)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -64,7 +67,7 @@ package: net.i2p.i2pfirefox
|
||||
| profile | String | |
|
||||
|
||||
|
||||
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104)
|
||||
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L109)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -76,7 +79,33 @@ package: net.i2p.i2pfirefox
|
||||
| fileToBeModified | File | |
|
||||
|
||||
|
||||
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140)
|
||||
### undoHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L115)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| fileToBeModified | File | |
|
||||
|
||||
|
||||
### undoValue [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L138)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| oldString | String | |
|
||||
| newString | String | |
|
||||
| fileToBeModified | File | |
|
||||
|
||||
|
||||
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L172)
|
||||
|
||||
+ Description: Return true if the file is valid.
|
||||
+ Access: public
|
||||
@ -88,7 +117,7 @@ package: net.i2p.i2pfirefox
|
||||
| file | String | the file to check |
|
||||
|
||||
|
||||
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167)
|
||||
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L199)
|
||||
|
||||
+ Description: Return true if the extension directory is valid.
|
||||
+ Access: public
|
||||
|
@ -1,279 +1,270 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<head>
|
||||
<title>
|
||||
i2p.plugins.fire...
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="i2p.plugins.firefox" />
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PFirefoxProfileUnpacker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br />
|
||||
Description:
|
||||
<br />
|
||||
> 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 />
|
||||
| —– | —– | —– |
|
||||
<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 />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| profileDirectory | String | |
|
||||
<br />
|
||||
| base | String | |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="CHANGES.html">
|
||||
CHANGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="EXAMPLES.html">
|
||||
EXAMPLES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromium.html">
|
||||
I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileBuilder.html">
|
||||
I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileChecker.html">
|
||||
I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PChromiumProfileUnpacker.html">
|
||||
I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PCommonBrowser.html">
|
||||
I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefox.html">
|
||||
I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileBuilder.html">
|
||||
I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileChecker.html">
|
||||
I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PFirefoxProfileUnpacker.html">
|
||||
I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PGenericUnsafeBrowser.html">
|
||||
I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="USAGE.html">
|
||||
USAGE
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
<a href="#class-i2pfirefoxprofileunpacker-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Class I2PFirefoxProfileUnpacker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br>
|
||||
Description:
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>
|
||||
I2PFirefoxProfileUnpacker.java Copyright C 2022 idk
|
||||
<a href="mailto:hankhill19580@gmail.com" rel="nofollow">
|
||||
hankhill19580@gmail.com
|
||||
</a>
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileUnpacker is a that unpacks the I2P Firefox profile from a zip file embedded in the
|
||||
<code>
|
||||
jar
|
||||
</code>
|
||||
file. The zip is unpacked to a base directory where it is left untouched and the base profile is copied to the active profile directory.
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Author: idk
|
||||
<br>
|
||||
Parent class: I2PCommonBrowser
|
||||
<br>
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
<a href="#dependencies" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br>
|
||||
<summary>
|
||||
</p>
|
||||
<pre><code>Show dependencies
|
||||
</code></pre>
|
||||
<p>
|
||||
<br>
|
||||
<ul>
|
||||
<br>
|
||||
</ul>
|
||||
<br>
|
||||
<h2>
|
||||
<a href="#no-member-variables-in-this-class" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
No member variables in this class
|
||||
</h2>
|
||||
<h2>
|
||||
<a href="#methods" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Methods
|
||||
</h2>
|
||||
<h3>
|
||||
<a href="#main-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
main
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L23" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: void
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#unpackprofile-src" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
unpackProfile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L37" rel="nofollow">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: unpack the profile directory
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br>
|
||||
</li>
|
||||
<li>
|
||||
return: true if the profile directory was successfully unpacked
|
||||
<br>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br>
|
||||
| ----- | ----- | ----- |
|
||||
<br>
|
||||
| profileDirectory | String | |
|
||||
<br>
|
||||
| base | String | |
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1116,18 +1107,20 @@ consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
</code></pre>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
@ -192,7 +192,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L349)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L350)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -204,7 +204,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L367)
|
||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L368)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -216,7 +216,7 @@ This method has no parameters.
|
||||
| millis | int | |
|
||||
|
||||
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L375)
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L376)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -228,7 +228,7 @@ This method has no parameters.
|
||||
| inUrl | String | |
|
||||
|
||||
|
||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L385)
|
||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L386)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
|
1616
LICENSE.html
1616
LICENSE.html
File diff suppressed because it is too large
Load Diff
1209
PACKAGES.html
Normal file
1209
PACKAGES.html
Normal file
File diff suppressed because it is too large
Load Diff
92
PACKAGES.md
Normal file
92
PACKAGES.md
Normal file
@ -0,0 +1,92 @@
|
||||
Packages for various operating systems
|
||||
======================================
|
||||
|
||||
Making a new release:
|
||||
---------------------
|
||||
|
||||
Releases can be created in a mostly automatic way. With a working Java toolchain
|
||||
including jpackage installed:
|
||||
|
||||
0. Set a `GITHUB_TOKEN` in the environment containing an API key.
|
||||
1. Update `CHANGES.md`
|
||||
2. Update the version number(`GITHUB_TAG`) and version title(`GITHUB_NAME`) in `config.sh`
|
||||
3. On a Linux machine, run `./release.sh`
|
||||
4. On a Windows machine, run `./windows-release.sh`
|
||||
5. On whatever machine you check in code with, run ./packages.sh
|
||||
|
||||
Windows
|
||||
-------
|
||||
|
||||
All Windows packages require building on a Windows machine. In order to build
|
||||
them, check out i2p.firefox in an adjacent directory and `source` i2p.firefox/config.sh
|
||||
to set the path to the Java toolchain you want to use.
|
||||
|
||||
run: `ant jar` before any of these scripts.
|
||||
|
||||
run: `windows-release.sh` only *after* release.sh on a Linux machine.
|
||||
|
||||
### MSI
|
||||
|
||||
Requires the Wixl toolset.
|
||||
|
||||
#### Status: Works. Maintained.
|
||||
|
||||
run: `./windows.sh`
|
||||
|
||||
#### EXE
|
||||
|
||||
No special requirements.
|
||||
|
||||
#### Status: Works. Maintained.
|
||||
|
||||
run: `./windows-exe.sh`
|
||||
|
||||
### Portable(.zip)
|
||||
|
||||
No special requirements.
|
||||
|
||||
#### Status: Unknown. Maintained.
|
||||
|
||||
run: `./windows-portable.sh`
|
||||
|
||||
Linux
|
||||
-----
|
||||
|
||||
All Linux packages require building on a Linux machines. Debian packages must
|
||||
be built on Debian, Fedora packages must be built on Fedora. Some leeway for
|
||||
derivative distros. Portable can be b build anywhere with a jpackage. Have
|
||||
Java tools in your `PATH`.
|
||||
|
||||
### Debian
|
||||
|
||||
Make sure you have a recent Java and jpackage.
|
||||
|
||||
#### Status: Works. Maintained.
|
||||
|
||||
run: `ant debian`
|
||||
|
||||
### Fedora
|
||||
|
||||
I'm a Debian user and don't have a Fedora machine set up right now. Therefore,
|
||||
I build Fedora packages in a container.
|
||||
|
||||
Fedora doesn't have a jpackage in their repositories as far as I can tell so I use
|
||||
Adoptium's third-party repository to supply the JDK I use to build the fedora
|
||||
package.
|
||||
|
||||
#### Status: Unknown. Maintained.
|
||||
|
||||
run: `ant fedora`
|
||||
|
||||
### Portable(.zip)
|
||||
|
||||
Details are platform dependent. Same build-deps as everything else.
|
||||
|
||||
#### Status: Works. Maintained.
|
||||
|
||||
run: `ant jpackage`
|
||||
|
||||
OSX
|
||||
---
|
||||
|
||||
### TODO
|
13
README.md
13
README.md
@ -2,6 +2,19 @@
|
||||
|
||||
A port of the batch scripts from i2p.firefox to Java.
|
||||
|
||||
**Status:** This package is maintained. It cannot solve all your problems. Fingerprinting
|
||||
is a reality in modern browsers. Exploits are too. This software attempts to provide a
|
||||
best-possible baseline of privacy first, security a close second for browsing the web that
|
||||
exists within I2P. Do not expect it to withstand attacks from very powerful adversaries
|
||||
who can spend time and money to screw up your life. Do expect it to resist advertisers,
|
||||
trackers, and jerks using off-the-shelf techniques and exploits. It is fundamentally unable
|
||||
to make changes which un-trust your browser vendor, your OS, your package manager or any
|
||||
other system that exists underneath it. **It is just a profile manager.**
|
||||
|
||||
**All packages require a running I2P router.**
|
||||
|
||||
**[Windows users should see the Easy-Install Bundle](https://i2pgit.org/i2p-hackers/i2p.firefox)**
|
||||
|
||||
## Getting started
|
||||
|
||||
### Using a Binary
|
||||
|
1055
RELEASES.html
Normal file
1055
RELEASES.html
Normal file
File diff suppressed because it is too large
Load Diff
12
RELEASES.md
Normal file
12
RELEASES.md
Normal 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)
|
||||
|
13
TODO.html
13
TODO.html
@ -97,6 +97,16 @@
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
@ -119,9 +129,6 @@
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
<a href="#to-do-list" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
To-Do List:
|
||||
</h1>
|
||||
<ol>
|
||||
|
51
USAGE.html
51
USAGE.html
@ -97,6 +97,16 @@
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
@ -119,9 +129,6 @@
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
<a href="#example-commands" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Example Commands:
|
||||
</h1>
|
||||
<p>
|
||||
@ -131,7 +138,7 @@
|
||||
The top command is for Unixes and should work on most POSIX shells. After it runs, the script will terminate preventing Windows commands from running.
|
||||
</p>
|
||||
<p>
|
||||
The second and third command is for Windows and won'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’t be reachable on Linux(because the top command will be run and the script will exit).
|
||||
</p>
|
||||
<p>
|
||||
Both determine the path to the script, use it to find the jar file, and execute a single command.
|
||||
@ -139,57 +146,45 @@
|
||||
<p>
|
||||
Auto-Select in Persistent Mode
|
||||
</p>
|
||||
<div>
|
||||
<pre>:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $?
|
||||
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $?
|
||||
@ECHO OFF
|
||||
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<p>
|
||||
Auto-Select in Private Browsing Mode
|
||||
</p>
|
||||
<div>
|
||||
<pre>:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private; exit $?
|
||||
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private; exit $?
|
||||
@ECHO OFF
|
||||
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<p>
|
||||
Firefox in Persistent Mode
|
||||
</p>
|
||||
<div>
|
||||
<pre>:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
|
||||
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
|
||||
@ECHO OFF
|
||||
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<p>
|
||||
Firefox in Private Browsing Mode
|
||||
</p>
|
||||
<div>
|
||||
<pre>:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private; exit $?
|
||||
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private; exit $?
|
||||
@ECHO OFF
|
||||
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<p>
|
||||
Chromium in Persistent Mode
|
||||
</p>
|
||||
<div>
|
||||
<pre>:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium; exit $?
|
||||
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium; exit $?
|
||||
@ECHO OFF
|
||||
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<p>
|
||||
Chromium in Private Browsing Mode
|
||||
</p>
|
||||
<div>
|
||||
<pre>:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
|
||||
<pre><code class="language-sh">:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
|
||||
@ECHO OFF
|
||||
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
|
22
build.xml
22
build.xml
@ -168,7 +168,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="distclean,i2pFirefoxBaseProfileZip,i2pFirefoxUsabilityProfileZip,i2pChromiumBaseProfileZip">
|
||||
<target name="jar" depends="i2pFirefoxBaseProfileZip,i2pFirefoxUsabilityProfileZip,i2pChromiumBaseProfileZip">
|
||||
<ant dir="src" target="jar" />
|
||||
</target>
|
||||
|
||||
@ -317,7 +317,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<delete dir="plugin/eepsite/docroot/torrents/" />
|
||||
<!-- get version number -->
|
||||
<buildnumber file="scripts/build.number" />
|
||||
<property name="release.number" value="0.0.24" />
|
||||
<property name="release.number" value="0.0.36" />
|
||||
|
||||
<!-- make the update xpi2p -->
|
||||
<!-- this contains everything except i2ptunnel.config -->
|
||||
@ -392,6 +392,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<delete dir="i2p.firefox.profile" />
|
||||
<delete dir="src/i2p.firefox.profile.zip" />
|
||||
<delete dir="i2p.chromium.base.profile" />
|
||||
<delete dir="i2p.chromium.usability.profile" />
|
||||
<delete dir="i2p.chromium.profile" />
|
||||
<delete dir="src/i2p.chromium.profile.zip" />
|
||||
<delete file="plugin/i2ptunnel.config" />
|
||||
@ -413,6 +414,9 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<delete file="i2pfirefox-update.su3" />
|
||||
<delete file="plugin.zip" />
|
||||
<delete dir="plugin/eepsite/docroot/torrents/" />
|
||||
<exec executable="git">
|
||||
<arg value="clean"/> <arg value="-fdx"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="jpackage" depends="jar">
|
||||
<delete dir="i2pbrowser" />
|
||||
@ -434,4 +438,18 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<arg value="i2pbrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="debian" depends="jar">
|
||||
<exec executable="bash" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="-c"/>
|
||||
<arg value="./debian.sh"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="fedora" depends="jar">
|
||||
<exec executable="bash" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="-c"/>
|
||||
<arg value="./fedora.sh"/>
|
||||
</exec>
|
||||
</target>
|
||||
</project>
|
||||
|
6
config.sh
Executable file
6
config.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#! /usr/bin/env sh
|
||||
export GITHUB_USER=eyedeekay
|
||||
export GITHUB_REPO=i2p.plugins.firefox
|
||||
export GITHUB_NAME="Make releasing a little less bad"
|
||||
export GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
||||
export GITHUB_TAG=0.0.36
|
16
debian.sh
Executable file
16
debian.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
. ./config.sh
|
||||
jpackage --verbose \
|
||||
--type deb \
|
||||
--linux-deb-maintainer hankhill19580@gmail.com \
|
||||
--linux-menu-group "Network;WebBrowser;P2P" \
|
||||
--linux-app-category "Network" \
|
||||
--linux-package-deps "firefox|chromium|brave|firefox-esr|librewolf|icecat" \
|
||||
--linux-shortcut \
|
||||
--license-file LICENSE.md \
|
||||
--name i2pbrowser \
|
||||
--app-version "$GITHUB_TAG" \
|
||||
--input src/build \
|
||||
--main-jar i2pfirefox.jar \
|
||||
--main-class net.i2p.i2pfirefox.I2PBrowser
|
28
fedora-docker.sh
Executable file
28
fedora-docker.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
. ./config.sh
|
||||
|
||||
cat <<EOF > /etc/yum.repos.d/adoptium.repo
|
||||
[Adoptium]
|
||||
name=Adoptium
|
||||
baseurl=https://packages.adoptium.net/artifactory/rpm/${DISTRIBUTION_NAME:-$(. /etc/os-release; echo $ID)}/\$releasever/\$basearch
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
|
||||
EOF
|
||||
yum -y update
|
||||
yum -y install temurin-18-jdk
|
||||
|
||||
jpackage --verbose \
|
||||
--type rpm \
|
||||
--linux-menu-group "Network;WebBrowser;P2P" \
|
||||
--linux-app-category "Network" \
|
||||
--linux-package-deps "firefox|chromium|brave|firefox-esr|librewolf|icecat" \
|
||||
--linux-shortcut \
|
||||
--license-file LICENSE.md \
|
||||
--name i2pbrowser \
|
||||
--app-version "$GITHUB_TAG" \
|
||||
--input src/build \
|
||||
--main-jar i2pfirefox.jar \
|
||||
--main-class net.i2p.i2pfirefox.I2PBrowser
|
||||
ls *.rpm
|
7
fedora.sh
Executable file
7
fedora.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
. ./config.sh
|
||||
docker build -t eyedeekay/i2p.plugins.firefox .
|
||||
docker rm -f i2pbrowser-fedora
|
||||
docker run --name i2pbrowser-fedora eyedeekay/i2p.plugins.firefox
|
||||
docker cp i2pbrowser-fedora:/src/i2p.plugins.firefox/i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm .
|
157
index.html
157
index.html
@ -97,6 +97,16 @@
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PACKAGES.html">
|
||||
PACKAGES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RELEASES.html">
|
||||
RELEASES
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="TODO.html">
|
||||
TODO
|
||||
@ -119,28 +129,46 @@
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
<a href="#i2p-plugins-firefox" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
i2p.plugins.firefox
|
||||
</h1>
|
||||
<p>
|
||||
A port of the batch scripts from i2p.firefox to Java.
|
||||
</p>
|
||||
<p>
|
||||
<strong>
|
||||
Status:
|
||||
</strong>
|
||||
This package is maintained. It cannot solve all your problems. Fingerprinting
|
||||
is a reality in modern browsers. Exploits are too. This software attempts to provide a
|
||||
best-possible baseline of privacy first, security a close second for browsing the web that
|
||||
exists within I2P. Do not expect it to withstand attacks from very powerful adversaries
|
||||
who can spend time and money to screw up your life. Do expect it to resist advertisers,
|
||||
trackers, and jerks using off-the-shelf techniques and exploits. It is fundamentally unable
|
||||
to make changes which un-trust your browser vendor, your OS, your package manager or any
|
||||
other system that exists underneath it.
|
||||
<strong>
|
||||
It is just a profile manager.
|
||||
</strong>
|
||||
</p>
|
||||
<p>
|
||||
<strong>
|
||||
All packages require a running I2P router.
|
||||
</strong>
|
||||
</p>
|
||||
<p>
|
||||
<strong>
|
||||
<a href="https://i2pgit.org/i2p-hackers/i2p.firefox">
|
||||
Windows users should see the Easy-Install Bundle
|
||||
</a>
|
||||
</strong>
|
||||
</p>
|
||||
<h2>
|
||||
<a href="#getting-started" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Getting started
|
||||
</h2>
|
||||
<h3>
|
||||
<a href="#using-a-binary" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Using a Binary
|
||||
</h3>
|
||||
<div>
|
||||
<pre>
|
||||
<pre><code class="language-sh">
|
||||
mkdir ~/tmp-i2pfirefox && cd ~/tmp-i2pfirefox
|
||||
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.16/i2pfirefox.zip
|
||||
unzip i2pfirefox.zip
|
||||
@ -149,12 +177,8 @@ unzip i2pfirefox.zip
|
||||
#or if you want to use a Chromium
|
||||
|
||||
./i2pchromium.cmd
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<h3>
|
||||
<a href="#build-dependencies" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Build Dependencies
|
||||
</h3>
|
||||
<p>
|
||||
@ -171,14 +195,12 @@ unzip i2pfirefox.zip
|
||||
<code>
|
||||
crx3
|
||||
</code>
|
||||
which is used to interact with the Chrome app store. I've been using Java 17
|
||||
which is used to interact with the Chrome app store. I’ve been using Java 17
|
||||
on Debian mostly, on Debian and Ubuntu, install the dependencies with:
|
||||
</p>
|
||||
<div>
|
||||
<pre>sudo apt-get install openjdk-17* ant golang-go
|
||||
<pre><code class="language-sh">sudo apt-get install openjdk-17* ant golang-go
|
||||
go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<p>
|
||||
For Fedora, use Yum, for Arch use pacman or something else but make sure to tell everyone
|
||||
about it. Once you have that installed, when building, make sure to add
|
||||
@ -191,17 +213,12 @@ go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||
</code>
|
||||
.
|
||||
</p>
|
||||
<div>
|
||||
<pre>export PATH=$PATH:$HOME/go/bin
|
||||
</pre>
|
||||
</div>
|
||||
<pre><code class="language-sh">export PATH=$PATH:$HOME/go/bin
|
||||
</code></pre>
|
||||
<p>
|
||||
Will almost always work.
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#building" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Building
|
||||
</h3>
|
||||
<p>
|
||||
@ -209,19 +226,15 @@ go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||
To generate that, you can either generate the full plugin, which will not work but
|
||||
produces the jar as a by-product, or you can:
|
||||
</p>
|
||||
<div>
|
||||
<pre>
|
||||
<pre><code class="language-sh">
|
||||
ant jar
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<p>
|
||||
To build just the jar. You'll know it worked if you can:
|
||||
To build just the jar. You’ll know it worked if you can:
|
||||
</p>
|
||||
<div>
|
||||
<pre>
|
||||
<pre><code class="language-sh">
|
||||
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<p>
|
||||
and a new Firefox instance comes up with a fresh profile, ready-to-use for I2P browsing.
|
||||
</p>
|
||||
@ -229,34 +242,29 @@ java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
||||
The cooler thing you can do with it is add it to an I2P distribution and somewhere in it,
|
||||
add a UI element that triggers something along the lines of this:
|
||||
</p>
|
||||
<div>
|
||||
<pre>
|
||||
<pre><code class="language-java">
|
||||
// Firefox Example
|
||||
if (i2pIsRunning()) {
|
||||
logger.warning("I2P is already running");
|
||||
System.out.println("I2PFirefox");
|
||||
logger.warning("I2P is already running");
|
||||
System.out.println("I2PFirefox");
|
||||
I2PFirefox i2pFirefox = new I2PFirefox();
|
||||
i2pFirefox.launch();
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<div>
|
||||
<pre>
|
||||
</code></pre>
|
||||
<pre><code class="language-java">
|
||||
// Chromium Example
|
||||
if (i2pIsRunning()) {
|
||||
logger.warning("I2P is already running");
|
||||
System.out.println("I2PChromium");
|
||||
logger.warning("I2P is already running");
|
||||
System.out.println("I2PChromium");
|
||||
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("I2P is already running");
|
||||
System.out.println("I2PBrowser");
|
||||
logger.warning("I2P is already running");
|
||||
System.out.println("I2PBrowser");
|
||||
I2PBrowser i2pBrowser = new I2PBrowser();
|
||||
/*
|
||||
* toggle chromium to the top of the order by doing:
|
||||
@ -265,15 +273,11 @@ if (i2pIsRunning()) {
|
||||
*/
|
||||
i2pBrowser.launch(privateBrowsing);
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
</code></pre>
|
||||
<p>
|
||||
to add a browser management tool to it.
|
||||
</p>
|
||||
<h3>
|
||||
<a href="#browser-discovery-methods" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Browser Discovery Methods
|
||||
</h3>
|
||||
<p>
|
||||
@ -285,12 +289,12 @@ if (i2pIsRunning()) {
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
"Local" discovery, where a browser is in a subdirectory of the directory where you
|
||||
“Local” discovery, where a browser is in a subdirectory of the directory where you
|
||||
ran the launcher. This will only happen if the user unpacked a portable browser into
|
||||
the same directory where they ran the launcher.
|
||||
</li>
|
||||
<li>
|
||||
"Path-Based" discovery, where it scans common browser installation directories
|
||||
“Path-Based” discovery, where it scans common browser installation directories
|
||||
until it finds one which it can use. On Unix, it simply scans the directories on the
|
||||
<code>
|
||||
PATH
|
||||
@ -299,7 +303,7 @@ if (i2pIsRunning()) {
|
||||
directories are hard-coded and included in the binary. This is what usually happens.
|
||||
</li>
|
||||
<li>
|
||||
"System-Based" discovery, where it defers to the host system to make a choice
|
||||
“System-Based” discovery, where it defers to the host system to make a choice
|
||||
about the browser and counts on browser vendors to honor the system proxy environment
|
||||
variables. This is a catch-all solution which works with most browsers, but does
|
||||
not apply any customizations.
|
||||
@ -322,11 +326,11 @@ if (i2pIsRunning()) {
|
||||
<li>
|
||||
Linux is unaware of a Tor Browser path because Tor Browser is rarely, if ever,
|
||||
installed on-path. What is on path is virtually always a wrapper for Tor Browser
|
||||
which is installed either as the main user or it's own user. Linux will only use
|
||||
Tor Browser if it's discovered in "Local" mode.
|
||||
which is installed either as the main user or it’s own user. Linux will only use
|
||||
Tor Browser if it’s discovered in “Local” mode.
|
||||
</li>
|
||||
<li>
|
||||
The above is also true of OSX for now but doesn't have to remain so.
|
||||
The above is also true of OSX for now but doesn’t have to remain so.
|
||||
</li>
|
||||
<li>
|
||||
I really only test Phase 3 with Dillo and Edgium.
|
||||
@ -336,9 +340,6 @@ if (i2pIsRunning()) {
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
<a href="#usability-vs-strict" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Usability vs Strict
|
||||
</h3>
|
||||
<p>
|
||||
@ -347,14 +348,11 @@ if (i2pIsRunning()) {
|
||||
they are browsing I2P. It assumes that they are part of a highly fragmented
|
||||
browsing environment where they are already unique, and therefore consolidation
|
||||
on configuration is a goal. However, this goal sometimes also conflicts with
|
||||
usability. To allow users a safe set of choices, we offer "Coarse" configuration
|
||||
usability. To allow users a safe set of choices, we offer “Coarse” configuration
|
||||
in 2 modes. We recommend that you do not deviate from these configurations if
|
||||
you have browser application fingerprinting as a concern.
|
||||
</p>
|
||||
<h4>
|
||||
<a href="#usability-mode" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Usability Mode
|
||||
</h4>
|
||||
<p>
|
||||
@ -369,9 +367,6 @@ if (i2pIsRunning()) {
|
||||
Cons: Plugin updates can create temporary uniqueness
|
||||
</p>
|
||||
<h5>
|
||||
<a href="#usability-extension-set" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Usability Extension Set
|
||||
</h5>
|
||||
<ul>
|
||||
@ -408,18 +403,12 @@ if (i2pIsRunning()) {
|
||||
</li>
|
||||
</ul>
|
||||
<h5>
|
||||
<a href="#usability-user-js-characteristics" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Usability user.js characteristics
|
||||
</h5>
|
||||
<p>
|
||||
TODO: Summarize differences
|
||||
</p>
|
||||
<h4>
|
||||
<a href="#strict-mode" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Strict Mode
|
||||
</h4>
|
||||
<p>
|
||||
@ -427,7 +416,7 @@ if (i2pIsRunning()) {
|
||||
</p>
|
||||
<p>
|
||||
Pros: Does not allow Javascript by default
|
||||
Pros: Looks a lot like Tor Browser especially if you're using Tor Browser
|
||||
Pros: Looks a lot like Tor Browser especially if you’re using Tor Browser
|
||||
</p>
|
||||
<p>
|
||||
Cons: More work to use
|
||||
@ -435,9 +424,6 @@ if (i2pIsRunning()) {
|
||||
Cons: More likely to try and reach the clearnet
|
||||
</p>
|
||||
<h5>
|
||||
<a href="#strict-extension-set" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Strict Extension Set
|
||||
</h5>
|
||||
<ul>
|
||||
@ -459,9 +445,6 @@ if (i2pIsRunning()) {
|
||||
</li>
|
||||
</ul>
|
||||
<h5>
|
||||
<a href="#strict-user-js-characteristics" rel="nofollow">
|
||||
<span></span>
|
||||
</a>
|
||||
Strict user.js characteristics
|
||||
</h5>
|
||||
<p>
|
||||
|
11
osx-dmg.sh
Executable file
11
osx-dmg.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#! /usr/bin/env sh
|
||||
. ./config.sh
|
||||
jpackage \
|
||||
--verbose \
|
||||
--type dmg \
|
||||
--license-file LICENSE.md \
|
||||
--name i2pbrowser \
|
||||
--app-version "$GITHUB_TAG" \
|
||||
--input src/build \
|
||||
--main-jar i2pfirefox.jar \
|
||||
--main-class net.i2p.i2pfirefox.I2PBrowser
|
61
packages.sh
Executable file
61
packages.sh
Executable file
@ -0,0 +1,61 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
. ./config.sh
|
||||
github-release download --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--name "i2pfirefox.jar"
|
||||
echo "Downloaded jar"
|
||||
github-release download --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--name "i2pfirefox.zip"
|
||||
echo "Downloaded freestanding zip"
|
||||
github-release download --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--name "i2pbrowser.zip"
|
||||
echo "Downloaded jpackage zip"
|
||||
github-release download --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--name "i2pbrowser_${GITHUB_TAG}_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
|
41
release.sh
41
release.sh
@ -1,16 +1,12 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
GITHUB_USER=eyedeekay
|
||||
GITHUB_REPO=i2p.plugins.firefox
|
||||
GITHUB_NAME="That fixes a brand-new NPE."
|
||||
GITHUB_DESCRIPTION=$(cat CHANGES.md)
|
||||
GITHUB_TAG=0.0.24
|
||||
ant distclean
|
||||
. ./config.sh
|
||||
ant distclean clangFmt
|
||||
./javadoc.sh
|
||||
NUMLINE=`grep release.number build.xml | head -n 1`
|
||||
sed -i "s|$NUMLINE| <property name=\"release.number\" value=\"$GITHUB_TAG\" />|g" build.xml
|
||||
edgar && git push --all
|
||||
ant jar freeZip jpackage
|
||||
ant jar freeZip jpackage debian fedora
|
||||
github-release release --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--name "${GITHUB_NAME}" \
|
||||
@ -22,30 +18,51 @@ github-release edit --user "${GITHUB_USER}" \
|
||||
--name "${GITHUB_NAME}" \
|
||||
--description "${GITHUB_DESCRIPTION}" \
|
||||
--tag "${GITHUB_TAG}"; true
|
||||
echo "Relase $GITHUB_TAG setup"
|
||||
echo "Relase ${GITHUB_TAG} setup"
|
||||
jarsum=$(sha256sum "src/build/i2pfirefox.jar")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as a .jar." \
|
||||
--label "I2P Browser launcher as a .jar. Useful as a library or for advanced users. ${jarsum}" \
|
||||
--name "i2pfirefox.jar" \
|
||||
--file "src/build/i2pfirefox.jar" \
|
||||
--replace
|
||||
echo "Uploaded jar"
|
||||
zipsum=$(sha256sum "i2pfirefox.zip")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as a .jar and a set of semi-univeral launcher scripts." \
|
||||
--label "I2P Browser launcher as a .jar and a set of semi-univeral launcher scripts. ${zipsum}" \
|
||||
--name "i2pfirefox.zip" \
|
||||
--file "i2pfirefox.zip" \
|
||||
--replace
|
||||
echo "Uploaded freestanding zip"
|
||||
jvmsum=$(sha256sum "i2pbrowser.zip")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as a Jpackage, does not require a JVM, Linux Only for now unless you BYO." \
|
||||
--label "I2P Browser launcher as a Jpackage, does not require a JVM. ${jvmsum}" \
|
||||
--name "i2pbrowser.zip" \
|
||||
--file "i2pbrowser.zip" \
|
||||
--replace
|
||||
--replace
|
||||
echo "Uploaded jpackage zip"
|
||||
debsum=$(sha256sum "i2pbrowser_${GITHUB_TAG}_amd64.deb")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as a Jpackage inside of a Debian package. ${debsum}" \
|
||||
--name "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
|
||||
--file "i2pbrowser_${GITHUB_TAG}_amd64.deb" \
|
||||
--replace
|
||||
echo "Uploaded debian package"
|
||||
rpmsum=$(sha256sum i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm)
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as a Jpackage inside of a Fedora package. ${rpmsum}" \
|
||||
--name "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
|
||||
--file "i2pbrowser-${GITHUB_TAG}-1.x86_64.rpm" \
|
||||
--replace
|
||||
echo "Uploaded fedora package"
|
||||
git pull github --tags
|
||||
git push --all
|
||||
|
Binary file not shown.
@ -2,6 +2,6 @@ This browser profile is entirely composed of the work of Free Software developer
|
||||
The licenses for the sub-projects may be found in the extensions directories themselves.
|
||||
|
||||
i2p.chromium.usabilty.profile/extensions/i2pchrome.js/
|
||||
i2p.chromium.usabilty.profile/extensions/jshelter.js
|
||||
i2p.chromium.usabilty.profile/extensions/localcdn.js
|
||||
i2p.chromium.usabilty.profile/extensions/ublock.js
|
||||
i2p.chromium.usabilty.profile/extensions/jshelter.js/
|
||||
i2p.chromium.usabilty.profile/extensions/localcdn.js/
|
||||
i2p.chromium.usabilty.profile/extensions/ublock.js/
|
Binary file not shown.
Binary file not shown.
@ -20,7 +20,7 @@ import java.util.ArrayList;
|
||||
* @author idk
|
||||
* @since 0.0.16
|
||||
*/
|
||||
public class I2PBrowser {
|
||||
public class I2PBrowser extends I2PCommonBrowser {
|
||||
private final I2PFirefox i2pFirefox = new I2PFirefox();
|
||||
private final I2PChromium i2pChromium = new I2PChromium();
|
||||
private final I2PGenericUnsafeBrowser i2pGeneral =
|
||||
@ -32,17 +32,17 @@ public class I2PBrowser {
|
||||
public boolean usability = false;
|
||||
|
||||
private void launchFirefox(boolean privateWindow, String[] url) {
|
||||
System.out.println("I2PFirefox");
|
||||
logger.info("I2PFirefox");
|
||||
I2PFirefox.usability = usability;
|
||||
i2pFirefox.launch(privateWindow, url);
|
||||
}
|
||||
private void launchChromium(boolean privateWindow, String[] url) {
|
||||
System.out.println("I2PChromium");
|
||||
logger.info("I2PChromium");
|
||||
I2PChromiumProfileBuilder.usability = usability;
|
||||
i2pChromium.launch(privateWindow, url);
|
||||
}
|
||||
private void launchGeneric(boolean privateWindow, String[] url) {
|
||||
System.out.println("I2PChromium");
|
||||
logger.info("I2PChromium");
|
||||
i2pGeneral.launch(privateWindow, url);
|
||||
}
|
||||
|
||||
@ -112,6 +112,7 @@ public class I2PBrowser {
|
||||
* @since 0.0.17
|
||||
*/
|
||||
public void launch(boolean privateWindow, String[] url) {
|
||||
validateUserDir();
|
||||
if (generic)
|
||||
this.launchGeneric(privateWindow, url);
|
||||
if ((chromium && firefox) || (!chromium && !firefox)) {
|
||||
@ -175,8 +176,9 @@ public class I2PBrowser {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
validateUserDir();
|
||||
boolean privateBrowsing = false;
|
||||
System.out.println("I2PBrowser");
|
||||
logger.info("I2PBrowser");
|
||||
I2PBrowser i2pBrowser = new I2PBrowser();
|
||||
ArrayList<String> visitURL = new ArrayList<String>();
|
||||
if (args != null) {
|
||||
@ -194,6 +196,10 @@ public class I2PBrowser {
|
||||
if (arg.equals("-usability")) {
|
||||
i2pBrowser.usability = true;
|
||||
}
|
||||
if (arg.equals("-noproxycheck")) {
|
||||
logger.info("zeroing out proxy check");
|
||||
i2pBrowser.setProxyTimeoutTime(0);
|
||||
}
|
||||
if (!arg.startsWith("-")) {
|
||||
visitURL.add(ValidURL(arg));
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
package net.i2p.i2pfirefox;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.Socket;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
@ -21,7 +19,6 @@ import java.util.ArrayList;
|
||||
*/
|
||||
public class I2PChromium extends I2PCommonBrowser {
|
||||
private final String[] CHROMIUM_SEARCH_PATHS = CHROMIUM_FINDER();
|
||||
private final int DEFAULT_TIMEOUT = 200;
|
||||
private Process p = null;
|
||||
|
||||
/**
|
||||
@ -35,7 +32,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
for (String path : CHROMIUM_SEARCH_PATHS) {
|
||||
File f = new File(path);
|
||||
if (f.exists()) {
|
||||
System.out.println("Found Chromium at " + path);
|
||||
logger.info("Found Chromium at " + path);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -44,7 +41,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
for (String path : CHROMIUM_SEARCH_PATHS) {
|
||||
File f = new File(path);
|
||||
if (f.exists()) {
|
||||
System.out.println("Found Chromium at " + path);
|
||||
logger.info("Found Chromium at " + path);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -250,10 +247,10 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
for (String chrome : chromees) {
|
||||
File chromeFile = new File(chrome);
|
||||
if (chromeFile.exists()) {
|
||||
System.out.println("Found valid chromium at " + chrome);
|
||||
logger.info("Found valid chromium at " + chrome);
|
||||
validChromiums.add(chrome);
|
||||
}
|
||||
System.out.println("chrome at " + chrome + "does not exist");
|
||||
logger.info("chrome at " + chrome + "does not exist");
|
||||
}
|
||||
return validChromiums.toArray(new String[validChromiums.size()]);
|
||||
}
|
||||
@ -478,91 +475,27 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
return new ProcessBuilder(newArgs).directory(
|
||||
I2PChromiumProfileBuilder.runtimeDirectory(true));
|
||||
} else {
|
||||
System.out.println("No Chromium found.");
|
||||
logger.info("No Chromium found.");
|
||||
return new ProcessBuilder(args);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits for an HTTP proxy on port 4444 to be ready.
|
||||
* Returns false on timeout of 200 seconds.
|
||||
*
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy() { return waitForProxy(DEFAULT_TIMEOUT); }
|
||||
|
||||
/**
|
||||
* Waits for an HTTP proxy on port 4444 to be ready.
|
||||
* Returns false on timeout of the specified number of seconds.
|
||||
*
|
||||
* @param timeout the number of seconds to wait for the proxy to be ready.
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy(int timeout) {
|
||||
return waitForProxy(timeout, 4444);
|
||||
}
|
||||
/**
|
||||
* Waits for an HTTP proxy on the specified port to be ready.
|
||||
* Returns false on timeout of the specified number of seconds.
|
||||
*
|
||||
* @param timeout the number of seconds to wait for the proxy to be ready.
|
||||
* @param port the port to wait for the proxy to be ready on.
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy(int timeout, int port) {
|
||||
return waitForProxy(timeout, port, "localhost");
|
||||
}
|
||||
/**
|
||||
* Waits for an HTTP proxy on the specified port to be ready.
|
||||
* Returns false on timeout of the specified number of seconds.
|
||||
*
|
||||
* @param timeout the number of seconds to wait for the proxy to be ready.
|
||||
* @param port the port to wait for the proxy to be ready on.
|
||||
* @param host the host to wait for the proxy to be ready on.
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy(int timeout, int port, String host) {
|
||||
for (int i = 0; i < timeout; i++) {
|
||||
if (checkifPortIsOccupied(port, host)) {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private boolean checkifPortIsOccupied(int port, String host) {
|
||||
try {
|
||||
Socket socket = new Socket(host, port);
|
||||
socket.close();
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
||||
validateUserDir();
|
||||
if (waitForProxy()) {
|
||||
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
|
||||
if (I2PChromiumProfileChecker.validateProfileDirectory(
|
||||
profileDirectory)) {
|
||||
System.out.println("Valid profile directory: " + profileDirectory);
|
||||
logger.info("Valid profile directory: " + profileDirectory);
|
||||
} else {
|
||||
System.out.println("Invalid profile directory: " + profileDirectory +
|
||||
" rebuilding...");
|
||||
logger.info("Invalid profile directory: " + profileDirectory +
|
||||
" rebuilding...");
|
||||
if (!I2PChromiumProfileBuilder.copyBaseProfiletoProfile()) {
|
||||
System.out.println("Failed to rebuild profile directory: " +
|
||||
profileDirectory);
|
||||
logger.info("Failed to rebuild profile directory: " +
|
||||
profileDirectory);
|
||||
return null;
|
||||
} else {
|
||||
System.out.println("Rebuilt profile directory: " + profileDirectory);
|
||||
logger.info("Rebuilt profile directory: " + profileDirectory);
|
||||
}
|
||||
}
|
||||
if (validateProfileFirstRun(profileDirectory))
|
||||
@ -574,12 +507,12 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
pb = this.defaultProcessBuilder(url);
|
||||
}
|
||||
try {
|
||||
System.out.println(pb.command());
|
||||
logger.info(pb.command().toString());
|
||||
p = pb.start();
|
||||
sleep(2000);
|
||||
return p;
|
||||
} catch (Throwable e) {
|
||||
System.out.println(e);
|
||||
logger.info(e.toString());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@ -600,13 +533,13 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
p = launchAndDetatch(privateWindow, url);
|
||||
if (p == null)
|
||||
return;
|
||||
System.out.println("I2PChromium");
|
||||
logger.info("I2PChromium");
|
||||
try {
|
||||
System.out.println("Waiting for I2PChromium to close...");
|
||||
logger.info("Waiting for I2PChromium to close...");
|
||||
int exit = p.waitFor();
|
||||
System.out.println("I2PChromium exited with value: " + exit);
|
||||
logger.info("I2PChromium exited with value: " + exit);
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error: " + e.getMessage());
|
||||
logger.info("Error: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -642,22 +575,27 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
validateUserDir();
|
||||
boolean privateBrowsing = false;
|
||||
System.out.println("I2PChromium");
|
||||
logger.info("I2PChromium");
|
||||
I2PChromium i2pChromium = new I2PChromium();
|
||||
System.out.println("checking for private browsing");
|
||||
logger.info("checking for private browsing");
|
||||
ArrayList<String> visitURL = new ArrayList<String>();
|
||||
if (args != null) {
|
||||
if (args.length > 0) {
|
||||
for (String arg : args) {
|
||||
if (arg.equals("-private")) {
|
||||
privateBrowsing = true;
|
||||
System.out.println(
|
||||
logger.info(
|
||||
"private browsing is true, profile will be discarded at end of session");
|
||||
}
|
||||
if (arg.equals("-usability")) {
|
||||
I2PChromiumProfileBuilder.usability = true;
|
||||
}
|
||||
if (arg.equals("-noproxycheck")) {
|
||||
logger.info("zeroing out proxy check");
|
||||
i2pChromium.setProxyTimeoutTime(0);
|
||||
}
|
||||
if (!arg.startsWith("-")) {
|
||||
// check if it's a URL
|
||||
visitURL.add(ValidURL(arg));
|
||||
|
@ -120,8 +120,8 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
|
||||
public static boolean copyBaseProfiletoProfile() {
|
||||
String baseProfile = baseProfileDirectory(usabilityMode());
|
||||
String profile = profileDirectory();
|
||||
System.out.println("Copying base profile to profile directory: " +
|
||||
baseProfile + " -> " + profile);
|
||||
logger.info("Copying base profile to profile directory: " + baseProfile +
|
||||
" -> " + profile);
|
||||
if (baseProfile.isEmpty() || profile.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
@ -129,14 +129,14 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
|
||||
File profileDir = new File(profile);
|
||||
if (!profileDir.exists()) {
|
||||
try {
|
||||
System.out.println("Copying base profile to profile directory");
|
||||
logger.info("Copying base profile to profile directory");
|
||||
copyDirectory(baseProfileDir, profileDir, "chromium", usabilityMode());
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error copying base profile to profile" + e);
|
||||
logger.info("Error copying base profile to profile" + e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
System.out.println("Copied base profile to profile directory");
|
||||
logger.info("Copied base profile to profile directory");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ import java.io.File;
|
||||
* @author idk
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public class I2PChromiumProfileChecker {
|
||||
public class I2PChromiumProfileChecker extends I2PCommonBrowser {
|
||||
/**
|
||||
* Output feedback if the profile directory is valid or invalid
|
||||
*
|
||||
@ -29,15 +29,15 @@ public class I2PChromiumProfileChecker {
|
||||
public static void main(String[] args) {
|
||||
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
|
||||
if (profileDirectory == null) {
|
||||
System.out.println("No profile directory found");
|
||||
logger.info("No profile directory found");
|
||||
return;
|
||||
}
|
||||
System.out.println("Profile directory: " + profileDirectory);
|
||||
logger.info("Profile directory: " + profileDirectory);
|
||||
boolean ok = validateProfileDirectory(profileDirectory);
|
||||
if (ok) {
|
||||
System.out.println("Profile directory is valid");
|
||||
logger.info("Profile directory is valid");
|
||||
} else {
|
||||
System.out.println("Profile directory is invalid");
|
||||
logger.info("Profile directory is invalid");
|
||||
}
|
||||
}
|
||||
/**
|
||||
@ -50,23 +50,23 @@ public class I2PChromiumProfileChecker {
|
||||
public static boolean validateProfileDirectory(String profileDirectory) {
|
||||
File profileDir = new File(profileDirectory);
|
||||
if (!profileDir.exists()) {
|
||||
System.out.println("Profile directory does not exist");
|
||||
logger.info("Profile directory does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.isDirectory()) {
|
||||
System.out.println("Profile directory is not a directory");
|
||||
logger.info("Profile directory is not a directory");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.canRead()) {
|
||||
System.out.println("Profile directory is not readable");
|
||||
logger.info("Profile directory is not readable");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.canWrite()) {
|
||||
System.out.println("Profile directory is not writable");
|
||||
logger.info("Profile directory is not writable");
|
||||
return false;
|
||||
}
|
||||
if (!validateExtensionDirectory(profileDir + "/extensions")) {
|
||||
System.out.println("extensions directory is invalid");
|
||||
logger.info("extensions directory is invalid");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -81,19 +81,19 @@ public class I2PChromiumProfileChecker {
|
||||
public static boolean validateFile(String file) {
|
||||
File f = new File(file);
|
||||
if (!f.exists()) {
|
||||
System.out.println("User JavaScript file does not exist");
|
||||
logger.info("User JavaScript file does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!f.isFile()) {
|
||||
System.out.println("User JavaScript file is not a file");
|
||||
logger.info("User JavaScript file is not a file");
|
||||
return false;
|
||||
}
|
||||
if (!f.canRead()) {
|
||||
System.out.println("User JavaScript file is not readable");
|
||||
logger.info("User JavaScript file is not readable");
|
||||
return false;
|
||||
}
|
||||
if (!f.canWrite()) {
|
||||
System.out.println("User JavaScript file is not writable");
|
||||
logger.info("User JavaScript file is not writable");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -108,19 +108,19 @@ public class I2PChromiumProfileChecker {
|
||||
public static boolean validateExtensionDirectory(String extensionDirectory) {
|
||||
File extensionDir = new File(extensionDirectory);
|
||||
if (!extensionDir.exists()) {
|
||||
System.out.println("Extension directory does not exist");
|
||||
logger.info("Extension directory does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!extensionDir.isDirectory()) {
|
||||
System.out.println("Extension directory is not a directory");
|
||||
logger.info("Extension directory is not a directory");
|
||||
return false;
|
||||
}
|
||||
if (!extensionDir.canRead()) {
|
||||
System.out.println("Extension directory is not readable");
|
||||
logger.info("Extension directory is not readable");
|
||||
return false;
|
||||
}
|
||||
if (!extensionDir.canWrite()) {
|
||||
System.out.println("Extension directory is not writable");
|
||||
logger.info("Extension directory is not writable");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -23,7 +23,7 @@ public class I2PChromiumProfileUnpacker extends I2PCommonBrowser {
|
||||
public static void main(String[] args) {
|
||||
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory();
|
||||
if (profileDirectory == null) {
|
||||
System.out.println("No profile directory found");
|
||||
logger.info("No profile directory found");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -35,7 +35,7 @@ public class I2PChromiumProfileUnpacker extends I2PCommonBrowser {
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean unpackProfile(String profileDirectory, String mode) {
|
||||
System.out.println("Unpacking base profile to " + profileDirectory);
|
||||
logger.info("Unpacking base profile to " + profileDirectory);
|
||||
return unpackProfile(profileDirectory, "chromium", mode);
|
||||
}
|
||||
}
|
||||
|
@ -6,8 +6,12 @@ import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.Socket;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
import java.util.logging.FileHandler;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.logging.SimpleFormatter;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipInputStream;
|
||||
|
||||
@ -27,6 +31,95 @@ import java.util.zip.ZipInputStream;
|
||||
*/
|
||||
|
||||
public class I2PCommonBrowser {
|
||||
static public Logger logger = Logger.getLogger("browserlauncher");
|
||||
static FileHandler fh;
|
||||
// private final int DEFAULT_TIMEOUT = 200;
|
||||
private static int CONFIGURED_TIMEOUT = 200;
|
||||
|
||||
public I2PCommonBrowser() {
|
||||
try {
|
||||
// This block configure the logger with handler and formatter
|
||||
fh = new FileHandler(logFile().toString());
|
||||
logger.addHandler(fh);
|
||||
SimpleFormatter formatter = new SimpleFormatter();
|
||||
fh.setFormatter(formatter);
|
||||
// the following statement is used to log any messages
|
||||
logger.info("Browser log");
|
||||
} catch (SecurityException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public static void validateUserDir() {
|
||||
logger.info("Validating user directory");
|
||||
String userDir = System.getProperty("user.dir");
|
||||
String userHome = System.getProperty("user.home");
|
||||
File userDirFile = new File(userDir);
|
||||
File userHomeFile = new File(userHome);
|
||||
logger.info("user.dir testing !" + userHomeFile.getAbsolutePath() +
|
||||
".equals(" + userDirFile.getAbsolutePath() + ")");
|
||||
if (!userDirFile.getAbsolutePath().contains("Program Files")) {
|
||||
if (!userDirFile.getAbsolutePath().equals(
|
||||
userHomeFile.getAbsolutePath())) {
|
||||
logger.info("user.dir is not inconvenient");
|
||||
if (userDirFile.exists()) {
|
||||
logger.info("user.dir exists");
|
||||
if (userDirFile.isDirectory()) {
|
||||
logger.info("user.dir is a directory");
|
||||
if (userDirFile.canWrite()) {
|
||||
logger.info("user.dir is writable");
|
||||
return;
|
||||
} else {
|
||||
logger.info("user.dir is not writable");
|
||||
}
|
||||
}
|
||||
{ logger.info("user.dir is not actually a directory"); }
|
||||
} else {
|
||||
logger.info("user.dir does not exist");
|
||||
}
|
||||
} else {
|
||||
logger.info("user.dir should not be the same as user.home");
|
||||
}
|
||||
} else {
|
||||
logger.info("user.dir cannot run from inside Program Files");
|
||||
}
|
||||
if (isWindows())
|
||||
userHome = new File(userHome, "AppData/Local/I2P").getAbsolutePath();
|
||||
File defaultPathFile = new File(userHome, "i2p/i2pbrowser");
|
||||
if (!defaultPathFile.exists())
|
||||
defaultPathFile.mkdirs();
|
||||
if (!defaultPathFile.isDirectory()) {
|
||||
logger.info(
|
||||
"default path exists and is not a directory, get it out of the way");
|
||||
logger.info(defaultPathFile.getAbsolutePath());
|
||||
}
|
||||
System.setProperty("user.dir", defaultPathFile.getAbsolutePath());
|
||||
}
|
||||
|
||||
protected static boolean isWindows() {
|
||||
String osName = System.getProperty("os.name");
|
||||
logger.info("os.name" + osName);
|
||||
if (osName.contains("windows"))
|
||||
return true;
|
||||
if (osName.contains("Windows"))
|
||||
return true;
|
||||
if (osName.contains("WINDOWS"))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
// public static void logger.info(String line) { logger.info(line); }
|
||||
|
||||
private static File logFile() {
|
||||
validateUserDir();
|
||||
String userDir = System.getProperty("user.dir");
|
||||
File log = new File(userDir, "logs");
|
||||
if (!log.exists())
|
||||
log.mkdirs();
|
||||
return new File(log, "browserlauncher.log");
|
||||
}
|
||||
|
||||
/**
|
||||
* get the runtime directory, creating it if create=true
|
||||
@ -118,16 +211,16 @@ public class I2PCommonBrowser {
|
||||
|
||||
protected boolean unpackProfile(String profileDirectory, String browser,
|
||||
String base) {
|
||||
System.out.println("Unpacking base profile to " + profileDirectory);
|
||||
logger.info("Unpacking base profile to " + profileDirectory);
|
||||
try {
|
||||
final InputStream resources =
|
||||
this.getClass().getClassLoader().getResourceAsStream(
|
||||
"i2p." + browser + "." + base + ".profile.zip");
|
||||
if (resources == null) {
|
||||
System.out.println("Could not find resources");
|
||||
logger.info("Could not find resources");
|
||||
return false;
|
||||
}
|
||||
System.out.println(resources.toString());
|
||||
logger.info(resources.toString());
|
||||
// InputStream corresponds to a zip file. Unzip it.
|
||||
// Files.copy(r, new File(profileDirectory).toPath(),
|
||||
// StandardCopyOption.REPLACE_EXISTING);
|
||||
@ -135,15 +228,14 @@ public class I2PCommonBrowser {
|
||||
ZipEntry entry;
|
||||
// while there are entries I process them
|
||||
while ((entry = zis.getNextEntry()) != null) {
|
||||
System.out.println("entry: " + entry.getName() + ", " +
|
||||
entry.getSize());
|
||||
logger.info("entry: " + entry.getName() + ", " + entry.getSize());
|
||||
// consume all the data from this entry
|
||||
if (entry.isDirectory()) {
|
||||
System.out.println("Creating directory: " + entry.getName());
|
||||
logger.info("Creating directory: " + entry.getName());
|
||||
File dir = new File(profileDirectory + "/" + entry.getName());
|
||||
dir.mkdirs();
|
||||
} else {
|
||||
System.out.println("Creating file: " + entry.getName());
|
||||
logger.info("Creating file: " + entry.getName());
|
||||
File file = new File(profileDirectory + "/" + entry.getName());
|
||||
file.createNewFile();
|
||||
Files.copy(zis, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
@ -156,7 +248,7 @@ public class I2PCommonBrowser {
|
||||
// loop through the Enumeration
|
||||
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error copying profile files: " + e.getMessage());
|
||||
logger.info("Error copying profile files: " + e.getMessage());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -203,11 +295,11 @@ public class I2PCommonBrowser {
|
||||
public static boolean validateProfileFirstRun(String profileDirectory) {
|
||||
File profileDir = new File(profileDirectory);
|
||||
if (!profileDir.exists()) {
|
||||
System.out.println("Profile directory does not exist");
|
||||
logger.info("Profile directory does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.isDirectory()) {
|
||||
System.out.println("Profile directory is not a directory");
|
||||
logger.info("Profile directory is not a directory");
|
||||
return false;
|
||||
}
|
||||
File frf = new File(profileDir, "first-run");
|
||||
@ -218,4 +310,83 @@ public class I2PCommonBrowser {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits for an HTTP proxy on port 4444 to be ready.
|
||||
* Returns false on timeout of 200 seconds.
|
||||
*
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy() { return waitForProxy(CONFIGURED_TIMEOUT); }
|
||||
|
||||
/**
|
||||
* Waits for an HTTP proxy on port 4444 to be ready.
|
||||
* Returns false on timeout of the specified number of seconds.
|
||||
*
|
||||
* @param timeout the number of seconds to wait for the proxy to be ready.
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy(int timeout) {
|
||||
return waitForProxy(timeout, 4444);
|
||||
}
|
||||
/**
|
||||
* Waits for an HTTP proxy on the specified port to be ready.
|
||||
* Returns false on timeout of the specified number of seconds.
|
||||
*
|
||||
* @param timeout the number of seconds to wait for the proxy to be ready.
|
||||
* @param port the port to wait for the proxy to be ready on.
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy(int timeout, int port) {
|
||||
return waitForProxy(timeout, port, "localhost");
|
||||
}
|
||||
/**
|
||||
* Waits for an HTTP proxy on the specified port to be ready.
|
||||
* Returns false on timeout of the specified number of seconds.
|
||||
* If the timeout is zero or less, the check is disabled and always
|
||||
* returns true.
|
||||
*
|
||||
* @param timeout the number of seconds to wait for the proxy to be ready.
|
||||
* @param port the port to wait for the proxy to be ready on.
|
||||
* @param host the host to wait for the proxy to be ready on.
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy(int timeout, int port, String host) {
|
||||
logger.info("waiting up to " + timeout + "seconds for a proxy");
|
||||
if (timeout <= 0) {
|
||||
return true;
|
||||
}
|
||||
for (int i = 0; i < timeout; i++) {
|
||||
logger.info("Waiting for proxy");
|
||||
if (checkifPortIsOccupied(port, host)) {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private boolean checkifPortIsOccupied(int port, String host) {
|
||||
try {
|
||||
Socket socket = new Socket(host, port);
|
||||
socket.close();
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Alters the proxy timeout to customized value time, in seconds.
|
||||
* May be zero.
|
||||
*
|
||||
* @param time
|
||||
*/
|
||||
public void setProxyTimeoutTime(int time) { CONFIGURED_TIMEOUT = time; }
|
||||
}
|
||||
|
@ -2,8 +2,8 @@ package net.i2p.i2pfirefox;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.net.Socket;
|
||||
import java.util.ArrayList;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* I2PFirefox.java
|
||||
@ -21,7 +21,6 @@ import java.util.ArrayList;
|
||||
*/
|
||||
public class I2PFirefox extends I2PCommonBrowser {
|
||||
private final String[] FIREFOX_SEARCH_PATHS = FIREFOX_FINDER();
|
||||
private final int DEFAULT_TIMEOUT = 200;
|
||||
private Process p = null;
|
||||
public static boolean usability = false;
|
||||
|
||||
@ -36,7 +35,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
for (String path : FIREFOX_SEARCH_PATHS) {
|
||||
File f = new File(path);
|
||||
if (f.exists()) {
|
||||
System.out.println("Found Firefox at " + path);
|
||||
logger.info("Found Firefox at " + path);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -184,6 +183,8 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
// list the files in the user.dir directory
|
||||
if (userFiles != null) {
|
||||
for (File userFile : userFiles) {
|
||||
if (userFile.isDirectory())
|
||||
continue;
|
||||
if (userFile.getName().equals("firefox") ||
|
||||
userFile.getName().equals("firefox-bin") ||
|
||||
userFile.getName().equals("firefox-esr") ||
|
||||
@ -238,10 +239,10 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
for (String firefox : firefoxes) {
|
||||
File firefoxFile = new File(firefox);
|
||||
if (firefoxFile.exists()) {
|
||||
System.out.println("Found valid firefox at " + firefox);
|
||||
logger.info("Found valid firefox at " + firefox);
|
||||
validFirefoxes.add(firefox);
|
||||
}
|
||||
System.out.println("firefox at " + firefox + "does not exist");
|
||||
logger.info("firefox at " + firefox + "does not exist");
|
||||
}
|
||||
return validFirefoxes.toArray(new String[validFirefoxes.size()]);
|
||||
}
|
||||
@ -330,7 +331,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
|
||||
/**
|
||||
* * Build a ProcessBuilder for the top Firefox binary and
|
||||
* Build a ProcessBuilder for the top Firefox binary and
|
||||
* the default profile. Pass the --private-window flag to
|
||||
* open a private window.
|
||||
*
|
||||
@ -351,6 +352,28 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
return processBuilder(argList.toArray(new String[argList.size()]));
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a ProcessBuilder for the top Firefox binary and
|
||||
* the default profile. Pass the --headless flag to open
|
||||
* without a window.
|
||||
*
|
||||
* @param args the arguments to pass to the Firefox binary
|
||||
* @return a ProcessBuilder for the top Firefox binary and
|
||||
* the default profile.
|
||||
*/
|
||||
public ProcessBuilder headlessProcessBuilder(String[] args) {
|
||||
ArrayList<String> argList = new ArrayList<String>();
|
||||
argList.add("--headless");
|
||||
if (args != null) {
|
||||
if (args.length > 0) {
|
||||
for (String arg : args) {
|
||||
argList.add(arg);
|
||||
}
|
||||
}
|
||||
}
|
||||
return processBuilder(argList.toArray(new String[argList.size()]));
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a ProcessBuilder for the top Firefox binary and
|
||||
* the default profile, with a specific set of extended
|
||||
@ -369,7 +392,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
arglength = args.length;
|
||||
String[] newArgs = new String[arglength + 4];
|
||||
newArgs[0] = firefox;
|
||||
newArgs[1] = "-attach-console";
|
||||
newArgs[1] = "--new-instance";
|
||||
newArgs[2] = "--profile";
|
||||
newArgs[3] = I2PFirefoxProfileBuilder.profileDirectory();
|
||||
if (args != null) {
|
||||
@ -382,77 +405,11 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
return new ProcessBuilder(newArgs).directory(
|
||||
I2PFirefoxProfileBuilder.runtimeDirectory(true));
|
||||
} else {
|
||||
System.out.println("No Firefox found.");
|
||||
logger.info("No Firefox found.");
|
||||
return new ProcessBuilder(args);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits for an HTTP proxy on port 4444 to be ready.
|
||||
* Returns false on timeout of 200 seconds.
|
||||
*
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy() { return waitForProxy(DEFAULT_TIMEOUT); }
|
||||
|
||||
/**
|
||||
* Waits for an HTTP proxy on port 4444 to be ready.
|
||||
* Returns false on timeout of the specified number of seconds.
|
||||
*
|
||||
* @param timeout the number of seconds to wait for the proxy to be ready.
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy(int timeout) {
|
||||
return waitForProxy(timeout, 4444);
|
||||
}
|
||||
/**
|
||||
* Waits for an HTTP proxy on the specified port to be ready.
|
||||
* Returns false on timeout of the specified number of seconds.
|
||||
*
|
||||
* @param timeout the number of seconds to wait for the proxy to be ready.
|
||||
* @param port the port to wait for the proxy to be ready on.
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy(int timeout, int port) {
|
||||
return waitForProxy(timeout, port, "localhost");
|
||||
}
|
||||
/**
|
||||
* Waits for an HTTP proxy on the specified port to be ready.
|
||||
* Returns false on timeout of the specified number of seconds.
|
||||
*
|
||||
* @param timeout the number of seconds to wait for the proxy to be ready.
|
||||
* @param port the port to wait for the proxy to be ready on.
|
||||
* @param host the host to wait for the proxy to be ready on.
|
||||
* @return true if the proxy is ready, false if it is not.
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public boolean waitForProxy(int timeout, int port, String host) {
|
||||
for (int i = 0; i < timeout; i++) {
|
||||
System.out.println("Waiting for proxy");
|
||||
if (checkifPortIsOccupied(port, host)) {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private boolean checkifPortIsOccupied(int port, String host) {
|
||||
try {
|
||||
Socket socket = new Socket(host, port);
|
||||
socket.close();
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private String usabilityMode() {
|
||||
if (usability) {
|
||||
return "usability";
|
||||
@ -461,24 +418,50 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
|
||||
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
||||
validateUserDir();
|
||||
if (waitForProxy()) {
|
||||
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
|
||||
if (I2PFirefoxProfileChecker.validateProfileDirectory(profileDirectory)) {
|
||||
System.out.println("Valid profile directory: " + profileDirectory);
|
||||
logger.info("Valid profile directory: " + profileDirectory);
|
||||
} else {
|
||||
System.out.println("Invalid profile directory: " + profileDirectory +
|
||||
" rebuilding...");
|
||||
logger.info("Invalid profile directory: " + profileDirectory +
|
||||
" rebuilding...");
|
||||
if (!I2PFirefoxProfileBuilder.copyBaseProfiletoProfile(
|
||||
usabilityMode())) {
|
||||
System.out.println("Failed to rebuild profile directory: " +
|
||||
profileDirectory);
|
||||
logger.info("Failed to rebuild profile directory: " +
|
||||
profileDirectory);
|
||||
return null;
|
||||
} else {
|
||||
System.out.println("Rebuilt profile directory: " + profileDirectory);
|
||||
logger.info("Rebuilt profile directory: " + profileDirectory);
|
||||
}
|
||||
}
|
||||
if (validateProfileFirstRun(profileDirectory))
|
||||
return null;
|
||||
if (validateProfileFirstRun(profileDirectory)) {
|
||||
if (isWindows()) {
|
||||
ProcessBuilder hpb = headlessProcessBuilder(url);
|
||||
try {
|
||||
Process hp = hpb.start();
|
||||
try {
|
||||
boolean hev = hp.waitFor(5, TimeUnit.SECONDS);
|
||||
logger.info("Headless browser run completed, exit: " + hev);
|
||||
if (!hev)
|
||||
hp.destroy();
|
||||
hev = hp.waitFor(5, TimeUnit.SECONDS);
|
||||
if (hp.isAlive()) {
|
||||
int forcedExitCode = hp.destroyForcibly().waitFor();
|
||||
logger.info("Headless browser run forcibly terminated, exit: " +
|
||||
forcedExitCode);
|
||||
}
|
||||
int exitCode = hp.exitValue();
|
||||
logger.info("Headless browser run completed, exit: " + exitCode);
|
||||
} catch (InterruptedException e) {
|
||||
logger.info("Headless browser error " + e.toString());
|
||||
}
|
||||
} catch (IOException e) {
|
||||
logger.info("Headless browser error " + e.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ProcessBuilder pb;
|
||||
if (privateWindow) {
|
||||
pb = privateProcessBuilder(url);
|
||||
@ -486,13 +469,13 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
pb = defaultProcessBuilder(url);
|
||||
}
|
||||
try {
|
||||
System.out.println(pb.command());
|
||||
logger.info(pb.command().toString());
|
||||
p = pb.start();
|
||||
System.out.println("I2PFirefox");
|
||||
logger.info("I2PFirefox");
|
||||
sleep(2000);
|
||||
return p;
|
||||
} catch (Throwable e) {
|
||||
System.out.println(e);
|
||||
logger.info(e.toString());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@ -514,11 +497,11 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
if (p == null)
|
||||
return;
|
||||
try {
|
||||
System.out.println("Waiting for I2PFirefox to close...");
|
||||
logger.info("Waiting for I2PFirefox to close...");
|
||||
int exit = p.waitFor();
|
||||
System.out.println("I2PFirefox exited with value: " + exit);
|
||||
logger.info("I2PFirefox exited with value: " + exit);
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error: " + e.getMessage());
|
||||
logger.info("Error: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -548,7 +531,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
String[] schemes = {"http", "https"};
|
||||
for (String scheme : schemes) {
|
||||
if (inUrl.startsWith(scheme)) {
|
||||
System.out.println("Valid URL: " + inUrl);
|
||||
logger.info("Valid URL: " + inUrl);
|
||||
return inUrl;
|
||||
}
|
||||
}
|
||||
@ -556,20 +539,27 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
validateUserDir();
|
||||
boolean privateBrowsing = false;
|
||||
System.out.println("checking for private browsing");
|
||||
logger.info("checking for private browsing");
|
||||
logger.info("I2PFirefox");
|
||||
I2PFirefox i2pFirefox = new I2PFirefox();
|
||||
ArrayList<String> visitURL = new ArrayList<String>();
|
||||
if (args != null) {
|
||||
if (args.length > 0) {
|
||||
for (String arg : args) {
|
||||
if (arg.equals("-private")) {
|
||||
privateBrowsing = true;
|
||||
System.out.println(
|
||||
logger.info(
|
||||
"private browsing is true, profile will be discarded at end of session");
|
||||
}
|
||||
if (arg.equals("-usability")) {
|
||||
usability = true;
|
||||
}
|
||||
if (arg.equals("-noproxycheck")) {
|
||||
logger.info("zeroing out proxy check");
|
||||
i2pFirefox.setProxyTimeoutTime(0);
|
||||
}
|
||||
if (!arg.startsWith("-")) {
|
||||
// check if it's a URL
|
||||
visitURL.add(ValidURL(arg));
|
||||
@ -577,8 +567,6 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
}
|
||||
}
|
||||
System.out.println("I2PFirefox");
|
||||
I2PFirefox i2pFirefox = new I2PFirefox();
|
||||
i2pFirefox.launch(privateBrowsing,
|
||||
visitURL.toArray(new String[visitURL.size()]));
|
||||
}
|
||||
|
@ -112,8 +112,8 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
public static boolean copyBaseProfiletoProfile(String base) {
|
||||
String baseProfile = baseProfileDirectory(base);
|
||||
String profile = profileDirectory();
|
||||
System.out.println("Copying base profile to profile directory: " +
|
||||
baseProfile + " -> " + profile);
|
||||
logger.info("Copying base profile to profile directory: " + baseProfile +
|
||||
" -> " + profile);
|
||||
if (baseProfile.isEmpty() || profile.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
@ -122,13 +122,13 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
|
||||
if (!profileDir.exists()) {
|
||||
try {
|
||||
System.out.println("Copying base profile to profile directory");
|
||||
logger.info("Copying base profile to profile directory");
|
||||
copyDirectory(baseProfileDir, profileDir, "firefox", base);
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error copying base profile to profile" + e);
|
||||
logger.info("Error copying base profile to profile" + e);
|
||||
return false;
|
||||
}
|
||||
System.out.println("Copied base profile to profile directory");
|
||||
logger.info("Copied base profile to profile directory");
|
||||
}
|
||||
// if user.js does not exist yet, make an empty one.
|
||||
// if (!touch(profileDir.toString(), "user.js")) {
|
||||
@ -171,7 +171,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
Files.copy(baseOverrides.toPath(), userOverrides.toPath(),
|
||||
StandardCopyOption.REPLACE_EXISTING);
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error copying base profile to profile" + e);
|
||||
logger.info("Error copying base profile to profile" + e);
|
||||
return false;
|
||||
}
|
||||
// if user-overrides.js does not exist yet, make an empty one.
|
||||
|
@ -2,9 +2,11 @@ package net.i2p.i2pfirefox;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.util.Scanner;
|
||||
|
||||
/**
|
||||
* I2PFirefoxProfileChecker.java
|
||||
@ -22,7 +24,7 @@ import java.io.IOException;
|
||||
* @author idk
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public class I2PFirefoxProfileChecker {
|
||||
public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
|
||||
|
||||
/**
|
||||
* @param args unused
|
||||
@ -30,15 +32,15 @@ public class I2PFirefoxProfileChecker {
|
||||
public static void main(String[] args) {
|
||||
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
|
||||
if (profileDirectory == null) {
|
||||
System.out.println("No profile directory found");
|
||||
logger.info("No profile directory found");
|
||||
return;
|
||||
}
|
||||
System.out.println("Profile directory: " + profileDirectory);
|
||||
logger.info("Profile directory: " + profileDirectory);
|
||||
boolean ok = validateProfileDirectory(profileDirectory);
|
||||
if (ok) {
|
||||
System.out.println("Profile directory is valid");
|
||||
logger.info("Profile directory is valid");
|
||||
} else {
|
||||
System.out.println("Profile directory is invalid");
|
||||
logger.info("Profile directory is invalid");
|
||||
}
|
||||
}
|
||||
/**
|
||||
@ -51,51 +53,54 @@ public class I2PFirefoxProfileChecker {
|
||||
public static boolean validateProfileDirectory(String profileDirectory) {
|
||||
File profileDir = new File(profileDirectory);
|
||||
if (!profileDir.exists()) {
|
||||
System.out.println("Profile directory does not exist");
|
||||
logger.info("Profile directory does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.isDirectory()) {
|
||||
System.out.println("Profile directory is not a directory");
|
||||
logger.info("Profile directory is not a directory");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.canRead()) {
|
||||
System.out.println("Profile directory is not readable");
|
||||
logger.info("Profile directory is not readable");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.canWrite()) {
|
||||
System.out.println("Profile directory is not writable");
|
||||
logger.info("Profile directory is not writable");
|
||||
return false;
|
||||
}
|
||||
if (!validateFile(profileDir + "/prefs.js")) {
|
||||
System.out.println("prefs.js is not valid");
|
||||
logger.info("prefs.js is not valid");
|
||||
return false;
|
||||
}
|
||||
if (!validateFile(profileDir + "/user.js")) {
|
||||
System.out.println("user.js is not valid");
|
||||
logger.info("user.js is not valid");
|
||||
return false;
|
||||
}
|
||||
if (!validateExtensionDirectory(profileDir + "/extensions")) {
|
||||
System.out.println("extensions directory is invalid");
|
||||
logger.info("extensions directory is invalid");
|
||||
return false;
|
||||
}
|
||||
return deRestrictHTTPS(profileDir.toString());
|
||||
return deRestrictHTTPSAndSetupHomepage(profileDir.toString());
|
||||
}
|
||||
|
||||
private static boolean deRestrictHTTPS(String profile) {
|
||||
private static boolean deRestrictHTTPSAndSetupHomepage(String profile) {
|
||||
// String profile = profileDirectory();
|
||||
File profileDir = new File(profile);
|
||||
if (profileDir.exists()) {
|
||||
File prefOverrides = new File(profile, "prefs.js");
|
||||
if (prefOverrides.exists()) {
|
||||
undoHttpsOnlyMode(prefOverrides);
|
||||
undoHomepage(prefOverrides);
|
||||
}
|
||||
File userSettings = new File(profile, "user.js");
|
||||
if (userSettings.exists()) {
|
||||
undoHttpsOnlyMode(userSettings);
|
||||
undoHomepage(userSettings);
|
||||
}
|
||||
File userOverrides = new File(profile, "user-overrides.js");
|
||||
if (userOverrides.exists()) {
|
||||
undoHttpsOnlyMode(userOverrides);
|
||||
undoHomepage(userOverrides);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@ -104,6 +109,33 @@ public class I2PFirefoxProfileChecker {
|
||||
private static boolean undoHttpsOnlyMode(File fileToBeModified) {
|
||||
String oldString = "\"dom.security.https_only_mode\", true";
|
||||
String newString = "\"dom.security.https_only_mode\", false";
|
||||
return undoValue(oldString, newString, fileToBeModified);
|
||||
}
|
||||
|
||||
private static boolean undoHomepage(File fileToBeModified) {
|
||||
String oldString = "\"browser.startup.homepage\", true";
|
||||
File file = new File("Student.txt");
|
||||
String newString =
|
||||
"\"browser.startup.homepage\", \"http://127.0.0.1:7657\"";
|
||||
try {
|
||||
try (Scanner scanner = new Scanner(file)) {
|
||||
// now read the file line by line...
|
||||
while (scanner.hasNextLine()) {
|
||||
String line = scanner.nextLine();
|
||||
if (line.contains("browser.startup.homepage")) {
|
||||
oldString = line.toString();
|
||||
return undoValue(oldString, newString, fileToBeModified);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (FileNotFoundException e) {
|
||||
// handle this
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private static boolean undoValue(String oldString, String newString,
|
||||
File fileToBeModified) {
|
||||
String oldContent = "";
|
||||
BufferedReader reader = null;
|
||||
FileWriter writer = null;
|
||||
@ -140,19 +172,19 @@ public class I2PFirefoxProfileChecker {
|
||||
public static boolean validateFile(String file) {
|
||||
File f = new File(file);
|
||||
if (!f.exists()) {
|
||||
System.out.println("User JavaScript file does not exist");
|
||||
logger.info("User JavaScript file does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!f.isFile()) {
|
||||
System.out.println("User JavaScript file is not a file");
|
||||
logger.info("User JavaScript file is not a file");
|
||||
return false;
|
||||
}
|
||||
if (!f.canRead()) {
|
||||
System.out.println("User JavaScript file is not readable");
|
||||
logger.info("User JavaScript file is not readable");
|
||||
return false;
|
||||
}
|
||||
if (!f.canWrite()) {
|
||||
System.out.println("User JavaScript file is not writable");
|
||||
logger.info("User JavaScript file is not writable");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -167,19 +199,19 @@ public class I2PFirefoxProfileChecker {
|
||||
public static boolean validateExtensionDirectory(String extensionDirectory) {
|
||||
File extensionDir = new File(extensionDirectory);
|
||||
if (!extensionDir.exists()) {
|
||||
System.out.println("Extension directory does not exist");
|
||||
logger.info("Extension directory does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!extensionDir.isDirectory()) {
|
||||
System.out.println("Extension directory is not a directory");
|
||||
logger.info("Extension directory is not a directory");
|
||||
return false;
|
||||
}
|
||||
if (!extensionDir.canRead()) {
|
||||
System.out.println("Extension directory is not readable");
|
||||
logger.info("Extension directory is not readable");
|
||||
return false;
|
||||
}
|
||||
if (!extensionDir.canWrite()) {
|
||||
System.out.println("Extension directory is not writable");
|
||||
logger.info("Extension directory is not writable");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -23,7 +23,7 @@ public class I2PFirefoxProfileUnpacker extends I2PCommonBrowser {
|
||||
public static void main(String[] args) {
|
||||
String profileDirectory = I2PFirefoxProfileBuilder.profileDirectory();
|
||||
if (profileDirectory == null) {
|
||||
System.out.println("No profile directory found");
|
||||
logger.info("No profile directory found");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
pb.environment().put("NO_PROXY", "http://127.0.0.1:7657");
|
||||
return pb;
|
||||
} else {
|
||||
System.out.println("No Browser found.");
|
||||
logger.info("No Browser found.");
|
||||
return new ProcessBuilder(args);
|
||||
}
|
||||
}
|
||||
@ -326,6 +326,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
}
|
||||
|
||||
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
||||
validateUserDir();
|
||||
if (waitForProxy()) {
|
||||
ProcessBuilder pb;
|
||||
if (privateWindow) {
|
||||
@ -334,13 +335,13 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
pb = baseProcessBuilder(url);
|
||||
}
|
||||
try {
|
||||
System.out.println(pb.command());
|
||||
logger.info(pb.command().toString());
|
||||
p = pb.start();
|
||||
System.out.println("I2PBrowser");
|
||||
logger.info("I2PBrowser");
|
||||
sleep(2000);
|
||||
return p;
|
||||
} catch (Throwable e) {
|
||||
System.out.println(e);
|
||||
logger.info(e.toString());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@ -350,16 +351,16 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
if (waitForProxy()) {
|
||||
p = launchAndDetatch(privateWindow, url);
|
||||
try {
|
||||
System.out.println("Waiting for I2PBrowser to close...");
|
||||
logger.info("Waiting for I2PBrowser to close...");
|
||||
int exit = p.waitFor();
|
||||
if (privateWindow) {
|
||||
if (deleteRuntimeDirectory())
|
||||
System.out.println(
|
||||
logger.info(
|
||||
"Private browsing enforced, deleting runtime directory");
|
||||
}
|
||||
System.out.println("I2PBrowser exited with value: " + exit);
|
||||
logger.info("I2PBrowser exited with value: " + exit);
|
||||
} catch (Exception e) {
|
||||
System.out.println("Error: " + e.getMessage());
|
||||
logger.info("Error: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -376,7 +377,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
String[] schemes = {"http", "https"};
|
||||
for (String scheme : schemes) {
|
||||
if (inUrl.startsWith(scheme)) {
|
||||
System.out.println("Valid URL: " + inUrl);
|
||||
logger.info("Valid URL: " + inUrl);
|
||||
return inUrl;
|
||||
}
|
||||
}
|
||||
@ -394,15 +395,16 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
|
||||
//
|
||||
public static void main(String[] args) {
|
||||
validateUserDir();
|
||||
boolean privateBrowsing = false;
|
||||
System.out.println("checking for private browsing");
|
||||
logger.info("checking for private browsing");
|
||||
ArrayList<String> visitURL = new ArrayList<String>();
|
||||
if (args != null) {
|
||||
if (args.length > 0) {
|
||||
for (String arg : args) {
|
||||
if (arg.equals("-private")) {
|
||||
privateBrowsing = true;
|
||||
System.out.println(
|
||||
logger.info(
|
||||
"private browsing is true, profile will be discarded at end of session");
|
||||
}
|
||||
if (!arg.startsWith("-")) {
|
||||
@ -412,7 +414,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
}
|
||||
}
|
||||
}
|
||||
System.out.println("I2PGenericUnsafeBrowser");
|
||||
logger.info("I2PGenericUnsafeBrowser");
|
||||
I2PGenericUnsafeBrowser i2pBrowser = new I2PGenericUnsafeBrowser();
|
||||
i2pBrowser.launch(privateBrowsing,
|
||||
visitURL.toArray(new String[visitURL.size()]));
|
||||
|
18
windows-exe.sh
Executable file
18
windows-exe.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#! /usr/bin/env sh
|
||||
. ./config.sh
|
||||
jpackage \
|
||||
--verbose \
|
||||
--type exe \
|
||||
--win-dir-chooser \
|
||||
--win-help-url "https://geti2p.net" \
|
||||
--win-menu \
|
||||
--win-menu-group "I2P Browser Configurer" \
|
||||
--win-shortcut \
|
||||
--win-shortcut-prompt \
|
||||
--win-per-user-install \
|
||||
--license-file LICENSE.md \
|
||||
--name i2pbrowser \
|
||||
--app-version "$GITHUB_TAG" \
|
||||
--input src/build \
|
||||
--main-jar i2pfirefox.jar \
|
||||
--main-class net.i2p.i2pfirefox.I2PBrowser
|
18
windows-portable.sh
Executable file
18
windows-portable.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#! /usr/bin/env sh
|
||||
. ./config.sh
|
||||
mkdir -p tmp
|
||||
cp -v LICENSE.md tmp/LICENSE.md
|
||||
rm -rf i2pbrowser-portable
|
||||
jpackage \
|
||||
--verbose \
|
||||
--type app-image \
|
||||
--name i2pbrowser-portable \
|
||||
--app-version "$GITHUB_TAG" \
|
||||
--input src/build \
|
||||
--main-jar i2pfirefox.jar \
|
||||
--resource-dir tmp \
|
||||
--main-class net.i2p.i2pfirefox.I2PBrowser
|
||||
rm -rf tmp
|
||||
cp -v LICENSE.md i2pbrowser-portable/LICENSE.md
|
||||
rm i2pbrowser-portable.zip -f
|
||||
zip -r i2pbrowser-portable-${GITHUB_TAG}.zip i2pbrowser-portable
|
36
windows-release.sh
Executable file
36
windows-release.sh
Executable file
@ -0,0 +1,36 @@
|
||||
#! /usr/bin/env sh
|
||||
git pull --all
|
||||
. ../i2p.firefox/config.sh
|
||||
. ./config.sh
|
||||
. "${HOME}/github-release-config.sh"
|
||||
ant distclean jar
|
||||
./windows.sh
|
||||
./windows-exe.sh
|
||||
./windows-portable.sh
|
||||
msisum=$(sha256sum "i2pbrowser-${GITHUB_TAG}.msi")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as a Jpackage inside of an MSI package. ${msisum}" \
|
||||
--name "i2pbrowser.msi" \
|
||||
--file "i2pbrowser-${GITHUB_TAG}.msi" \
|
||||
--replace
|
||||
echo "Uploaded MSI package"
|
||||
exesum=$(sha256sum "i2pbrowser-${GITHUB_TAG}.exe")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as a Jpackage inside of an EXE package. ${exesum}" \
|
||||
--name "i2pbrowser.exe" \
|
||||
--file "i2pbrowser-${GITHUB_TAG}.exe" \
|
||||
--replace
|
||||
echo "Uploaded EXE package"
|
||||
zipsum=$(sha256sum "i2pbrowser-portable-${GITHUB_TAG}.zip")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as a Jpackage inside of an zip to be run from a directory on Windows. ${zipsum}" \
|
||||
--name "i2pbrowser-portable.zip" \
|
||||
--file "i2pbrowser-portable-${GITHUB_TAG}.zip" \
|
||||
--replace
|
||||
echo "Uploaded Windows ZIP package"
|
18
windows.sh
Executable file
18
windows.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#! /usr/bin/env sh
|
||||
. ./config.sh
|
||||
jpackage \
|
||||
--verbose \
|
||||
--type msi \
|
||||
--win-dir-chooser \
|
||||
--win-help-url "https://geti2p.net" \
|
||||
--win-menu \
|
||||
--win-menu-group "I2P Browser Configurer" \
|
||||
--win-shortcut \
|
||||
--win-shortcut-prompt \
|
||||
--win-per-user-install \
|
||||
--license-file LICENSE.md \
|
||||
--name i2pbrowser \
|
||||
--app-version "$GITHUB_TAG" \
|
||||
--input src/build \
|
||||
--main-jar i2pfirefox.jar \
|
||||
--main-class net.i2p.i2pfirefox.I2PBrowser
|
Reference in New Issue
Block a user