Files
i2p.plugins.firefox/docs/USAGE.md
idk 23b6cc05f6 update index.html
Former-commit-id: 59b91a0a6426278c4ae041c69788bc8b3b708093
Former-commit-id: 27adf05add25ceac38d0004ff43d3929976ed6fe
2022-11-07 12:32:38 -05:00

2.1 KiB

Example Commands:

These scripts are designed so that they can be executed on both Windows and Unix.

The top command is for Unixes and should work on most POSIX shells. After it runs, the script will terminate preventing Windows commands from running.

The second and third command is for Windows and won't be reachable on Linux(because the top command will be run and the script will exit).

Both determine the path to the script, use it to find the jar file, and execute a single command.

Auto-Select in Persistent Mode

:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser

Auto-Select in Private Browsing Mode

:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PBrowser -private

Firefox in Persistent Mode

:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox

Firefox in Private Browsing Mode

:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PFirefox -private

Chromium in Persistent Mode

:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium

Chromium in Private Browsing Mode

:; dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd); java -cp "$dir"/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private; exit $?
@ECHO OFF
java -cp %cd%/src/build/i2pfirefox.jar net.i2p.i2pfirefox.I2PChromium -private