Compare commits
179 Commits
Author | SHA1 | Date | |
---|---|---|---|
baec921a37 | |||
fd0bfb8b3d | |||
6ac3a2eb55 | |||
50de466282 | |||
ad61d69be0 | |||
8b1e908bc1 | |||
19fb2f5378 | |||
e0d0a537e7 | |||
b4371dad07 | |||
fbbaffddb9 | |||
7f409bfc1f | |||
bdf9ca5548 | |||
397afe0cb7 | |||
0df0a380bb | |||
10887da2f7 | |||
3da4c9ee1e | |||
c24a0acea1 | |||
41a4e895cc | |||
ba6275008a | |||
f268f3b459 | |||
eb195f7dba | |||
bbd2fdeeec | |||
ecfc447125 | |||
238f3fd839 | |||
c01312a1a5 | |||
b72dd14310 | |||
64aac910a6 | |||
246c27627b | |||
d529f353e4 | |||
89cff0c444 | |||
ff19ea685b | |||
e5f6f335ee | |||
bcfbf90be2 | |||
63922c3880 | |||
35570a119d | |||
b877b6141d | |||
62f23d360d | |||
c78614fea5 | |||
44cc27b968 | |||
274748d08b | |||
b4840b7355 | |||
6072b8552e | |||
7c0070cd15 | |||
8083c6c652 | |||
d9d13fac70 | |||
75049fa08e | |||
113caaa922 | |||
bf1b923750 | |||
286122d492 | |||
9ebc0eae81 | |||
de6cdb7b42 | |||
fdeb86d356 | |||
b25cb2c9b3 | |||
515e52eeb2 | |||
616a839c8b | |||
da5ae47278 | |||
c37df87516 | |||
980c59d031 | |||
b8b5c45126 | |||
affc3e5d40 | |||
f225bbb35e | |||
6ed3aae543 | |||
aa54248eb8 | |||
9a5c2bbe42 | |||
fccccfedfa | |||
3b8baa4db4 | |||
31f1483aa7 | |||
1157eb666e | |||
c300648c22 | |||
267047f687 | |||
1f6c3348a3 | |||
47962f350b | |||
625d13d4a3 | |||
61aa5f4b1f | |||
d1d457a0fe | |||
cac93e0f48 | |||
e1401ea5d0 | |||
8ce0bd3f12 | |||
3c705909ea | |||
5db2119370 | |||
9f309457e6 | |||
1bab795f26 | |||
012e5d6d5b | |||
74f946bbe8 | |||
e606cd68bb | |||
a833bb30bd | |||
be5204bf76 | |||
7332ae013d | |||
7a008be8d7 | |||
4101a344a2 | |||
ff35bc7023 | |||
1249e78543 | |||
af1c32ccc1 | |||
50c2f33f55 | |||
6178b723f5 | |||
c71b30d5c1 | |||
7d66622db2 | |||
fe8616491a | |||
240b54d280 | |||
903da4bb7a | |||
ab936f08eb | |||
61431a027c | |||
8cca947702 | |||
ae888b9a06 | |||
e9c1d78a75 | |||
e930adf49d | |||
496db4a1f5 | |||
4cf2854896 | |||
9e3a834f88 | |||
8fd2874722 | |||
83f49f5b12 | |||
b7bb0b3da1 | |||
7d10266562 | |||
53a1e0ff0f | |||
524896c03f | |||
effe91b6f6 | |||
f0616b82d4 | |||
28153cc7a4 | |||
069f6fb107 | |||
6073584af8 | |||
a4ec776107 | |||
3b2c59f38c | |||
f0d9aad522 | |||
101d814777 | |||
ca5409b8b8 | |||
1397463841 | |||
fcfa56a4c9 | |||
8694c726c5 | |||
c2b4442e51 | |||
ac3b7163d8 | |||
14cd4268f4 | |||
db5f10764b | |||
f2895049f5 | |||
940808d3a2 | |||
1eb1b4c65f | |||
a9a178331e | |||
6a6e688c87 | |||
db3020c389 | |||
3f51a667ab | |||
1635421d0b | |||
fdcd79aee9 | |||
df325a0717 | |||
aa95cab914 | |||
fffba3dd6d | |||
b5a257a57c | |||
7cdf84bb26 | |||
375774687b | |||
d930a201dd | |||
f97f960b90 | |||
047a07a144 | |||
bf0e479172 | |||
9ae73cedc1 | |||
46be5415bb | |||
2e07457135 | |||
408b36c213 | |||
1b77245998 | |||
5c7bbace94 | |||
00fa22cb0d | |||
8d9a4551fc | |||
98bf6889b8 | |||
34b97f706c | |||
5c33d8b86e | |||
20c481b59a | |||
60303ae33c | |||
cdc51127e0 | |||
9698715117 | |||
fed53350cb | |||
09bd2fe4b2 | |||
ccff3df856 | |||
b0da8bd494 | |||
82cb3da2fe | |||
0b9d784810 | |||
cacf832cb6 | |||
a06fe41b25 | |||
8acde05618 | |||
13b5aeb9ee | |||
2035e590c2 | |||
331b8a4864 | |||
7d0a3145f0 |
240
.github/workflows/ant.yml
vendored
Normal file
240
.github/workflows/ant.yml
vendored
Normal file
@ -0,0 +1,240 @@
|
||||
# Mostly copied from i2p.i2p, by way of: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant
|
||||
# zlatinb did it originally, now I maintain it(idk)
|
||||
|
||||
name: Java CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: dependencies
|
||||
run: sudo apt install gettext golang-go git ant
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
- name : Generate override.properties
|
||||
run: |
|
||||
rm -f override.properties
|
||||
echo "build.built-by=GitHub Actions" >> override.properties
|
||||
echo "noExe=true" >> override.properties
|
||||
- name: install crx3
|
||||
run: go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||
- name: install dzip
|
||||
run: go install github.com/delicb/dzip@latest
|
||||
- name: install amo-version
|
||||
run: go install github.com/eyedeekay/amo-version@a4f4119eac453a14d6b6184b656320eb72b5da3c
|
||||
- name: install manifest-json-version
|
||||
run: go install github.com/eyedeekay/manifest-json-version@latest
|
||||
- run: git clone https://github.com/i2p/i2p.i2p ../i2p.i2p
|
||||
- run: cd ../i2p.i2p && ant builddep
|
||||
- name: build with Ant
|
||||
run: |
|
||||
export PATH=$PATH:$(go env GOPATH)/bin
|
||||
ant distclean jpackage debian
|
||||
- name: Upload Firefox Profile Strict
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2p.firefox.base.profile.zip
|
||||
path: ./src/i2p.firefox.base.profile.zip
|
||||
- name: Upload Firefox Profile Usability
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2p.firefox.usability.profile.zip
|
||||
path: ./src/i2p.firefox.usability.profile.zip
|
||||
- name: Upload Chromium Profile Strict
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2p.chromium.base.profile.zip
|
||||
path: ./src/i2p.chromium.base.profile.zip
|
||||
- name: Upload Chromium Profile Usability
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2p.chromium.usability.profile.zip
|
||||
path: ./src/i2p.chromium.usability.profile.zip
|
||||
- name: Upload i2pfirefox.jar
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pfirefox.jar
|
||||
path: ./src/build/i2pfirefox.jar
|
||||
- name: Upload i2pfirefox-plugin.jar
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pfirefox-plugin.jar
|
||||
path: ./src/build/i2pfirefox-plugin.jar
|
||||
- name: Upload i2pbrowser.tar.gz
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pbrowser.tar.gz
|
||||
path: ./i2pbrowser.tar.gz
|
||||
- name: Upload i2pbrowser.deb
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pbrowser_amd64.deb
|
||||
path: ./i2pbrowser_1.0.0_amd64.deb
|
||||
- name: build plugin with Ant
|
||||
run: |
|
||||
export PATH=$PATH:$(go env GOPATH)/bin
|
||||
ant distclean pluginzip
|
||||
- name: Upload i2pfirefox.zip (unsigned plugin)
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pfirefox.zip
|
||||
path: ./plugin.zip
|
||||
|
||||
|
||||
buildrpm:
|
||||
runs-on: ubuntu-latest
|
||||
container: fedora
|
||||
|
||||
steps:
|
||||
- name: dependencies
|
||||
run: sudo yum install -y gettext golang-go git ant jq wget curl gpg xz ca-certificates rpm-build
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
- run: echo [Adoptium] >> /etc/yum.repos.d/adoptium.repo
|
||||
- run: echo name=Adoptium >> /etc/yum.repos.d/adoptium.repo
|
||||
- run: . /etc/os-release; echo baseurl=https://packages.adoptium.net/artifactory/rpm/fedora/$VERSION_ID/x86_64/ >> /etc/yum.repos.d/adoptium.repo
|
||||
- run: echo enabled=1 >> /etc/yum.repos.d/adoptium.repo
|
||||
- run: echo gpgcheck=1 >> /etc/yum.repos.d/adoptium.repo
|
||||
- run: echo gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public >> /etc/yum.repos.d/adoptium.repo
|
||||
- run: dnf clean all && rm -r /var/cache/dnf && dnf upgrade -y && dnf update -y
|
||||
- run: dnf install -y temurin-21-jdk
|
||||
- name: Generate override.properties
|
||||
run: |
|
||||
rm -f override.properties
|
||||
echo "build.built-by=GitHub Actions" >> override.properties
|
||||
echo "noExe=true" >> override.properties
|
||||
- name: install crx3
|
||||
run: go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||
- name: install dzip
|
||||
run: go install github.com/delicb/dzip@latest
|
||||
- name: install amo-version
|
||||
run: go install github.com/eyedeekay/amo-version@a4f4119eac453a14d6b6184b656320eb72b5da3c
|
||||
- name: install manifest-json-version
|
||||
run: go install github.com/eyedeekay/manifest-json-version@latest
|
||||
- run: git clone https://github.com/i2p/i2p.i2p ../i2p.i2p
|
||||
- run: cd ../i2p.i2p && ant builddep
|
||||
- name: build with Ant
|
||||
run: |
|
||||
export PATH=$PATH:$(go env GOPATH)/bin
|
||||
ant distclean jpackage fedora
|
||||
find . -name '*.rpm'
|
||||
- name: Upload i2pbrowser.rpm
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pbrowser.x86_64.rpm
|
||||
path: ./i2pbrowser-1.0.0-1.x86_64.rpm
|
||||
|
||||
|
||||
buildwin:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21'
|
||||
- name : Generate override.properties
|
||||
run: |
|
||||
bash -c 'rm -f override.properties'
|
||||
bash -c 'echo "build.built-by=GitHub Actions" >> override.properties'
|
||||
bash -c 'echo "noExe=true" >> override.properties'
|
||||
- name: install crx3
|
||||
run: go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||
- name: install dzip
|
||||
run: go install github.com/delicb/dzip@latest
|
||||
- name: install amo-version
|
||||
run: go install github.com/eyedeekay/amo-version@a4f4119eac453a14d6b6184b656320eb72b5da3c
|
||||
- name: install manifest-json-version
|
||||
run: go install github.com/eyedeekay/manifest-json-version@latest
|
||||
- run: git clone https://github.com/i2p/i2p.i2p ../i2p.i2p
|
||||
- run: cd ../i2p.i2p && ant builddep
|
||||
- name: build exe with Ant
|
||||
run: |
|
||||
ant windows
|
||||
bash -c 'ls *.exe'
|
||||
- name: Upload Firefox Profile EXE Installer
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pbrowser-1.0.0.exe
|
||||
path: ./i2pbrowser-1.0.0.exe
|
||||
- name: build msi with Ant
|
||||
run: |
|
||||
ant windows-msi
|
||||
bash -c 'ls *.msi'
|
||||
- name: Upload Firefox Profile MSI Installer
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pbrowser-1.0.0.msi
|
||||
path: ./i2pbrowser-1.0.0.msi
|
||||
- name: build portable zip with Ant
|
||||
run: |
|
||||
ant windows-portable
|
||||
bash -c 'ls *.zip'
|
||||
- name: Upload Firefox Profile Portable Zip
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pbrowser-portable.zip
|
||||
path: ./i2pbrowser-portable.zip
|
||||
|
||||
buildmac:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21'
|
||||
- name : Generate override.properties
|
||||
run: |
|
||||
bash -c 'rm -f override.properties'
|
||||
bash -c 'echo "build.built-by=GitHub Actions" >> override.properties'
|
||||
bash -c 'echo "noExe=true" >> override.properties'
|
||||
- name: install crx3
|
||||
run: go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||
- name: install dzip
|
||||
run: go install github.com/delicb/dzip@latest
|
||||
- name: install amo-version
|
||||
run: go install github.com/eyedeekay/amo-version@a4f4119eac453a14d6b6184b656320eb72b5da3c
|
||||
- name: install manifest-json-version
|
||||
run: go install github.com/eyedeekay/manifest-json-version@latest
|
||||
- run: git clone https://github.com/i2p/i2p.i2p ../i2p.i2p
|
||||
- run: cd ../i2p.i2p && ant builddep
|
||||
- name: build dmg with Ant
|
||||
run: |
|
||||
ant macos
|
||||
bash -c 'ls *.dmg'
|
||||
- name: Upload Firefox Profile DMG Installer
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pbrowser-1.0.0.dmg
|
||||
path: ./i2pbrowser-1.0.0.dmg
|
||||
- name: build pkg with Ant
|
||||
run: |
|
||||
ant macos-pkg
|
||||
bash -c 'ls *.pkg'
|
||||
- name: Upload Firefox Profile PKG Installer
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: i2pbrowser-1.0.0.pkg
|
||||
path: ./i2pbrowser-1.0.0.pkg
|
78
.github/workflows/release.yml
vendored
Normal file
78
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
name: Release
|
||||
|
||||
#on: [push]
|
||||
|
||||
on:
|
||||
push:
|
||||
# Sequence of patterns matched against refs/tags
|
||||
tags:
|
||||
- '*.*.*' # Release 1.2.3
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
CHANGES.md
|
||||
sparse-checkout-cone-mode: false
|
||||
- name: sleep 15 minutes
|
||||
run: |
|
||||
echo "sleeping 15 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 14 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 13 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 12 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 11 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 10 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 9 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 8 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 7 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 6 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 5 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 4 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 3 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 2 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
echo "sleeping 1 minutes to wait for artifacts"
|
||||
sleep 1m
|
||||
- name: Download artifacts
|
||||
id: download-artifact
|
||||
uses: dawidd6/action-download-artifact@v3
|
||||
with:
|
||||
skip_unpack: true
|
||||
workflow: ant.yml
|
||||
if_no_artifact_found: fail
|
||||
# remove .zip file extension
|
||||
- run: for f in *.zip; do unzip "$f"; rm "$f"; done
|
||||
- run: echo "" | tee -a CHANGES.md
|
||||
- run: echo "## Checksums" | tee -a CHANGES.md
|
||||
- run: echo "" | tee -a CHANGES.md
|
||||
- run: echo '```' | tee -a CHANGES.md
|
||||
- run: sha256sum * | tee -a CHANGES.md
|
||||
- run: echo '```' | tee -a CHANGES.md
|
||||
- run: echo "" | tee -a CHANGES.md
|
||||
- run: echo '```' | tee -a CHANGES.md
|
||||
- run: file * | tee -a CHANGES.md
|
||||
- run: echo '```' | tee -a CHANGES.md
|
||||
- run: echo "" | tee -a CHANGES.md
|
||||
- name: Upload artifacts
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "*"
|
||||
bodyFile: "CHANGES.md"
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -32,4 +32,8 @@ arkenfoxnum
|
||||
/src/*profile/extensions/*.xpi
|
||||
i2p.plugins.firefox/
|
||||
/icon.png
|
||||
/systray.running
|
||||
/systray.running
|
||||
/.cache
|
||||
/.mozilla
|
||||
/i2p.plugins.firefox.torrent.zip
|
||||
/plugin
|
||||
|
919
CHANGES.html
919
CHANGES.html
@ -8,437 +8,501 @@
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowser.html">
|
||||
docs/I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowserPlugin.html">
|
||||
docs/I2PBrowserPlugin
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromium.html">
|
||||
docs/I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileBuilder.html">
|
||||
docs/I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileChecker.html">
|
||||
docs/I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileUnpacker.html">
|
||||
docs/I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PCommonBrowser.html">
|
||||
docs/I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefox.html">
|
||||
docs/I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileBuilder.html">
|
||||
docs/I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileChecker.html">
|
||||
docs/I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileUnpacker.html">
|
||||
docs/I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PGenericUnsafeBrowser.html">
|
||||
docs/I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PLibreWolf.html">
|
||||
docs/I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/BUILD.html">
|
||||
docs/BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2P-PLUGIN.html">
|
||||
docs/I2P-PLUGIN
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowser.html">
|
||||
docs/I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowserPlugin.html">
|
||||
docs/I2PBrowserPlugin.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromium.html">
|
||||
docs/I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileBuilder.html">
|
||||
docs/I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileChecker.html">
|
||||
docs/I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileUnpacker.html">
|
||||
docs/I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PCommonBrowser.html">
|
||||
docs/I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefox.html">
|
||||
docs/I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileBuilder.html">
|
||||
docs/I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileChecker.html">
|
||||
docs/I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileUnpacker.html">
|
||||
docs/I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PGenericUnsafeBrowser.html">
|
||||
docs/I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PLibreWolf.html">
|
||||
docs/I2PLibreWolf.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/LINUX.html">
|
||||
docs/LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/OSX.html">
|
||||
docs/OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/WINDOWS.html">
|
||||
docs/WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h2>
|
||||
Sun, December 18
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Enable use as a Java I2P Console Plugin
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Tue, November 22
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Fix some minor issues from buildsystem refactor that surfaced during release
|
||||
</li>
|
||||
<li>
|
||||
update to version 1.0.5
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sat, October 22
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add systray for launching browsers from our own GUI
|
||||
</li>
|
||||
<li>
|
||||
Add
|
||||
<code>
|
||||
browser.config
|
||||
</code>
|
||||
file for customizing configuration
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Thu, October 20
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Complete the PWA/App mode
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sat, October 1
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Work around anti-automation measures on OSX by writing final command out to shell script and running that
|
||||
</li>
|
||||
<li>
|
||||
Deterministically generate .zip files
|
||||
</li>
|
||||
<li>
|
||||
Add Tor Browser support to OSX
|
||||
</li>
|
||||
<li>
|
||||
Improve Tor Browser support on Linux
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sun, September 25
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Become version 1.0.0
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Wed, September 15
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add ant targets which auto-update the user.js
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Wed, September 14
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add ant targets which fetch Firefox addons from addons.mozilla.org
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
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>
|
||||
<li>
|
||||
Disable HTTPS only mode in favor of HTTPS-first mode to remove the interstitial on I2P sites.
|
||||
</li>
|
||||
<li>
|
||||
Clearnet sites still choose HTTPS first and will silently deny downgrades but will not warn HTTP-only users.
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Thu, September 1
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add a jpackage target. Add descriptions to release items.
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Wed, August 31
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add unpacked extensions for Chromium profiles
|
||||
</li>
|
||||
<li>
|
||||
Add Chromium flags from Ungoogled-Chromium documentation
|
||||
</li>
|
||||
<li>
|
||||
Add Usability/Strict mode switching for Chromium
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Tue, August 30
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add Usability/Strict mode switching for Firefox
|
||||
</li>
|
||||
<li>
|
||||
Factor out common functions to own class
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sun, August 28
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Adds support for generically configuring a browser with environment variables.
|
||||
</li>
|
||||
<li>
|
||||
Bugfix for MSEdgium support
|
||||
</li>
|
||||
<li>
|
||||
Add detachable version of launchers
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sat, August 27
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Added support for passing a URL as a parameter to the cli’s
|
||||
</li>
|
||||
<li>
|
||||
revised test.sh
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Mon, August 22
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Completes support for auto-selecting
|
||||
<em>
|
||||
either
|
||||
</em>
|
||||
a Firefox or Chrome instance, automatically
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sat, August 21
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Adds support for passing the -private flag to start Firefox with –private-window and Chromium –incognito
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Fri, August 20
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Chromium is now a first-class citizen
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Fri, August 19
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Adds the ability to pass –private-window to Firefoxes and –incognito to Chromiums
|
||||
</li>
|
||||
<li>
|
||||
Switch Tor Browser to the top of the order on Windows to match i2p.firefox behavior
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Mon, August 8
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add Chromium support. You heard me. Chromium support.
|
||||
</li>
|
||||
<li>
|
||||
Update launcher script so it self-discovers the location of the script and uses that to find the bundled jar.
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sun, August 7
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Wrote the Javadoc
|
||||
</li>
|
||||
<li>
|
||||
Embedded the Firefox profile in the Jar so it always unpacks correctly
|
||||
</li>
|
||||
<li>
|
||||
re-added Tor Browser support on Windows
|
||||
</li>
|
||||
<li>
|
||||
Fix false positives in validation routine
|
||||
</li>
|
||||
<li>
|
||||
Make constructors public
|
||||
</li>
|
||||
<li>
|
||||
Wait on processbuilder to close
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Saturday, August 6
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Implemented firefox detection
|
||||
</li>
|
||||
<li>
|
||||
Implemented directory setup
|
||||
</li>
|
||||
<li>
|
||||
Implemented processBuilder generator
|
||||
</li>
|
||||
</ul>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h2>
|
||||
Thu, March 7
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
re-implement Plugin functions with Destop GUI API.
|
||||
</li>
|
||||
<li>
|
||||
Fix several NPE’s
|
||||
</li>
|
||||
<li>
|
||||
Delete redundant code
|
||||
</li>
|
||||
<li>
|
||||
CI/CD improvements, packaging improvements
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<h2>
|
||||
Tue, January 17
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Remove HTTPS everywhere from all profiles
|
||||
</li>
|
||||
<li>
|
||||
Generate a Tor Browser install to go inside Linux jpackage portables
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sat, December 31
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add environment variables which customize behavior of Tor Browser
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sun, December 18
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Enable use as a Java I2P Console Plugin
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Tue, November 22
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Fix some minor issues from buildsystem refactor that surfaced during release
|
||||
</li>
|
||||
<li>
|
||||
update to version 1.0.5
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sat, October 22
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add systray for launching browsers from our own GUI
|
||||
</li>
|
||||
<li>
|
||||
Add
|
||||
<code>
|
||||
browser.config
|
||||
</code>
|
||||
file for customizing configuration
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Thu, October 20
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Complete the PWA/App mode
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sat, October 1
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Work around anti-automation measures on OSX by writing final command out to shell script and running that
|
||||
</li>
|
||||
<li>
|
||||
Deterministically generate .zip files
|
||||
</li>
|
||||
<li>
|
||||
Add Tor Browser support to OSX
|
||||
</li>
|
||||
<li>
|
||||
Improve Tor Browser support on Linux
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sun, September 25
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Become version 1.0.0
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Wed, September 15
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add ant targets which auto-update the user.js
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Wed, September 14
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add ant targets which fetch Firefox addons from addons.mozilla.org
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
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>
|
||||
<li>
|
||||
Disable HTTPS only mode in favor of HTTPS-first mode to remove the interstitial on I2P sites.
|
||||
</li>
|
||||
<li>
|
||||
Clearnet sites still choose HTTPS first and will silently deny downgrades but will not warn HTTP-only users.
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Thu, September 1
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add a jpackage target. Add descriptions to release items.
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Wed, August 31
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add unpacked extensions for Chromium profiles
|
||||
</li>
|
||||
<li>
|
||||
Add Chromium flags from Ungoogled-Chromium documentation
|
||||
</li>
|
||||
<li>
|
||||
Add Usability/Strict mode switching for Chromium
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Tue, August 30
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add Usability/Strict mode switching for Firefox
|
||||
</li>
|
||||
<li>
|
||||
Factor out common functions to own class
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sun, August 28
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Adds support for generically configuring a browser with environment variables.
|
||||
</li>
|
||||
<li>
|
||||
Bugfix for MSEdgium support
|
||||
</li>
|
||||
<li>
|
||||
Add detachable version of launchers
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sat, August 27
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Added support for passing a URL as a parameter to the cli’s
|
||||
</li>
|
||||
<li>
|
||||
revised test.sh
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Mon, August 22
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Completes support for auto-selecting
|
||||
<em>
|
||||
either
|
||||
</em>
|
||||
a Firefox or Chrome instance, automatically
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sat, August 21
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Adds support for passing the -private flag to start Firefox with –private-window and Chromium –incognito
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Fri, August 20
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Chromium is now a first-class citizen
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Fri, August 19
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Adds the ability to pass –private-window to Firefoxes and –incognito to Chromiums
|
||||
</li>
|
||||
<li>
|
||||
Switch Tor Browser to the top of the order on Windows to match i2p.firefox behavior
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Mon, August 8
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Add Chromium support. You heard me. Chromium support.
|
||||
</li>
|
||||
<li>
|
||||
Update launcher script so it self-discovers the location of the script and uses that to find the bundled jar.
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Sun, August 7
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Wrote the Javadoc
|
||||
</li>
|
||||
<li>
|
||||
Embedded the Firefox profile in the Jar so it always unpacks correctly
|
||||
</li>
|
||||
<li>
|
||||
re-added Tor Browser support on Windows
|
||||
</li>
|
||||
<li>
|
||||
Fix false positives in validation routine
|
||||
</li>
|
||||
<li>
|
||||
Make constructors public
|
||||
</li>
|
||||
<li>
|
||||
Wait on processbuilder to close
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
Saturday, August 6
|
||||
</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Implemented firefox detection
|
||||
</li>
|
||||
<li>
|
||||
Implemented directory setup
|
||||
</li>
|
||||
<li>
|
||||
Implemented processBuilder generator
|
||||
</li>
|
||||
</ul>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<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.
|
||||
@ -1281,9 +1345,10 @@ 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>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1292,7 +1357,7 @@ Public License instead of this License.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
68
CHANGES.md
68
CHANGES.md
@ -1,3 +1,29 @@
|
||||
Mon, July 8
|
||||
-----------
|
||||
|
||||
- Fix a bug which caused the profile manager to fail to detect Firefox on some systems
|
||||
- Fix a bug which caused the profile manager to use an unwritable directory on some systems
|
||||
- Fix a bug where if user tried to run it from the home directory, the application would make sure that no firefoxes existed in any subdirectory before running
|
||||
|
||||
Thu, March 7
|
||||
------------
|
||||
|
||||
- re-implement Plugin functions with Destop GUI API.
|
||||
- Fix several NPE's
|
||||
- Delete redundant code
|
||||
- CI/CD improvements, packaging improvements
|
||||
|
||||
Tue, January 17
|
||||
---------------
|
||||
|
||||
- Remove HTTPS everywhere from all profiles
|
||||
- Generate a Tor Browser install to go inside Linux jpackage portables
|
||||
|
||||
Sat, December 31
|
||||
----------------
|
||||
|
||||
- Add environment variables which customize behavior of Tor Browser
|
||||
|
||||
Sun, December 18
|
||||
----------------
|
||||
|
||||
@ -150,4 +176,44 @@ Saturday, August 6
|
||||
|
||||
- Implemented firefox detection
|
||||
- Implemented directory setup
|
||||
- Implemented processBuilder generator
|
||||
- Implemented processBuilder generator
|
||||
## Checksums
|
||||
|
||||
```
|
||||
dc8797cfae23640e27ed7b32a3e6ccec232d24411d64cd9e5b107f8c5384a70a CHANGES.md
|
||||
9a36e15def2a95077027cd0db5f95b345a87a8edfe5e89ea7f83aaa3c94f5ebb i2p.chromium.base.profile.zip
|
||||
97ae21d621f813fd2d91f5921fe1eee95ec0d01782bf93db7b3689f959a9f3b8 i2p.chromium.usability.profile.zip
|
||||
5cd673bb27827e67796b52f26194b7b1504dddf1630ad9d9084ab6a318c6d20a i2p.firefox.base.profile.zip
|
||||
556fc2df825e64b1463e88ec77a5de46bce61516a475e1136110363d5badabd2 i2p.firefox.usability.profile.zip
|
||||
6d3882ac113116b8f40ce07985e779859a68f43f14278b40f1628ea5362acca5 i2pbrowser-1.0.0-1.x86_64.rpm
|
||||
aa7185799b17fd7893818fe7728f3e3cb6b4c8022e033fc0f33f6be81e7b2c2f i2pbrowser-1.0.0.dmg
|
||||
c307fb6556821258520a3d522cf7fbe2031aa421161fcac3e409f5ce20a1637a i2pbrowser-1.0.0.exe
|
||||
5eae853ff7f8b9a05c4c7111147882a54aabd1cf581d21396878055a54a3efc7 i2pbrowser-1.0.0.msi
|
||||
cda1bb2058048a4303bbc65543a0f340ade1c88881ee60704333e767bae10db6 i2pbrowser-1.0.0.pkg
|
||||
183197aa39e891d5763ef5449957b9d9790bdfaaa06760288526f6283b865d97 i2pbrowser-portable.zip
|
||||
f017951df66f2e3d2d57886085a95bd2463cc8f7d793683960da30b842b9b17b i2pbrowser.tar.gz
|
||||
4538172d9753967485566e52f064dbc06a5123971044d973766de28051d53eb1 i2pbrowser_1.0.0_amd64.deb
|
||||
6b5dd3e4ab1bcb3df4a5a758b5469239453c713bb6266bc5eea8b0d9ec7aa413 i2pfirefox-plugin.jar
|
||||
85ce64a3c03c72421947c777a72d42be6fc568c5317070927463accb347b703f i2pfirefox.jar
|
||||
9856613f8229a773ef54a9e7e2a37a6c788755d96393478afce8db7439404e42 plugin.zip
|
||||
```
|
||||
|
||||
```
|
||||
CHANGES.md: ASCII text
|
||||
i2p.chromium.base.profile.zip: Zip archive data, at least v2.0 to extract, compression method=store
|
||||
i2p.chromium.usability.profile.zip: Zip archive data, at least v2.0 to extract, compression method=store
|
||||
i2p.firefox.base.profile.zip: Zip archive data, at least v2.0 to extract, compression method=store
|
||||
i2p.firefox.usability.profile.zip: Zip archive data, at least v2.0 to extract, compression method=store
|
||||
i2pbrowser-1.0.0-1.x86_64.rpm: RPM v3.0 bin i386/x86_64
|
||||
i2pbrowser-1.0.0.dmg: zlib compressed data
|
||||
i2pbrowser-1.0.0.exe: PE32+ executable (GUI) x86-64, for MS Windows
|
||||
i2pbrowser-1.0.0.msi: Composite Document File V2 Document, Little Endian, Os: Windows, Version 6.2, MSI Installer, Code page: 1252, Title: Installation Database, Subject: i2pbrowser, Author: Unknown, Keywords: Installer, Comments: This installer database contains the logic and data required to install i2pbrowser., Template: x64;1033, Revision Number: {6D1D56D8-CB72-4709-BD0B-0FDBF71C6D32}, Create Time/Date: Sun Mar 10 06:04:32 2024, Last Saved Time/Date: Sun Mar 10 06:04:32 2024, Number of Pages: 200, Number of Words: 10, Name of Creating Application: Windows Installer XML Toolset (3.14.0.8606), Security: 2
|
||||
i2pbrowser-1.0.0.pkg: xar archive compressed TOC: 1244, SHA-1 checksum, contains zlib compressed data
|
||||
i2pbrowser-portable.zip: Zip archive data, at least v2.0 to extract, compression method=deflate
|
||||
i2pbrowser.tar.gz: gzip compressed data, from Unix, original size modulo 2^32 725985280
|
||||
i2pbrowser_1.0.0_amd64.deb: Debian binary package (format 2.0), with control.tar.zs, data compression zst
|
||||
i2pfirefox-plugin.jar: Java archive data (JAR)
|
||||
i2pfirefox.jar: Java archive data (JAR)
|
||||
plugin.zip: Zip archive data, at least v1.0 to extract, compression method=store
|
||||
```
|
||||
|
||||
|
1347
LICENSE.html
1347
LICENSE.html
File diff suppressed because it is too large
Load Diff
31
README.md
31
README.md
@ -11,6 +11,28 @@ trackers, and jerks using off-the-shelf techniques and exploits. It is fundament
|
||||
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.**
|
||||
|
||||
**What is this?**
|
||||
|
||||
This is a browser profile manager which pre-configures a browser on the host system, usually
|
||||
Firefox or Tor Browser, for browsing I2P. When acting as an I2P Plugin, it adds GUI elements to
|
||||
I2P for launching the browser in a highly restricted "Safe" mode(the default) or a more permissive
|
||||
"Usability" mode.
|
||||
|
||||
This package expresses functionality that has existed in many places at many times, sometimes
|
||||
bundled with other software. As it has developed here, the border of where the Easy-Install
|
||||
ends and Firefox Profile Manager begins has become clearer. This repository contains the profile
|
||||
manager and it's buildsystem, the whole profile manager, and nothing but the profile manager.
|
||||
It can be used independently of other software, provided an I2P proxy on the host system somewhere.
|
||||
|
||||
However, in practice, most people probably get it alongside an I2P router, through the **I2P Easy-Install Bundle for Windows**.
|
||||
|
||||
**What version numbers should I pay attention to?**
|
||||
When I decided to port the `.bat` launcher scripts from the Easy-Install bundle to Java, this project
|
||||
was created and started using it's own version numbers. This was the practice up until version 1.5.0,
|
||||
which was the last version to use a different version number than I2P itself. Starting in April 2024,
|
||||
`i2p.plugins.firefox` will follow along with the Java I2P major and minor version numbers. Incremental
|
||||
changes may become differing point releases.
|
||||
|
||||
**All packages require a running I2P router.**
|
||||
|
||||
**[Windows users should see the Easy-Install Bundle](https://i2pgit.org/i2p-hackers/i2p.firefox)**
|
||||
@ -47,15 +69,16 @@ directory for Firefox, and the `src/i2p.chromium.*.profile/extensions/*.js/*` di
|
||||
|
||||
For platform specific instructions, see
|
||||
|
||||
- [LINUX.md](LINUX.md)/[LINUX.html](LINUX.html)
|
||||
- [OSX.md](OSX.md)/[OSX.html](OSX.html)
|
||||
- [WINDOWS.md](WINDOWS.md)/[WINDOWS.html](WINDOWS.html)
|
||||
- [I2P-PLUGIN.md](docs/I2P-PLUGIN.md)/[I2P-PLUGIN.html](docs/I2P-PLUGIN.html)
|
||||
- [LINUX.md](docs/LINUX.md)/[LINUX.html](docs/LINUX.html)
|
||||
- [OSX.md](docs/OSX.md)/[OSX.html](docs/OSX.html)
|
||||
- [WINDOWS.md](docs/WINDOWS.md)/[WINDOWS.html](docs/WINDOWS.html)
|
||||
|
||||
#### All platforms, using a zip: `.zip` and a non-bundled Java
|
||||
|
||||
```sh
|
||||
mkdir ~/tmp-i2pfirefox && cd ~/tmp-i2pfirefox
|
||||
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/1.0.6/i2pfirefox.zip
|
||||
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/1.3.0/i2pfirefox.zip
|
||||
unzip i2pfirefox.zip
|
||||
./i2pfirefox.cmd
|
||||
|
||||
|
359
VERSION.html
359
VERSION.html
@ -8,192 +8,214 @@
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowser.html">
|
||||
docs/I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowserPlugin.html">
|
||||
docs/I2PBrowserPlugin
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromium.html">
|
||||
docs/I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileBuilder.html">
|
||||
docs/I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileChecker.html">
|
||||
docs/I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileUnpacker.html">
|
||||
docs/I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PCommonBrowser.html">
|
||||
docs/I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefox.html">
|
||||
docs/I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileBuilder.html">
|
||||
docs/I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileChecker.html">
|
||||
docs/I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileUnpacker.html">
|
||||
docs/I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PGenericUnsafeBrowser.html">
|
||||
docs/I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PLibreWolf.html">
|
||||
docs/I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/BUILD.html">
|
||||
docs/BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2P-PLUGIN.html">
|
||||
docs/I2P-PLUGIN
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowser.html">
|
||||
docs/I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowserPlugin.html">
|
||||
docs/I2PBrowserPlugin.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromium.html">
|
||||
docs/I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileBuilder.html">
|
||||
docs/I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileChecker.html">
|
||||
docs/I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileUnpacker.html">
|
||||
docs/I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PCommonBrowser.html">
|
||||
docs/I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefox.html">
|
||||
docs/I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileBuilder.html">
|
||||
docs/I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileChecker.html">
|
||||
docs/I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileUnpacker.html">
|
||||
docs/I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PGenericUnsafeBrowser.html">
|
||||
docs/I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PLibreWolf.html">
|
||||
docs/I2PLibreWolf.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/LINUX.html">
|
||||
docs/LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/OSX.html">
|
||||
docs/OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/WINDOWS.html">
|
||||
docs/WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Extension Versions
|
||||
</h1>
|
||||
<h2>
|
||||
Firefox
|
||||
</h2>
|
||||
<pre><code class="language-md">i2p-in-private-browsing
|
||||
1.44
|
||||
https://addons.mozilla.org/firefox/downloads/file/4020669/i2p_in_private_browsing-1.44.xpi
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Extension Versions
|
||||
</h1>
|
||||
<h2>
|
||||
Firefox
|
||||
</h2>
|
||||
<pre><code class="language-md">i2p-in-private-browsing
|
||||
1.48
|
||||
https://addons.mozilla.org/firefox/downloads/file/4123613/i2p_in_private_browsing-1.48.xpi
|
||||
noscript
|
||||
11.4.13
|
||||
https://addons.mozilla.org/firefox/downloads/file/4033638/noscript-11.4.13.xpi
|
||||
11.4.29
|
||||
https://addons.mozilla.org/firefox/downloads/file/4206186/noscript-11.4.29.xpi
|
||||
localcdn-fork-of-decentraleyes
|
||||
2.6.43
|
||||
https://addons.mozilla.org/firefox/downloads/file/4041581/localcdn_fork_of_decentraleyes-2.6.43.xpi
|
||||
https-everywhere
|
||||
2021.7.13
|
||||
https://addons.mozilla.org/firefox/downloads/file/3809748/https_everywhere-2021.7.13.xpi
|
||||
2.6.64
|
||||
https://addons.mozilla.org/firefox/downloads/file/4243456/localcdn_fork_of_decentraleyes-2.6.64.xpi
|
||||
onion-in-container-browsing
|
||||
0.82
|
||||
https://addons.mozilla.org/firefox/downloads/file/3904685/onion_in_container_browsing-0.82.xpi
|
||||
javascript-restrictor
|
||||
0.11.1
|
||||
https://addons.mozilla.org/firefox/downloads/file/3950710/javascript_restrictor-0.11.1.xpi
|
||||
0.17
|
||||
https://addons.mozilla.org/firefox/downloads/file/4190089/javascript_restrictor-0.17.xpi
|
||||
ublock-origin
|
||||
1.45.2
|
||||
https://addons.mozilla.org/firefox/downloads/file/4028976/ublock_origin-1.45.2.xpi
|
||||
1.56.0
|
||||
https://addons.mozilla.org/firefox/downloads/file/4237670/ublock_origin-1.56.0.xpi
|
||||
</code></pre>
|
||||
<h2>
|
||||
Chromium
|
||||
</h2>
|
||||
<pre><code class="language-md">__MSG_extensionName__
|
||||
<h2>
|
||||
Chromium
|
||||
</h2>
|
||||
<pre><code class="language-md">__MSG_extensionName__
|
||||
1.29
|
||||
https://clients2.google.com/service/update2/crx
|
||||
NoScript
|
||||
11.4.13
|
||||
https://clients2.google.com/service/update2/crx
|
||||
__MSG_about_ext_name__
|
||||
2022.5.24
|
||||
11.4.18
|
||||
https://clients2.google.com/service/update2/crx
|
||||
LocalCDN
|
||||
2.6.39
|
||||
2.6.65
|
||||
https://clients2.google.com/service/update2/crx
|
||||
uBlock Origin
|
||||
1.45.2
|
||||
1.56.0
|
||||
https://clients2.google.com/service/update2/crx
|
||||
JShelter
|
||||
0.11.1
|
||||
__MSG_extensionName__
|
||||
0.17
|
||||
https://clients2.google.com/service/update2/crx
|
||||
</code></pre>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<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.
|
||||
@ -1036,9 +1058,10 @@ 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>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1047,7 +1070,7 @@ Public License instead of this License.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
36
VERSION.md
36
VERSION.md
@ -6,26 +6,23 @@ Extension Versions
|
||||
|
||||
```md
|
||||
i2p-in-private-browsing
|
||||
1.44
|
||||
https://addons.mozilla.org/firefox/downloads/file/4020669/i2p_in_private_browsing-1.44.xpi
|
||||
1.48
|
||||
https://addons.mozilla.org/firefox/downloads/file/4123613/i2p_in_private_browsing-1.48.xpi
|
||||
noscript
|
||||
11.4.13
|
||||
https://addons.mozilla.org/firefox/downloads/file/4033638/noscript-11.4.13.xpi
|
||||
11.4.29
|
||||
https://addons.mozilla.org/firefox/downloads/file/4206186/noscript-11.4.29.xpi
|
||||
localcdn-fork-of-decentraleyes
|
||||
2.6.43
|
||||
https://addons.mozilla.org/firefox/downloads/file/4041581/localcdn_fork_of_decentraleyes-2.6.43.xpi
|
||||
https-everywhere
|
||||
2021.7.13
|
||||
https://addons.mozilla.org/firefox/downloads/file/3809748/https_everywhere-2021.7.13.xpi
|
||||
2.6.69
|
||||
https://addons.mozilla.org/firefox/downloads/file/4303757/localcdn_fork_of_decentraleyes-2.6.69.xpi
|
||||
onion-in-container-browsing
|
||||
0.82
|
||||
https://addons.mozilla.org/firefox/downloads/file/3904685/onion_in_container_browsing-0.82.xpi
|
||||
javascript-restrictor
|
||||
0.11.1
|
||||
https://addons.mozilla.org/firefox/downloads/file/3950710/javascript_restrictor-0.11.1.xpi
|
||||
0.18.1
|
||||
https://addons.mozilla.org/firefox/downloads/file/4310951/javascript_restrictor-0.18.1.xpi
|
||||
ublock-origin
|
||||
1.45.2
|
||||
https://addons.mozilla.org/firefox/downloads/file/4028976/ublock_origin-1.45.2.xpi
|
||||
1.58.0
|
||||
https://addons.mozilla.org/firefox/downloads/file/4290466/ublock_origin-1.58.0.xpi
|
||||
```
|
||||
|
||||
## Chromium
|
||||
@ -35,18 +32,15 @@ __MSG_extensionName__
|
||||
1.29
|
||||
https://clients2.google.com/service/update2/crx
|
||||
NoScript
|
||||
11.4.13
|
||||
https://clients2.google.com/service/update2/crx
|
||||
__MSG_about_ext_name__
|
||||
2022.5.24
|
||||
11.4.30
|
||||
https://clients2.google.com/service/update2/crx
|
||||
LocalCDN
|
||||
2.6.39
|
||||
2.6.67
|
||||
https://clients2.google.com/service/update2/crx
|
||||
uBlock Origin
|
||||
1.45.2
|
||||
1.58.0
|
||||
https://clients2.google.com/service/update2/crx
|
||||
JShelter
|
||||
0.11.1
|
||||
__MSG_extensionName__
|
||||
0.18.1
|
||||
https://clients2.google.com/service/update2/crx
|
||||
```
|
||||
|
373
build.xml
373
build.xml
@ -175,6 +175,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
|
||||
<target name="jar" depends="versionMd,i2pFirefoxBaseProfileZip,i2pFirefoxUsabilityProfileZip,i2pChromiumBaseProfileZip,i2pChromiumUsabilityProfileZip">
|
||||
<ant dir="src" target="jar" />
|
||||
<ant dir="src" target="pluginjar" />
|
||||
</target>
|
||||
|
||||
<target name="i2pFirefoxBaseProfileZip">
|
||||
@ -327,7 +328,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
|
||||
<target name="buildNum">
|
||||
<buildnumber file="scripts/build.number" />
|
||||
<property name="release.number" value="1.0.6" />
|
||||
<property name="release.number" value="1.4.991" />
|
||||
<exec executable="echo" osfamily="unix">
|
||||
<arg value="${release.number}-${build.number}" />
|
||||
</exec>
|
||||
@ -339,6 +340,44 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="pluginzip" depends="all, buildNum">
|
||||
<delete>
|
||||
<!-- in installer but not update -->
|
||||
<fileset dir="plugin/" includes="i2ptunnel.config i2pfirefox.config eepsite/docroot/index.html eepsite/docroot/robots.txt" />
|
||||
</delete>
|
||||
<delete dir="plugin/eepsite/docroot/torrents/" />
|
||||
<!-- get version number -->
|
||||
|
||||
|
||||
<!-- make the update xpi2p -->
|
||||
<!-- this contains everything except i2ptunnel.config -->
|
||||
<copy file="LICENSE.md" todir="plugin/" overwrite="true" />
|
||||
<copy file="README.md" todir="plugin/" overwrite="true" />
|
||||
<copy file="CHANGES.md" todir="plugin/" overwrite="true" />
|
||||
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
||||
<mkdir dir="plugin/lib/" />
|
||||
<copy file="src/build/i2pfirefox-plugin.jar" todir="plugin/lib/" overwrite="true" />
|
||||
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
||||
<arg value="update-only=true" />
|
||||
</exec>
|
||||
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
||||
<arg value="version=${release.number}-${build.number}" />
|
||||
</exec>
|
||||
|
||||
<!-- make the install xpi2p -->
|
||||
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
||||
<!-- Files in installer but not update. Be sure to Add to delete fileset above and clean target below -->
|
||||
<copy file="scripts/i2ptunnel.config" todir="plugin/" overwrite="true" />
|
||||
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
||||
<arg value="version=${release.number}-${build.number}" />
|
||||
</exec>
|
||||
<exec executable="zip">
|
||||
<arg value="-r"/>
|
||||
<arg value="plugin.zip"/>
|
||||
<arg value="plugin"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="plugin" depends="all, buildNum">
|
||||
<delete>
|
||||
<!-- in installer but not update -->
|
||||
@ -355,7 +394,7 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<copy file="CHANGES.md" todir="plugin/" overwrite="true" />
|
||||
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
||||
<mkdir dir="plugin/lib/" />
|
||||
<copy file="src/build/i2pfirefox.jar" todir="plugin/lib/" overwrite="true" />
|
||||
<copy file="src/build/i2pfirefox-plugin.jar" todir="plugin/lib/" overwrite="true" />
|
||||
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
||||
<arg value="update-only=true" />
|
||||
</exec>
|
||||
@ -368,12 +407,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<equals arg1="${release.password.su3}" arg2=""/>
|
||||
</condition>
|
||||
</fail>
|
||||
<!-- this will fail if no su3 keys exist, as it needs the password twice -->
|
||||
<exec executable="scripts/makeplugin.sh" inputstring="${release.password.su3}" failonerror="true" >
|
||||
<arg value="plugin" />
|
||||
</exec>
|
||||
<move file="i2pfirefox.xpi2p" tofile="i2pfirefox-update.xpi2p" overwrite="true" />
|
||||
<move file="i2pfirefox.su3" tofile="i2pfirefox-update.su3" overwrite="true" />
|
||||
|
||||
<!-- make the install xpi2p -->
|
||||
<copy file="scripts/plugin.config" todir="plugin/" overwrite="true" />
|
||||
@ -382,14 +415,15 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<exec executable="echo" osfamily="unix" failonerror="true" output="plugin/plugin.config" append="true">
|
||||
<arg value="version=${release.number}-${build.number}" />
|
||||
</exec>
|
||||
|
||||
<exec executable="scripts/makeplugin.sh" inputstring="${release.password.su3}" failonerror="true" >
|
||||
<arg value="plugin" />
|
||||
</exec>
|
||||
<mkdir dir="i2p.plugins.firefox" />
|
||||
<copy file="i2pfirefox.su3" todir="i2p.plugins.firefox" overwrite="true" />
|
||||
<copy file="i2pfirefox-update.su3" todir="i2p.plugins.firefox" overwrite="true" />
|
||||
<copy file="i2pfirefox.xpi2p" todir="i2p.plugins.firefox" overwrite="true" />
|
||||
<copy file="i2pfirefox-update.xpi2p" todir="i2p.plugins.firefox" overwrite="true" />
|
||||
</target>
|
||||
<target name="torrent">
|
||||
<delete file="i2p.plugins.firefox.torrent" failonerror="false" />
|
||||
<exec executable="mktorrent" osfamily="unix" failonerror="true">
|
||||
<arg value='--announce=http://mb5ir7klpc2tj6ha3xhmrs3mseqvanauciuoiamx2mmzujvg67uq.b32.i2p/a,http://w7tpbzncbcocrqtwwm3nezhnnsw4ozadvi2hmvzdhrqzfxfum7wa.b32.i2p/a' />
|
||||
@ -399,6 +433,19 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<arg value='--output=i2p.plugins.firefox.torrent' />
|
||||
<arg value='i2p.plugins.firefox' />
|
||||
</exec>
|
||||
<exec executable="zip">
|
||||
<arg value="-r" />
|
||||
<arg value="i2p.plugins.firefox.torrent.zip" />
|
||||
<arg value="i2p.plugins.firefox" />
|
||||
<arg value="i2p.plugins.firefox.torrent" />
|
||||
</exec>
|
||||
<exec executable="unzip">
|
||||
<arg value="i2p.plugins.firefox.torrent.zip" />
|
||||
<arg value="-d" />
|
||||
<arg value="${user.home}/.i2p/i2psnark/" />
|
||||
</exec>
|
||||
</target>
|
||||
<target name="seed" depends="torrent">
|
||||
<exec executable="cp">
|
||||
<arg value="-rv" />
|
||||
<arg value="i2p.plugins.firefox" />
|
||||
@ -406,20 +453,20 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<arg value="${user.home}/.i2p/i2psnark/" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="distclean" depends="clean" />
|
||||
|
||||
<target name="clangFmt">
|
||||
<exec executable="clang-format">
|
||||
<arg value="-i"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PBrowser.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PBrowserPlugin.java"/>
|
||||
<arg value="src/plugin/net/i2p/i2pfirefox/plugin/plugin/I2PBrowserPlugin.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PChromium.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefox.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PLibreWolf.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java"/>
|
||||
<arg value="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java"/>
|
||||
@ -470,34 +517,276 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--type"/> <arg value="app-image"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--app-version"/> <arg value="${release_number}"/>
|
||||
<arg value="--app-version"/> <arg value="${release.number}"/>
|
||||
<arg value="--app-content"/> <arg value="etc/scripts/torbrowser.sh"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
<exec executable="rm" failonerror="true">
|
||||
<exec executable="rm" failonerror="true" osfamily="windows">
|
||||
<arg value="-rf" />
|
||||
<arg value="i2pbrowser.zip" />
|
||||
</exec>
|
||||
<exec executable="dzip" failonerror="true">
|
||||
<exec executable="dzip" failonerror="true" osfamily="windows">
|
||||
<arg value="-O"/>
|
||||
<arg value="i2pbrowser.zip"/>
|
||||
<arg value="i2pbrowser"/>
|
||||
</exec>
|
||||
</exec>
|
||||
<exec executable="rm" failonerror="true" osfamily="unix">
|
||||
<arg value="-rf" />
|
||||
<arg value="i2pbrowser.tar.gz" />
|
||||
</exec>
|
||||
<exec executable="./lib/torbrowser.sh" failonerror="true" osfamily="unix" dir="i2pbrowser">
|
||||
</exec>
|
||||
<exec executable="tar" failonerror="true" osfamily="unix">
|
||||
<arg value="cvzf"/>
|
||||
<arg value="i2pbrowser.tar.gz"/>
|
||||
<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 executable="jpackage" failonerror="true">
|
||||
<arg value="--type"/> <arg value="deb"/>
|
||||
<arg value="--linux-deb-maintainer"/> <arg value="hankhill19580@gmail.com"/>
|
||||
<arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/>
|
||||
<arg value="--linux-app-category"/> <arg value="Network"/>
|
||||
<arg value="--linux-package-deps"/> <arg value="firefox|chromium|brave|firefox-esr|librewolf|icecat"/>
|
||||
<arg value="--linux-shortcut"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="1.0.0"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="debian-release" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--type"/> <arg value="deb"/>
|
||||
<arg value="--linux-deb-maintainer"/> <arg value="hankhill19580@gmail.com"/>
|
||||
<arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/>
|
||||
<arg value="--linux-app-category"/> <arg value="Network"/>
|
||||
<arg value="--linux-package-deps"/> <arg value="firefox|chromium|brave|firefox-esr|librewolf|icecat"/>
|
||||
<arg value="--linux-shortcut"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="${release.number}"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="fedora" depends="jar">
|
||||
<exec executable="bash" failonerror="true">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--type"/> <arg value="rpm"/>
|
||||
<arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/>
|
||||
<arg value="--linux-app-category"/> <arg value="Network"/>
|
||||
<arg value="--linux-package-deps"/> <arg value="firefox|chromium|brave|firefox-esr|librewolf|icecat"/>
|
||||
<arg value="--linux-shortcut"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="1.0.0"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="fedora-release" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--type"/> <arg value="rpm"/>
|
||||
<arg value="--linux-menu-group"/> <arg value="Network;WebBrowser;P2P"/>
|
||||
<arg value="--linux-app-category"/> <arg value="Network"/>
|
||||
<arg value="--linux-package-deps"/> <arg value="firefox|chromium|brave|firefox-esr|librewolf|icecat"/>
|
||||
<arg value="--linux-shortcut"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="${release.number}"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="windows" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="-c"/>
|
||||
<arg value="./fedora.sh"/>
|
||||
<arg value="--type"/> <arg value="exe"/>
|
||||
<arg value="--win-dir-chooser"/>
|
||||
<arg value="--win-help-url"/> <arg value="https://geti2p.net"/>
|
||||
<arg value="--win-menu"/>
|
||||
<arg value="--win-menu-group"/> <arg value="I2P Browser Configurer"/>
|
||||
<arg value="--win-shortcut"/>
|
||||
<arg value="--win-shortcut-prompt"/>
|
||||
<arg value="--win-per-user-install"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="1.0.0"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="windows-release" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="--type"/> <arg value="exe"/>
|
||||
<arg value="--win-dir-chooser"/>
|
||||
<arg value="--win-help-url"/> <arg value="https://geti2p.net"/>
|
||||
<arg value="--win-menu"/>
|
||||
<arg value="--win-menu-group"/> <arg value="I2P Browser Configurer"/>
|
||||
<arg value="--win-shortcut"/>
|
||||
<arg value="--win-shortcut-prompt"/>
|
||||
<arg value="--win-per-user-install"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="${release.number}"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="windows-msi" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="--type"/> <arg value="msi"/>
|
||||
<arg value="--win-dir-chooser"/>
|
||||
<arg value="--win-help-url"/> <arg value="https://geti2p.net"/>
|
||||
<arg value="--win-menu"/>
|
||||
<arg value="--win-menu-group"/> <arg value="I2P Browser Configurer"/>
|
||||
<arg value="--win-shortcut"/>
|
||||
<arg value="--win-shortcut-prompt"/>
|
||||
<arg value="--win-per-user-install"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="1.0.0"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="windows-msi-release" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="--type"/> <arg value="msi"/>
|
||||
<arg value="--win-dir-chooser"/>
|
||||
<arg value="--win-help-url"/> <arg value="https://geti2p.net"/>
|
||||
<arg value="--win-menu"/>
|
||||
<arg value="--win-menu-group"/> <arg value="I2P Browser Configurer"/>
|
||||
<arg value="--win-shortcut"/>
|
||||
<arg value="--win-shortcut-prompt"/>
|
||||
<arg value="--win-per-user-install"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="${release.number}"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="windows-portable" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="--type"/> <arg value="app-image"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser-portable"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="1.0.0"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
<copy file="LICENSE.md" todir="i2pbrowser-portable" overwrite="true"/>
|
||||
<delete file="i2pbrowser-portable.zip"/>
|
||||
<exec executable="powershell" failonerror="false">
|
||||
<arg value="Compress-Archive"/>
|
||||
<arg value="-LiteralPath"/> <arg value="i2pbrowser-portable"/>
|
||||
<arg value="-DestinationPath"/> <arg value="i2pbrowser-portable.zip"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="windows-portable-release" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="--type"/> <arg value="app-image"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser-portable"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="${release.number}"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
<copy file="LICENSE.md" todir="i2pbrowser-portable" overwrite="true"/>
|
||||
<delete file="i2pbrowser-portable.zip"/>
|
||||
<exec executable="powershell" failonerror="false">
|
||||
<arg value="Compress-Archive"/>
|
||||
<arg value="-LiteralPath"/> <arg value="i2pbrowser-portable"/>
|
||||
<arg value="-DestinationPath"/> <arg value="i2pbrowser-portable-${release.number}.zip"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="macos" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="--type"/> <arg value="dmg"/>
|
||||
<arg value="--mac-package-name"/> <arg value="I2P Browser"/>
|
||||
<arg value="--mac-app-category"/> <arg value="Reference"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="1.0.0"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="macos-release" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="--type"/> <arg value="dmg"/>
|
||||
<arg value="--mac-package-name"/> <arg value="I2P Browser"/>
|
||||
<arg value="--mac-app-category"/> <arg value="Reference"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="${release.number}"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="macos-pkg" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="--type"/> <arg value="pkg"/>
|
||||
<arg value="--mac-package-name"/> <arg value="I2P Browser"/>
|
||||
<arg value="--mac-app-category"/> <arg value="Reference"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="1.0.0"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
<target name="macos-pkg-release" depends="jar">
|
||||
<exec executable="jpackage" failonerror="true">
|
||||
<arg value="--verbose"/>
|
||||
<arg value="--type"/> <arg value="pkg"/>
|
||||
<arg value="--mac-package-name"/> <arg value="I2P Browser"/>
|
||||
<arg value="--mac-app-category"/> <arg value="Reference"/>
|
||||
<arg value="--license-file"/> <arg value="LICENSE.md"/>
|
||||
<arg value="--name"/> <arg value="i2pbrowser"/>
|
||||
<arg value="--icon"/> <arg value="src/icon.png"/>
|
||||
<arg value="--app-version"/> <arg value="${release.number}"/>
|
||||
<arg value="--input"/> <arg value="src/build"/>
|
||||
<arg value="--main-jar"/> <arg value="i2pfirefox.jar"/>
|
||||
<arg value="--main-class"/> <arg value="net.i2p.i2pfirefox.I2PBrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
@ -546,11 +835,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<arg value="-n"/>
|
||||
<arg value="localcdn-fork-of-decentraleyes"/>
|
||||
</exec>
|
||||
<exec executable="amo-version" failonerror="true">
|
||||
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
|
||||
<arg value="-n"/>
|
||||
<arg value="https-everywhere"/>
|
||||
</exec>
|
||||
<exec executable="amo-version" failonerror="true">
|
||||
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
|
||||
<arg value="-n"/>
|
||||
@ -596,11 +880,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<arg value="-mf"/>
|
||||
<arg value="src/i2p.chromium.base.profile/extensions/noscript.js/manifest.json"/>
|
||||
</exec>
|
||||
<exec executable="manifest-json-version" failonerror="true">
|
||||
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
|
||||
<arg value="-mf"/>
|
||||
<arg value="src/i2p.chromium.base.profile/extensions/https-everywhere.js/manifest.json"/>
|
||||
</exec>
|
||||
<exec executable="manifest-json-version" failonerror="true">
|
||||
<redirector output="VERSION.md" error="VERSION.md" alwayslog="true" append="true"></redirector>
|
||||
<arg value="-mf"/>
|
||||
@ -638,13 +917,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<arg value="-o" />
|
||||
<arg value="src/i2p.chromium.base.profile/extensions/noscript.js.crx" />
|
||||
</exec>
|
||||
<exec executable="crx3" failonerror="true">
|
||||
<arg value="download"/>
|
||||
<arg value="gcbommkclmclpchllfjekcdonpmejbdp" />
|
||||
<arg value="-u=true"/>
|
||||
<arg value="-o" />
|
||||
<arg value="src/i2p.chromium.base.profile/extensions/https-everywhere.js.crx" />
|
||||
</exec>
|
||||
<exec executable="echo" failonerror="true" append="false" output="src/i2p.chromium.base.profile/version.md">
|
||||
<arg value="Profile Version" />
|
||||
</exec>
|
||||
@ -692,13 +964,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<arg value="-o" />
|
||||
<arg value="src/i2p.chromium.usability.profile/extensions/localcdn.js.crx" />
|
||||
</exec>
|
||||
<exec executable="crx3" failonerror="true">
|
||||
<arg value="download"/>
|
||||
<arg value="gcbommkclmclpchllfjekcdonpmejbdp" />
|
||||
<arg value="-u=true"/>
|
||||
<arg value="-o" />
|
||||
<arg value="src/i2p.chromium.usability.profile/extensions/https-everywhere.js.crx" />
|
||||
</exec>
|
||||
<exec executable="echo" failonerror="true" append="false" output="src/i2p.chromium.usability.profile/version.md">
|
||||
<arg value="Profile Version" />
|
||||
</exec>
|
||||
@ -734,13 +999,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<arg value="-o" />
|
||||
<arg value="src/i2p.firefox.base.profile/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi" />
|
||||
</exec>
|
||||
<exec executable="amo-version" failonerror="true">
|
||||
<arg value="-n"/>
|
||||
<arg value="https-everywhere"/>
|
||||
<arg value="-d"/>
|
||||
<arg value="-o" />
|
||||
<arg value="src/i2p.firefox.base.profile/extensions/https-everywhere-eff@eff.org.xpi" />
|
||||
</exec>
|
||||
<exec executable="echo" failonerror="true" append="false" output="src/i2p.firefox.base.profile/version.md">
|
||||
<arg value="Profile Version" />
|
||||
</exec>
|
||||
@ -777,13 +1035,6 @@ Linux(because the top command will be run and the script will exit).\n\nBoth det
|
||||
<arg value="-o" />
|
||||
<arg value="./src/i2p.firefox.usability.profile/extensions/{b86e4813-687a-43e6-ab65-0bde4ab75758}.xpi" />
|
||||
</exec>
|
||||
<exec executable="amo-version" failonerror="true">
|
||||
<arg value="-n"/>
|
||||
<arg value="https-everywhere"/>
|
||||
<arg value="-d"/>
|
||||
<arg value="-o" />
|
||||
<arg value="src/i2p.firefox.usability.profile/extensions/https-everywhere-eff@eff.org.xpi" />
|
||||
</exec>
|
||||
<exec executable="amo-version" failonerror="true">
|
||||
<arg value="-n"/>
|
||||
<arg value="onion-in-container-browsing"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#! /usr/bin/env sh
|
||||
export GITHUB_USER=eyedeekay
|
||||
export GITHUB_REPO=i2p.plugins.firefox
|
||||
export GITHUB_NAME="Enables use as a console plugin"
|
||||
export GITHUB_NAME="Updates extensions, plugin support temporarily removed(Stay on the old version)"
|
||||
export GITHUB_DESCRIPTION=$(cat CHANGES.md VERSION.md)
|
||||
export GITHUB_TAG=1.0.6
|
||||
export GITHUB_TAG=$(git describe --tags --abbrev=0)
|
24
darklight.css
Normal file
24
darklight.css
Normal file
@ -0,0 +1,24 @@
|
||||
/* edgar darklight CSS file */
|
||||
#checkboxDarkLight:checked + .container {
|
||||
background-color: #202020;
|
||||
filter: invert(100%);
|
||||
}
|
||||
#checkboxDarkLight{
|
||||
appearance: none;
|
||||
width: 80px;
|
||||
height: 40px;
|
||||
background: black;
|
||||
border-radius: 22px;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
#checkboxDarkLight::before{
|
||||
content: '';
|
||||
width: 40px;
|
||||
height: 35px;
|
||||
background-color:white;
|
||||
border-radius: 35px;
|
||||
cursor: pointer;
|
||||
transition: .3s linear;
|
||||
}
|
||||
|
9
debian.sh → debian-torbrowser.sh
Executable file → Normal file
9
debian.sh → debian-torbrowser.sh
Executable file → Normal file
@ -1,7 +1,11 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
# debian build which automatically configures Tor Browser.
|
||||
# I do not think that it has write permission to it's own directory, making Tor Browser updates probably impossible.
|
||||
# Don't use it yet.
|
||||
. ./config.sh
|
||||
ant jpackage
|
||||
jpackage --verbose \
|
||||
--app-image i2pbrowser \
|
||||
--type deb \
|
||||
--linux-deb-maintainer hankhill19580@gmail.com \
|
||||
--linux-menu-group "Network;WebBrowser;P2P" \
|
||||
@ -12,6 +16,3 @@ jpackage --verbose \
|
||||
--name i2pbrowser \
|
||||
--icon src/icon.png \
|
||||
--app-version "$GITHUB_TAG" \
|
||||
--input src/build \
|
||||
--main-jar i2pfirefox.jar \
|
||||
--main-class net.i2p.i2pfirefox.I2PBrowser
|
1458
docs/BUILD.html
Normal file
1458
docs/BUILD.html
Normal file
File diff suppressed because it is too large
Load Diff
236
docs/BUILD.md
Normal file
236
docs/BUILD.md
Normal file
@ -0,0 +1,236 @@
|
||||
# Building
|
||||
|
||||
## Build Dependencies
|
||||
|
||||
**SHORTCUT:** All the build artifacts can be produced by the description in the `.yaml` files in `.github/workflows`.
|
||||
These can be run on Github's infrastructure, or on a local PC using https://github.com/nektos/act.
|
||||
Windows targets will require a Windows PC!
|
||||
Doing things this way deals with all the dependency issues that Windows doesn't really give you a good way to deal with automatically.
|
||||
It also guarantees that the same base container and environment gets used for every build no matter what machine it runs on.
|
||||
I highly recommend you use either Github CI or `nektos/act` for dev builds of this software, as it **automates literally every one of the steps**.
|
||||
CI-based builds follow the `WSL` version of the instructions.
|
||||
|
||||
You will need `ant` and java `java` and for building the jar. You will need
|
||||
`jpackage` for many of the potential build targets. I've been using Java 18
|
||||
on Debian mostly, on Debian and Ubuntu, install the dependencies with:
|
||||
|
||||
```sh
|
||||
sudo apt-get install openjdk-18* ant
|
||||
```
|
||||
|
||||
Some of the targets use scripts written in Go to help generate resources. If
|
||||
you want to update the profiles, you will need them. To install Go on Debian
|
||||
and Ubuntu:
|
||||
|
||||
```sh
|
||||
sudo apt-get install golang-go
|
||||
```
|
||||
|
||||
Add `$HOME/go/bin` to your `$PATH` so `ant` can find Go applications.
|
||||
|
||||
`export PATH=$PATH:$HOME/go/bin`
|
||||
|
||||
Then use Go to download the applications you need and add them to `$HOME/go/bin`.
|
||||
|
||||
If you want to build the Chromium profiles you will need a Go application
|
||||
called `crx3` which is used to interact with the Chrome app store to download
|
||||
and update extensions.
|
||||
|
||||
```sh
|
||||
go install github.com/mediabuyerbot/go-crx3/crx3@latest
|
||||
```
|
||||
|
||||
Another Go application, called `amo-version`, is used to fetch extensions from addons.mozilla.org.
|
||||
Like the Chrome profiles, generating the Firefox profiles requires this application. If you don't
|
||||
want to update the profiles, you don't need it.
|
||||
|
||||
```sh
|
||||
go install github.com/eyedeekay/amo-version@latest
|
||||
```
|
||||
|
||||
One last Go application, called `dzip` is used to generate zip files deterministically for
|
||||
redistribution.
|
||||
|
||||
```sh
|
||||
go install github.com/delicb/dzip@latest
|
||||
```
|
||||
|
||||
If you don't want to use it, you can work around it by creating a file called
|
||||
`dzip` in `/usr/local/bin/dzip` and adding the contents:
|
||||
|
||||
```sh
|
||||
#! /usr/bin/env sh
|
||||
zip -r $@
|
||||
```
|
||||
|
||||
This will break deterministic builds, but for testing it will continue to work. More elaborate
|
||||
scripts or other deterministic zip utilities can be easily substituted in by placing them
|
||||
in the `$PATH` under the name `dzip`.
|
||||
|
||||
For Fedora, use Yum, for Arch use pacman or something else but make sure to tell everyone
|
||||
about it. Once you have that installed, when building, make sure to add `$GOPATH/bin/`
|
||||
to your `$PATH`.
|
||||
|
||||
```sh
|
||||
export PATH=$PATH:$HOME/go/bin
|
||||
```
|
||||
|
||||
Will almost always work.
|
||||
|
||||
## Building
|
||||
|
||||
This is not actually a plugin yet, but it will be soon. The important bit is the jar.
|
||||
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:
|
||||
|
||||
```sh
|
||||
|
||||
ant jar
|
||||
```
|
||||
|
||||
To build just the jar. You'll know it worked if you can:
|
||||
|
||||
```sh
|
||||
|
||||
java -cp ./src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox
|
||||
```
|
||||
|
||||
and a new Firefox instance comes up with a fresh profile, ready-to-use for I2P browsing.
|
||||
|
||||
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:
|
||||
|
||||
```java
|
||||
|
||||
// Firefox Example
|
||||
if (i2pIsRunning()) {
|
||||
logger.warning("I2P is already running");
|
||||
System.out.println("I2PFirefox");
|
||||
I2PFirefox i2pFirefox = new I2PFirefox();
|
||||
i2pFirefox.launch();
|
||||
}
|
||||
```
|
||||
|
||||
```java
|
||||
|
||||
// Chromium Example
|
||||
if (i2pIsRunning()) {
|
||||
logger.warning("I2P is already running");
|
||||
System.out.println("I2PChromium");
|
||||
I2PChromium i2pChromium = new I2PChromium();
|
||||
i2pChromium.launch();
|
||||
}
|
||||
```
|
||||
|
||||
```java
|
||||
|
||||
// Auto-Select Example, chooses Firefox first, then Chromium
|
||||
if (i2pIsRunning()) {
|
||||
logger.warning("I2P is already running");
|
||||
System.out.println("I2PBrowser");
|
||||
I2PBrowser i2pBrowser = new I2PBrowser();
|
||||
/*
|
||||
* toggle chromium to the top of the order by doing:
|
||||
I2PBrowser.chromiumFirst = true;
|
||||
*
|
||||
*/
|
||||
i2pBrowser.launch(privateBrowsing);
|
||||
}
|
||||
```
|
||||
|
||||
to add a browser management tool to it.
|
||||
|
||||
## Browser Discovery Methods
|
||||
|
||||
This tool looks for browsers on the host system, creates a workspace to use for I2P
|
||||
purposes, and launches the browser inside of that workspace. The details of the
|
||||
workspace vary from browser to browser but roughly corresponds to a browser profile.
|
||||
In order to be successful this tool uses 3 main types of browser discovery methods,
|
||||
in this order:
|
||||
|
||||
1. "Local" discovery, where a browser is in a subdirectory of the directory where you
|
||||
ran the launcher. This will only happen if the user unpacked a portable browser into
|
||||
the same directory where they ran the launcher.
|
||||
2. "Path-Based" discovery, where it scans common browser installation directories
|
||||
until it finds one which it can use. On Unix, it simply scans the directories on the
|
||||
`PATH` for a browser it knows about. On Windows, default paths to browser install
|
||||
directories are hard-coded and included in the binary. This is what usually happens.
|
||||
3. "System-Based" discovery, where it defers to the host system to make a choice
|
||||
about the browser and counts on browser vendors to honor the system proxy environment
|
||||
variables. This is a catch-all solution which works with most browsers, but does
|
||||
not apply any customizations.
|
||||
|
||||
There is a little subtlety here though.
|
||||
|
||||
- The path to Edgium on Windows will **always** resolve during path-based discovery,
|
||||
resulting in a positive test for Chromium when launching the browser in auto-select
|
||||
mode. So Windows will never reach stage 3 unless expressly forced to. If Firefox or
|
||||
a variant is installed, it will be chosen before Edgium unless directed otherwise.
|
||||
- Even though it will launch you into Edgium if it has no other choice, I recommend
|
||||
you do not use it. Edgium will in a constant, incessant way try to induce you to
|
||||
share your behavior with Microsoft. If you try to resist this, it negatively affects
|
||||
the performance of the browser. Google also does this with Chrome, ant this negatively
|
||||
affects Chrome performance too, but less than with Edgium. TL:DR Edgium sucks and is
|
||||
pointless and terrible. Literally any other browser would be better.
|
||||
- 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. To set this up automatically, you
|
||||
can `cd` to the `I2P` directory where you unpacked the `.tar.gz` file, and run the
|
||||
`./lib/torbrowser.sh` script from there.
|
||||
- I really only test Phase 3 with Dillo and Edgium. **YMMV.**
|
||||
|
||||
## Usability vs Strict
|
||||
|
||||
This is basically a profile-management tool geared toward minimizing the
|
||||
differences between browser users which are passively discernible while
|
||||
they are browsing I2P. It assumes that they are part of a highly fragmented
|
||||
browsing environment where they are already unique, and therefore consolidation
|
||||
on configuration is a goal. However, this goal sometimes also conflicts with
|
||||
usability. To allow users a safe set of choices, we offer "Coarse" configuration
|
||||
in 2 modes. We recommend that you do not deviate from these configurations if
|
||||
you have browser application fingerprinting as a concern.
|
||||
|
||||
### Usability Mode
|
||||
|
||||
TODO: description
|
||||
|
||||
Pros: Allows a restricted subset of Javascript
|
||||
Pros: Less likely to try and reach the clearnet
|
||||
|
||||
Cons: Looks very different from Tor Browser
|
||||
Cons: Plugin updates can create temporary uniqueness
|
||||
|
||||
#### Usability Extension Set
|
||||
|
||||
- **I2P In Private Browsing**
|
||||
- **uMatrix**
|
||||
- **jsRestrictor**
|
||||
- **LocalCDN**
|
||||
- **Onion in Container Tabs**
|
||||
- **HTTPS EveryWhere** in some configurations
|
||||
|
||||
### Usability user.js characteristics
|
||||
|
||||
TODO: Summarize differences
|
||||
|
||||
### Strict Mode
|
||||
|
||||
TODO: description
|
||||
|
||||
Pros: Does not allow Javascript by default
|
||||
Pros: Looks a lot like Tor Browser especially if you're using Tor Browser
|
||||
|
||||
Cons: More work to use
|
||||
Cons: Temporary uniqueness can be created by enabling Javascript for specific sites
|
||||
Cons: More likely to try and reach the clearnet
|
||||
|
||||
#### Strict Extension Set
|
||||
|
||||
- **NoScript**
|
||||
- **I2P In Private Browsing**
|
||||
- **HTTPS EveryWhere** in some configurations
|
||||
|
||||
#### Strict user.js characteristics
|
||||
|
||||
TODO: Summarize differences
|
1106
docs/I2P-PLUGIN.html
Normal file
1106
docs/I2P-PLUGIN.html
Normal file
File diff suppressed because it is too large
Load Diff
23
docs/I2P-PLUGIN.md
Normal file
23
docs/I2P-PLUGIN.md
Normal file
@ -0,0 +1,23 @@
|
||||
### I2P Plugin Support
|
||||
|
||||
Since version `1.5.0`, this package has had basic plugin support in Java I2P.
|
||||
This means it can be integrated with your I2P installation or portable package, with
|
||||
the benefit of reduced size requirements, automatic updates, and integration with the I2P UI.
|
||||
Installation in this way is **platform-independent**, the same package is used for Linux, Windows, and OSX.
|
||||
In this type of installation, the profile manager install is entirely managed by I2P.
|
||||
Uninstalling I2P will also uninstall the profile manager.
|
||||
|
||||
#### Downloading the Plugin
|
||||
|
||||
Right now, the best way to download the plugin is from the Github releases page.
|
||||
First, download the `i2pfirefox.su3` file from [the latest release](https://github.com/eyedeekay/i2p.plugins.firefox/releases).
|
||||
Versions ending in `0` will always have a plugin release, starting with `1.5.0`.
|
||||
Dev builds will not have a reliable plugin release.
|
||||
|
||||
#### Install the plugin "From File"
|
||||
|
||||
Once you have downloaded the `i2pfirefox.su3` file, open [`http://127.0.0.1:7657/configplugins`](http://127.0.0.1:7657/configplugins) and scroll to the bottom of the page.
|
||||
Under the heading **Installation from File**, click the "Browse" button.
|
||||
In the window that appears, select the `i2pfirefox.su3` file you just downloaded.
|
||||
Finally, click the "Install plugin from File" button.
|
||||
The plugin will install and start shortly.
|
2358
docs/I2PBrowser.html
2358
docs/I2PBrowser.html
File diff suppressed because it is too large
Load Diff
@ -7,7 +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
|
||||
Parent class: I2PGenericUnsafeBrowser
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
@ -197,14 +197,12 @@ package: net.i2p.i2pfirefox
|
||||
>
|
||||
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
|
||||
#### boolean useSystray [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
|
||||
|
||||
>
|
||||
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
|
||||
## Methods
|
||||
|
||||
@ -255,7 +253,7 @@ package: net.i2p.i2pfirefox
|
||||
| browserPath | String | |
|
||||
|
||||
|
||||
### hasChromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L131)
|
||||
### hasChromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L129)
|
||||
|
||||
+ Description: Return true if there is a Chromium available
|
||||
+ Access: public
|
||||
@ -264,7 +262,7 @@ package: net.i2p.i2pfirefox
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### hasFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L148)
|
||||
### hasFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L146)
|
||||
|
||||
+ Description: Return true if there is a Firefox variant available
|
||||
+ Access: public
|
||||
@ -273,7 +271,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L168)
|
||||
### 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
|
||||
@ -285,7 +283,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L213)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L211)
|
||||
|
||||
+ 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
|
||||
@ -296,7 +294,7 @@ This method has no parameters.
|
||||
| privateWindow | boolean | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L227)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L225)
|
||||
|
||||
+ 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
|
||||
@ -305,11 +303,10 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L229)
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L227)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -317,7 +314,7 @@ This method has no parameters.
|
||||
| inUrl | String | |
|
||||
|
||||
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L239)
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L237)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -329,7 +326,7 @@ This method has no parameters.
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
### parseArgs [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L243)
|
||||
### parseArgs [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L241)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -340,7 +337,7 @@ This method has no parameters.
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
### startup [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L290)
|
||||
### startup [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L288)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -351,27 +348,25 @@ This method has no parameters.
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
### createSystrayRunningFile [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L309)
|
||||
### createSystrayRunningFile [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L307)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### systrayRunningExternally [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L325)
|
||||
### systrayRunningExternally [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L323)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### initTray [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L336)
|
||||
### initTray [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L334)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -380,7 +375,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### initMenu [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L347)
|
||||
### initMenu [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L345)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -389,7 +384,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### initIconFile [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L352)
|
||||
### initIconFile [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L350)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -398,7 +393,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### initIcon [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L366)
|
||||
### initIcon [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L364)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -407,7 +402,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### startupSystray [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L379)
|
||||
### startupSystray [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L377)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
@ -416,7 +411,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### shutdownSystray [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L406)
|
||||
### shutdownSystray [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L404)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
@ -425,7 +420,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### systray [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L415)
|
||||
### systray [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L413)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
|
@ -37,6 +37,11 @@
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="BUILD.html">
|
||||
BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
@ -102,6 +107,21 @@
|
||||
I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LINUX.html">
|
||||
LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="OSX.html">
|
||||
OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="WINDOWS.html">
|
||||
WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
@ -281,9 +301,6 @@
|
||||
Access: private
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: File
|
||||
<br />
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@ Description:
|
||||
> I2PChromium.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
Author: idk
|
||||
Parent class: I2PCommonBrowser
|
||||
Parent class: I2PChromiumProfileUnpacker
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
@ -52,7 +52,6 @@ package: net.i2p.i2pfirefox
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: void
|
||||
|
||||
This method has no parameters.
|
||||
@ -62,7 +61,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -72,7 +70,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -82,7 +79,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -92,7 +88,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -102,7 +97,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -112,7 +106,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -122,7 +115,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -132,7 +124,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -142,7 +133,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -152,7 +142,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -162,7 +151,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -172,7 +160,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -278,7 +265,7 @@ This method has no parameters.
|
||||
| args | String[] | the extended arguments to pass to the Chromium binary. |
|
||||
|
||||
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L666)
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L662)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -290,7 +277,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L673)
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L669)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -302,20 +289,20 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L725)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||
+ Access: public
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| privateWindow | boolean | |
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L731)
|
||||
|
||||
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches Chromium with the profile directory.
|
||||
+ Access: public
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| privateWindow | boolean | |
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L737)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ return: void
|
||||
@ -326,7 +313,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L762)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L756)
|
||||
|
||||
+ 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
|
||||
@ -337,7 +324,7 @@ This method has no parameters.
|
||||
| privateWindow | boolean | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L771)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L765)
|
||||
|
||||
+ 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
|
||||
@ -346,11 +333,10 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L773)
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L767)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -358,7 +344,7 @@ This method has no parameters.
|
||||
| inUrl | String | |
|
||||
|
||||
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L783)
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L777)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
|
@ -8,404 +8,391 @@
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.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=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="BUILD.html">
|
||||
BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2P-PLUGIN.html">
|
||||
I2P-PLUGIN
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin.html
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LINUX.html">
|
||||
LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="OSX.html">
|
||||
OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="WINDOWS.html">
|
||||
WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PChromiumProfileBuilder
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java">
|
||||
[src]
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<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>
|
||||
</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>
|
||||
<p>
|
||||
Author: idk
|
||||
<br />
|
||||
<summary>
|
||||
Parent class: I2PChromiumProfileChecker
|
||||
<br />
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br />
|
||||
Show dependencies
|
||||
<summary>
|
||||
<br />
|
||||
Show dependencies
|
||||
<br />
|
||||
</summary>
|
||||
<br />
|
||||
</summary>
|
||||
<br />
|
||||
<ul>
|
||||
<ul>
|
||||
<br />
|
||||
<li>
|
||||
java.io.File
|
||||
</li>
|
||||
</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>
|
||||
| Name | Type | Description |
|
||||
<br />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| base | String | |
|
||||
</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: public
|
||||
<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>
|
||||
</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>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
Access: public
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<h2>
|
||||
Methods
|
||||
</h2>
|
||||
<h3>
|
||||
baseProfileDir
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L26">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br />
|
||||
</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#L50">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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#L74">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the runtime directory creating it if create=true
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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#L85">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the correct runtime directory
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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#L100">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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#L111">
|
||||
[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>
|
||||
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)
|
||||
</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)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1248,9 +1235,10 @@ 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>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1259,7 +1247,7 @@ Public License instead of this License.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@ Description:
|
||||
> I2PChromiumProfileBuilder.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileBuilder is a that builds a profile directory which contains the I2P browser profile for the Chromium browser family. It manages the base profile directory and copies it's contents to the active profile directory which is actually used by Chromium.
|
||||
|
||||
Author: idk
|
||||
Parent class: I2PCommonBrowser
|
||||
Parent class: I2PChromiumProfileChecker
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
@ -28,27 +28,13 @@ package: net.i2p.i2pfirefox
|
||||
>
|
||||
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
|
||||
## Methods
|
||||
|
||||
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L31)
|
||||
|
||||
+ Description: get the profile directory creating it if necessary
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| base | String | |
|
||||
|
||||
|
||||
### baseProfileDir [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L35)
|
||||
### baseProfileDir [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L26)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -57,11 +43,10 @@ package: net.i2p.i2pfirefox
|
||||
| mode | String | |
|
||||
|
||||
|
||||
### baseProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L59)
|
||||
### baseProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L50)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -69,11 +54,10 @@ package: net.i2p.i2pfirefox
|
||||
| mode | String | |
|
||||
|
||||
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L83)
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L74)
|
||||
|
||||
+ Description: get the runtime directory creating it if create=true
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: the runtime directory or null if it could not be created
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -81,31 +65,28 @@ package: net.i2p.i2pfirefox
|
||||
| create | boolean | if true create the runtime directory if it does not exist |
|
||||
|
||||
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L94)
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L85)
|
||||
|
||||
+ Description: get the correct runtime directory
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: the runtime directory or null if it could not be created or found
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L109)
|
||||
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L100)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### copyBaseProfiletoProfile [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L120)
|
||||
### copyBaseProfiletoProfile [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileBuilder.java#L111)
|
||||
|
||||
+ Description: Copy the inert base profile directory to the runtime profile directory
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
This method has no parameters.
|
||||
|
@ -8,308 +8,364 @@
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.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=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="BUILD.html">
|
||||
BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2P-PLUGIN.html">
|
||||
I2P-PLUGIN
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin.html
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LINUX.html">
|
||||
LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="OSX.html">
|
||||
OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="WINDOWS.html">
|
||||
WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PChromiumProfileChecker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java">
|
||||
[src]
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<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>
|
||||
</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>
|
||||
<p>
|
||||
Author: idk
|
||||
<br />
|
||||
<summary>
|
||||
Parent class: I2PCommonBrowser
|
||||
<br />
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br />
|
||||
Show dependencies
|
||||
<summary>
|
||||
<br />
|
||||
Show dependencies
|
||||
<br />
|
||||
</summary>
|
||||
<br />
|
||||
</summary>
|
||||
<br />
|
||||
<ul>
|
||||
<ul>
|
||||
<br />
|
||||
<li>
|
||||
java.io.File
|
||||
</li>
|
||||
</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#L51">
|
||||
[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#L82">
|
||||
[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#L109">
|
||||
[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>
|
||||
</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>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
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>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
profileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L50">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the profile directory creating it if necessary
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| base | String | |
|
||||
</p>
|
||||
<h3>
|
||||
validateProfileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L61">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the profile directory is valid.
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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#L92">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the file is valid.
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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#L119">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the extension directory is valid.
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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)
|
||||
</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)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1152,9 +1208,10 @@ 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>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1163,7 +1220,7 @@ Public License instead of this License.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
@ -37,11 +37,21 @@ package: net.i2p.i2pfirefox
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L51)
|
||||
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L50)
|
||||
|
||||
+ Description: get the profile directory creating it if necessary
|
||||
+ Access: public
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| base | String | |
|
||||
|
||||
|
||||
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L61)
|
||||
|
||||
+ Description: Return true if the profile directory is valid.
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: true if the profile directory is valid false otherwise
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -49,11 +59,10 @@ package: net.i2p.i2pfirefox
|
||||
| profileDirectory | String | the profile directory to check |
|
||||
|
||||
|
||||
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L82)
|
||||
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L92)
|
||||
|
||||
+ Description: Return true if the file is valid.
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: true if the file is valid false otherwise
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -61,11 +70,10 @@ package: net.i2p.i2pfirefox
|
||||
| file | String | the file to check |
|
||||
|
||||
|
||||
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L109)
|
||||
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PChromiumProfileChecker.java#L119)
|
||||
|
||||
+ Description: Return true if the extension directory is valid.
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: true if the extension directory is valid false otherwise
|
||||
|
||||
| Name | Type | Description |
|
||||
|
@ -8,244 +8,282 @@
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.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=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="BUILD.html">
|
||||
BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2P-PLUGIN.html">
|
||||
I2P-PLUGIN
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin.html
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LINUX.html">
|
||||
LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="OSX.html">
|
||||
OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="WINDOWS.html">
|
||||
WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PChromiumProfileUnpacker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java">
|
||||
[src]
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<h1>
|
||||
Class I2PChromiumProfileUnpacker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</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>
|
||||
Access: public
|
||||
<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
|
||||
> 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 />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: void
|
||||
Parent class: I2PChromiumProfileBuilder
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
unpackProfile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L38">
|
||||
[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>
|
||||
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>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: void
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
unpackProfile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PChromiumProfileUnpacker.java#L38">
|
||||
[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)
|
||||
</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)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1088,9 +1126,10 @@ 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>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1099,7 +1138,7 @@ Public License instead of this License.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@ Description:
|
||||
> I2PChromiumProfileUnpacker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PChromiumProfileUnpacker is a that unpacks the Chromium profile zip file into the Chromium base profile directory. This is not used by the Chromium browser instance it's unpacked to the disk to be copied to the active profile directory.
|
||||
|
||||
Author: idk
|
||||
Parent class: I2PCommonBrowser
|
||||
Parent class: I2PChromiumProfileBuilder
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -42,36 +42,72 @@ package: net.i2p.i2pfirefox
|
||||
>
|
||||
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
|
||||
#### Logger logger [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L)
|
||||
|
||||
>
|
||||
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
|
||||
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L39)
|
||||
#### FileHandler fh [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L)
|
||||
|
||||
> static FileHandler fh;
|
||||
>
|
||||
|
||||
+ Access: private
|
||||
+ Modifiers: final
|
||||
|
||||
#### [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L40)
|
||||
|
||||
> // private final int DEFAULT_TIMEOUT = 200;
|
||||
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
|
||||
## Methods
|
||||
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L180)
|
||||
### loadPropertiesFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L58)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| props | File | |
|
||||
|
||||
|
||||
### validateUserDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L68)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ return: void
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### getOperatingSystem [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L113)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ return: String
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### isWindows [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L127)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
+ return: boolean
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### isOSX [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L139)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
+ return: boolean
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L179)
|
||||
|
||||
+ Description: get the runtime directory creating it if create=true
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: the runtime directory or null if it could not be created
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -80,11 +116,10 @@ package: net.i2p.i2pfirefox
|
||||
| override | String | |
|
||||
|
||||
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L197)
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L196)
|
||||
|
||||
+ Description: get the correct runtime directory
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: the runtime directory or null if it could not be created or found
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -92,11 +127,10 @@ package: net.i2p.i2pfirefox
|
||||
| override | String | |
|
||||
|
||||
|
||||
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L245)
|
||||
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L244)
|
||||
|
||||
+ Description: get the profile directory creating it if necessary
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: the profile directory or null if it could not be created
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -107,11 +141,10 @@ package: net.i2p.i2pfirefox
|
||||
| app | boolean | |
|
||||
|
||||
|
||||
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L258)
|
||||
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L257)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -122,7 +155,7 @@ package: net.i2p.i2pfirefox
|
||||
| app | boolean | |
|
||||
|
||||
|
||||
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L269)
|
||||
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L268)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
@ -135,11 +168,10 @@ package: net.i2p.i2pfirefox
|
||||
| base | String | |
|
||||
|
||||
|
||||
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L315)
|
||||
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L313)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -150,11 +182,10 @@ package: net.i2p.i2pfirefox
|
||||
| base | String | |
|
||||
|
||||
|
||||
### copyDirectoryCompatibilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L330)
|
||||
### copyDirectoryCompatibilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L328)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -165,11 +196,10 @@ package: net.i2p.i2pfirefox
|
||||
| base | String | |
|
||||
|
||||
|
||||
### copy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L339)
|
||||
### copy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L336)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -178,11 +208,10 @@ package: net.i2p.i2pfirefox
|
||||
| target | OutputStream | |
|
||||
|
||||
|
||||
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L348)
|
||||
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L345)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -191,11 +220,10 @@ package: net.i2p.i2pfirefox
|
||||
| destinationFile | File | |
|
||||
|
||||
|
||||
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L359)
|
||||
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L356)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -203,7 +231,7 @@ package: net.i2p.i2pfirefox
|
||||
| profileDirectory | String | |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L385)
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L382)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
|
||||
+ Access: public
|
||||
@ -212,7 +240,7 @@ package: net.i2p.i2pfirefox
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L395)
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L392)
|
||||
|
||||
+ Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
|
||||
+ Access: public
|
||||
@ -223,7 +251,7 @@ This method has no parameters.
|
||||
| timeout | int | the number of seconds to wait for the proxy to be ready. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L407)
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L404)
|
||||
|
||||
+ 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
|
||||
@ -235,7 +263,7 @@ This method has no parameters.
|
||||
| port | int | the port to wait for the proxy to be ready on. |
|
||||
|
||||
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L422)
|
||||
### waitForProxy [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.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. If the timeout is zero or less the check is disabled and always returns true.
|
||||
+ Access: public
|
||||
@ -248,7 +276,7 @@ This method has no parameters.
|
||||
| host | String | the host to wait for the proxy to be ready on. |
|
||||
|
||||
|
||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L440)
|
||||
### checkifPortIsOccupied [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L437)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -260,7 +288,7 @@ This method has no parameters.
|
||||
| host | String | |
|
||||
|
||||
|
||||
### setProxyTimeoutTime [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L455)
|
||||
### setProxyTimeoutTime [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L452)
|
||||
|
||||
+ Description: Alters the proxy timeout to customized value time in seconds. May be zero.
|
||||
+ Access: public
|
||||
@ -271,11 +299,10 @@ This method has no parameters.
|
||||
| time | int | |
|
||||
|
||||
|
||||
### join [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L460)
|
||||
### join [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L457)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -283,11 +310,10 @@ This method has no parameters.
|
||||
| arr | String[] | |
|
||||
|
||||
|
||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L469)
|
||||
### sleep [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L466)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -295,11 +321,10 @@ This method has no parameters.
|
||||
| millis | int | |
|
||||
|
||||
|
||||
### searchFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L477)
|
||||
### searchFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L474)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: File
|
||||
|
||||
| Name | Type | Description |
|
||||
|
2273
docs/I2PFirefox.html
2273
docs/I2PFirefox.html
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@ Description:
|
||||
> I2PFirefox.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
Author: idk
|
||||
Parent class: I2PCommonBrowser
|
||||
Parent class: I2PFirefoxProfileUnpacker
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
@ -52,7 +52,6 @@ package: net.i2p.i2pfirefox
|
||||
>
|
||||
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
|
||||
## Methods
|
||||
|
||||
@ -60,7 +59,6 @@ package: net.i2p.i2pfirefox
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
This method has no parameters.
|
||||
@ -70,7 +68,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: void
|
||||
|
||||
This method has no parameters.
|
||||
@ -80,7 +77,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -90,7 +86,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -100,7 +95,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -110,7 +104,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -120,7 +113,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -130,7 +122,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -140,7 +131,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -150,7 +140,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -160,7 +149,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -170,7 +158,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
@ -180,23 +167,21 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L335)
|
||||
### FIREFOX_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L337)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String[]
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L356)
|
||||
### onlyValidFirefoxes [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L358)
|
||||
|
||||
+ 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
|
||||
@ -205,7 +190,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L377)
|
||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L379)
|
||||
|
||||
+ Description: Return the best available Firefox from the list of Firefoxes we have.
|
||||
+ Access: public
|
||||
@ -214,7 +199,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L407)
|
||||
### topFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L409)
|
||||
|
||||
+ 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
|
||||
@ -225,7 +210,7 @@ This method has no parameters.
|
||||
| overrideFirefox | String | |
|
||||
|
||||
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L425)
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L427)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
||||
+ Access: public
|
||||
@ -234,7 +219,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L437)
|
||||
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L439)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile.
|
||||
+ Access: public
|
||||
@ -245,7 +230,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#L451)
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L453)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||
+ Access: public
|
||||
@ -254,7 +239,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L464)
|
||||
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L466)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||
+ Access: public
|
||||
@ -265,7 +250,7 @@ This method has no parameters.
|
||||
| args | String[] | the arguments to pass to the Firefox binary |
|
||||
|
||||
|
||||
### appProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L487)
|
||||
### appProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L489)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||
+ Access: public
|
||||
@ -274,7 +259,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### appProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L500)
|
||||
### appProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L502)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --private-window flag to open a window.
|
||||
+ Access: public
|
||||
@ -285,7 +270,7 @@ This method has no parameters.
|
||||
| args | String[] | the arguments to pass to the Firefox binary |
|
||||
|
||||
|
||||
### headlessProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L521)
|
||||
### headlessProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L523)
|
||||
|
||||
+ Description: Build a ProcessBuilder for the top Firefox binary and the default profile. Pass the --headless flag to open without a window.
|
||||
+ Access: public
|
||||
@ -296,7 +281,7 @@ This method has no parameters.
|
||||
| args | String[] | the arguments to pass to the Firefox binary |
|
||||
|
||||
|
||||
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L549)
|
||||
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L551)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -308,7 +293,7 @@ This method has no parameters.
|
||||
| app | boolean | |
|
||||
|
||||
|
||||
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L614)
|
||||
### usabilityMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L682)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
@ -317,7 +302,7 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L620)
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L688)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -329,7 +314,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L626)
|
||||
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L694)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -341,7 +326,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L720)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L786)
|
||||
|
||||
+ 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
|
||||
@ -353,7 +338,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L726)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L792)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
@ -365,7 +350,7 @@ This method has no parameters.
|
||||
| url | String[] | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L752)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L818)
|
||||
|
||||
+ 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
|
||||
@ -376,7 +361,7 @@ This method has no parameters.
|
||||
| privateWindow | boolean | |
|
||||
|
||||
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L762)
|
||||
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L828)
|
||||
|
||||
+ 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
|
||||
@ -385,11 +370,10 @@ This method has no parameters.
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L764)
|
||||
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L830)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -397,7 +381,7 @@ This method has no parameters.
|
||||
| inUrl | String | |
|
||||
|
||||
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L775)
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefox.java#L841)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@ Description:
|
||||
> I2PFirefoxProfileBuilder.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileBuilder is a that builds a profile directory which contains the I2P browser profile for the Firefox browser family. It manages the base profile directory and copies it's contents to the active profile directory which is actually used by Firefox.
|
||||
|
||||
Author: idk
|
||||
Parent class: I2PCommonBrowser
|
||||
Parent class: I2PFirefoxProfileChecker
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
@ -31,7 +31,6 @@ package: net.i2p.i2pfirefox
|
||||
>
|
||||
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
|
||||
## Methods
|
||||
|
||||
@ -39,43 +38,15 @@ package: net.i2p.i2pfirefox
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L110)
|
||||
|
||||
+ Description: get the profile directory creating it if necessary
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| app | boolean | |
|
||||
| base | String | |
|
||||
|
||||
|
||||
### baseProfileDir [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L114)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| file | String | |
|
||||
| base | String | |
|
||||
|
||||
|
||||
### baseProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L134)
|
||||
### baseProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L125)
|
||||
|
||||
+ Description: get the base profile directory creating it if necessary
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -83,11 +54,10 @@ This method has no parameters.
|
||||
| base | String | |
|
||||
|
||||
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L158)
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L149)
|
||||
|
||||
+ Description: get the runtime directory creating it if create=true
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: the runtime directory or null if it could not be created
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -95,21 +65,19 @@ This method has no parameters.
|
||||
| create | boolean | if true create the runtime directory if it does not exist |
|
||||
|
||||
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L169)
|
||||
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L160)
|
||||
|
||||
+ Description: get the correct runtime directory
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: the runtime directory or null if it could not be created or found
|
||||
|
||||
This method has no parameters.
|
||||
|
||||
|
||||
### copyBaseProfiletoProfile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L189)
|
||||
### copyBaseProfiletoProfile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L180)
|
||||
|
||||
+ Description: Copy the inert base profile directory to the runtime profile directory
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -118,11 +86,10 @@ This method has no parameters.
|
||||
| app | boolean | |
|
||||
|
||||
|
||||
### writeAppChrome [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L222)
|
||||
### writeAppChrome [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L213)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -130,11 +97,10 @@ This method has no parameters.
|
||||
| profile | String | |
|
||||
|
||||
|
||||
### deleteAppChrome [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L235)
|
||||
### deleteAppChrome [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L226)
|
||||
|
||||
+ Description:
|
||||
+ Access: protected
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -142,11 +108,10 @@ This method has no parameters.
|
||||
| profile | String | |
|
||||
|
||||
|
||||
### copyStrictOptions [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L250)
|
||||
### copyStrictOptions [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L241)
|
||||
|
||||
+ Description: Copy the strict options from the base profile to the profile
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: true if successful false otherwise
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -155,11 +120,10 @@ This method has no parameters.
|
||||
| app | boolean | |
|
||||
|
||||
|
||||
### setupUserChrome [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L285)
|
||||
### setupUserChrome [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L276)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
|
@ -8,450 +8,496 @@
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.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=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="BUILD.html">
|
||||
BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2P-PLUGIN.html">
|
||||
I2P-PLUGIN
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin.html
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LINUX.html">
|
||||
LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="OSX.html">
|
||||
OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="WINDOWS.html">
|
||||
WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PFirefoxProfileChecker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java">
|
||||
[src]
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<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>
|
||||
</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>
|
||||
<p>
|
||||
Author: idk
|
||||
<br />
|
||||
<summary>
|
||||
Parent class: I2PCommonBrowser
|
||||
<br />
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br />
|
||||
Show dependencies
|
||||
<summary>
|
||||
<br />
|
||||
Show dependencies
|
||||
<br />
|
||||
</summary>
|
||||
<br />
|
||||
</summary>
|
||||
<br />
|
||||
<ul>
|
||||
<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 />
|
||||
<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#L54">
|
||||
[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#L87">
|
||||
[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#L110">
|
||||
[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#L116">
|
||||
[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#L139">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<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#L173">
|
||||
[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#L200">
|
||||
[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>
|
||||
</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>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: void
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
profileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: get the profile directory creating it if necessary
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
return: String
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| app | boolean | |
|
||||
<br />
|
||||
| base | String | |
|
||||
</p>
|
||||
<h3>
|
||||
validateProfileDirectory
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L64">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the profile directory is valid.
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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#L97">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br />
|
||||
</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#L120">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br />
|
||||
</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#L126">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: private
|
||||
<br />
|
||||
</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#L149">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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#L183">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the file is valid.
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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#L210">
|
||||
[src]
|
||||
</a>
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
Description: Return true if the extension directory is valid.
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</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)
|
||||
</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)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1294,9 +1340,10 @@ 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>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1305,7 +1352,7 @@ Public License instead of this License.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
@ -43,11 +43,22 @@ package: net.i2p.i2pfirefox
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L54)
|
||||
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L53)
|
||||
|
||||
+ Description: get the profile directory creating it if necessary
|
||||
+ Access: public
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| app | boolean | |
|
||||
| base | String | |
|
||||
|
||||
|
||||
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L64)
|
||||
|
||||
+ Description: Return true if the profile directory is valid.
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: true if the profile directory is valid false otherwise
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -55,11 +66,10 @@ package: net.i2p.i2pfirefox
|
||||
| profileDirectory | String | the profile directory to check |
|
||||
|
||||
|
||||
### deRestrictHTTPSAndSetupHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L87)
|
||||
### deRestrictHTTPSAndSetupHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L97)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -67,11 +77,10 @@ package: net.i2p.i2pfirefox
|
||||
| profile | String | |
|
||||
|
||||
|
||||
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L110)
|
||||
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L120)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -79,11 +88,10 @@ package: net.i2p.i2pfirefox
|
||||
| fileToBeModified | File | |
|
||||
|
||||
|
||||
### undoHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L116)
|
||||
### undoHomepage [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L126)
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -91,11 +99,10 @@ package: net.i2p.i2pfirefox
|
||||
| fileToBeModified | File | |
|
||||
|
||||
|
||||
### undoValue [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L139)
|
||||
### undoValue [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L149)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -105,11 +112,10 @@ package: net.i2p.i2pfirefox
|
||||
| fileToBeModified | File | |
|
||||
|
||||
|
||||
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L173)
|
||||
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L183)
|
||||
|
||||
+ Description: Return true if the file is valid.
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: true if the file is valid false otherwise
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -117,11 +123,10 @@ package: net.i2p.i2pfirefox
|
||||
| file | String | the file to check |
|
||||
|
||||
|
||||
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L200)
|
||||
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L210)
|
||||
|
||||
+ Description: Return true if the extension directory is valid.
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: true if the extension directory is valid false otherwise
|
||||
|
||||
| Name | Type | Description |
|
||||
|
@ -8,248 +8,286 @@
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.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=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="BUILD.html">
|
||||
BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2P-PLUGIN.html">
|
||||
I2P-PLUGIN
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin.html
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LINUX.html">
|
||||
LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="OSX.html">
|
||||
OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="WINDOWS.html">
|
||||
WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PFirefoxProfileUnpacker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java">
|
||||
[src]
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<h1>
|
||||
Class I2PFirefoxProfileUnpacker
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</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>
|
||||
Access: public
|
||||
<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
|
||||
> 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 />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: void
|
||||
Parent class: I2PFirefoxProfileBuilder
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
unpackProfile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L38">
|
||||
[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>
|
||||
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>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
Description:
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Access: public
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static
|
||||
</li>
|
||||
<li>
|
||||
return: void
|
||||
<br />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<p>
|
||||
| Name | Type | Description |
|
||||
<br />
|
||||
| —– | —– | —– |
|
||||
<br />
|
||||
| args | String[] | |
|
||||
</p>
|
||||
<h3>
|
||||
unpackProfile
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PFirefoxProfileUnpacker.java#L38">
|
||||
[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)
|
||||
</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)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -1092,9 +1130,10 @@ 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>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1103,7 +1142,7 @@ Public License instead of this License.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
@ -7,7 +7,7 @@ Description:
|
||||
> I2PFirefoxProfileUnpacker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileUnpacker is a that unpacks the I2P Firefox profile from a zip file embedded in the `jar` file. The zip is unpacked to a base directory where it is left untouched and the base profile is copied to the active profile directory.
|
||||
|
||||
Author: idk
|
||||
Parent class: I2PCommonBrowser
|
||||
Parent class: I2PFirefoxProfileBuilder
|
||||
package: net.i2p.i2pfirefox
|
||||
|
||||
## Dependencies
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -44,7 +44,6 @@ package: net.i2p.i2pfirefox
|
||||
>
|
||||
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
|
||||
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L)
|
||||
|
||||
@ -58,7 +57,6 @@ package: net.i2p.i2pfirefox
|
||||
|
||||
+ Description: Obtains the default browser for the Windows platform which by now should be Edgium in the worst-case scenario but in case it isn't we can use this function to figure it out. It can find: 1. The current user's HTTPS default browser if they configured it to be non-default 2. The current user's HTTP default browser if they configured it to be non-default 3. Edgium if it's available 4. iexplore if it's not and it will return the first one we find in exactly that order. Adapted from:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: path to command[0] and target URL[1] to the default browser ready for execution or null if not found
|
||||
|
||||
This method has no parameters.
|
||||
@ -68,7 +66,6 @@ This method has no parameters.
|
||||
|
||||
+ Description: obtains a value matching a key contained in the windows registry at a path represented by hkeyquery
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: either a registry "Default" value or null if one does not exist/is empty
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -81,7 +78,6 @@ This method has no parameters.
|
||||
|
||||
+ Description: If following a query back to the Default value doesn't work then what we have is a "ProgID" which will be registered in \HKEY_CLASSES_ROOT\%ProgId% and will have an entry \shell\open\command where \shell\open\command yields the value that contains the command it needs. This function takes a registry query in the same format as getDefaultOutOfRegistry but instead of looking for the default entry
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: the command required to run the application referenced in hkeyquery or null
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -93,7 +89,6 @@ This method has no parameters.
|
||||
|
||||
+ Description: Cross-references a progId obtained by followUserConfiguredBrowserToCommand against HKEY_CLASSES_ROOT\%ProgId%\shell\open\command which holds the value of the command which we need to run to launch the default browser.
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: the command required to run the application referenced in hkeyquery or null
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -105,7 +100,6 @@ This method has no parameters.
|
||||
|
||||
+ Description: obtains a default browsing command out of the Windows registry.
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: either a registry "Default" value or null if one does not exist/is empty
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -117,7 +111,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -129,7 +122,6 @@ This method has no parameters.
|
||||
|
||||
+ Description: Find any browser in our list within a UNIX path
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
This method has no parameters.
|
||||
@ -139,7 +131,6 @@ This method has no parameters.
|
||||
|
||||
+ Description: Find any usable browser and output the whole path
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
This method has no parameters.
|
||||
@ -149,7 +140,6 @@ This method has no parameters.
|
||||
|
||||
+ Description: delete the runtime directory
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: boolean
|
||||
|
||||
This method has no parameters.
|
||||
@ -159,7 +149,6 @@ This method has no parameters.
|
||||
|
||||
+ Description: get the runtime directory creating it if create=true
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: the runtime directory or null if it could not be created
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -171,7 +160,6 @@ This method has no parameters.
|
||||
|
||||
+ Description: get the correct runtime directory
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: the runtime directory or null if it could not be created or found
|
||||
|
||||
This method has no parameters.
|
||||
@ -205,7 +193,6 @@ This method has no parameters.
|
||||
|
||||
+ Description:
|
||||
+ Access: private
|
||||
+ Modifiers: static
|
||||
+ return: String
|
||||
|
||||
| Name | Type | Description |
|
||||
@ -213,3 +200,15 @@ This method has no parameters.
|
||||
| inUrl | String | |
|
||||
|
||||
|
||||
### main [[src]](src/java/net/i2p/i2pfirefox/I2PGenericUnsafeBrowser.java#L419)
|
||||
|
||||
+ Description:
|
||||
+ Access: public
|
||||
+ Modifiers: static
|
||||
+ return: void
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----- | ----- | ----- |
|
||||
| args | String[] | |
|
||||
|
||||
|
||||
|
@ -1,190 +1,245 @@
|
||||
<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">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PLibreWolf
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PLibreWolf.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br />
|
||||
Description:
|
||||
<br />
|
||||
> I2PLibreWolf.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. I2PLibreWolf adds the LibreWolf Updater browser extension if the browser detected by the Firefox variant launcher is LibreWolf specifically.
|
||||
</p>
|
||||
<p>
|
||||
Author: idk
|
||||
<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>
|
||||
No methods in this class
|
||||
</h2>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<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="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href=""></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="BUILD.html">
|
||||
BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowser.html">
|
||||
I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="I2PBrowserPlugin.html">
|
||||
I2PBrowserPlugin
|
||||
</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="I2PLibreWolf.html">
|
||||
I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="LINUX.html">
|
||||
LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="OSX.html">
|
||||
OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="WINDOWS.html">
|
||||
WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
Class I2PLibreWolf
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PLibreWolf.java">
|
||||
[src]
|
||||
</a>
|
||||
</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
*/
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
Access: public
|
||||
<br />
|
||||
Description:
|
||||
<br />
|
||||
> I2PLibreWolf.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. I2PLibreWolf adds the LibreWolf Updater browser extension if the browser detected by the Firefox variant launcher is LibreWolf specifically.
|
||||
</p>
|
||||
<p>
|
||||
Author: idk
|
||||
<br />
|
||||
package: net.i2p.i2pfirefox
|
||||
</p>
|
||||
<h2>
|
||||
Dependencies
|
||||
</h2>
|
||||
<p>
|
||||
<details>
|
||||
<br />
|
||||
<summary>
|
||||
<br />
|
||||
Show dependencies
|
||||
<br />
|
||||
</summary>
|
||||
<br />
|
||||
<ul>
|
||||
<br />
|
||||
<li>
|
||||
java.io.
|
||||
<em>
|
||||
</li>
|
||||
<li>
|
||||
javax.script.
|
||||
<br />
|
||||
<h2>
|
||||
Member Variables
|
||||
</h2>
|
||||
<h4>
|
||||
ScriptEngineManager sem
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PLibreWolf.java#L">
|
||||
[src]
|
||||
</a>
|
||||
</h4>
|
||||
<blockquote></blockquote>
|
||||
<ul>
|
||||
<li>
|
||||
Access: private
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: static final
|
||||
</li>
|
||||
</ul>
|
||||
<h4>
|
||||
ScriptEngine ee
|
||||
<a href="src/java/net/i2p/i2pfirefox/I2PLibreWolf.java#L">
|
||||
[src]
|
||||
</a>
|
||||
</h4>
|
||||
<blockquote></blockquote>
|
||||
<ul>
|
||||
<li>
|
||||
Access: private
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
Modifiers: final
|
||||
</li>
|
||||
</ul>
|
||||
<h2>
|
||||
No methods in this class
|
||||
</h2>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<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.
|
||||
@ -1027,20 +1082,18 @@ 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>
|
||||
</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 href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</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>
|
1136
docs/LINUX.html
Normal file
1136
docs/LINUX.html
Normal file
File diff suppressed because it is too large
Load Diff
35
docs/LINUX.md
Normal file
35
docs/LINUX.md
Normal file
@ -0,0 +1,35 @@
|
||||
### Linux Support
|
||||
|
||||
It's possible to use this package in the following binary formats on
|
||||
Linux. These packages are for the **`amd64`** architecture.
|
||||
|
||||
#### Linux jpackage: `.tar.gz`
|
||||
|
||||
```sh
|
||||
mkdir ~/tmp-i2pbrowser && cd ~/tmp-i2pbrowser
|
||||
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/1.3.0/i2pbrowser.tar.gz
|
||||
tar xvzf i2pbrowser.tar.gz && cd i2pbrowser
|
||||
## THIS STEP IS OPTIONAL but it will force the system to use Tor Browser from within the i2pbrowser directory.
|
||||
# This probably offers better security than vanilla Firefox.
|
||||
# This will also make the directory the launcher is in relocatable to a flash drive, for instance.
|
||||
# This is commonly referred to as being portable.
|
||||
# If tor and torsocks are on the host system, Tor Browser will be downloaded over Tor.
|
||||
./lib/torbrowser.sh
|
||||
# end of optional step.
|
||||
./bin/i2pbrowser
|
||||
```
|
||||
|
||||
#### Debian/Ubuntu and variants Jpackage: `.deb`
|
||||
|
||||
1. Start your I2P Router
|
||||
2. Download the latest release `.deb` from [Github](https://github.com/eyedeekay/i2p.plugins.firefox/releases) and verify it's hash.
|
||||
3. Run `sudo apt-get install ./i2pbrowser*.deb`(Only needs to be done once per update)
|
||||
4. Use the applications menu shortcut to launch the pre-configured I2P browser
|
||||
|
||||
#### Fedora and variants Jpackage: `.rpm`
|
||||
|
||||
1. Start your I2P Router
|
||||
2. Download the latest release `.r[m` from [Github](https://github.com/eyedeekay/i2p.plugins.firefox/releases) and verify it's hash.
|
||||
3. Run `sudo rpm -i ./i2pbrowser*.rpm`(Only needs to be done the first time)
|
||||
4. Run `sudo rpm -U ./i2pbrowser*.rpm`(Only needs to be done once per update)
|
||||
5. Use the applications menu shortcut to launch the pre-configured I2P browser
|
1085
docs/OSX.html
Normal file
1085
docs/OSX.html
Normal file
File diff suppressed because it is too large
Load Diff
33
docs/OSX.md
Normal file
33
docs/OSX.md
Normal file
@ -0,0 +1,33 @@
|
||||
Using this on OSX
|
||||
=================
|
||||
|
||||
This code will launch an I2P-Configured Browser on OSX, but at this time
|
||||
there are no packages for it because it's not possible for me to sign OSX
|
||||
packages. You can use the `.jar` file with any Java greater than Java 8.
|
||||
|
||||
```sh
|
||||
mkdir ~/tmp-i2pfirefox && cd ~/tmp-i2pfirefox
|
||||
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/1.3.0/i2pfirefox.zip
|
||||
unzip i2pfirefox.zip
|
||||
./cmd/i2pfirefox.cmd
|
||||
|
||||
#or if you want to use a Chromium
|
||||
|
||||
./cmd/i2pchromium.cmd
|
||||
```
|
||||
|
||||
Building a `jpackage`
|
||||
---------------------
|
||||
|
||||
In order to build a `jpackage`, install at least Java 17. To set up Java
|
||||
17 and configure it to be the Java used by the system for the rest of the
|
||||
session, use these commands:
|
||||
|
||||
```sh
|
||||
brew install openjdk@17
|
||||
sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
|
||||
export JAVA_HOME=`/usr/libexec/java_home -v 17`
|
||||
```
|
||||
|
||||
Once you're finished, run `./osx-dmg.sh` in the repository root to produce a
|
||||
`.dmg` package.
|
1158
docs/WINDOWS.html
Normal file
1158
docs/WINDOWS.html
Normal file
File diff suppressed because it is too large
Load Diff
33
docs/WINDOWS.md
Normal file
33
docs/WINDOWS.md
Normal file
@ -0,0 +1,33 @@
|
||||
### Windows Support
|
||||
|
||||
It's possible to use this package on Windows, but it's recommended that
|
||||
you get it through the Easy-Install bundle which includes this functionality
|
||||
already. Use this only if you want to test new features or if you prefer
|
||||
an unbundled I2P router with an external JVM.
|
||||
|
||||
#### Windows Jpackage: `.zip`
|
||||
|
||||
**(Recommended for advanced users ONLY. Most people should be using Easy-Install Bundle for Windows)**
|
||||
|
||||
1. Start your I2P Router
|
||||
2. Download the latest release `.zip` from [Github](https://github.com/eyedeekay/i2p.plugins.firefox/releases) and verify it's hash.
|
||||
3. Unzip the `.zip` directory
|
||||
4. run the `i2pbrowser.exe` file inside the unzipped directory.
|
||||
|
||||
#### Windows Jpackage: `.msi`
|
||||
|
||||
**(Not Recommended! This functionality is already included in the Easy-Install Bundle for Windows)**
|
||||
|
||||
1. Start your I2P Router
|
||||
2. Download the latest release `.msi` from [Github](https://github.com/eyedeekay/i2p.plugins.firefox/releases) and verify it's hash.
|
||||
3. Run the `.msi` installer(Only needs to be done once per update)
|
||||
4. Use the start menu shortcut to launch the pre-configured I2P browser
|
||||
|
||||
#### Windows Jpackage: `.exe`
|
||||
|
||||
**(Not Recommended! This functionality is already included in the Easy-Install Bundle for Windows)**
|
||||
|
||||
1. Start your I2P Router
|
||||
2. Download the latest release `.exe` from [Github](https://github.com/eyedeekay/i2p.plugins.firefox/releases) and verify it's hash.
|
||||
3. Run the `.msi` installer(Only needs to be done once per update)
|
||||
4. Use the start menu shortcut to launch the pre-configured I2P browser
|
24
docs/darklight.css
Normal file
24
docs/darklight.css
Normal file
@ -0,0 +1,24 @@
|
||||
/* edgar darklight CSS file */
|
||||
#checkboxDarkLight:checked + .container {
|
||||
background-color: #202020;
|
||||
filter: invert(100%);
|
||||
}
|
||||
#checkboxDarkLight{
|
||||
appearance: none;
|
||||
width: 80px;
|
||||
height: 40px;
|
||||
background: black;
|
||||
border-radius: 22px;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
#checkboxDarkLight::before{
|
||||
content: '';
|
||||
width: 40px;
|
||||
height: 35px;
|
||||
background-color:white;
|
||||
border-radius: 35px;
|
||||
cursor: pointer;
|
||||
transition: .3s linear;
|
||||
}
|
||||
|
BIN
docs/i2plogo.png
Normal file
BIN
docs/i2plogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
@ -75,8 +75,6 @@ iframe {
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 36vw;
|
||||
height: 64vh;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -5,11 +5,11 @@ TORSOCKS=$(which torsocks)
|
||||
# . "${TORSOCKS}" on
|
||||
#fi
|
||||
|
||||
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
|
||||
locale="en-US" # mention your locale. default = en-US
|
||||
if [ -d /etc/default/locale ]; then
|
||||
. /etc/default/locale
|
||||
locale=$(echo "${LANG}" | cut -d . -f1)
|
||||
if [ -z $version ]; then
|
||||
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
|
||||
fi
|
||||
if [ -z $locale ]; then
|
||||
locale="ALL" # mention your locale. default = ALL
|
||||
fi
|
||||
|
||||
if [ ! -f ./tor.keyring ]; then
|
||||
|
@ -6,11 +6,11 @@ if [ -f "${TORSOCKS}" ]; then
|
||||
echo ""
|
||||
fi
|
||||
|
||||
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
|
||||
locale="en-US" # mention your locale. default = en-US
|
||||
if [ -d /etc/default/locale ]; then
|
||||
. /etc/default/locale
|
||||
locale=$(echo "${LANG}" | cut -d . -f1)
|
||||
if [ -z $version ]; then
|
||||
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
|
||||
fi
|
||||
if [ -z $locale ]; then
|
||||
locale="ALL" # mention your locale. default = ALL
|
||||
fi
|
||||
|
||||
if [ ! -f ./tor.keyring ]; then
|
||||
|
Binary file not shown.
670
index.html
670
index.html
@ -8,281 +8,360 @@
|
||||
<meta name="keywords" content="main" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
<link rel="stylesheet" type="text/css" href="darklight.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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowser.html">
|
||||
docs/I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowserPlugin.html">
|
||||
docs/I2PBrowserPlugin
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromium.html">
|
||||
docs/I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileBuilder.html">
|
||||
docs/I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileChecker.html">
|
||||
docs/I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileUnpacker.html">
|
||||
docs/I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PCommonBrowser.html">
|
||||
docs/I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefox.html">
|
||||
docs/I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileBuilder.html">
|
||||
docs/I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileChecker.html">
|
||||
docs/I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileUnpacker.html">
|
||||
docs/I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PGenericUnsafeBrowser.html">
|
||||
docs/I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PLibreWolf.html">
|
||||
docs/I2PLibreWolf
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
<input type="checkbox" id="checkboxDarkLight">
|
||||
<div class="container">
|
||||
<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="LICENSE.html">
|
||||
LICENSE
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="VERSION.html">
|
||||
VERSION
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/BUILD.html">
|
||||
docs/BUILD
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2P-PLUGIN.html">
|
||||
docs/I2P-PLUGIN
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowser.html">
|
||||
docs/I2PBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PBrowserPlugin.html">
|
||||
docs/I2PBrowserPlugin.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromium.html">
|
||||
docs/I2PChromium
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileBuilder.html">
|
||||
docs/I2PChromiumProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileChecker.html">
|
||||
docs/I2PChromiumProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PChromiumProfileUnpacker.html">
|
||||
docs/I2PChromiumProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PCommonBrowser.html">
|
||||
docs/I2PCommonBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefox.html">
|
||||
docs/I2PFirefox
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileBuilder.html">
|
||||
docs/I2PFirefoxProfileBuilder
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileChecker.html">
|
||||
docs/I2PFirefoxProfileChecker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PFirefoxProfileUnpacker.html">
|
||||
docs/I2PFirefoxProfileUnpacker
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PGenericUnsafeBrowser.html">
|
||||
docs/I2PGenericUnsafeBrowser
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/I2PLibreWolf.html">
|
||||
docs/I2PLibreWolf.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/LINUX.html">
|
||||
docs/LINUX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/OSX.html">
|
||||
docs/OSX
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/WINDOWS.html">
|
||||
docs/WINDOWS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
i2p.plugins.firefox
|
||||
</h1>
|
||||
<p>
|
||||
A port of the batch scripts from
|
||||
<code>
|
||||
i2p.firefox
|
||||
</code>
|
||||
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>
|
||||
Credits
|
||||
</h2>
|
||||
<p>
|
||||
This profile manager makes use of a set of browser extensions which are largely the work of others.
|
||||
It makes use of dependencies that are the work of others. In many ways, it’s merely an elaborate
|
||||
configuration tool. A smart one, but a configuration tool nonetheless. Many thanks to the following
|
||||
projects, developers, and communities:
|
||||
</p>
|
||||
<h3>
|
||||
Firefox and Chrome Extensions
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://noscript.net">
|
||||
NoScript - Giorgio Maone and others
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.eff.org/https-everywhere">
|
||||
HTTPS Everywhere - Electronic Frontier Foundation
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://ublockorigin.com/">
|
||||
uBlock Origin - Raymond Gorhill and others
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.localcdn.org/">
|
||||
LocalCDN - nobody and others
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://jshelter.org/">
|
||||
jShelter - Libor Polčák and others
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
Firefox Configuration Modifiations
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/arkenfox/user.js/">
|
||||
Arkenfox - Thorin Oakenpants and Others
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
You can find the license files for each of the these projects in the
|
||||
<code>
|
||||
src/i2p.firefox.*.profile/extensions/*
|
||||
</code>
|
||||
directory for Firefox, and the
|
||||
<code>
|
||||
src/i2p.chromium.*.profile/extensions/*.js/*
|
||||
</code>
|
||||
directories for Chromium.
|
||||
</p>
|
||||
<h2>
|
||||
Getting started
|
||||
</h2>
|
||||
<h3>
|
||||
Building the package:
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
See:
|
||||
<a href="docs/BUILD.md">
|
||||
BUILD.md
|
||||
</a>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
<a href="docs/BUILD.html">
|
||||
BUILD.html
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
Using a Binary
|
||||
</h3>
|
||||
<p>
|
||||
For platform specific instructions, see
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="LINUX.md">
|
||||
LINUX.md
|
||||
</a>
|
||||
/
|
||||
<a href="LINUX.html">
|
||||
LINUX.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="OSX.md">
|
||||
OSX.md
|
||||
</a>
|
||||
/
|
||||
<a href="OSX.html">
|
||||
OSX.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="WINDOWS.md">
|
||||
WINDOWS.md
|
||||
</a>
|
||||
/
|
||||
<a href="WINDOWS.html">
|
||||
WINDOWS.html
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h4>
|
||||
All platforms, using a zip:
|
||||
<code>
|
||||
.zip
|
||||
</code>
|
||||
and a non-bundled Java
|
||||
</h4>
|
||||
<pre><code class="language-sh">mkdir ~/tmp-i2pfirefox && cd ~/tmp-i2pfirefox
|
||||
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/1.0.6/i2pfirefox.zip
|
||||
</a>
|
||||
<h1>
|
||||
i2p.plugins.firefox
|
||||
</h1>
|
||||
<p>
|
||||
A port of the batch scripts from
|
||||
<code>
|
||||
i2p.firefox
|
||||
</code>
|
||||
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>
|
||||
What is this?
|
||||
</strong>
|
||||
</p>
|
||||
<p>
|
||||
This is a browser profile manager which pre-configures a browser on the host system, usually
|
||||
Firefox or Tor Browser, for browsing I2P. When acting as an I2P Plugin, it adds GUI elements to
|
||||
I2P for launching the browser in a highly restricted “Safe” mode(the default) or a more permissive
|
||||
“Usability” mode.
|
||||
</p>
|
||||
<p>
|
||||
This package expresses functionality that has existed in many places at many times, sometimes
|
||||
bundled with other software. As it has developed here, the border of where the Easy-Install
|
||||
ends and Firefox Profile Manager begins has become clearer. This repository contains the profile
|
||||
manager and it’s buildsystem, the whole profile manager, and nothing but the profile manager.
|
||||
It can be used independently of other software, provided an I2P proxy on the host system somewhere.
|
||||
</p>
|
||||
<p>
|
||||
However, in practice, most people probably get it alongside an I2P router, through the
|
||||
<strong>
|
||||
I2P Easy-Install Bundle for Windows
|
||||
</strong>
|
||||
.
|
||||
</p>
|
||||
<p>
|
||||
<strong>
|
||||
What version numbers should I pay attention to?
|
||||
</strong>
|
||||
When I decided to port the
|
||||
<code>
|
||||
.bat
|
||||
</code>
|
||||
launcher scripts from the Easy-Install bundle to Java, this project
|
||||
was created and started using it’s own version numbers. This was the practice up until version 1.5.0,
|
||||
which was the last version to use a different version number than I2P itself. Starting in April 2024,
|
||||
<code>
|
||||
i2p.plugins.firefox
|
||||
</code>
|
||||
will follow along with the Java I2P major and minor version numbers. Incremental
|
||||
changes may become differing point releases.
|
||||
</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>
|
||||
Credits
|
||||
</h2>
|
||||
<p>
|
||||
This profile manager makes use of a set of browser extensions which are largely the work of others.
|
||||
It makes use of dependencies that are the work of others. In many ways, it’s merely an elaborate
|
||||
configuration tool. A smart one, but a configuration tool nonetheless. Many thanks to the following
|
||||
projects, developers, and communities:
|
||||
</p>
|
||||
<h3>
|
||||
Firefox and Chrome Extensions
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://noscript.net">
|
||||
NoScript - Giorgio Maone and others
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.eff.org/https-everywhere">
|
||||
HTTPS Everywhere - Electronic Frontier Foundation
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://ublockorigin.com/">
|
||||
uBlock Origin - Raymond Gorhill and others
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.localcdn.org/">
|
||||
LocalCDN - nobody and others
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://jshelter.org/">
|
||||
jShelter - Libor Polčák and others
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
Firefox Configuration Modifiations
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/arkenfox/user.js/">
|
||||
Arkenfox - Thorin Oakenpants and Others
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
You can find the license files for each of the these projects in the
|
||||
<code>
|
||||
src/i2p.firefox.*.profile/extensions/*
|
||||
</code>
|
||||
directory for Firefox, and the
|
||||
<code>
|
||||
src/i2p.chromium.*.profile/extensions/*.js/*
|
||||
</code>
|
||||
directories for Chromium.
|
||||
</p>
|
||||
<h2>
|
||||
Getting started
|
||||
</h2>
|
||||
<h3>
|
||||
Building the package:
|
||||
</h3>
|
||||
<ul>
|
||||
<li>
|
||||
See:
|
||||
<a href="docs/BUILD.md">
|
||||
BUILD.md
|
||||
</a>
|
||||
/
|
||||
<a href="docs/BUILD.html">
|
||||
BUILD.html
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h3>
|
||||
Using a Binary
|
||||
</h3>
|
||||
<p>
|
||||
For platform specific instructions, see
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="docs/I2P-PLUGIN.md">
|
||||
I2P-PLUGIN.md
|
||||
</a>
|
||||
/
|
||||
<a href="docs/I2P-PLUGIN.html">
|
||||
I2P-PLUGIN.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/LINUX.md">
|
||||
LINUX.md
|
||||
</a>
|
||||
/
|
||||
<a href="docs/LINUX.html">
|
||||
LINUX.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/OSX.md">
|
||||
OSX.md
|
||||
</a>
|
||||
/
|
||||
<a href="docs/OSX.html">
|
||||
OSX.html
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="docs/WINDOWS.md">
|
||||
WINDOWS.md
|
||||
</a>
|
||||
/
|
||||
<a href="docs/WINDOWS.html">
|
||||
WINDOWS.html
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h4>
|
||||
All platforms, using a zip:
|
||||
<code>
|
||||
.zip
|
||||
</code>
|
||||
and a non-bundled Java
|
||||
</h4>
|
||||
<pre><code class="language-sh">mkdir ~/tmp-i2pfirefox && cd ~/tmp-i2pfirefox
|
||||
wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/1.3.0/i2pfirefox.zip
|
||||
unzip i2pfirefox.zip
|
||||
./i2pfirefox.cmd
|
||||
|
||||
@ -290,27 +369,27 @@ unzip i2pfirefox.zip
|
||||
|
||||
./i2pchromium.cmd
|
||||
</code></pre>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<div id="show">
|
||||
<div id="hide">
|
||||
<pre><code> Copyright 2022 idk (hankhill19580@gmail.com)
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/i2p.plugins.firefox">
|
||||
Source Repository: (https://github.com/eyedeekay/i2p.plugins.firefox)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#show">
|
||||
Show license
|
||||
</a>
|
||||
<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.
|
||||
@ -1153,9 +1232,10 @@ 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>
|
||||
<a href="#hide">
|
||||
Hide license
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1164,7 +1244,7 @@ Public License instead of this License.
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
<img class="i2plogo" src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
|
@ -1,10 +1,8 @@
|
||||
#! /usr/bin/env bash
|
||||
|
||||
rm -rf docs
|
||||
|
||||
~/.cargo/bin/lojidoc src/java/net/i2p/i2pfirefox/ -s -l > report.log
|
||||
~/.cargo/bin/lojidoc -c src/java/net/i2p/i2pfirefox/ -s
|
||||
mkdir -p docs
|
||||
mv -v generated/net/i2p/i2pfirefox/*.md ./docs/
|
||||
rm -rf generated
|
||||
git add ./*.md
|
11
osx-dmg.sh
11
osx-dmg.sh
@ -1,5 +1,13 @@
|
||||
#! /usr/bin/env sh
|
||||
. ./config.sh
|
||||
|
||||
if [ -z "$I2P_SIGNER_USERPHRASE" ]; then
|
||||
I2P_SIGNER_USERPHRASE=$(security find-identity -v -p codesigning | cut -d ' ' -f 4)
|
||||
echo "Warning: using automatically configured signer ID, make sure this is the one you want: $I2P_SIGNER_USERPHRASE"
|
||||
echo "continuing in 10 seconds"
|
||||
sleep 10
|
||||
fi
|
||||
|
||||
jpackage \
|
||||
--verbose \
|
||||
--type dmg \
|
||||
@ -8,4 +16,7 @@ jpackage \
|
||||
--icon src/icon.icns \
|
||||
--input src/build \
|
||||
--main-jar i2pfirefox.jar \
|
||||
--mac-sign \
|
||||
--mac-signing-key-user-name "$I2P_SIGNER_USERPHRASE" \
|
||||
--mac-entitlements resources/entitlements.xml \
|
||||
--main-class net.i2p.i2pfirefox.I2PBrowser
|
||||
|
30
plugin-upload.sh
Executable file
30
plugin-upload.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
. ./config.sh
|
||||
NUMLINE=`grep release.number build.xml | head -n 1`
|
||||
sed -i "s|${NUMLINE}| <property name=\"release.number\" value=\"$GITHUB_TAG\" />|g" build.xml
|
||||
ant distclean versionMd jar plugin
|
||||
|
||||
github-release release --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--name "${GITHUB_NAME}" \
|
||||
--description "${GITHUB_DESCRIPTION}" \
|
||||
--tag "${GITHUB_TAG}"; true
|
||||
sleep 2s
|
||||
susum=$(sha256sum i2pfirefox.su3)
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--replace \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as an I2P Console Plugin. ${susum}" \
|
||||
--name "i2pfirefox.su3" \
|
||||
--file "i2pfirefox.su3"
|
||||
#susum=$(sha256sum i2pfirefox-update.su3)
|
||||
#github-release upload --user "${GITHUB_USER}" \
|
||||
# --replace \
|
||||
# --repo "${GITHUB_REPO}" \
|
||||
# --tag "${GITHUB_TAG}" \
|
||||
# --label "I2P Browser launcher as an I2P Console Plugin, update-only. ${susum}" \
|
||||
# --name "i2pfirefox-update.su3" \
|
||||
# --file "i2pfirefox-update.su3"
|
||||
echo "Uploaded su3 package"
|
@ -1,6 +1,5 @@
|
||||
clientApp.0.main=net.i2p.i2pfirefox.I2PBrowserPlugin
|
||||
clientApp.0.name=I2PBrowserPlugin
|
||||
clientApp.0.main=net.i2p.i2pfirefox.plugin.I2PBrowserPlugin
|
||||
clientApp.0.name=i2pfirefox
|
||||
clientApp.0.delay=0
|
||||
clientApp.0.startOnLoad=true
|
||||
# we also use i2p.jar and i2ptunnel.jar, they are in the standard router classpath
|
||||
clientApp.0.classpath=$PLUGIN/lib/i2pfirefox.jar,$I2P/lib/i2psnark.jar
|
||||
clientApp.0.classpath=$PLUGIN/lib/i2pfirefox-plugin.jar
|
3
plugin/i2pbrowser.cmd
Normal file
3
plugin/i2pbrowser.cmd
Normal file
@ -0,0 +1,3 @@
|
||||
:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/lib/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $?
|
||||
@ECHO OFF
|
||||
java -cp %cd%/lib/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser
|
@ -6,10 +6,10 @@ ant distclean clangFmt versionMd
|
||||
NUMLINE=`grep release.number build.xml | head -n 1`
|
||||
READMELINE=`grep 'i2p.plugins.firefox/releases/download' README.md | grep i2pfirefox`
|
||||
sed -i "s|${READMELINE}|wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.zip|g" README.md
|
||||
READMELINE=`grep 'i2p.plugins.firefox/releases/download' LINUX.md | grep i2pbrowser`
|
||||
sed -i "s|${READMELINE}|wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.zip|g" LINUX.md
|
||||
READMELINE=`grep 'i2p.plugins.firefox/releases/download' OSX.md | grep i2pfirefox`
|
||||
sed -i "s|${READMELINE}|wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.zip|g" OSX.md
|
||||
READMELINE=`grep 'i2p.plugins.firefox/releases/download' docs/LINUX.md | grep i2pbrowser`
|
||||
sed -i "s|${READMELINE}|wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pbrowser.tar.gz|g" docs/LINUX.md
|
||||
READMELINE=`grep 'i2p.plugins.firefox/releases/download' docs/OSX.md | grep i2pfirefox`
|
||||
sed -i "s|${READMELINE}|wget https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/${GITHUB_TAG}/i2pfirefox.zip|g" docs/OSX.md
|
||||
sed -i "s|${NUMLINE}| <property name=\"release.number\" value=\"$GITHUB_TAG\" />|g" build.xml
|
||||
edgar && git push --all
|
||||
ant distclean tarball versionMd jar plugin freeZip jpackage debian fedora
|
||||
ant distclean versionMd jar plugin torrent freeZip jpackage debian tarball
|
||||
|
18
release.sh
18
release.sh
@ -1,12 +1,13 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
. ./config.sh
|
||||
./preprelease.sh
|
||||
#./preprelease.sh
|
||||
github-release release --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--name "${GITHUB_NAME}" \
|
||||
--description "${GITHUB_DESCRIPTION}" \
|
||||
--tag "${GITHUB_TAG}"; true
|
||||
sleep 2s
|
||||
./profiles-upload.sh
|
||||
sleep 2s
|
||||
github-release edit --user "${GITHUB_USER}" \
|
||||
@ -41,14 +42,14 @@ github-release upload --user "${GITHUB_USER}" \
|
||||
--name "i2pfirefox.zip" \
|
||||
--file "i2pfirefox.zip"
|
||||
echo "Uploaded freestanding zip"
|
||||
jvmsum=$(sha256sum "i2pbrowser.zip")
|
||||
jvmsum=$(sha256sum "i2pbrowser.tar.gz")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--replace \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as a Jpackage, does not require a JVM. ${jvmsum}" \
|
||||
--name "i2pbrowser.zip" \
|
||||
--file "i2pbrowser.zip"
|
||||
--name "i2pbrowser.tar.gz" \
|
||||
--file "i2pbrowser.tar.gz"
|
||||
echo "Uploaded jpackage zip"
|
||||
debsum=$(sha256sum "i2pbrowser_${GITHUB_TAG}_amd64.deb")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
@ -85,6 +86,15 @@ github-release upload --user "${GITHUB_USER}" \
|
||||
--name "i2pfirefox-update.su3" \
|
||||
--file "i2pfirefox-update.su3"
|
||||
echo "Uploaded su3 package"
|
||||
torsum=$(sha256sum i2p.plugins.firefox.torrent.zip)
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--replace \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
--tag "${GITHUB_TAG}" \
|
||||
--label "I2P Browser launcher as an I2P Console Plugin, release torrent. ${torsum}" \
|
||||
--name "i2p.plugins.firefox.torrent.zip" \
|
||||
--file "i2p.plugins.firefox.torrent.zip"
|
||||
echo "Uploaded torrent package"
|
||||
|
||||
git pull github --tags
|
||||
git push --all
|
||||
|
@ -1,3 +1,3 @@
|
||||
#Build Number for ANT. Do not edit!
|
||||
#Fri Dec 23 01:25:14 UTC 2022
|
||||
build.number=411
|
||||
#Mon Jul 08 17:35:59 EDT 2024
|
||||
build.number=726
|
||||
|
@ -9,6 +9,7 @@
|
||||
<pathelement location="${i2plib}/i2ptunnel.jar" />
|
||||
<pathelement location="${i2plib}/i2psnark.jar" />
|
||||
<pathelement location="${i2plib}/mstreaming.jar" />
|
||||
<pathelement location="${i2plib}/desktopgui.jar" />
|
||||
<pathelement location="${ant.home}/lib/ant.jar"/>
|
||||
<pathelement location="${jettylib}/org.mortbay.jetty.jar"/>
|
||||
<pathelement location="${jettylib}/jasper-runtime.jar" />
|
||||
@ -23,6 +24,11 @@
|
||||
<target name="build" depends="jar" />
|
||||
<target name="builddep">
|
||||
</target>
|
||||
<target name="cp">
|
||||
<exec executable="echo">
|
||||
<arg value="${java.class.path}"></arg>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<property name="javac.compilerargs" value="" />
|
||||
<property name="javac.version" value="1.8" />
|
||||
@ -35,11 +41,31 @@
|
||||
debug="true" deprecation="on" source="${javac.version}" target="${javac.version}"
|
||||
destdir="./build/obj"
|
||||
includeAntRuntime="false"
|
||||
classpath="${i2plib}/i2p.jar:${i2plib}/i2ptunnel.jar:${i2plib}/i2psnark.jar:${i2plib}/mstreaming.jar:${i2plib}/systray.jar:${jettylib}/org.mortbay.jetty.jar:${jettylib}/jetty-util.jar:${jettylib}/jetty-xml.jar" >
|
||||
classpath="${i2plib}/i2p.jar:${i2plib}/i2ptunnel.jar:${i2plib}/i2psnark.jar:${i2plib}/mstreaming.jar:${i2plib}/systray.jar:${i2plib}/desktopgui.jar:${jettylib}/org.mortbay.jetty.jar:${jettylib}/jetty-util.jar:${jettylib}/jetty-xml.jar" >
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="pluginjar" depends="jar">
|
||||
<mkdir dir="./build" />
|
||||
<mkdir dir="./build/obj" />
|
||||
<javac
|
||||
srcdir="./plugin"
|
||||
debug="true" deprecation="on" source="${javac.version}" target="${javac.version}"
|
||||
destdir="./build/obj"
|
||||
includeAntRuntime="false"
|
||||
classpath="${i2plib}/i2p.jar:${i2plib}/i2ptunnel.jar:${i2plib}/i2psnark.jar:${i2plib}/mstreaming.jar:${i2plib}/systray.jar:${i2plib}/desktopgui.jar:${jettylib}/org.mortbay.jetty.jar:${jettylib}/jetty-util.jar:${jettylib}/jetty-xml.jar:./build/i2pfirefox.jar" >
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
<jar destfile="build/i2pfirefox-plugin.jar" basedir="./build/obj" includes="**/*.class" >
|
||||
<fileset file="i2p.firefox.base.profile.zip" />
|
||||
<fileset file="i2p.firefox.usability.profile.zip" />
|
||||
<fileset file="i2p.chromium.base.profile.zip" />
|
||||
<fileset file="i2p.chromium.usability.profile.zip" />
|
||||
<fileset file="icon.png" />
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="builddep, compile">
|
||||
<jar destfile="build/i2pfirefox.jar" basedir="./build/obj" includes="**/*.class" >
|
||||
<fileset file="i2p.firefox.base.profile.zip" />
|
||||
|
@ -1,27 +1,6 @@
|
||||
package net.i2p.i2pfirefox;
|
||||
|
||||
import java.awt.AWTException;
|
||||
import java.awt.Component;
|
||||
import java.awt.Image;
|
||||
import java.awt.Menu;
|
||||
import java.awt.MenuItem;
|
||||
import java.awt.PopupMenu;
|
||||
import java.awt.SystemTray;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.TrayIcon;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.MouseListener;
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* I2PBrowser.java
|
||||
@ -41,61 +20,49 @@ import java.util.Arrays;
|
||||
* @author idk
|
||||
* @since 0.0.16
|
||||
*/
|
||||
public class I2PBrowser extends I2PCommonBrowser {
|
||||
public class I2PBrowser extends I2PGenericUnsafeBrowser {
|
||||
private final I2PFirefox i2pFirefox = new I2PFirefox();
|
||||
private final I2PChromium i2pChromium = new I2PChromium();
|
||||
private final I2PGenericUnsafeBrowser i2pGeneral =
|
||||
new I2PGenericUnsafeBrowser();
|
||||
private final Toolkit toolkit = Toolkit.getDefaultToolkit();
|
||||
private final SystemTray tray = initTray();
|
||||
private final Image image = toolkit.getImage("icon.png");
|
||||
private final TrayIcon icon = initIcon();
|
||||
private final PopupMenu menu = initMenu();
|
||||
|
||||
private final Menu submenuStrict = new Menu("Strict Mode");
|
||||
private final MenuItem launchRegularBrowserStrict =
|
||||
new MenuItem("Launch I2P Browser");
|
||||
private final MenuItem launchPrivateBrowserStrict =
|
||||
new MenuItem("Launch I2P Browser - Throwaway Session");
|
||||
private final Menu submenuUsability = new Menu("Usability Mode");
|
||||
private final MenuItem launchRegularBrowserUsability =
|
||||
new MenuItem("Launch I2P Browser");
|
||||
private final MenuItem launchPrivateBrowserUsability =
|
||||
new MenuItem("Launch I2P Browser - Throwaway Session");
|
||||
private final MenuItem launchConfigBrowserUsability =
|
||||
new MenuItem("Launch I2P Console");
|
||||
private final MenuItem closeItem = new MenuItem("Close");
|
||||
|
||||
public boolean firefox = false;
|
||||
public boolean chromium = false;
|
||||
public boolean generic = false;
|
||||
public boolean chromiumFirst = false;
|
||||
public boolean usability = false;
|
||||
public int privateBrowsing = 0;
|
||||
static private boolean outputConfig = false;
|
||||
static private boolean useSystray = true;
|
||||
private boolean outputConfig = false;
|
||||
|
||||
private void launchFirefox(int privateWindow, String[] url) {
|
||||
logger.info("I2PFirefox" + privateWindow);
|
||||
I2PFirefox.usability = usability;
|
||||
public void launchFirefox(int privateWindow, String[] url) {
|
||||
String priv = privateWindow == 1 ? "private-window" : "long-profile";
|
||||
logger.info("I2PFirefox" + priv);
|
||||
i2pFirefox.usability = usability;
|
||||
if (url == null)
|
||||
url = new String[] {"about:blank"};
|
||||
if (outputConfig)
|
||||
i2pFirefox.storeFirefoxDefaults();
|
||||
i2pFirefox.launch(privateWindow, url);
|
||||
}
|
||||
private void launchChromium(int privateWindow, String[] url) {
|
||||
logger.info("I2PChromium" + privateWindow);
|
||||
I2PChromiumProfileBuilder.usability = usability;
|
||||
public void launchChromium(int privateWindow, String[] url) {
|
||||
String priv = privateWindow == 1 ? "private-window" : "long-profile";
|
||||
logger.info("I2PChromium" + priv);
|
||||
i2pChromium.usability = usability;
|
||||
if (url == null)
|
||||
url = new String[] {"about:blank"};
|
||||
if (outputConfig)
|
||||
i2pChromium.storeChromiumDefaults();
|
||||
i2pChromium.launch(privateWindow, url);
|
||||
}
|
||||
private void launchGeneric(int privateWindowInt, String[] url) {
|
||||
String priv = privateWindowInt == 1 ? "private-window" : "long-profile";
|
||||
boolean privateWindow = false;
|
||||
if (url == null)
|
||||
url = new String[] {"about:blank"};
|
||||
if (privateWindowInt == 1)
|
||||
privateWindow = true;
|
||||
if (outputConfig)
|
||||
i2pGeneral.storeGenericDefaults();
|
||||
logger.info("I2PGeneric" + privateWindowInt);
|
||||
logger.info("I2PGeneric" + priv);
|
||||
i2pGeneral.launch(privateWindow, url);
|
||||
}
|
||||
|
||||
@ -105,7 +72,7 @@ public class I2PBrowser extends I2PCommonBrowser {
|
||||
*
|
||||
* @since 0.0.16
|
||||
*/
|
||||
public I2PBrowser() { initIconFile(); }
|
||||
public I2PBrowser() {}
|
||||
|
||||
/**
|
||||
* Construct an I2PBrowser class which automatically determines which browser
|
||||
@ -113,14 +80,9 @@ public class I2PBrowser extends I2PCommonBrowser {
|
||||
*
|
||||
* @since 0.0.18
|
||||
*/
|
||||
public I2PBrowser(String browserPath) {
|
||||
I2PGenericUnsafeBrowser.BROWSER = browserPath;
|
||||
initIconFile();
|
||||
}
|
||||
public I2PBrowser(String browserPath) { this.BROWSER = browserPath; }
|
||||
|
||||
public void setBrowser(String browserPath) {
|
||||
I2PGenericUnsafeBrowser.BROWSER = browserPath;
|
||||
}
|
||||
public void setBrowser(String browserPath) { this.BROWSER = browserPath; }
|
||||
|
||||
/**
|
||||
* Return true if there is a Chromium available
|
||||
@ -166,21 +128,6 @@ public class I2PBrowser extends I2PCommonBrowser {
|
||||
* @since 0.0.17
|
||||
*/
|
||||
public void launch(int privateWindow, String[] url) {
|
||||
validateUserDir();
|
||||
if (generic) {
|
||||
this.launchGeneric(privateWindow, url);
|
||||
return;
|
||||
}
|
||||
if ((chromium && firefox) || (!chromium && !firefox)) {
|
||||
if (this.hasFirefox()) {
|
||||
this.launchFirefox(privateWindow, url);
|
||||
} else if (this.hasChromium()) {
|
||||
this.launchChromium(privateWindow, url);
|
||||
} else {
|
||||
this.launchGeneric(privateWindow, url);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (chromiumFirst) {
|
||||
if (chromium) {
|
||||
this.launchChromium(privateWindow, url);
|
||||
@ -226,7 +173,33 @@ public class I2PBrowser extends I2PCommonBrowser {
|
||||
*/
|
||||
public void launch() { launch(false); }
|
||||
|
||||
private static String ValidURL(String inUrl) {
|
||||
/**
|
||||
* Stop all running processes managed by the browser manager.
|
||||
*
|
||||
* @return true if successful, false if not
|
||||
*/
|
||||
public boolean stop() {
|
||||
boolean r = true;
|
||||
if (i2pFirefox != null)
|
||||
r = i2pFirefox.stop();
|
||||
if (i2pChromium != null)
|
||||
r = i2pChromium.stop();
|
||||
if (i2pGeneral != null)
|
||||
r = i2pGeneral.stop();
|
||||
return r;
|
||||
}
|
||||
|
||||
public boolean running() {
|
||||
if (i2pFirefox != null)
|
||||
return i2pFirefox.running();
|
||||
if (i2pChromium != null)
|
||||
return i2pChromium.running();
|
||||
if (i2pGeneral != null)
|
||||
return i2pGeneral.running();
|
||||
return false;
|
||||
}
|
||||
|
||||
private String ValidURL(String inUrl) {
|
||||
String[] schemes = {"http", "https"};
|
||||
for (String scheme : schemes) {
|
||||
if (inUrl.startsWith(scheme)) {
|
||||
@ -241,7 +214,6 @@ public class I2PBrowser extends I2PCommonBrowser {
|
||||
i2pBrowser.startup(args);
|
||||
}
|
||||
public ArrayList<String> parseArgs(String[] args) {
|
||||
validateUserDir();
|
||||
logger.info("I2PBrowser");
|
||||
ArrayList<String> visitURL = new ArrayList<String>();
|
||||
if (args != null) {
|
||||
@ -272,9 +244,6 @@ public class I2PBrowser extends I2PCommonBrowser {
|
||||
if (arg.equals("-outputconfig")) {
|
||||
outputConfig = true;
|
||||
}
|
||||
if (arg.equals("-nosystray")) {
|
||||
useSystray = false;
|
||||
}
|
||||
if (arg.equals("-noproxycheck")) {
|
||||
logger.info("zeroing out proxy check");
|
||||
this.setProxyTimeoutTime(0);
|
||||
@ -284,187 +253,22 @@ public class I2PBrowser extends I2PCommonBrowser {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!this.chromium)
|
||||
this.firefox = true;
|
||||
}
|
||||
return visitURL;
|
||||
}
|
||||
public void startup(String[] args) {
|
||||
ArrayList<String> visitURL = parseArgs(args);
|
||||
try {
|
||||
if (useSystray) {
|
||||
startupSystray();
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
shutdownSystray();
|
||||
}
|
||||
});
|
||||
}
|
||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
||||
@Override
|
||||
public void run() {}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
logger.warning(e.toString());
|
||||
}
|
||||
this.launch(this.privateBrowsing,
|
||||
visitURL.toArray(new String[visitURL.size()]));
|
||||
}
|
||||
protected static boolean createSystrayRunningFile() {
|
||||
if (!systrayRunningExternally()) {
|
||||
try {
|
||||
File systrayIsRunningFile =
|
||||
new File(runtimeDirectory(""), "systray.running");
|
||||
FileWriter myWriter = new FileWriter(systrayIsRunningFile);
|
||||
myWriter.write("systray.running file created");
|
||||
myWriter.close();
|
||||
return true;
|
||||
} catch (IOException ioe) {
|
||||
logger.warning(ioe.toString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
protected static boolean systrayRunningExternally() {
|
||||
File systrayIsRunningFile =
|
||||
new File(runtimeDirectory(""), "systray.running");
|
||||
if (systrayIsRunningFile.exists()) {
|
||||
logger.info("Systray is already running in another process: " +
|
||||
systrayIsRunningFile.toString());
|
||||
return true;
|
||||
}
|
||||
logger.info("Systray does not appear to be running");
|
||||
return false;
|
||||
}
|
||||
private SystemTray initTray() {
|
||||
if (systrayRunningExternally()) {
|
||||
return null;
|
||||
}
|
||||
if (!SystemTray.isSupported()) {
|
||||
logger.warning("SystemTray is not supported");
|
||||
return null;
|
||||
}
|
||||
return SystemTray.getSystemTray();
|
||||
}
|
||||
|
||||
private PopupMenu initMenu() {
|
||||
PopupMenu menu = new PopupMenu();
|
||||
return menu;
|
||||
}
|
||||
|
||||
private File initIconFile() {
|
||||
File iconFile = new File(runtimeDirectory(""), "icon.png");
|
||||
if (!iconFile.exists()) {
|
||||
InputStream resources =
|
||||
I2PBrowser.class.getClassLoader().getResourceAsStream("icon.png");
|
||||
try {
|
||||
OutputStream fos = new FileOutputStream(iconFile);
|
||||
copy(resources, fos);
|
||||
} catch (IOException e) {
|
||||
logger.warning(e.toString());
|
||||
}
|
||||
}
|
||||
return iconFile;
|
||||
}
|
||||
private TrayIcon initIcon() {
|
||||
TrayIcon icon = new TrayIcon(image, "I2P Browser Profile Controller", menu);
|
||||
icon.addMouseListener(new MouseAdapter() {
|
||||
public void mouseClicked(MouseEvent e) {
|
||||
if (e.getClickCount() == 2) {
|
||||
String[] args = {"-usability", "-app", "http://127.0.0.1:7657"};
|
||||
main(args);
|
||||
}
|
||||
}
|
||||
});
|
||||
icon.setImageAutoSize(true);
|
||||
return icon;
|
||||
}
|
||||
protected void startupSystray() {
|
||||
if (!systrayRunningExternally()) {
|
||||
logger.info("Setting up systray");
|
||||
try {
|
||||
if (useSystray) {
|
||||
logger.info("Starting systray");
|
||||
try {
|
||||
if (systray()) {
|
||||
logger.info("Systray started");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (!createSystrayRunningFile()) {
|
||||
logger.warning("Failed to create systray running file");
|
||||
}
|
||||
}
|
||||
logger.info("Adding icon to systray");
|
||||
tray.add(icon);
|
||||
} catch (AWTException e) {
|
||||
logger.warning(e.toString());
|
||||
}
|
||||
} else {
|
||||
logger.warning("Systray is already running externally");
|
||||
}
|
||||
}
|
||||
protected void shutdownSystray() {
|
||||
if (tray != null)
|
||||
tray.remove(icon);
|
||||
if (systrayRunningExternally()) {
|
||||
File systrayIsRunningFile =
|
||||
new File(runtimeDirectory(""), "systray.running");
|
||||
systrayIsRunningFile.delete();
|
||||
}
|
||||
}
|
||||
public boolean systray() throws Exception {
|
||||
if (tray == null)
|
||||
throw new Exception("System Tray is Null Exception");
|
||||
launchRegularBrowserStrict.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
String[] args = {"-strict"};
|
||||
main(args);
|
||||
}
|
||||
});
|
||||
submenuStrict.add(launchRegularBrowserStrict);
|
||||
logger.info("Added strict mode browser");
|
||||
launchPrivateBrowserStrict.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
String[] args = {"-private", "-strict"};
|
||||
main(args);
|
||||
}
|
||||
});
|
||||
submenuStrict.add(launchPrivateBrowserStrict);
|
||||
logger.info("Added strict+private mode browser");
|
||||
menu.add(submenuStrict);
|
||||
logger.info("Added strict mode submenu");
|
||||
launchRegularBrowserUsability.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
String[] args = {"-usability"};
|
||||
main(args);
|
||||
}
|
||||
});
|
||||
submenuUsability.add(launchRegularBrowserUsability);
|
||||
logger.info("Added usability mode browser");
|
||||
launchPrivateBrowserUsability.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
String[] args = {"-private", "-strict"};
|
||||
main(args);
|
||||
}
|
||||
});
|
||||
submenuUsability.add(launchPrivateBrowserUsability);
|
||||
logger.info("Added usability+private mode browser");
|
||||
launchConfigBrowserUsability.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
String[] args = {"-usability", "-app", "http://127.0.0.1:7657"};
|
||||
main(args);
|
||||
}
|
||||
});
|
||||
menu.add(submenuUsability);
|
||||
menu.add(launchConfigBrowserUsability);
|
||||
logger.info("Added config-only browser");
|
||||
logger.info("Added usability mode submenu");
|
||||
closeItem.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) { shutdownSystray(); }
|
||||
});
|
||||
menu.add(closeItem);
|
||||
icon.setPopupMenu(menu);
|
||||
logger.info("Added close menu item");
|
||||
return true;
|
||||
}
|
||||
}
|
@ -1,188 +0,0 @@
|
||||
package net.i2p.i2pfirefox;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.logging.FileHandler;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.logging.SimpleFormatter;
|
||||
import net.i2p.I2PAppContext;
|
||||
import net.i2p.app.ClientApp;
|
||||
import net.i2p.app.ClientAppManager;
|
||||
import net.i2p.app.ClientAppState;
|
||||
import net.i2p.util.EepGet;
|
||||
|
||||
public class I2PBrowserPlugin extends I2PBrowser implements ClientApp {
|
||||
private final I2PAppContext context;
|
||||
private final ClientAppManager cam;
|
||||
private final String[] args;
|
||||
private volatile boolean got = false;
|
||||
private volatile boolean shutdown = false;
|
||||
public I2PBrowserPlugin(I2PAppContext context, ClientAppManager listener,
|
||||
String[] args) {
|
||||
this.cam = listener;
|
||||
cam.notify(this, ClientAppState.UNINITIALIZED,
|
||||
"Initializing Profile Manager Systray Plugin", null);
|
||||
this.context = context;
|
||||
this.args = args;
|
||||
cam.notify(this, ClientAppState.INITIALIZED,
|
||||
"Profile Manager Systray Plugin Initialized", null);
|
||||
}
|
||||
private static File threadLogFile() {
|
||||
validateUserDir();
|
||||
String userDir = System.getProperty("user.dir");
|
||||
File log = new File(userDir, "logs");
|
||||
if (!log.exists())
|
||||
log.mkdirs();
|
||||
return new File(log, "browserlauncherthreadlogger.log");
|
||||
}
|
||||
public String getDisplayName() { return "Browser Profile Manager"; }
|
||||
public String getName() { return "browserProfileManager"; }
|
||||
public void shutdown(String[] args) {
|
||||
this.shutdownSystray();
|
||||
cam.notify(this, ClientAppState.STOPPING,
|
||||
"Shutting down up profile manager systray", null);
|
||||
got = true;
|
||||
shutdown = true;
|
||||
cam.unregister(this);
|
||||
cam.notify(this, ClientAppState.STOPPED,
|
||||
"Shutting down up profile manager systray", null);
|
||||
}
|
||||
private void downloadInBackground() throws IOException {
|
||||
try {
|
||||
Logger threadLogger = Logger.getLogger("browserlauncherupdatethread");
|
||||
FileHandler fh = new FileHandler(threadLogFile().toString());
|
||||
threadLogger.addHandler(fh);
|
||||
SimpleFormatter formatter = new SimpleFormatter();
|
||||
fh.setFormatter(formatter);
|
||||
got = downloadTorrent();
|
||||
while (!got) {
|
||||
threadLogger.info("Working to download updates in the background");
|
||||
if (shutdown) {
|
||||
break;
|
||||
}
|
||||
got = downloadTorrent();
|
||||
try {
|
||||
Thread.sleep(5000);
|
||||
} catch (InterruptedException err) {
|
||||
logger.warning(err.toString());
|
||||
}
|
||||
}
|
||||
|
||||
if (got) {
|
||||
try {
|
||||
File content = torrentFileContents();
|
||||
if (content.exists()) {
|
||||
content.delete();
|
||||
}
|
||||
} catch (IOException err) {
|
||||
threadLogger.warning(err.toString());
|
||||
}
|
||||
}
|
||||
} catch (IOException err) {
|
||||
// just re-throw here
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
public void startup() {
|
||||
shutdown = false;
|
||||
cam.notify(this, ClientAppState.STARTING,
|
||||
"Starting up profile manager systray", null);
|
||||
Runnable r = new Runnable() {
|
||||
public void run() {
|
||||
logger.info("Downloading in background thread");
|
||||
try {
|
||||
downloadInBackground();
|
||||
} catch (IOException err) {
|
||||
err.printStackTrace();
|
||||
}
|
||||
}
|
||||
};
|
||||
new Thread(r).start();
|
||||
try {
|
||||
this.startup(args);
|
||||
cam.register(this);
|
||||
cam.notify(this, ClientAppState.RUNNING,
|
||||
"Starting up profile manager systray", null);
|
||||
} catch (Exception e) {
|
||||
logger.info(e.toString());
|
||||
cam.notify(this, ClientAppState.START_FAILED,
|
||||
"Error starting profile manager systray", e);
|
||||
}
|
||||
}
|
||||
|
||||
private File torrentDir() throws IOException {
|
||||
File configDir = context.getConfigDir();
|
||||
if (configDir == null) {
|
||||
throw new IOException("The I2P Config directory is null");
|
||||
}
|
||||
if (!configDir.exists()) {
|
||||
throw new IOException("The I2P Config directory does not exist");
|
||||
}
|
||||
File snarkDir = new File(configDir, "i2psnark");
|
||||
if (snarkDir == null) {
|
||||
throw new IOException("The Snark directory is null");
|
||||
}
|
||||
if (!snarkDir.exists()) {
|
||||
throw new IOException("The Snark directory does not exist");
|
||||
}
|
||||
return snarkDir;
|
||||
}
|
||||
private File torrentFile() throws IOException {
|
||||
try {
|
||||
File torrents = torrentDir();
|
||||
File torrent = new File(torrents, "i2p.plugins.firefox.torrent");
|
||||
if (torrent == null) {
|
||||
throw new IOException("Cannot download torrent, torrent file is null");
|
||||
}
|
||||
return torrent;
|
||||
} catch (IOException err) {
|
||||
logger.warning(err.toString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
private File torrentFileContents() throws IOException {
|
||||
try {
|
||||
File torrents = torrentDir();
|
||||
File torrent = new File(torrents, "i2p.plugins.firefox");
|
||||
if (torrent == null) {
|
||||
throw new IOException("Torrent directory contents are null");
|
||||
}
|
||||
return torrent;
|
||||
} catch (IOException err) {
|
||||
logger.warning(err.toString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
private boolean downloadTorrent() {
|
||||
try {
|
||||
String url =
|
||||
"http://idk.i2p/i2p.plugins.firefox/i2p.plugins.firefox.torrent";
|
||||
String name = torrentFile().getAbsolutePath();
|
||||
logger.info("Downloading " + url + " to " + name);
|
||||
EepGet eepGet =
|
||||
new EepGet(context, true, "127.0.0.1", 4444, 5, name, url);
|
||||
if (eepGet.getNotModified()) {
|
||||
return false;
|
||||
}
|
||||
return eepGet.fetch(60, 180, 60);
|
||||
} catch (IOException err) {
|
||||
logger.warning(err.toString());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public ClientAppState getState() {
|
||||
if (shutdown && !systrayRunningExternally()) {
|
||||
String msg = "Firefox profile manager systray is stopped";
|
||||
logger.info(msg);
|
||||
cam.notify(this, ClientAppState.STOPPED, msg, null);
|
||||
return ClientAppState.STOPPED;
|
||||
}
|
||||
if (systrayRunningExternally()) {
|
||||
String msg = "Firefox profile manager systray is running";
|
||||
logger.info(msg);
|
||||
cam.notify(this, ClientAppState.RUNNING, msg, null);
|
||||
return ClientAppState.RUNNING;
|
||||
}
|
||||
return ClientAppState.FORKED; // Used as a euphemism for unknown here.
|
||||
}
|
||||
}
|
@ -26,9 +26,10 @@ import java.util.stream.Stream;
|
||||
* @author idk
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public class I2PChromium extends I2PCommonBrowser {
|
||||
public class I2PChromium extends I2PChromiumProfileUnpacker {
|
||||
private final String[] CHROMIUM_SEARCH_PATHS = CHROMIUM_FINDER();
|
||||
private Process p = null;
|
||||
private String chromePath;
|
||||
|
||||
/**
|
||||
* Construct an I2PChromium class which manages an instance of Chromium and
|
||||
@ -54,40 +55,41 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
return;
|
||||
}
|
||||
}
|
||||
I2PChromiumProfileBuilder.usability = true;
|
||||
this.usability = true;
|
||||
}
|
||||
|
||||
public static void storeChromiumDefaults() {
|
||||
public void storeChromiumDefaults() {
|
||||
List<String> list = new ArrayList<String>();
|
||||
list = Arrays.asList(chromiumPathsWindows());
|
||||
prop.setProperty("chromium.paths.windows",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("chromium.paths.windows",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
list = Arrays.asList(chromiumPathsUnix());
|
||||
prop.setProperty("chromium.paths.linux",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("chromium.paths.linux",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
list = Arrays.asList(chromiumPathsOSX());
|
||||
prop.setProperty("chromium.paths.osx",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("chromium.paths.osx",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
|
||||
list = Arrays.asList(chromiumBinsWindows());
|
||||
prop.setProperty("chromium.bins.windows",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("chromium.bins.windows",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
list = Arrays.asList(chromiumBinsUnix());
|
||||
prop.setProperty("chromium.bins.linux",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("chromium.bins.linux",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
list = Arrays.asList(chromiumBinsUnix());
|
||||
prop.setProperty("chromium.bins.osx",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("chromium.bins.osx",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
try (OutputStream fos = new FileOutputStream(
|
||||
new File(runtimeDirectory(""), "browser.config"))) {
|
||||
prop.store(fos, "Chromium Configuration Section");
|
||||
getProperties().store(fos, "Chromium Configuration Section");
|
||||
} catch (IOException ioe) {
|
||||
logger.warning(ioe.toString());
|
||||
}
|
||||
}
|
||||
|
||||
private static String[] chromiumPathsUnix() {
|
||||
String chromiumPathsProp = prop.getProperty("chromium.paths.unix");
|
||||
private String[] chromiumPathsUnix() {
|
||||
String chromiumPathsProp =
|
||||
getProperties().getProperty("chromium.paths.unix");
|
||||
if (chromiumPathsProp != null)
|
||||
if (!chromiumPathsProp.equals(""))
|
||||
return chromiumPathsProp.split(",");
|
||||
@ -95,15 +97,15 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
"/snap/bin"};
|
||||
}
|
||||
|
||||
private static String[] chromiumBinsUnix() {
|
||||
private String[] chromiumBinsUnix() {
|
||||
String chromiumPathsProp;
|
||||
if (isOSX()) {
|
||||
chromiumPathsProp = prop.getProperty("chromium.bins.osx");
|
||||
chromiumPathsProp = getProperties().getProperty("chromium.bins.osx");
|
||||
if (chromiumPathsProp != null)
|
||||
if (!chromiumPathsProp.equals(""))
|
||||
return chromiumPathsProp.split(",");
|
||||
}
|
||||
chromiumPathsProp = prop.getProperty("chromium.bins.unix");
|
||||
chromiumPathsProp = getProperties().getProperty("chromium.bins.unix");
|
||||
if (chromiumPathsProp != null)
|
||||
if (!chromiumPathsProp.equals(""))
|
||||
return chromiumPathsProp.split(",");
|
||||
@ -111,7 +113,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
"ungoogled-chromium", "chromium", "brave", "edge", "msedge", "chrome"};
|
||||
}
|
||||
|
||||
private static String[] FIND_CHROMIUM_SEARCH_PATHS_UNIX() {
|
||||
private String[] FIND_CHROMIUM_SEARCH_PATHS_UNIX() {
|
||||
String[] path = chromiumPathsUnix();
|
||||
String[] exes = chromiumBinsUnix();
|
||||
|
||||
@ -125,8 +127,9 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
}
|
||||
return exePath;
|
||||
}
|
||||
private static String[] chromiumPathsOSX() {
|
||||
String chromiumPathsProp = prop.getProperty("chromium.paths.osx");
|
||||
private String[] chromiumPathsOSX() {
|
||||
String chromiumPathsProp =
|
||||
getProperties().getProperty("chromium.paths.osx");
|
||||
if (chromiumPathsProp != null)
|
||||
if (!chromiumPathsProp.equals(""))
|
||||
return chromiumPathsProp.split(",");
|
||||
@ -134,7 +137,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
"/Applications/Chrome.app/Contents/MacOS",
|
||||
"/Applications/Brave.app/Contents/MacOS"};
|
||||
}
|
||||
private static String[] FIND_CHROMIUM_SEARCH_PATHS_OSX() {
|
||||
private String[] FIND_CHROMIUM_SEARCH_PATHS_OSX() {
|
||||
String[] path = chromiumPathsOSX();
|
||||
String[] exes = chromiumBinsUnix();
|
||||
String[] exePath = new String[path.length * exes.length];
|
||||
@ -148,8 +151,9 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
return exePath;
|
||||
}
|
||||
|
||||
private static String[] chromiumPathsWindows() {
|
||||
String chromiumPathsProp = prop.getProperty("chromium.paths.windows");
|
||||
private String[] chromiumPathsWindows() {
|
||||
String chromiumPathsProp =
|
||||
getProperties().getProperty("chromium.paths.windows");
|
||||
if (chromiumPathsProp != null)
|
||||
if (!chromiumPathsProp.equals(""))
|
||||
return chromiumPathsProp.split(",");
|
||||
@ -181,8 +185,9 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
new File(programFiles, "/Microsoft/Edge/Application/").toString(),
|
||||
};
|
||||
}
|
||||
private static String[] chromiumBinsWindows() {
|
||||
String chromiumPathsProp = prop.getProperty("chromium.bins.windows");
|
||||
private String[] chromiumBinsWindows() {
|
||||
String chromiumPathsProp =
|
||||
getProperties().getProperty("chromium.bins.windows");
|
||||
if (chromiumPathsProp != null)
|
||||
if (!chromiumPathsProp.equals(""))
|
||||
return chromiumPathsProp.split(",");
|
||||
@ -193,7 +198,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
"msedge.exe",
|
||||
"chrome.exe"};
|
||||
}
|
||||
private static String[] FIND_CHROMIUM_SEARCH_PATHS_WINDOWS() {
|
||||
private String[] FIND_CHROMIUM_SEARCH_PATHS_WINDOWS() {
|
||||
String[] path = chromiumPathsWindows();
|
||||
String[] exes = chromiumBinsWindows();
|
||||
String[] exePath = new String[path.length * exes.length];
|
||||
@ -207,7 +212,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
return exePath;
|
||||
}
|
||||
|
||||
private static String[] FIND_ALL_CHROMIUM_SEARCH_PATHS() {
|
||||
private String[] FIND_ALL_CHROMIUM_SEARCH_PATHS() {
|
||||
String[] Unix = FIND_CHROMIUM_SEARCH_PATHS_UNIX();
|
||||
String[] Windows = FIND_CHROMIUM_SEARCH_PATHS_WINDOWS();
|
||||
String[] Mac = FIND_CHROMIUM_SEARCH_PATHS_OSX();
|
||||
@ -227,7 +232,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
}
|
||||
return exePath;
|
||||
}
|
||||
private static String[] FIND_CHROMIUM_SEARCH_PATHS() {
|
||||
private String[] FIND_CHROMIUM_SEARCH_PATHS() {
|
||||
switch (getOperatingSystem()) {
|
||||
case "Windows":
|
||||
return FIND_CHROMIUM_SEARCH_PATHS_WINDOWS();
|
||||
@ -241,7 +246,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
return FIND_ALL_CHROMIUM_SEARCH_PATHS();
|
||||
}
|
||||
}
|
||||
private static String[] NEARBY_CHROMIUM_SEARCH_PATHS() {
|
||||
private String[] NEARBY_CHROMIUM_SEARCH_PATHS() {
|
||||
// obtain the PLUGIN environment variable
|
||||
String plugin = System.getenv("PLUGIN");
|
||||
if (plugin != null && !plugin.isEmpty()) {
|
||||
@ -290,7 +295,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
}
|
||||
// now, do the same thing, but with user.dir instead of plugin
|
||||
// list the directories in the user.dir directory
|
||||
File userDir = new File(System.getProperty("user.dir"));
|
||||
File userDir = userHomeDir();
|
||||
if (userDir.exists()) {
|
||||
if (isWindows()) {
|
||||
File searchResult = searchFile(userDir, "ungoogled-chromium.exe");
|
||||
@ -334,7 +339,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
}
|
||||
return new String[] {};
|
||||
}
|
||||
private static String[] CHROMIUM_FINDER() {
|
||||
private String[] CHROMIUM_FINDER() {
|
||||
String[] nearby = NEARBY_CHROMIUM_SEARCH_PATHS();
|
||||
String[] all = FIND_CHROMIUM_SEARCH_PATHS();
|
||||
|
||||
@ -384,11 +389,13 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
File chromeFile = new File(chrome);
|
||||
if (chromeFile.exists()) {
|
||||
// if it does, return it
|
||||
chromePath = chrome;
|
||||
return chrome;
|
||||
}
|
||||
}
|
||||
String[] chromees = onlyValidChromiums();
|
||||
if (chromees.length > 0) {
|
||||
chromePath = chromees[0];
|
||||
return chromees[0];
|
||||
} else {
|
||||
return "";
|
||||
@ -551,8 +558,7 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
String[] newArgs = new String[arglength + 32];
|
||||
newArgs[0] = chrome;
|
||||
newArgs[1] =
|
||||
"--user-data-dir=" + I2PChromiumProfileBuilder.profileDirectory(
|
||||
I2PChromiumProfileBuilder.usabilityMode());
|
||||
"--user-data-dir=" + this.profileDirectory(this.usabilityMode());
|
||||
newArgs[2] = "--proxy-server=http://127.0.0.1:4444";
|
||||
newArgs[3] =
|
||||
"--proxy-bypass-list=http://localhost:7657,http://127.0.0.1:7657";
|
||||
@ -583,42 +589,39 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
newArgs[28] = "--referrer-directive=noreferrers";
|
||||
newArgs[29] = "--force-punycode-hostnames";
|
||||
newArgs[30] = "--disable-sharing-hub";
|
||||
if (!I2PChromiumProfileBuilder.usability) {
|
||||
if (!this.usability) {
|
||||
newArgs[31] =
|
||||
"--load-extension=" +
|
||||
new File(I2PChromiumProfileBuilder.profileDirectory("base"),
|
||||
"extensions/i2pchrome.js")
|
||||
new File(this.profileDirectory("base"), "extensions/i2pchrome.js")
|
||||
.getAbsolutePath() +
|
||||
"," +
|
||||
new File(I2PChromiumProfileBuilder.profileDirectory("base"),
|
||||
new File(this.profileDirectory("base"),
|
||||
"extensions/https-everywhere.js")
|
||||
.getAbsolutePath() +
|
||||
"," +
|
||||
new File(I2PChromiumProfileBuilder.profileDirectory("base"),
|
||||
"extensions/noscript.js")
|
||||
new File(this.profileDirectory("base"), "extensions/noscript.js")
|
||||
.getAbsolutePath();
|
||||
|
||||
} else {
|
||||
newArgs[31] =
|
||||
"--load-extension=" +
|
||||
new File(I2PChromiumProfileBuilder.profileDirectory("usability"),
|
||||
new File(this.profileDirectory("usability"),
|
||||
"extensions/i2pchrome.js")
|
||||
.getAbsolutePath() +
|
||||
"," +
|
||||
new File(I2PChromiumProfileBuilder.profileDirectory("usability"),
|
||||
new File(this.profileDirectory("usability"),
|
||||
"extensions/https-everywhere.js")
|
||||
.getAbsolutePath() +
|
||||
"," +
|
||||
new File(I2PChromiumProfileBuilder.profileDirectory("usability"),
|
||||
new File(this.profileDirectory("usability"),
|
||||
"extensions/jshelter.js")
|
||||
.getAbsolutePath() +
|
||||
"," +
|
||||
new File(I2PChromiumProfileBuilder.profileDirectory("usability"),
|
||||
new File(this.profileDirectory("usability"),
|
||||
"extensions/localcdn.js")
|
||||
.getAbsolutePath() +
|
||||
"," +
|
||||
new File(I2PChromiumProfileBuilder.profileDirectory("usability"),
|
||||
"extensions/ublock.js")
|
||||
new File(this.profileDirectory("usability"), "extensions/ublock.js")
|
||||
.getAbsolutePath();
|
||||
}
|
||||
if (args != null) {
|
||||
@ -650,13 +653,13 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
bashScript.setExecutable(true);
|
||||
}
|
||||
return new ProcessBuilder(bashScript.getAbsolutePath())
|
||||
.directory(I2PChromiumProfileBuilder.runtimeDirectory(true));
|
||||
.directory(this.runtimeDirectory(true));
|
||||
} catch (IOException e) {
|
||||
logger.warning(e.toString());
|
||||
}
|
||||
} else {
|
||||
return new ProcessBuilder(newArgs).directory(
|
||||
I2PChromiumProfileBuilder.runtimeDirectory(true));
|
||||
this.runtimeDirectory(true));
|
||||
}
|
||||
}
|
||||
logger.info("No Chromium found.");
|
||||
@ -671,17 +674,15 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
}
|
||||
|
||||
public Process launchAndDetatch(int privateWindow, String[] url) {
|
||||
validateUserDir();
|
||||
validateUserDirectory();
|
||||
if (waitForProxy()) {
|
||||
String profileDirectory = I2PChromiumProfileBuilder.profileDirectory(
|
||||
I2PChromiumProfileBuilder.usabilityMode());
|
||||
if (I2PChromiumProfileChecker.validateProfileDirectory(
|
||||
profileDirectory)) {
|
||||
String profileDirectory = this.profileDirectory(this.usabilityMode());
|
||||
if (this.validateProfileDirectory(profileDirectory)) {
|
||||
logger.info("Valid profile directory: " + profileDirectory);
|
||||
} else {
|
||||
logger.info("Invalid profile directory: " + profileDirectory +
|
||||
" rebuilding...");
|
||||
if (!I2PChromiumProfileBuilder.copyBaseProfiletoProfile()) {
|
||||
if (!this.copyBaseProfiletoProfile()) {
|
||||
logger.info("Failed to rebuild profile directory: " +
|
||||
profileDirectory);
|
||||
return null;
|
||||
@ -770,7 +771,26 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
*/
|
||||
public void launch() { launch(false); }
|
||||
|
||||
private static String ValidURL(String inUrl) {
|
||||
/**
|
||||
* Stop all running processes managed by the browser manager.
|
||||
*
|
||||
* @return true if successful, false if not
|
||||
*/
|
||||
public boolean stop() {
|
||||
if (p != null) {
|
||||
p.destroy();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean running() {
|
||||
if (p != null)
|
||||
return p.isAlive();
|
||||
return false;
|
||||
}
|
||||
|
||||
private String ValidURL(String inUrl) {
|
||||
String[] schemes = {"http", "https"};
|
||||
for (String scheme : schemes) {
|
||||
if (inUrl.startsWith(scheme)) {
|
||||
@ -781,37 +801,37 @@ public class I2PChromium extends I2PCommonBrowser {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
validateUserDir();
|
||||
int privateBrowsing = 0;
|
||||
logger.info("I2PChromium");
|
||||
I2PChromium i2pChromium = new I2PChromium();
|
||||
logger.info("checking for private browsing");
|
||||
i2pChromium.validateUserDirectory();
|
||||
i2pChromium.logger.info("I2PChromium");
|
||||
i2pChromium.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 = 1;
|
||||
logger.info(
|
||||
i2pChromium.logger.info(
|
||||
"private browsing is true, profile will be discarded at end of session");
|
||||
}
|
||||
if (arg.equals("-usability")) {
|
||||
I2PChromiumProfileBuilder.usability = true;
|
||||
i2pChromium.usability = true;
|
||||
}
|
||||
if (arg.equals("-app")) {
|
||||
privateBrowsing = 2;
|
||||
I2PChromiumProfileBuilder.usability = true;
|
||||
i2pChromium.usability = true;
|
||||
}
|
||||
if (arg.equals("-noproxycheck")) {
|
||||
logger.info("zeroing out proxy check");
|
||||
i2pChromium.logger.info("zeroing out proxy check");
|
||||
i2pChromium.setProxyTimeoutTime(0);
|
||||
}
|
||||
if (!arg.startsWith("-")) {
|
||||
// check if it's a URL
|
||||
if (privateBrowsing == 2)
|
||||
visitURL.add("--app=" + ValidURL(arg));
|
||||
visitURL.add("--app=" + i2pChromium.ValidURL(arg));
|
||||
else
|
||||
visitURL.add(ValidURL(arg));
|
||||
visitURL.add(i2pChromium.ValidURL(arg));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -20,19 +20,10 @@ import java.io.File;
|
||||
* @author idk
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
|
||||
public static boolean usability;
|
||||
public class I2PChromiumProfileBuilder extends I2PChromiumProfileChecker {
|
||||
public boolean usability;
|
||||
|
||||
/**
|
||||
* get the profile directory, creating it if necessary
|
||||
*
|
||||
* @return the profile directory, or null if it could not be created
|
||||
*/
|
||||
public static String profileDirectory(String base) {
|
||||
return profileDirectory("I2P_CHROMIUM_PROFILE", "chromium", base, false);
|
||||
}
|
||||
|
||||
private static String baseProfileDir(String file, String mode) {
|
||||
private String baseProfileDir(String file, String mode) {
|
||||
File profileDir = new File(file, "i2p.chromium." + mode + ".profile");
|
||||
// make sure the directory exists
|
||||
if (profileDir.exists()) {
|
||||
@ -52,11 +43,11 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
|
||||
*
|
||||
* @return the base profile directory, or null if it could not be created
|
||||
*/
|
||||
/*public static String baseProfileDirectory() {
|
||||
/*public String baseProfileDirectory() {
|
||||
return baseProfileDirectory("base");
|
||||
}*/
|
||||
|
||||
public static String baseProfileDirectory(String mode) {
|
||||
public String baseProfileDirectory(String mode) {
|
||||
String pd = System.getenv("I2P_CHROMIUM_BASE_PROFILE");
|
||||
if (pd != null && !pd.isEmpty()) {
|
||||
File pdf = new File(pd);
|
||||
@ -80,7 +71,7 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
|
||||
* @return the runtime directory, or null if it could not be created
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static File runtimeDirectory(boolean create) {
|
||||
public File runtimeDirectory(boolean create) {
|
||||
String rtd = runtimeDirectory();
|
||||
return runtimeDirectory(create, rtd);
|
||||
}
|
||||
@ -91,7 +82,7 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
|
||||
* @return the runtime directory, or null if it could not be created or found
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static String runtimeDirectory() {
|
||||
public String runtimeDirectory() {
|
||||
// get the I2P_CHROMIUM_DIR environment variable
|
||||
String rtd = System.getenv("I2P_CHROMIUM_DIR");
|
||||
// if it is not null and not empty
|
||||
@ -106,7 +97,7 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
|
||||
return runtimeDirectory("");
|
||||
}
|
||||
|
||||
public static String usabilityMode() {
|
||||
public String usabilityMode() {
|
||||
if (usability)
|
||||
return "usability";
|
||||
return "base";
|
||||
@ -117,7 +108,7 @@ public class I2PChromiumProfileBuilder extends I2PCommonBrowser {
|
||||
*
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static boolean copyBaseProfiletoProfile() {
|
||||
public boolean copyBaseProfiletoProfile() {
|
||||
String baseProfile = baseProfileDirectory(usabilityMode());
|
||||
String profile = profileDirectory(usabilityMode());
|
||||
logger.info("Copying base profile to profile directory: " + baseProfile +
|
||||
|
@ -27,20 +27,30 @@ public class I2PChromiumProfileChecker extends I2PCommonBrowser {
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
String profileDirectory =
|
||||
I2PChromiumProfileBuilder.profileDirectory("base");
|
||||
I2PChromiumProfileChecker pc = new I2PChromiumProfileChecker();
|
||||
String profileDirectory = pc.profileDirectory("base");
|
||||
if (profileDirectory == null) {
|
||||
logger.info("No profile directory found");
|
||||
pc.logger.info("No profile directory found");
|
||||
return;
|
||||
}
|
||||
logger.info("Profile directory: " + profileDirectory);
|
||||
boolean ok = validateProfileDirectory(profileDirectory);
|
||||
pc.logger.info("Profile directory: " + profileDirectory);
|
||||
boolean ok = pc.validateProfileDirectory(profileDirectory);
|
||||
if (ok) {
|
||||
logger.info("Profile directory is valid");
|
||||
pc.logger.info("Profile directory is valid");
|
||||
} else {
|
||||
logger.info("Profile directory is invalid");
|
||||
pc.logger.info("Profile directory is invalid");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* get the profile directory, creating it if necessary
|
||||
*
|
||||
* @return the profile directory, or null if it could not be created
|
||||
*/
|
||||
public String profileDirectory(String base) {
|
||||
return profileDirectory("I2P_CHROMIUM_PROFILE", "chromium", base, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the profile directory is valid.
|
||||
*
|
||||
@ -48,7 +58,7 @@ public class I2PChromiumProfileChecker extends I2PCommonBrowser {
|
||||
* @return true if the profile directory is valid, false otherwise
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static boolean validateProfileDirectory(String profileDirectory) {
|
||||
public boolean validateProfileDirectory(String profileDirectory) {
|
||||
File profileDir = new File(profileDirectory);
|
||||
if (!profileDir.exists()) {
|
||||
logger.info("Profile directory does not exist");
|
||||
@ -79,7 +89,7 @@ public class I2PChromiumProfileChecker extends I2PCommonBrowser {
|
||||
* @return true if the file is valid, false otherwise
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static boolean validateFile(String file) {
|
||||
public boolean validateFile(String file) {
|
||||
File f = new File(file);
|
||||
if (!f.exists()) {
|
||||
logger.info("User JavaScript file does not exist");
|
||||
@ -106,7 +116,7 @@ public class I2PChromiumProfileChecker extends I2PCommonBrowser {
|
||||
* @return true if the extension directory is valid, false otherwise
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static boolean validateExtensionDirectory(String extensionDirectory) {
|
||||
public boolean validateExtensionDirectory(String extensionDirectory) {
|
||||
File extensionDir = new File(extensionDirectory);
|
||||
if (!extensionDir.exists()) {
|
||||
logger.info("Extension directory does not exist");
|
||||
|
@ -18,13 +18,13 @@ package net.i2p.i2pfirefox;
|
||||
* @author idk
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public class I2PChromiumProfileUnpacker extends I2PCommonBrowser {
|
||||
public class I2PChromiumProfileUnpacker extends I2PChromiumProfileBuilder {
|
||||
|
||||
public static void main(String[] args) {
|
||||
String profileDirectory =
|
||||
I2PChromiumProfileBuilder.profileDirectory("base");
|
||||
I2PChromiumProfileUnpacker pu = new I2PChromiumProfileUnpacker();
|
||||
String profileDirectory = pu.profileDirectory("base");
|
||||
if (profileDirectory == null) {
|
||||
logger.info("No profile directory found");
|
||||
pu.logger.info("No profile directory found");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -9,11 +9,9 @@ import java.io.OutputStream;
|
||||
import java.net.Socket;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
import java.util.Arrays;
|
||||
import java.util.Properties;
|
||||
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;
|
||||
|
||||
@ -33,47 +31,60 @@ import java.util.zip.ZipInputStream;
|
||||
*/
|
||||
|
||||
public class I2PCommonBrowser {
|
||||
static public Properties prop = new Properties();
|
||||
static public Logger logger = Logger.getLogger("browserlauncher");
|
||||
static FileHandler fh;
|
||||
// private final int DEFAULT_TIMEOUT = 200;
|
||||
private static int CONFIGURED_TIMEOUT = 200;
|
||||
private Properties prop = new Properties();
|
||||
public Logger logger = Logger.getLogger("browserlauncher");
|
||||
private FileHandler fh;
|
||||
private boolean validated = false;
|
||||
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();
|
||||
}
|
||||
loadPropertiesFile(new File(runtimeDirectory(""), "browser.config"));
|
||||
}
|
||||
|
||||
public static void loadPropertiesFile(File props) {
|
||||
try (InputStream propsInput = new FileInputStream(props)) {
|
||||
/**
|
||||
* Loads a properties file.
|
||||
*
|
||||
* @param propertiesFile the file to load
|
||||
*/
|
||||
public void loadPropertiesFile(File propertiesFile) {
|
||||
try (InputStream inputStream = new FileInputStream(propertiesFile)) {
|
||||
prop = new Properties();
|
||||
prop.load(propsInput);
|
||||
System.out.println(prop);
|
||||
} catch (IOException io) {
|
||||
logger.warning(io.toString());
|
||||
prop.load(inputStream);
|
||||
} catch (IOException exception) {
|
||||
logger.warning(exception.toString());
|
||||
}
|
||||
}
|
||||
|
||||
public static void validateUserDir() {
|
||||
/**
|
||||
* Retrieves the properties of the object.
|
||||
*
|
||||
* @return the properties of the object
|
||||
*/
|
||||
public Properties getProperties() { return prop; }
|
||||
|
||||
/**
|
||||
* Validates the user directory.
|
||||
*
|
||||
* @param None No parameters.
|
||||
* @return None No return value.
|
||||
*/
|
||||
public void validateUserDirectory() {
|
||||
if (validated)
|
||||
return;
|
||||
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() + ")");
|
||||
|
||||
logger.info("user.dir: " + userDirFile.getAbsolutePath());
|
||||
logger.info("user.home: " + userHomeFile.getAbsolutePath());
|
||||
|
||||
if (!userDirFile.getAbsolutePath().contains("Program Files")) {
|
||||
if (!userDirFile.getAbsolutePath().equals(
|
||||
userHomeFile.getAbsolutePath())) {
|
||||
@ -88,8 +99,9 @@ public class I2PCommonBrowser {
|
||||
} else {
|
||||
logger.info("user.dir is not writable");
|
||||
}
|
||||
} else {
|
||||
logger.info("user.dir is not actually a directory");
|
||||
}
|
||||
{ logger.info("user.dir is not actually a directory"); }
|
||||
} else {
|
||||
logger.info("user.dir does not exist");
|
||||
}
|
||||
@ -99,172 +111,218 @@ public class I2PCommonBrowser {
|
||||
} else {
|
||||
logger.info("user.dir cannot run from inside Program Files");
|
||||
}
|
||||
if (isWindows())
|
||||
if (isWindows()) {
|
||||
userHome = new File(userHome, "AppData/Local/I2P").getAbsolutePath();
|
||||
}
|
||||
File defaultPathFile = new File(userHome, "i2p/i2pbrowser");
|
||||
if (!defaultPathFile.exists())
|
||||
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());
|
||||
validated = true;
|
||||
}
|
||||
public static String getOperatingSystem() {
|
||||
String os = System.getProperty("os.name");
|
||||
if (os.startsWith("Windows")) {
|
||||
|
||||
/**
|
||||
* Get the operating system.
|
||||
*
|
||||
* @return the name of the operating system (Windows, Linux, BSD, Mac, or
|
||||
* Unknown)
|
||||
*/
|
||||
public String getOperatingSystem() {
|
||||
if (isWindows()) {
|
||||
return "Windows";
|
||||
} else if (os.contains("Linux")) {
|
||||
} else if (isLinux()) {
|
||||
return "Linux";
|
||||
} else if (os.contains("BSD")) {
|
||||
} else if (isBSD()) {
|
||||
return "BSD";
|
||||
} else if (os.contains("Mac")) {
|
||||
} else if (isOSX()) {
|
||||
return "Mac";
|
||||
}
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
protected static boolean isOSX() {
|
||||
String osName = System.getProperty("os.name");
|
||||
logger.info("os.name" + osName);
|
||||
if (osName.contains("OSX"))
|
||||
return true;
|
||||
if (osName.contains("osx"))
|
||||
return true;
|
||||
if (osName.contains("mac"))
|
||||
return true;
|
||||
if (osName.contains("Mac"))
|
||||
return true;
|
||||
if (osName.contains("apple"))
|
||||
return true;
|
||||
if (osName.contains("Apple"))
|
||||
return true;
|
||||
if (osName.contains("Darwin"))
|
||||
return true;
|
||||
if (osName.contains("darwin"))
|
||||
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");
|
||||
/**
|
||||
* Determines if the current operating system is Windows.
|
||||
*
|
||||
* @return true if the current operating system is Windows, false otherwise
|
||||
*/
|
||||
protected boolean isWindows() {
|
||||
String osName = System.getProperty("os.name").toLowerCase();
|
||||
return osName.contains("windows");
|
||||
}
|
||||
|
||||
/**
|
||||
* get the runtime directory, creating it if create=true
|
||||
* Determines if the current operating system is macOS.
|
||||
*
|
||||
* @param create if true, create the runtime directory if it does not exist
|
||||
* @return the runtime directory, or null if it could not be created
|
||||
* @since 0.0.19
|
||||
* @return true if the operating system is macOS, false otherwise
|
||||
*/
|
||||
protected static File runtimeDirectory(boolean create, String override) {
|
||||
String rtd = runtimeDirectory(override);
|
||||
File rtdFile = new File(rtd);
|
||||
if (create) {
|
||||
if (!rtdFile.exists()) {
|
||||
rtdFile.mkdir();
|
||||
}
|
||||
}
|
||||
return new File(rtd);
|
||||
protected boolean isOSX() {
|
||||
String osName = System.getProperty("os.name").toLowerCase();
|
||||
return osName.contains("osx") || osName.contains("mac") ||
|
||||
osName.contains("apple") || osName.contains("darwin");
|
||||
}
|
||||
|
||||
/**
|
||||
* get the correct runtime directory
|
||||
* Determines whether the current operating system is Linux.
|
||||
*
|
||||
* @return the runtime directory, or null if it could not be created or found
|
||||
* @return true if the operating system is Linux, false otherwise
|
||||
*/
|
||||
protected boolean isLinux() {
|
||||
String osName = System.getProperty("os.name").toLowerCase();
|
||||
return osName.contains("linux");
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the current operating system is a BSD variant.
|
||||
*
|
||||
* @return true if the operating system is a BSD variant, false otherwise
|
||||
*/
|
||||
protected boolean isBSD() {
|
||||
String osName = System.getProperty("os.name").toLowerCase();
|
||||
return osName.contains("bsd");
|
||||
}
|
||||
|
||||
// public void logger.info(String line) { logger.info(line); }
|
||||
|
||||
/**
|
||||
* Returns the log file for the browser launcher.
|
||||
*
|
||||
* @return the log file for the browser launcher
|
||||
*/
|
||||
/*
|
||||
* private File logFile() {
|
||||
* // validateUserDirectory();
|
||||
* String userDirectory = System.getProperty("user.dir");
|
||||
* File logDirectory = new File(userDirectory, "logs");
|
||||
* if (!logDirectory.exists()) {
|
||||
* logDirectory.mkdirs();
|
||||
* }
|
||||
* return new File(logDirectory, "browserlauncher.log");
|
||||
* }
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the runtime directory, creating it if create=true.
|
||||
*
|
||||
* @param create If true, create the runtime directory if it does not exist.
|
||||
* @param override The runtime directory override.
|
||||
* @return The runtime directory, or null if it could not be created.
|
||||
* @since 0.0.19
|
||||
*/
|
||||
protected static String runtimeDirectory(String override) {
|
||||
// get the I2P_BROWSER_DIR environment variable
|
||||
String rtd = System.getenv(override);
|
||||
// if it is not null and not empty
|
||||
if (rtd != null && !rtd.isEmpty()) {
|
||||
// check if the file exists
|
||||
File rtdFile = new File(rtd);
|
||||
if (rtdFile.exists()) {
|
||||
// if it does, return it
|
||||
return rtd;
|
||||
}
|
||||
protected File runtimeDirectory(boolean create, String override) {
|
||||
String runtimeDir = runtimeDirectory(override);
|
||||
File runtimeDirFile = new File(runtimeDir);
|
||||
if (create && !runtimeDirFile.exists()) {
|
||||
runtimeDirFile.mkdir();
|
||||
}
|
||||
// obtain the PLUGIN environment variable
|
||||
String plugin = System.getenv("PLUGIN");
|
||||
if (plugin != null && !plugin.isEmpty()) {
|
||||
File pluginDir = new File(plugin);
|
||||
if (pluginDir.exists()) {
|
||||
return pluginDir.toString();
|
||||
}
|
||||
return runtimeDirFile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the runtime directory path based on the given override parameter.
|
||||
*
|
||||
* @param override the name of the environment variable to override the
|
||||
* runtime
|
||||
* directory
|
||||
* @return the runtime directory path as a string
|
||||
*/
|
||||
protected String runtimeDirectory(String override) {
|
||||
String runtimeDir = System.getenv(override);
|
||||
if (isDirectoryValid(runtimeDir)) {
|
||||
return runtimeDir;
|
||||
}
|
||||
|
||||
String pluginDir = System.getenv("PLUGIN");
|
||||
if (isDirectoryValid(pluginDir)) {
|
||||
return pluginDir;
|
||||
}
|
||||
|
||||
String userDir = System.getProperty("user.dir");
|
||||
if (userDir != null && !userDir.isEmpty()) {
|
||||
File userDir1 = new File(userDir);
|
||||
if (userDir1.exists()) {
|
||||
return userDir1.toString();
|
||||
}
|
||||
if (isDirectoryValid(userDir)) {
|
||||
return userDir;
|
||||
}
|
||||
|
||||
String homeDir = System.getProperty("user.home");
|
||||
if (homeDir != null && !homeDir.isEmpty()) {
|
||||
File homeDir1 = new File(homeDir + "/.i2p");
|
||||
if (homeDir1.exists()) {
|
||||
return homeDir.toString();
|
||||
if (isDirectoryValid(homeDir)) {
|
||||
String i2pDir = homeDir + "/.i2p";
|
||||
if (isDirectoryValid(i2pDir)) {
|
||||
return homeDir;
|
||||
}
|
||||
File homeDir2 = new File(homeDir + "/i2p");
|
||||
if (homeDir2.exists()) {
|
||||
return homeDir2.toString();
|
||||
|
||||
String altI2pDir = homeDir + "/i2p";
|
||||
if (isDirectoryValid(altI2pDir)) {
|
||||
return altI2pDir;
|
||||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* get the profile directory, creating it if necessary
|
||||
* Checks if the given directory is valid.
|
||||
*
|
||||
* @param directory the directory to check
|
||||
* @return true if the directory is valid, false otherwise
|
||||
*/
|
||||
private boolean isDirectoryValid(String directory) {
|
||||
return directory != null && !directory.isEmpty() &&
|
||||
new File(directory).exists();
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the profile directory, creating it if necessary.
|
||||
*
|
||||
* @param envVar the environment variable name
|
||||
* @param browser the browser name
|
||||
* @param base the base directory
|
||||
* @param app indicates if it is an app directory
|
||||
* @return the profile directory, or null if it could not be created
|
||||
* @since 0.0.19
|
||||
*/
|
||||
protected static String profileDirectory(String envVar, String browser,
|
||||
String base, boolean app) {
|
||||
String pd = System.getenv(envVar);
|
||||
if (pd != null && !pd.isEmpty()) {
|
||||
File pdf = new File(pd);
|
||||
if (pdf.exists() && pdf.isDirectory()) {
|
||||
return pd;
|
||||
protected String profileDirectory(String envVar, String browser, String base,
|
||||
boolean app) {
|
||||
String profileDir = System.getenv(envVar);
|
||||
if (profileDir != null && !profileDir.isEmpty()) {
|
||||
File profileDirFile = new File(profileDir);
|
||||
if (profileDirFile.exists() && profileDirFile.isDirectory()) {
|
||||
return profileDir;
|
||||
}
|
||||
}
|
||||
String rtd = runtimeDirectory("");
|
||||
return profileDir(rtd, browser, base, app);
|
||||
String runtimeDir = runtimeDirectory("");
|
||||
return profileDir(runtimeDir, browser, base, app);
|
||||
}
|
||||
|
||||
protected static String profileDir(String file, String browser, String base,
|
||||
boolean app) {
|
||||
String appString = "";
|
||||
if (app) {
|
||||
appString = ".app";
|
||||
}
|
||||
File profileDir =
|
||||
new File(file, "i2p." + browser + ".profile." + base + appString);
|
||||
/**
|
||||
* A description of the entire Java function.
|
||||
*
|
||||
* @param file description of parameter
|
||||
* @param browser description of parameter
|
||||
* @param base description of parameter
|
||||
* @param app description of parameter
|
||||
* @return description of return value
|
||||
*/
|
||||
protected String profileDir(String file, String browser, String base,
|
||||
boolean app) {
|
||||
String appString = app ? ".app" : "";
|
||||
String profileDirName =
|
||||
String.format("i2p.%s.profile.%s%s", browser, base, appString);
|
||||
File profileDir = new File(file, profileDirName);
|
||||
return profileDir.getAbsolutePath();
|
||||
}
|
||||
|
||||
/**
|
||||
* Unpacks the base profile to a specified directory.
|
||||
*
|
||||
* @param profileDirectory the directory where the profile will be unpacked
|
||||
* @param browser the browser type
|
||||
* @param base the base profile
|
||||
* @return true if the profile was successfully unpacked, false otherwise
|
||||
*/
|
||||
protected boolean unpackProfile(String profileDirectory, String browser,
|
||||
String base) {
|
||||
logger.info("Unpacking base profile to " + profileDirectory);
|
||||
@ -310,66 +368,101 @@ public class I2PCommonBrowser {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected static void copyDirectory(File sourceDirectory,
|
||||
File destinationDirectory, String browser,
|
||||
String base) throws IOException {
|
||||
destinationDirectory = new File(destinationDirectory.toString().replace(
|
||||
/**
|
||||
* Copy a directory from sourceDir to destDir, excluding certain files based
|
||||
* on browser and base.
|
||||
*
|
||||
* @param sourceDir directory to be copied from
|
||||
* @param destDir directory to be copied to
|
||||
* @param browser the browser name
|
||||
* @param base the base name
|
||||
* @throws IOException if an I/O error occurs during copying
|
||||
*/
|
||||
protected void copyDirectory(File sourceDir, File destDir, String browser,
|
||||
String base) throws IOException {
|
||||
destDir = new File(destDir.toString().replace(
|
||||
"i2p." + browser + "." + base + ".profile", ""));
|
||||
if (!destinationDirectory.exists()) {
|
||||
destinationDirectory.mkdir();
|
||||
if (!destDir.exists()) {
|
||||
destDir.mkdir();
|
||||
}
|
||||
for (String f : sourceDirectory.list()) {
|
||||
copyDirectoryCompatibilityMode(new File(sourceDirectory, f),
|
||||
new File(destinationDirectory, f), browser,
|
||||
base);
|
||||
for (String file : sourceDir.list()) {
|
||||
copyDirectoryCompatibilityMode(new File(sourceDir, file),
|
||||
new File(destDir, file), browser, base);
|
||||
}
|
||||
}
|
||||
|
||||
private static void
|
||||
copyDirectoryCompatibilityMode(File source, File destination, String browser,
|
||||
String base) throws IOException {
|
||||
if (source.isDirectory()) {
|
||||
copyDirectory(source, destination, browser, base);
|
||||
} else {
|
||||
copyFile(source, destination);
|
||||
}
|
||||
}
|
||||
|
||||
public static void copy(InputStream source, OutputStream target)
|
||||
/**
|
||||
* Copy a directory in compatibility mode.
|
||||
*
|
||||
* @param sourceDirectory the source directory to copy
|
||||
* @param destinationDirectory the destination directory to copy to
|
||||
* @param browser the browser
|
||||
* @param base the base
|
||||
* @throws IOException if an I/O error occurs
|
||||
*/
|
||||
private void copyDirectoryCompatibilityMode(File sourceDirectory,
|
||||
File destinationDirectory,
|
||||
String browser, String base)
|
||||
throws IOException {
|
||||
byte[] buf = new byte[8192];
|
||||
int length;
|
||||
while ((length = source.read(buf)) != -1) {
|
||||
target.write(buf, 0, length);
|
||||
if (sourceDirectory.isDirectory()) {
|
||||
copyDirectory(sourceDirectory, destinationDirectory, browser, base);
|
||||
} else {
|
||||
copyFile(sourceDirectory, destinationDirectory);
|
||||
}
|
||||
}
|
||||
|
||||
private static void copyFile(File sourceFile, File destinationFile)
|
||||
/**
|
||||
* Copies the content from the source InputStream to the target OutputStream.
|
||||
*
|
||||
* @param source the InputStream to copy from
|
||||
* @param target the OutputStream to copy to
|
||||
* @throws IOException if an I/O error occurs during the copying process
|
||||
*/
|
||||
public void copy(InputStream source, OutputStream target) throws IOException {
|
||||
byte[] buffer = new byte[8192];
|
||||
int bytesRead;
|
||||
while ((bytesRead = source.read(buffer)) != -1) {
|
||||
target.write(buffer, 0, bytesRead);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Copies a file from the source file to the destination file.
|
||||
*
|
||||
* @param sourceFile the source file to be copied
|
||||
* @param destinationFile the destination file where the source file will be
|
||||
* copied to
|
||||
* @throws IOException if an I/O error occurs during the file copy process
|
||||
*/
|
||||
private void copyFile(File sourceFile, File destinationFile)
|
||||
throws IOException {
|
||||
try (InputStream in = new FileInputStream(sourceFile);
|
||||
OutputStream out = new FileOutputStream(destinationFile)) {
|
||||
byte[] buf = new byte[1024];
|
||||
byte[] buffer = new byte[1024];
|
||||
int length;
|
||||
while ((length = in.read(buf)) > 0) {
|
||||
out.write(buf, 0, length);
|
||||
while ((length = in.read(buffer)) > 0) {
|
||||
out.write(buffer, 0, length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean validateProfileFirstRun(String profileDirectory) {
|
||||
/**
|
||||
* Validates the profile for the first run.
|
||||
*
|
||||
* @param profileDirectory the directory of the profile
|
||||
* @return true if the profile is valid for the first run, false otherwise
|
||||
*/
|
||||
public boolean validateProfileFirstRun(String profileDirectory) {
|
||||
File profileDir = new File(profileDirectory);
|
||||
if (!profileDir.exists()) {
|
||||
logger.info("Profile directory does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.isDirectory()) {
|
||||
logger.info("Profile directory is not a directory");
|
||||
return false;
|
||||
}
|
||||
File frf = new File(profileDir, "first-run");
|
||||
if (frf.exists()) {
|
||||
frf.delete();
|
||||
// is a first run
|
||||
File firstRunFile = new File(profileDir, "first-run");
|
||||
if (firstRunFile.exists()) {
|
||||
firstRunFile.delete();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@ -395,18 +488,20 @@ public class I2PCommonBrowser {
|
||||
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.
|
||||
* @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.
|
||||
@ -414,19 +509,17 @@ public class I2PCommonBrowser {
|
||||
* 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.
|
||||
* @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)) {
|
||||
if (isPortOccupied(port, host)) {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
@ -437,15 +530,23 @@ public class I2PCommonBrowser {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public boolean checkifPortIsOccupied(int port, String host) {
|
||||
|
||||
/**
|
||||
* Determines if a given port on a specified host is occupied.
|
||||
*
|
||||
* @param port the port number to check
|
||||
* @param host the host address to check
|
||||
* @return true if the port is occupied, false otherwise
|
||||
*/
|
||||
public boolean isPortOccupied(int port, String host) {
|
||||
try {
|
||||
Socket socket = new Socket(host, port);
|
||||
socket.close();
|
||||
new Socket(host, port).close();
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Alters the proxy timeout to customized value time, in seconds.
|
||||
* May be zero.
|
||||
@ -455,38 +556,73 @@ public class I2PCommonBrowser {
|
||||
public void setProxyTimeoutTime(int time) { CONFIGURED_TIMEOUT = time; }
|
||||
|
||||
/**
|
||||
* Joins the elements of the given string array into a single string.
|
||||
*
|
||||
* @param arr the string array to be joined
|
||||
* @return the joined string
|
||||
*/
|
||||
protected static String join(String[] arr) {
|
||||
StringBuilder val = new StringBuilder("");
|
||||
for (int x = 0; x < arr.length; x++) {
|
||||
val.append(" \"");
|
||||
val.append(arr[x]);
|
||||
val.append("\"");
|
||||
protected String join(String[] arr) {
|
||||
StringBuilder result = new StringBuilder();
|
||||
for (String item : arr) {
|
||||
result.append(" \"").append(item).append("\"");
|
||||
}
|
||||
return val.toString();
|
||||
return result.toString();
|
||||
}
|
||||
public static void sleep(int millis) {
|
||||
|
||||
/**
|
||||
* Sleeps for a specified number of milliseconds.
|
||||
*
|
||||
* @param millis the number of milliseconds to sleep
|
||||
*/
|
||||
public void sleep(int millis) {
|
||||
try {
|
||||
Thread.sleep(millis);
|
||||
} catch (InterruptedException bad) {
|
||||
bad.printStackTrace();
|
||||
throw new RuntimeException(bad);
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
public static File searchFile(File file, String search) {
|
||||
if (file.isDirectory()) {
|
||||
File[] arr = file.listFiles();
|
||||
for (File f : arr) {
|
||||
File found = searchFile(f, search);
|
||||
if (found != null)
|
||||
return found;
|
||||
|
||||
/**
|
||||
* Searches for a file in a given directory and its subdirectories.
|
||||
*
|
||||
* @param directory the directory to search in
|
||||
* @param search the name of the file to search for
|
||||
* @return the found file or null if not found
|
||||
*/
|
||||
public File searchFile(File directory, String search) {
|
||||
File hd = new File(System.getProperty("user.home"));
|
||||
if (hd != null) {
|
||||
if (directory.getAbsolutePath().equals(hd.getAbsolutePath()))
|
||||
return null;
|
||||
}
|
||||
if (directory == null || !directory.exists() || !directory.canRead())
|
||||
return null;
|
||||
if (directory.isDirectory()) {
|
||||
File[] files = directory.listFiles();
|
||||
for (File file : files) {
|
||||
File foundFile = searchFile(file, search);
|
||||
if (foundFile != null)
|
||||
return foundFile;
|
||||
}
|
||||
} else {
|
||||
if (file.getName().equals(search)) {
|
||||
return file;
|
||||
if (directory.getName().equals(search)) {
|
||||
return directory;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public File userHomeDir() {
|
||||
File rd = new File(System.getProperty("user.dir"));
|
||||
File hd = new File(System.getProperty("user.home"));
|
||||
if (rd == null || !rd.exists()) {
|
||||
if (hd == null || !hd.exists()) {
|
||||
if (rd.getAbsolutePath().equals(hd.getAbsolutePath()))
|
||||
return null;
|
||||
}
|
||||
return rd;
|
||||
}
|
||||
logger.info("Runtime directory discovered at: " + rd);
|
||||
return rd;
|
||||
}
|
||||
}
|
||||
|
@ -27,12 +27,13 @@ import java.util.stream.Stream;
|
||||
* @author idk
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public class I2PFirefox extends I2PCommonBrowser {
|
||||
public class I2PFirefox extends I2PFirefoxProfileUnpacker {
|
||||
private final String[] FIREFOX_SEARCH_PATHS = FIREFOX_FINDER();
|
||||
private Process process = null;
|
||||
public static boolean usability = false;
|
||||
private String firefoxPath;
|
||||
public boolean usability = false;
|
||||
|
||||
private static String baseMode() {
|
||||
private String baseMode() {
|
||||
if (usability)
|
||||
return "usability";
|
||||
return "base";
|
||||
@ -55,37 +56,37 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
}
|
||||
|
||||
public static void storeFirefoxDefaults() {
|
||||
public void storeFirefoxDefaults() {
|
||||
List<String> list = new ArrayList<String>();
|
||||
list = Arrays.asList(firefoxPathsWindows());
|
||||
prop.setProperty("firefox.paths.windows",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("firefox.paths.windows",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
list = Arrays.asList(firefoxPathsUnix());
|
||||
prop.setProperty("firefox.paths.linux",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("firefox.paths.linux",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
list = Arrays.asList(firefoxPathsOSX());
|
||||
prop.setProperty("firefox.paths.osx",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("firefox.paths.osx",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
|
||||
list = Arrays.asList(firefoxBinsWindows());
|
||||
prop.setProperty("firefox.bins.windows",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("firefox.bins.windows",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
list = Arrays.asList(firefoxBinsUnix());
|
||||
prop.setProperty("firefox.bins.linux",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("firefox.bins.linux",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
list = Arrays.asList(firefoxBinsUnix());
|
||||
prop.setProperty("firefox.bins.osx",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("firefox.bins.osx",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
try (OutputStream fos = new FileOutputStream(
|
||||
new File(runtimeDirectory(""), "browser.config"))) {
|
||||
prop.store(fos, "Firefox Configuration Section");
|
||||
getProperties().store(fos, "Firefox Configuration Section");
|
||||
} catch (IOException ioe) {
|
||||
logger.warning(ioe.toString());
|
||||
}
|
||||
}
|
||||
|
||||
public static String[] firefoxPathsUnix() {
|
||||
String firefoxPathsProp = prop.getProperty("firefox.paths.unix");
|
||||
public String[] firefoxPathsUnix() {
|
||||
String firefoxPathsProp = getProperties().getProperty("firefox.paths.unix");
|
||||
if (firefoxPathsProp != null)
|
||||
if (!firefoxPathsProp.equals(""))
|
||||
return firefoxPathsProp.split(",");
|
||||
@ -93,15 +94,15 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
"/snap/bin"};
|
||||
}
|
||||
|
||||
public static String[] firefoxBinsUnix() {
|
||||
public String[] firefoxBinsUnix() {
|
||||
String firefoxPathsProp;
|
||||
if (isOSX()) {
|
||||
firefoxPathsProp = prop.getProperty("firefox.bins.osx");
|
||||
firefoxPathsProp = getProperties().getProperty("firefox.bins.osx");
|
||||
if (firefoxPathsProp != null)
|
||||
if (!firefoxPathsProp.equals(""))
|
||||
return firefoxPathsProp.split(",");
|
||||
}
|
||||
firefoxPathsProp = prop.getProperty("firefox.bins.unix");
|
||||
firefoxPathsProp = getProperties().getProperty("firefox.bins.unix");
|
||||
if (firefoxPathsProp != null)
|
||||
if (!firefoxPathsProp.equals(""))
|
||||
return firefoxPathsProp.split(",");
|
||||
@ -110,7 +111,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
"waterfox", "waterfox-bin", "librewolf"};
|
||||
}
|
||||
|
||||
private static String[] FIND_FIREFOX_SEARCH_PATHS_UNIX() {
|
||||
private String[] FIND_FIREFOX_SEARCH_PATHS_UNIX() {
|
||||
String[] path = firefoxPathsUnix();
|
||||
String[] exes = firefoxBinsUnix();
|
||||
String[] exePath = new String[path.length * exes.length];
|
||||
@ -123,8 +124,8 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
return exePath;
|
||||
}
|
||||
public static String[] firefoxPathsOSX() {
|
||||
String firefoxPathsProp = prop.getProperty("firefox.paths.osx");
|
||||
public String[] firefoxPathsOSX() {
|
||||
String firefoxPathsProp = getProperties().getProperty("firefox.paths.osx");
|
||||
if (firefoxPathsProp != null)
|
||||
if (!firefoxPathsProp.equals(""))
|
||||
return firefoxPathsProp.split(",");
|
||||
@ -133,7 +134,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
"/Applications/Waterfox.app/Contents/MacOS",
|
||||
"/Applications/Librewolf.app/Contents/MacOS"};
|
||||
}
|
||||
private static String[] FIND_FIREFOX_SEARCH_PATHS_OSX() {
|
||||
private String[] FIND_FIREFOX_SEARCH_PATHS_OSX() {
|
||||
String[] path = firefoxPathsOSX();
|
||||
String[] exes = firefoxBinsUnix();
|
||||
String[] exePath = new String[path.length * exes.length];
|
||||
@ -146,8 +147,9 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
return exePath;
|
||||
}
|
||||
public static String[] firefoxPathsWindows() {
|
||||
String firefoxPathsProp = prop.getProperty("firefox.paths.windows");
|
||||
public String[] firefoxPathsWindows() {
|
||||
String firefoxPathsProp =
|
||||
getProperties().getProperty("firefox.paths.windows");
|
||||
if (firefoxPathsProp != null)
|
||||
if (!firefoxPathsProp.equals(""))
|
||||
return firefoxPathsProp.split(",");
|
||||
@ -179,8 +181,9 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
new File(programFiles, "Librewolf/").toString(),
|
||||
};
|
||||
}
|
||||
private static String[] firefoxBinsWindows() {
|
||||
String firefoxPathsProp = prop.getProperty("firefox.bins.windows");
|
||||
private String[] firefoxBinsWindows() {
|
||||
String firefoxPathsProp =
|
||||
getProperties().getProperty("firefox.bins.windows");
|
||||
if (firefoxPathsProp != null)
|
||||
if (!firefoxPathsProp.equals(""))
|
||||
return firefoxPathsProp.split(",");
|
||||
@ -189,7 +192,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
"waterfox.exe", "waterfox-bin.exe", "librewolf.exe",
|
||||
};
|
||||
}
|
||||
private static String[] FIND_FIREFOX_SEARCH_PATHS_WINDOWS() {
|
||||
private String[] FIND_FIREFOX_SEARCH_PATHS_WINDOWS() {
|
||||
String[] path = firefoxPathsWindows();
|
||||
String[] exes = firefoxBinsWindows();
|
||||
String[] exePath = new String[path.length * exes.length];
|
||||
@ -203,7 +206,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
return exePath;
|
||||
}
|
||||
|
||||
private static String[] FIND_ALL_FIREFOX_SEARCH_PATHS() {
|
||||
private String[] FIND_ALL_FIREFOX_SEARCH_PATHS() {
|
||||
String[] Unix = FIND_FIREFOX_SEARCH_PATHS_UNIX();
|
||||
String[] Windows = FIND_FIREFOX_SEARCH_PATHS_WINDOWS();
|
||||
String[] Mac = FIND_FIREFOX_SEARCH_PATHS_OSX();
|
||||
@ -223,7 +226,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
return exePath;
|
||||
}
|
||||
private static String[] FIND_FIREFOX_SEARCH_PATHS() {
|
||||
private String[] FIND_FIREFOX_SEARCH_PATHS() {
|
||||
switch (getOperatingSystem()) {
|
||||
case "Windows":
|
||||
return FIND_FIREFOX_SEARCH_PATHS_WINDOWS();
|
||||
@ -238,8 +241,10 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
}
|
||||
|
||||
private static String[] NEARBY_FIREFOX_SEARCH_PATHS() {
|
||||
private String[] NEARBY_FIREFOX_SEARCH_PATHS() {
|
||||
// obtain the PLUGIN environment variable
|
||||
// crashreporterFolder := utl.CreateFolder(app.DataPath, "crashreporter")
|
||||
// pluginsFolder := utl.CreateFolder(app.DataPath, "plugins")
|
||||
String plugin = System.getenv("PLUGIN");
|
||||
if (plugin != null && !plugin.isEmpty()) {
|
||||
File userDir = new File(plugin);
|
||||
@ -287,7 +292,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
// now, do the same thing, but with user.dir instead of plugin
|
||||
// list the directories in the user.dir directory
|
||||
File userDir = new File(System.getProperty("user.dir"));
|
||||
File userDir = userHomeDir();
|
||||
if (userDir.exists()) {
|
||||
if (isWindows()) {
|
||||
File searchResult = searchFile(userDir, "firefox-esr.exe");
|
||||
@ -332,7 +337,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
|
||||
return new String[] {};
|
||||
}
|
||||
private static String[] FIREFOX_FINDER() {
|
||||
private String[] FIREFOX_FINDER() {
|
||||
String[] nearby = NEARBY_FIREFOX_SEARCH_PATHS();
|
||||
String[] all = FIND_FIREFOX_SEARCH_PATHS();
|
||||
|
||||
@ -375,6 +380,9 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public String topFirefox() {
|
||||
if (firefoxPath != null) {
|
||||
return firefoxPath;
|
||||
}
|
||||
// get the FIREFOX environment variable
|
||||
String firefox = System.getenv("FIREFOX");
|
||||
// if it is not null and not empty
|
||||
@ -383,11 +391,13 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
File firefoxFile = new File(firefox);
|
||||
if (firefoxFile.exists()) {
|
||||
// if it does, return it
|
||||
firefoxPath = firefox;
|
||||
return firefox;
|
||||
}
|
||||
}
|
||||
String[] firefoxes = onlyValidFirefoxes();
|
||||
if (firefoxes.length > 0) {
|
||||
firefoxPath = firefoxes[0];
|
||||
return firefoxes[0];
|
||||
} else {
|
||||
return "";
|
||||
@ -556,7 +566,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
newArgs[0] = firefox;
|
||||
newArgs[1] = "--new-instance";
|
||||
newArgs[2] = "--profile";
|
||||
newArgs[3] = I2PFirefoxProfileBuilder.profileDirectory(app, baseMode());
|
||||
newArgs[3] = this.profileDirectory(app, baseMode());
|
||||
if (args != null) {
|
||||
if (arglength > 0) {
|
||||
for (int i = 0; i < arglength; i++) {
|
||||
@ -593,20 +603,86 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
if (!bashScript.canExecute()) {
|
||||
bashScript.setExecutable(true);
|
||||
}
|
||||
return new ProcessBuilder(bashScript.getAbsolutePath())
|
||||
.directory(I2PFirefoxProfileBuilder.runtimeDirectory(true));
|
||||
ProcessBuilder pb = new ProcessBuilder(bashScript.getAbsolutePath());
|
||||
File rtd = this.runtimeDirectory(true);
|
||||
pb.directory(rtd);
|
||||
String crashreporterFolder =
|
||||
new File(rtd.getAbsolutePath(), "crashreporter").toString();
|
||||
String pluginsFolder =
|
||||
new File(rtd.getAbsolutePath(), "plugins").toString();
|
||||
pb.environment().put("HOME", rtd.getAbsolutePath());
|
||||
pb.environment().put("MOZ_CRASHREPORTER", "0");
|
||||
pb.environment().put("MOZ_CRASHREPORTER_DATA_DIRECTORY",
|
||||
crashreporterFolder);
|
||||
pb.environment().put("MOZ_CRASHREPORTER_DISABLE", "1");
|
||||
pb.environment().put("MOZ_CRASHREPORTER_NO_REPORT", "1");
|
||||
pb.environment().put("MOZ_DATA_REPORTING", "0");
|
||||
pb.environment().put("MOZ_MAINTENANCE_SERVICE", "0");
|
||||
pb.environment().put("MOZ_PLUGIN_PATH", pluginsFolder);
|
||||
pb.environment().put("MOZ_UPDATER", "0");
|
||||
pb.environment().put("TB_CUSTOM_HOMEPAGE", newArgs[4]);
|
||||
pb.environment().put("TOR_FORCE_NET_CONFIG", "0");
|
||||
pb.environment().put("TOR_SKIP_LAUNCH", "1");
|
||||
pb.environment().put("TOR_SKIP_CONTROLPORTTEST", "1");
|
||||
pb.environment().put("TOR_NONTOR_PROXY", "1");
|
||||
return pb;
|
||||
} catch (IOException e) {
|
||||
logger.warning(e.toString());
|
||||
}
|
||||
return null;
|
||||
} else {
|
||||
return new ProcessBuilder(newArgs).directory(
|
||||
I2PFirefoxProfileBuilder.runtimeDirectory(true));
|
||||
ProcessBuilder pb = new ProcessBuilder(newArgs);
|
||||
File rtd = this.runtimeDirectory(true);
|
||||
pb.directory(rtd);
|
||||
String crashreporterFolder =
|
||||
new File(rtd.getAbsolutePath(), "crashreporter").toString();
|
||||
String pluginsFolder =
|
||||
new File(rtd.getAbsolutePath(), "crashreporter").toString();
|
||||
pb.environment().put("HOME", rtd.getAbsolutePath());
|
||||
pb.environment().put("MOZ_CRASHREPORTER", "0");
|
||||
pb.environment().put("MOZ_CRASHREPORTER_DATA_DIRECTORY",
|
||||
crashreporterFolder);
|
||||
pb.environment().put("MOZ_CRASHREPORTER_DISABLE", "1");
|
||||
pb.environment().put("MOZ_CRASHREPORTER_NO_REPORT", "1");
|
||||
pb.environment().put("MOZ_DATA_REPORTING", "0");
|
||||
pb.environment().put("MOZ_MAINTENANCE_SERVICE", "0");
|
||||
pb.environment().put("MOZ_PLUGIN_PATH", pluginsFolder);
|
||||
pb.environment().put("MOZ_UPDATER", "0");
|
||||
if (args.length > 4)
|
||||
pb.environment().put("TB_CUSTOM_HOMEPAGE", args[4]);
|
||||
pb.environment().put("TOR_FORCE_NET_CONFIG", "0");
|
||||
pb.environment().put("TOR_SKIP_LAUNCH", "1");
|
||||
pb.environment().put("TOR_SKIP_CONTROLPORTTEST", "1");
|
||||
pb.environment().put("TOR_NONTOR_PROXY", "1");
|
||||
return pb;
|
||||
}
|
||||
|
||||
} // else {
|
||||
logger.info("No Firefox found.");
|
||||
return new ProcessBuilder(args);
|
||||
ProcessBuilder pb = new ProcessBuilder(args);
|
||||
File rtd = this.runtimeDirectory(true);
|
||||
pb.directory(rtd);
|
||||
String crashreporterFolder =
|
||||
new File(rtd.getAbsolutePath(), "crashreporter").toString();
|
||||
String pluginsFolder =
|
||||
new File(rtd.getAbsolutePath(), "crashreporter").toString();
|
||||
pb.environment().put("HOME", rtd.getAbsolutePath());
|
||||
pb.environment().put("MOZ_CRASHREPORTER", "0");
|
||||
pb.environment().put("MOZ_CRASHREPORTER_DATA_DIRECTORY",
|
||||
crashreporterFolder);
|
||||
pb.environment().put("MOZ_CRASHREPORTER_DISABLE", "1");
|
||||
pb.environment().put("MOZ_CRASHREPORTER_NO_REPORT", "1");
|
||||
pb.environment().put("MOZ_DATA_REPORTING", "0");
|
||||
pb.environment().put("MOZ_MAINTENANCE_SERVICE", "0");
|
||||
pb.environment().put("MOZ_PLUGIN_PATH", pluginsFolder);
|
||||
pb.environment().put("MOZ_UPDATER", "0");
|
||||
if (args.length > 4)
|
||||
pb.environment().put("TB_CUSTOM_HOMEPAGE", args[4]);
|
||||
pb.environment().put("TOR_FORCE_NET_CONFIG", "0");
|
||||
pb.environment().put("TOR_SKIP_LAUNCH", "1");
|
||||
pb.environment().put("TOR_SKIP_CONTROLPORTTEST", "1");
|
||||
pb.environment().put("TOR_NONTOR_PROXY", "1");
|
||||
return pb;
|
||||
//}
|
||||
// return null;
|
||||
}
|
||||
@ -624,20 +700,18 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
return launchAndDetatch(privateWindowInt, url);
|
||||
}
|
||||
public Process launchAndDetatch(int privateWindow, String[] url) {
|
||||
validateUserDir();
|
||||
validateUserDirectory();
|
||||
boolean app = false;
|
||||
if (privateWindow == 2)
|
||||
app = true;
|
||||
if (waitForProxy()) {
|
||||
String profileDirectory =
|
||||
I2PFirefoxProfileBuilder.profileDirectory(app, baseMode());
|
||||
if (I2PFirefoxProfileChecker.validateProfileDirectory(profileDirectory)) {
|
||||
String profileDirectory = this.profileDirectory(app, baseMode());
|
||||
if (this.validateProfileDirectory(profileDirectory)) {
|
||||
logger.info("Valid profile directory: " + profileDirectory);
|
||||
} else {
|
||||
logger.info("Invalid profile directory: " + profileDirectory +
|
||||
" rebuilding...");
|
||||
if (!I2PFirefoxProfileBuilder.copyBaseProfiletoProfile(usabilityMode(),
|
||||
app)) {
|
||||
if (!this.copyBaseProfiletoProfile(usabilityMode(), app)) {
|
||||
logger.info("Failed to rebuild profile directory: " +
|
||||
profileDirectory);
|
||||
return null;
|
||||
@ -761,7 +835,26 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
*/
|
||||
public void launch() { launch(false); }
|
||||
|
||||
private static String ValidURL(String inUrl) {
|
||||
/**
|
||||
* Stop all running processes managed by the browser manager.
|
||||
*
|
||||
* @return true if successful, false if not
|
||||
*/
|
||||
public boolean stop() {
|
||||
if (process != null) {
|
||||
process.destroy();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean running() {
|
||||
if (process != null)
|
||||
return process.isAlive();
|
||||
return false;
|
||||
}
|
||||
|
||||
private String ValidURL(String inUrl) {
|
||||
String[] schemes = {"http", "https"};
|
||||
for (String scheme : schemes) {
|
||||
if (inUrl.startsWith(scheme)) {
|
||||
@ -773,34 +866,34 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
validateUserDir();
|
||||
int privateBrowsing = 0;
|
||||
logger.info("checking for private browsing");
|
||||
logger.info("I2PFirefox");
|
||||
I2PFirefox i2pFirefox = new I2PFirefox();
|
||||
i2pFirefox.validateUserDirectory();
|
||||
i2pFirefox.logger.info("checking for private browsing");
|
||||
i2pFirefox.logger.info("I2PFirefox");
|
||||
ArrayList<String> visitURL = new ArrayList<String>();
|
||||
if (args != null) {
|
||||
if (args.length > 0) {
|
||||
for (String arg : args) {
|
||||
if (arg.equals("-private")) {
|
||||
privateBrowsing = 1;
|
||||
logger.info(
|
||||
i2pFirefox.logger.info(
|
||||
"private browsing is true, profile will be discarded at end of session");
|
||||
}
|
||||
if (arg.equals("-usability")) {
|
||||
usability = true;
|
||||
i2pFirefox.usability = true;
|
||||
}
|
||||
if (arg.equals("-app")) {
|
||||
usability = true;
|
||||
i2pFirefox.usability = true;
|
||||
privateBrowsing = 2;
|
||||
}
|
||||
if (arg.equals("-noproxycheck")) {
|
||||
logger.info("zeroing out proxy check");
|
||||
i2pFirefox.logger.info("zeroing out proxy check");
|
||||
i2pFirefox.setProxyTimeoutTime(0);
|
||||
}
|
||||
if (!arg.startsWith("-")) {
|
||||
// check if it's a URL
|
||||
visitURL.add(ValidURL(arg));
|
||||
visitURL.add(i2pFirefox.ValidURL(arg));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -809,7 +902,7 @@ public class I2PFirefox extends I2PCommonBrowser {
|
||||
visitURL.toArray(new String[visitURL.size()]));
|
||||
}
|
||||
|
||||
/*private static void sleep(int millis) {
|
||||
/*private void sleep(int millis) {
|
||||
try {
|
||||
Thread.sleep(millis);
|
||||
} catch (InterruptedException bad) {
|
||||
|
@ -23,9 +23,9 @@ import java.nio.file.StandardCopyOption;
|
||||
* @author idk
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
private static boolean strict;
|
||||
private static String userChromeCSS() {
|
||||
public class I2PFirefoxProfileBuilder extends I2PFirefoxProfileChecker {
|
||||
private boolean strict;
|
||||
private String userChromeCSS() {
|
||||
String ret =
|
||||
"@namespace url(\"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul\")\n";
|
||||
|
||||
@ -98,20 +98,11 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
*
|
||||
* @return the profile directory, or null if it could not be created
|
||||
*/
|
||||
// public static String profileDirectory() {
|
||||
// public String profileDirectory() {
|
||||
// return profileDirectory("I2P_FIREFOX_PROFILE", "firefox", false);
|
||||
// }
|
||||
|
||||
/**
|
||||
* get the profile directory, creating it if necessary
|
||||
*
|
||||
* @return the profile directory, or null if it could not be created
|
||||
*/
|
||||
public static String profileDirectory(boolean app, String base) {
|
||||
return profileDirectory("I2P_FIREFOX_PROFILE", "firefox", base, app);
|
||||
}
|
||||
|
||||
private static String baseProfileDir(String file, String base) {
|
||||
private String baseProfileDir(String file, String base) {
|
||||
File profileDir = new File(file, "i2p.firefox." + base + ".profile");
|
||||
// make sure the directory exists
|
||||
if (profileDir.exists()) {
|
||||
@ -131,7 +122,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
*
|
||||
* @return the base profile directory, or null if it could not be created
|
||||
*/
|
||||
public static String baseProfileDirectory(String base) {
|
||||
public String baseProfileDirectory(String base) {
|
||||
String pd = System.getenv("I2P_FIREFOX_BASE_PROFILE");
|
||||
if (pd != null && !pd.isEmpty()) {
|
||||
File pdf = new File(pd);
|
||||
@ -155,7 +146,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
* @return the runtime directory, or null if it could not be created
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static File runtimeDirectory(boolean create) {
|
||||
public File runtimeDirectory(boolean create) {
|
||||
String rtd = runtimeDirectory();
|
||||
return runtimeDirectory(create, rtd);
|
||||
}
|
||||
@ -166,7 +157,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
* @return the runtime directory, or null if it could not be created or found
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static String runtimeDirectory() {
|
||||
public String runtimeDirectory() {
|
||||
// get the I2P_FIREFOX_DIR environment variable
|
||||
String rtd = System.getenv("I2P_FIREFOX_DIR");
|
||||
// if it is not null and not empty
|
||||
@ -186,7 +177,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
*
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static boolean copyBaseProfiletoProfile(String base, boolean app) {
|
||||
public boolean copyBaseProfiletoProfile(String base, boolean app) {
|
||||
String baseProfile = baseProfileDirectory(base);
|
||||
String profile = profileDirectory(app, base);
|
||||
logger.info("Copying base profile to profile directory: " + baseProfile +
|
||||
@ -219,7 +210,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
return copyStrictOptions(base, app);
|
||||
}
|
||||
|
||||
protected static boolean writeAppChrome(String profile) {
|
||||
protected boolean writeAppChrome(String profile) {
|
||||
File dir = new File(profile, "chrome");
|
||||
if (!dir.exists())
|
||||
dir.mkdirs();
|
||||
@ -232,7 +223,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
protected static boolean deleteAppChrome(String profile) {
|
||||
protected boolean deleteAppChrome(String profile) {
|
||||
File dir = new File(profile, "chrome");
|
||||
if (!dir.exists())
|
||||
return true;
|
||||
@ -247,7 +238,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
* @return true if successful, false otherwise
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static boolean copyStrictOptions(String base, boolean app) {
|
||||
public boolean copyStrictOptions(String base, boolean app) {
|
||||
logger.info("Checking strict options");
|
||||
String baseProfile = baseProfileDirectory(base);
|
||||
String profile = profileDirectory(app, base);
|
||||
@ -282,21 +273,21 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void setupUserChrome(File profileDir, boolean app) {
|
||||
public void setupUserChrome(File profileDir, boolean app) {
|
||||
File workingUserOverrides = new File(profileDir, "user-overrides.js");
|
||||
logger.info(workingUserOverrides.getAbsolutePath());
|
||||
if (workingUserOverrides.exists()) {
|
||||
logger.info("Checking app mode settings");
|
||||
if (app) {
|
||||
logger.info("Setting profile to app mode");
|
||||
I2PFirefoxProfileChecker.undoValue(
|
||||
this.undoValue(
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets\", false",
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets\", true",
|
||||
workingUserOverrides);
|
||||
writeAppChrome(profileDir.toString());
|
||||
} else {
|
||||
logger.info("Taking profile out of app mode");
|
||||
I2PFirefoxProfileChecker.undoValue(
|
||||
this.undoValue(
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets\", true",
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets\", false",
|
||||
workingUserOverrides);
|
||||
@ -310,14 +301,14 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
logger.info("Checking app mode settings");
|
||||
if (app) {
|
||||
logger.info("Setting profile to app mode");
|
||||
I2PFirefoxProfileChecker.undoValue(
|
||||
this.undoValue(
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets\", false",
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets\", true",
|
||||
workingPrefOverrides);
|
||||
writeAppChrome(profileDir.toString());
|
||||
} else {
|
||||
logger.info("Taking profile out of app mode");
|
||||
I2PFirefoxProfileChecker.undoValue(
|
||||
this.undoValue(
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets\", true",
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets\", false",
|
||||
workingPrefOverrides);
|
||||
@ -331,7 +322,7 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
*
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public I2PFirefoxProfileBuilder() { I2PFirefoxProfileBuilder.strict = false; }
|
||||
public I2PFirefoxProfileBuilder() { this.strict = false; }
|
||||
|
||||
/**
|
||||
* Construct a new Profile Builder
|
||||
@ -339,7 +330,5 @@ public class I2PFirefoxProfileBuilder extends I2PCommonBrowser {
|
||||
*
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public I2PFirefoxProfileBuilder(boolean strict) {
|
||||
I2PFirefoxProfileBuilder.strict = strict;
|
||||
}
|
||||
public I2PFirefoxProfileBuilder(boolean strict) { this.strict = strict; }
|
||||
}
|
||||
|
@ -27,23 +27,36 @@ import java.util.Scanner;
|
||||
public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
|
||||
|
||||
/**
|
||||
* @param args unused
|
||||
* The main method for executing the Java program.
|
||||
*
|
||||
* @param args the command line arguments
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
String profileDirectory =
|
||||
I2PFirefoxProfileBuilder.profileDirectory(false, "base");
|
||||
I2PFirefoxProfileChecker profileChecker = new I2PFirefoxProfileChecker();
|
||||
String profileDirectory = profileChecker.profileDirectory(false, "base");
|
||||
if (profileDirectory == null) {
|
||||
logger.info("No profile directory found");
|
||||
profileChecker.logger.info("No profile directory found");
|
||||
return;
|
||||
}
|
||||
logger.info("Profile directory: " + profileDirectory);
|
||||
boolean ok = validateProfileDirectory(profileDirectory);
|
||||
if (ok) {
|
||||
logger.info("Profile directory is valid");
|
||||
profileChecker.logger.info("Profile directory: " + profileDirectory);
|
||||
boolean isProfileValid =
|
||||
profileChecker.validateProfileDirectory(profileDirectory);
|
||||
if (isProfileValid) {
|
||||
profileChecker.logger.info("Profile directory is valid");
|
||||
} else {
|
||||
logger.info("Profile directory is invalid");
|
||||
profileChecker.logger.info("Profile directory is invalid");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* get the profile directory, creating it if necessary
|
||||
*
|
||||
* @return the profile directory, or null if it could not be created
|
||||
*/
|
||||
public String profileDirectory(boolean app, String base) {
|
||||
return profileDirectory("I2P_FIREFOX_PROFILE", "firefox", base, app);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the profile directory is valid.
|
||||
*
|
||||
@ -51,82 +64,80 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
|
||||
* @return true if the profile directory is valid, false otherwise
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static boolean validateProfileDirectory(String profileDirectory) {
|
||||
public boolean validateProfileDirectory(String profileDirectory) {
|
||||
File profileDir = new File(profileDirectory);
|
||||
if (!profileDir.exists()) {
|
||||
logger.info("Profile directory does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.isDirectory()) {
|
||||
logger.info("Profile directory is not a directory");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.canRead()) {
|
||||
logger.info("Profile directory is not readable");
|
||||
return false;
|
||||
}
|
||||
if (!profileDir.canWrite()) {
|
||||
logger.info("Profile directory is not writable");
|
||||
if (!profileDir.exists() || !profileDir.isDirectory() ||
|
||||
!profileDir.canRead() || !profileDir.canWrite()) {
|
||||
return false;
|
||||
}
|
||||
if (!validateFile(profileDir + "/prefs.js")) {
|
||||
logger.info("prefs.js is not valid");
|
||||
return false;
|
||||
}
|
||||
if (!validateFile(profileDir + "/user.js")) {
|
||||
logger.info("user.js is not valid");
|
||||
return false;
|
||||
}
|
||||
if (!validateExtensionDirectory(profileDir + "/extensions")) {
|
||||
logger.info("extensions directory is invalid");
|
||||
return false;
|
||||
}
|
||||
return deRestrictHTTPSAndSetupHomepage(profileDir.toString());
|
||||
}
|
||||
|
||||
private static boolean deRestrictHTTPSAndSetupHomepage(String profile) {
|
||||
// String profile = profileDirectory();
|
||||
/**
|
||||
* Verify essential values in prefs.js, user.js, and user-overrides.js
|
||||
*
|
||||
* @param profile profile
|
||||
* @return true if successful
|
||||
*/
|
||||
private boolean deRestrictHTTPSAndSetupHomepage(String profile) {
|
||||
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);
|
||||
}
|
||||
cleanUpFile(new File(profile, "prefs.js"));
|
||||
cleanUpFile(new File(profile, "user.js"));
|
||||
cleanUpFile(new File(profile, "user-overrides.js"));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static boolean undoHttpsOnlyMode(File fileToBeModified) {
|
||||
/**
|
||||
* Cleans up a file by undoing specific modifications if the file exists.
|
||||
*
|
||||
* @param file the file to be cleaned up
|
||||
*/
|
||||
private void cleanUpFile(File file) {
|
||||
if (file.exists()) {
|
||||
undoHttpsOnlyMode(file);
|
||||
undoHomepage(file);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Undo the HTTPS-only mode by modifying a file.
|
||||
*
|
||||
* @param fileToBeModified the file to be modified
|
||||
* @return true if the undo operation is successful, false otherwise
|
||||
*/
|
||||
private 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 =
|
||||
/**
|
||||
* Undo the modification of the homepage in a file.
|
||||
*
|
||||
* @param fileToBeModified the file to be modified
|
||||
* @return true if the modification was successful, otherwise false
|
||||
*/
|
||||
private boolean undoHomepage(File fileToBeModified) {
|
||||
String oldStringToFind = "\"browser.startup.homepage\", true";
|
||||
String newStringToReplace =
|
||||
"\"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);
|
||||
}
|
||||
try (Scanner scanner = new Scanner(fileToBeModified)) {
|
||||
while (scanner.hasNextLine()) {
|
||||
String line = scanner.nextLine();
|
||||
if (line.contains(oldStringToFind)) {
|
||||
return undoValue(line, newStringToReplace, fileToBeModified);
|
||||
}
|
||||
}
|
||||
} catch (FileNotFoundException e) {
|
||||
@ -135,8 +146,17 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean undoValue(String oldString, String newString,
|
||||
File fileToBeModified) {
|
||||
/**
|
||||
* Undo the value by replacing the occurrences of the old string with the new
|
||||
* string in the given file.
|
||||
*
|
||||
* @param oldString the string to be replaced
|
||||
* @param newString the string to replace the old string with
|
||||
* @param fileToBeModified the file to be modified
|
||||
* @return true if the value was successfully undone, false otherwise
|
||||
*/
|
||||
public boolean undoValue(String oldString, String newString,
|
||||
File fileToBeModified) {
|
||||
String oldContent = "";
|
||||
BufferedReader reader = null;
|
||||
FileWriter writer = null;
|
||||
@ -163,58 +183,38 @@ public class I2PFirefoxProfileChecker extends I2PCommonBrowser {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the file is valid.
|
||||
*
|
||||
* @param file the file to check
|
||||
* @param filePath the path of the file to check
|
||||
* @return true if the file is valid, false otherwise
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static boolean validateFile(String file) {
|
||||
File f = new File(file);
|
||||
if (!f.exists()) {
|
||||
logger.info("User JavaScript file does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!f.isFile()) {
|
||||
logger.info("User JavaScript file is not a file");
|
||||
return false;
|
||||
}
|
||||
if (!f.canRead()) {
|
||||
logger.info("User JavaScript file is not readable");
|
||||
return false;
|
||||
}
|
||||
if (!f.canWrite()) {
|
||||
logger.info("User JavaScript file is not writable");
|
||||
public boolean validateFile(String filePath) {
|
||||
File file = new File(filePath);
|
||||
if (!file.exists() || !file.isFile() || !file.canRead() ||
|
||||
!file.canWrite()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the extension directory is valid.
|
||||
* Validates the extension directory.
|
||||
*
|
||||
* @param extensionDirectory the extension directory to check
|
||||
* @param extensionDirectory the extension directory to validate
|
||||
* @return true if the extension directory is valid, false otherwise
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public static boolean validateExtensionDirectory(String extensionDirectory) {
|
||||
public boolean validateExtensionDirectory(String extensionDirectory) {
|
||||
File extensionDir = new File(extensionDirectory);
|
||||
if (!extensionDir.exists()) {
|
||||
logger.info("Extension directory does not exist");
|
||||
return false;
|
||||
}
|
||||
if (!extensionDir.isDirectory()) {
|
||||
logger.info("Extension directory is not a directory");
|
||||
return false;
|
||||
}
|
||||
if (!extensionDir.canRead()) {
|
||||
logger.info("Extension directory is not readable");
|
||||
return false;
|
||||
}
|
||||
if (!extensionDir.canWrite()) {
|
||||
logger.info("Extension directory is not writable");
|
||||
|
||||
if (!extensionDir.exists() || !extensionDir.isDirectory() ||
|
||||
!extensionDir.canRead() || !extensionDir.canWrite()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -18,13 +18,13 @@ package net.i2p.i2pfirefox;
|
||||
* @author idk
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public class I2PFirefoxProfileUnpacker extends I2PCommonBrowser {
|
||||
public class I2PFirefoxProfileUnpacker extends I2PFirefoxProfileBuilder {
|
||||
|
||||
public static void main(String[] args) {
|
||||
String profileDirectory =
|
||||
I2PFirefoxProfileBuilder.profileDirectory(false, "base");
|
||||
I2PFirefoxProfileUnpacker up = new I2PFirefoxProfileUnpacker();
|
||||
String profileDirectory = up.profileDirectory(false, "base");
|
||||
if (profileDirectory == null) {
|
||||
logger.info("No profile directory found");
|
||||
up.logger.info("No profile directory found");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,6 @@ import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.net.Socket;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@ -33,14 +32,14 @@ import java.util.stream.Collectors;
|
||||
|
||||
public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
private final int DEFAULT_TIMEOUT = 200;
|
||||
public static String BROWSER = "";
|
||||
public String BROWSER = "";
|
||||
private Process p = null;
|
||||
// Ideally, EVERY browser in this list should honor http_proxy, https_proxy,
|
||||
// ftp_proxy and no_proxy. in practice, this is going to be hard to guarantee.
|
||||
// For now, we're just assuming. So don't use this until I understand the
|
||||
// situation better, unless you think you know better.
|
||||
private static String[] browsers() {
|
||||
String genericPathsProp = prop.getProperty("generic.bins.unix");
|
||||
private String[] browsers() {
|
||||
String genericPathsProp = getProperties().getProperty("generic.bins.unix");
|
||||
if (genericPathsProp != null)
|
||||
return genericPathsProp.split(",");
|
||||
return new String[] {
|
||||
@ -62,15 +61,15 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
"www-browser", "links", "lynx"};
|
||||
}
|
||||
|
||||
public static void storeGenericDefaults() {
|
||||
public void storeGenericDefaults() {
|
||||
List<String> list = new ArrayList<String>();
|
||||
|
||||
list = Arrays.asList(browsers());
|
||||
prop.setProperty("generic.bins.unix",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
getProperties().setProperty("generic.bins.unix",
|
||||
list.stream().collect(Collectors.joining(",")));
|
||||
try (OutputStream fos = new FileOutputStream(
|
||||
new File(runtimeDirectory(""), "browser.config"))) {
|
||||
prop.store(fos, "Chromium Configuration Section");
|
||||
getProperties().store(fos, "Chromium Configuration Section");
|
||||
} catch (IOException ioe) {
|
||||
logger.warning(ioe.toString());
|
||||
}
|
||||
@ -98,7 +97,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
* for execution, or null if not found
|
||||
* @since 2.0.0
|
||||
*/
|
||||
static public String getDefaultWindowsBrowser() {
|
||||
public String getDefaultWindowsBrowser() {
|
||||
String defaultBrowser;
|
||||
String key;
|
||||
// User-Configured HTTPS Browser
|
||||
@ -139,7 +138,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
* exist/is empty
|
||||
* @since 2.0.0
|
||||
*/
|
||||
private static String registryQuery(String hkeyquery, String key) {
|
||||
private String registryQuery(String hkeyquery, String key) {
|
||||
try {
|
||||
// Get registry where we find the default browser
|
||||
String[] cmd = {"REG", "QUERY", hkeyquery};
|
||||
@ -177,7 +176,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
* hkeyquery, or null
|
||||
* @since 2.0.0
|
||||
*/
|
||||
private static String followUserConfiguredBrowserToCommand(String hkeyquery) {
|
||||
private String followUserConfiguredBrowserToCommand(String hkeyquery) {
|
||||
String progIdValue = registryQuery(hkeyquery, "ProgId");
|
||||
return followProgIdToCommand(progIdValue);
|
||||
}
|
||||
@ -193,7 +192,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
* hkeyquery, or null
|
||||
* @since 2.0.0
|
||||
*/
|
||||
private static String followProgIdToCommand(String progid) {
|
||||
private String followProgIdToCommand(String progid) {
|
||||
String hkeyquery =
|
||||
"HKEY_CLASSES_ROOT\\" + progid + "\\shell\\open\\command";
|
||||
String finalValue = registryQuery(hkeyquery, "(Default)");
|
||||
@ -212,7 +211,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
* exist/is empty
|
||||
* @since 2.0.0
|
||||
*/
|
||||
private static String getDefaultOutOfRegistry(String hkeyquery) {
|
||||
private String getDefaultOutOfRegistry(String hkeyquery) {
|
||||
String defaultValue = registryQuery(hkeyquery, "(Default)");
|
||||
if (defaultValue != null) {
|
||||
if (!defaultValue.equals(""))
|
||||
@ -227,7 +226,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
return null;
|
||||
}
|
||||
|
||||
private static String scanAPath(String dir) {
|
||||
private String scanAPath(String dir) {
|
||||
for (String browser : browsers()) {
|
||||
File test = new File(dir, browser);
|
||||
if (test.exists()) {
|
||||
@ -242,7 +241,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String getAnyUnixBrowser() {
|
||||
public String getAnyUnixBrowser() {
|
||||
// read the PATH environment variable and split it by ":"
|
||||
String[] path = System.getenv("PATH").split(":");
|
||||
if (path != null && path.length > 0) {
|
||||
@ -261,7 +260,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static String findUnsafeBrowserAnywhere() {
|
||||
public String findUnsafeBrowserAnywhere() {
|
||||
if (BROWSER != "") {
|
||||
File f = new File(BROWSER);
|
||||
if (f.exists())
|
||||
@ -322,7 +321,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
*
|
||||
* @return true if successful, false if not
|
||||
*/
|
||||
public static boolean deleteRuntimeDirectory() {
|
||||
public boolean deleteRuntimeDirectory() {
|
||||
File rtd = runtimeDirectory(true);
|
||||
if (rtd.exists()) {
|
||||
rtd.delete();
|
||||
@ -338,7 +337,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
* @return the runtime directory, or null if it could not be created
|
||||
* @since 0.0.18
|
||||
*/
|
||||
public static File runtimeDirectory(boolean create) {
|
||||
public File runtimeDirectory(boolean create) {
|
||||
String rtd = runtimeDirectory();
|
||||
return runtimeDirectory(create, rtd);
|
||||
}
|
||||
@ -350,7 +349,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
* found
|
||||
* @since 0.0.18
|
||||
*/
|
||||
public static String runtimeDirectory() {
|
||||
public String runtimeDirectory() {
|
||||
// get the I2P_BROWSER_DIR environment variable
|
||||
String rtd = System.getenv("I2P_BROWSER_DIR");
|
||||
// if it is not null and not empty
|
||||
@ -366,7 +365,7 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
}
|
||||
|
||||
public Process launchAndDetatch(boolean privateWindow, String[] url) {
|
||||
validateUserDir();
|
||||
validateUserDirectory();
|
||||
if (waitForProxy()) {
|
||||
ProcessBuilder pb;
|
||||
if (privateWindow) {
|
||||
@ -404,8 +403,26 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Stop all running processes managed by the browser manager.
|
||||
*
|
||||
* @return true if successful, false if not
|
||||
*/
|
||||
public boolean stop() {
|
||||
if (p != null) {
|
||||
p.destroy();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static String ValidURL(String inUrl) {
|
||||
public boolean running() {
|
||||
if (p != null)
|
||||
return p.isAlive();
|
||||
return false;
|
||||
}
|
||||
|
||||
private String ValidURL(String inUrl) {
|
||||
String[] schemes = {"http", "https"};
|
||||
for (String scheme : schemes) {
|
||||
if (inUrl.startsWith(scheme)) {
|
||||
@ -416,29 +433,28 @@ public class I2PGenericUnsafeBrowser extends I2PCommonBrowser {
|
||||
return "";
|
||||
}
|
||||
|
||||
//
|
||||
public static void main(String[] args) {
|
||||
validateUserDir();
|
||||
I2PGenericUnsafeBrowser i2pBrowser = new I2PGenericUnsafeBrowser();
|
||||
i2pBrowser.validateUserDirectory();
|
||||
boolean privateBrowsing = false;
|
||||
logger.info("checking for private browsing");
|
||||
i2pBrowser.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;
|
||||
logger.info(
|
||||
i2pBrowser.logger.info(
|
||||
"private browsing is true, profile will be discarded at end of session");
|
||||
}
|
||||
if (!arg.startsWith("-")) {
|
||||
// check if it's a URL
|
||||
visitURL.add(ValidURL(arg));
|
||||
visitURL.add(i2pBrowser.ValidURL(arg));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
logger.info("I2PGenericUnsafeBrowser");
|
||||
I2PGenericUnsafeBrowser i2pBrowser = new I2PGenericUnsafeBrowser();
|
||||
i2pBrowser.logger.info("I2PGenericUnsafeBrowser");
|
||||
i2pBrowser.launch(privateBrowsing,
|
||||
visitURL.toArray(new String[visitURL.size()]));
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
package net.i2p.i2pfirefox;
|
||||
|
||||
/**
|
||||
* I2PLibreWolf.java
|
||||
* Copyright (C) 2022 idk <hankhill19580@gmail.com>
|
||||
@ -16,5 +17,5 @@ package net.i2p.i2pfirefox;
|
||||
* @since 1.0.6
|
||||
*/
|
||||
public class I2PLibreWolf {
|
||||
|
||||
// TODO: provide a librewolf updater here.
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import java.io.File;
|
||||
|
||||
public class I2PPureJavaBrowser extends I2PCommonBrowser {
|
||||
private final int DEFAULT_TIMEOUT = 200;
|
||||
public static String BROWSER = "";
|
||||
public String BROWSER = "";
|
||||
|
||||
//
|
||||
public ProcessBuilder baseProcessBuilder(String[] args) {
|
||||
@ -18,7 +18,7 @@ public class I2PPureJavaBrowser extends I2PCommonBrowser {
|
||||
*
|
||||
* @return true if successful, false if not
|
||||
*/
|
||||
public static boolean deleteRuntimeDirectory() {
|
||||
public boolean deleteRuntimeDirectory() {
|
||||
File rtd = runtimeDirectory(true);
|
||||
if (rtd.exists()) {
|
||||
rtd.delete();
|
||||
@ -34,7 +34,7 @@ public class I2PPureJavaBrowser extends I2PCommonBrowser {
|
||||
* @return the runtime directory, or null if it could not be created
|
||||
* @since 0.0.18
|
||||
*/
|
||||
public static File runtimeDirectory(boolean create) {
|
||||
public File runtimeDirectory(boolean create) {
|
||||
String rtd = runtimeDirectory();
|
||||
return runtimeDirectory(create, rtd);
|
||||
}
|
||||
@ -46,7 +46,7 @@ public class I2PPureJavaBrowser extends I2PCommonBrowser {
|
||||
* found
|
||||
* @since 0.0.18
|
||||
*/
|
||||
public static String runtimeDirectory() {
|
||||
public String runtimeDirectory() {
|
||||
// get the I2P_BROWSER_DIR environment variable
|
||||
String rtd = System.getenv("I2P_BROWSER_DIR");
|
||||
// if it is not null and not empty
|
||||
|
@ -0,0 +1,263 @@
|
||||
package net.i2p.i2pfirefox.plugin;
|
||||
|
||||
import java.awt.GraphicsEnvironment;
|
||||
import java.io.File;
|
||||
import net.i2p.I2PAppContext;
|
||||
import net.i2p.app.ClientApp;
|
||||
import net.i2p.app.ClientAppManager;
|
||||
import net.i2p.app.ClientAppState;
|
||||
import net.i2p.app.MenuCallback;
|
||||
import net.i2p.app.MenuHandle;
|
||||
import net.i2p.app.MenuService;
|
||||
import net.i2p.desktopgui.ExternalMain;
|
||||
import net.i2p.i2pfirefox.I2PBrowser;
|
||||
import net.i2p.i2pfirefox.I2PFirefox;
|
||||
import net.i2p.util.I2PAppThread;
|
||||
import net.i2p.util.Log;
|
||||
import net.i2p.util.SystemVersion;
|
||||
|
||||
/**
|
||||
* I2PBrowserPlugin.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 class 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
|
||||
* @since 0.0.16
|
||||
*/
|
||||
public class I2PBrowserPlugin extends I2PBrowser implements ClientApp {
|
||||
private final I2PAppContext _context;
|
||||
private final Log _log;
|
||||
private final ClientAppManager _mgr;
|
||||
private final String _args[];
|
||||
private static final String PROP_DTG_ENABLED = "desktopgui.enabled";
|
||||
private final File pluginDir;
|
||||
private final File profileDir;
|
||||
private MenuHandle lmhs;
|
||||
private MenuHandle lmhf;
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
public I2PBrowserPlugin() {
|
||||
_context = new I2PAppContext();
|
||||
_mgr = null;
|
||||
_args = new String[] {};
|
||||
_log = _context.logManager().getLog(I2PBrowserPlugin.class);
|
||||
pluginDir = new File(_context.getAppDir(), "plugins/i2pfirefox/");
|
||||
profileDir = new File(pluginDir, "profile/");
|
||||
}
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
public I2PBrowserPlugin(I2PAppContext ctx, ClientAppManager mgr,
|
||||
String args[]) {
|
||||
_context = ctx;
|
||||
_mgr = mgr;
|
||||
_args = args;
|
||||
_log = ctx.logManager().getLog(I2PBrowserPlugin.class);
|
||||
pluginDir = new File(_context.getAppDir(), "plugins/i2pfirefox/");
|
||||
profileDir = new File(pluginDir, "profile/");
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
public String getDisplayName() { return "I2P Browser"; }
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
public String getName() { return "I2P Browser"; }
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
public ClientAppState getState() { return ClientAppState.STOPPED; }
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
public void shutdown(String[] args) {
|
||||
if (!isSystrayEnabled()) {
|
||||
_log.info("I2P Browser tray manager not supported");
|
||||
} else {
|
||||
_log.info("I2P Browser tray manager shutting down");
|
||||
MenuService dtg = startTrayApp();
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException ie) {
|
||||
}
|
||||
if (dtg != null) {
|
||||
dtg.removeMenu(lmhs);
|
||||
dtg.removeMenu(lmhf);
|
||||
}
|
||||
}
|
||||
changeState(ClientAppState.STOPPED);
|
||||
}
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
public void startup() {
|
||||
changeState(ClientAppState.STOPPED);
|
||||
if (!isSystrayEnabled()) {
|
||||
_log.info("I2P Browser tray manager not supported");
|
||||
try {
|
||||
I2PBrowser i2pBrowser = new I2PBrowser(profileDir.getAbsolutePath());
|
||||
String[] args = {"http://proxy.i2p"};
|
||||
i2pBrowser.launchFirefox(0, args);
|
||||
} catch (Exception e) {
|
||||
_log.error("Error starting I2P Browser", e);
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
_log.info(
|
||||
"Starting I2P Browser tray manager by testing http://proxy.i2p");
|
||||
MenuService dtg = startTrayApp();
|
||||
try {
|
||||
Thread.sleep(5000);
|
||||
} catch (InterruptedException ie) {
|
||||
}
|
||||
if (dtg != null) {
|
||||
_log.info("I2P Browser integrating with I2P tray manager");
|
||||
lmhs =
|
||||
dtg.addMenu("Launch I2P Browser (Safe Mode)", new Starter(dtg));
|
||||
dtg.showMenu(lmhs);
|
||||
dtg.enableMenu(lmhs);
|
||||
lmhf = dtg.addMenu("Launch I2P Browser (Flexible Mode)",
|
||||
new FlexStarter(dtg));
|
||||
dtg.showMenu(lmhf);
|
||||
dtg.enableMenu(lmhf);
|
||||
} else {
|
||||
_log.info("I2P Browser tray manager not found");
|
||||
}
|
||||
I2PBrowser i2pBrowser = new I2PBrowser(profileDir.getAbsolutePath());
|
||||
String[] args = {"http://proxy.i2p"};
|
||||
i2pBrowser.launchFirefox(0, args);
|
||||
} catch (Exception e) {
|
||||
_log.error("Error starting I2P Browser tray manager", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Copied directly from I2PSnark-standalone
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
private MenuService startTrayApp() {
|
||||
try {
|
||||
if (isSystrayEnabled()) {
|
||||
System.setProperty("java.awt.headless", "false");
|
||||
ExternalMain dtg =
|
||||
new ExternalMain(_context, _context.clientAppManager(), null);
|
||||
dtg.startup();
|
||||
return dtg;
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
t.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Copied directly from I2PSnark-standalone where it is used to determine
|
||||
// whether to launchFirefox the tray app Our environment should basically
|
||||
// never be headless, that doesn't make any sense, but something tells me I
|
||||
// should leave that check in.
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
private boolean isSystrayEnabled() {
|
||||
if (GraphicsEnvironment.isHeadless())
|
||||
return false;
|
||||
// default false except on OSX and Windows,
|
||||
// and on Linux KDE and LXDE.
|
||||
// Xubuntu XFCE works but doesn't look very good
|
||||
// Ubuntu Unity was far too buggy to enable
|
||||
// Ubuntu GNOME does not work, SystemTray.isSupported() returns false
|
||||
String xdg = System.getenv("XDG_CURRENT_DESKTOP");
|
||||
boolean dflt = SystemVersion.isWindows() || SystemVersion.isMac() ||
|
||||
"XFCE".equals(xdg) ||
|
||||
"KDE".equals(xdg) || "LXDE".equals(xdg);
|
||||
return _context.getProperty(PROP_DTG_ENABLED, dflt);
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback when Start I2PBrowser is clicked in systray
|
||||
*
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
public class Starter implements MenuCallback {
|
||||
private final MenuService _ms;
|
||||
public Starter(MenuService ms) { _ms = ms; }
|
||||
public void clicked(MenuHandle menu) {
|
||||
// Thread t = new I2PAppThread(new StarterThread(),
|
||||
//"I2PBrowser-Launcher start", true);
|
||||
// t.start();
|
||||
_log.info("I2P Browser starting up");
|
||||
try {
|
||||
I2PBrowser i2pBrowser = new I2PBrowser(profileDir.getAbsolutePath());
|
||||
String[] args = {"http://proxy.i2p"};
|
||||
i2pBrowser.launchFirefox(0, args);
|
||||
} catch (Exception e) {
|
||||
_log.error("Error starting I2P Browser", e);
|
||||
}
|
||||
_log.info("I2P Browser ran");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
public class FlexStarter implements MenuCallback {
|
||||
private final MenuService _ms;
|
||||
public FlexStarter(MenuService ms) { _ms = ms; }
|
||||
public void clicked(MenuHandle menu) {
|
||||
// Thread t = new I2PAppThread(new StarterThread(),
|
||||
//"I2PBrowser-Launcher start", true);
|
||||
// t.start();
|
||||
_log.info("I2P Browser starting up");
|
||||
try {
|
||||
I2PBrowser i2pBrowser = new I2PBrowser(profileDir.getAbsolutePath());
|
||||
i2pBrowser.usability = true;
|
||||
String[] args = {"http://proxy.i2p"};
|
||||
i2pBrowser.launchFirefox(0, args);
|
||||
} catch (Exception e) {
|
||||
_log.error("Error starting I2P Browser", e);
|
||||
}
|
||||
_log.info("I2P Browser ran");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 1.4.0
|
||||
* @return
|
||||
*/
|
||||
private synchronized void changeState(ClientAppState state) {
|
||||
if (_mgr != null)
|
||||
_mgr.notify(this, state, null, null);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
I2PBrowserPlugin plugin = new I2PBrowserPlugin();
|
||||
try {
|
||||
plugin.startup();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
@ -63,4 +63,5 @@ user_pref("browser.display.use_system_colors", false);
|
||||
user_pref("dom.image-lazy-loading.enabled", false);
|
||||
user_pref("extensions.autoDisableScopes", 0);
|
||||
user_pref("extensions.enabledScopes", 1);
|
||||
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", false);
|
||||
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", false);
|
||||
user_pref("browser.fixup.domainsuffixwhitelist.i2p", true);
|
@ -227,4 +227,5 @@ user_pref("webgl.enable-webgl2", false);
|
||||
user_pref("dom.w3c_touch_events.enabled", false);
|
||||
user_pref("browser.privatebrowsing.autostart", false);
|
||||
user_pref("browser.display.use_system_colors", false);
|
||||
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", false);
|
||||
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", false);
|
||||
user_pref("browser.fixup.domainsuffixwhitelist.i2p", true);
|
@ -75,8 +75,6 @@ iframe {
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 36vw;
|
||||
height: 64vh;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
@ -1,5 +1,8 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
ant distclean
|
||||
ant jar
|
||||
|
||||
./test/test.sh
|
||||
./test/test-chromium.sh
|
||||
./test/test-firefox.sh
|
||||
|
@ -1,16 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIcBAABCgAGBQJjRyYHAAoJEOU9mJqeLUe/HbIQALBTyEB42g2+Dlufv8fvF2E2
|
||||
549sCPbkFHzKaH8ECeKfiZZDuTfLUmNUbnYD1/lxJtaUDj+u56sSF5V6us3HBgYN
|
||||
56Mh+miLv4Am9HEZXwCRtE/kRjbE3yuKjSqYpZkviPsK4PT1fBBg+aMtc8fUZk4y
|
||||
3BQZsvynie1OH2Qlw4XHMZUbHP7VlEAZCUWZTk8ai+mmqegmjtDc2NMNtZ03BGi7
|
||||
Rd5U03+9mmVQNiWcJZqZkzQg8x/tPQD0XmMH04mZ71dCukfsun+DykjVGUAktloj
|
||||
9XJ1aq+c3s4r/GXXXJ4sEnDe1QNBPOgEH5SLSiSAwwl531i5Oh2sO1U2ILC/PsnM
|
||||
MlZMbypMw2eVGIQgfXrWurWlSvKYw193Y7N4bjvvTQYkxmWWHegKtYj1Jmy5y4+q
|
||||
KypLjwD7QxDViRiQp5v8vzFAQ/0pacwT6D+r7ugAIrk9jFnl5dnHBDuBNHTdjPOI
|
||||
oyTnSFJkroMjpdzbDnta74FzyLBWMPPMD3L/LepJLW+iYcJDqDYCffTqCPDjJSco
|
||||
UgD71EiDSyM77wMKqEFzHzbNdW1Tmd88LoDc/erK9akbX4Xkhve0N/HFr+99c5rH
|
||||
5EzI2j/N3Kzwom/FYzT8saS5ljRdGD+APi7VKE9budDzlu0ZqIhK/zMIJ//JHi/O
|
||||
rmxTcTn5TaTfAMGhQUi/
|
||||
=yI0S
|
||||
-----END PGP SIGNATURE-----
|
@ -1,19 +0,0 @@
|
||||
#! /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 \
|
||||
--icon src/icon.png \
|
||||
--name i2pbrowser \
|
||||
--app-version "$GITHUB_TAG" \
|
||||
--input src/build \
|
||||
--main-jar i2pfirefox.jar \
|
||||
--main-class net.i2p.i2pfirefox.I2PBrowser
|
@ -1,19 +0,0 @@
|
||||
#! /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 \
|
||||
--icon src/icon.png \
|
||||
--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
|
@ -4,9 +4,7 @@ git pull --all
|
||||
. ./config.sh
|
||||
. "${HOME}/github-release-config.sh"
|
||||
ant distclean jar
|
||||
./windows.sh
|
||||
./windows-exe.sh
|
||||
./windows-portable.sh
|
||||
ant windows-msi-release
|
||||
msisum=$(sha256sum "i2pbrowser-${GITHUB_TAG}.msi")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
@ -16,6 +14,7 @@ github-release upload --user "${GITHUB_USER}" \
|
||||
--file "i2pbrowser-${GITHUB_TAG}.msi" \
|
||||
--replace
|
||||
echo "Uploaded MSI package"
|
||||
ant windows-exe-release
|
||||
exesum=$(sha256sum "i2pbrowser-${GITHUB_TAG}.exe")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
@ -25,6 +24,7 @@ github-release upload --user "${GITHUB_USER}" \
|
||||
--file "i2pbrowser-${GITHUB_TAG}.exe" \
|
||||
--replace
|
||||
echo "Uploaded EXE package"
|
||||
ant windows-portable-release
|
||||
zipsum=$(sha256sum "i2pbrowser-portable-${GITHUB_TAG}.zip")
|
||||
github-release upload --user "${GITHUB_USER}" \
|
||||
--repo "${GITHUB_REPO}" \
|
||||
|
19
windows.sh
19
windows.sh
@ -1,19 +0,0 @@
|
||||
#! /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 \
|
||||
--icon src/icon.png \
|
||||
--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