mirror of
https://github.com/go-i2p/go-i2pbrowser.git
synced 2025-07-13 03:53:04 -04:00
update readme
This commit is contained in:
84
README.md
84
README.md
@ -1,56 +1,66 @@
|
|||||||
# goi2pbrowser
|
# goi2pbrowser
|
||||||
--
|
|
||||||
import "github.com/eyedeekay/go-i2pbrowser"
|
|
||||||
|
|
||||||
Package goi2pbrowser is a package which can be used to manage an I2P browsing
|
Package goi2pbrowser is a package which can be used to manage an I2P browsing
|
||||||
profile using a pre-configured, common profile which is used by the I2P
|
profile using a pre-configured, common profile which is used by the I2P Easy-Install
|
||||||
Easy-Install bundle and the i2p.plugins.firefox profile manager. It is a Go
|
bundle and the i2p.plugins.firefox profile manager. It is a Go clone of
|
||||||
clone of i2p.plugins.firefox for use in native applications.
|
i2p.plugins.firefox for use in native applications.
|
||||||
|
|
||||||
## Usage
|
## Variables
|
||||||
|
|
||||||
```go
|
BaseProfile is a zip of a Firefox profile with NoScript, HTTPS Everywhere, and I2PIPB
|
||||||
|
|
||||||
|
```golang
|
||||||
var BaseProfile []byte
|
var BaseProfile []byte
|
||||||
```
|
```
|
||||||
BaseProfile is a zip of a Firefox profile with NoScript, HTTPS Everywhere, and
|
|
||||||
I2PIPB
|
|
||||||
|
|
||||||
```go
|
UsabilityProfile is a zip of a Firefox profile with Jshelter, HTTPS Everywhere, uBlock Origin, LocalCDN, OICT, and I2PIPB
|
||||||
|
|
||||||
|
```golang
|
||||||
var UsabilityProfile []byte
|
var UsabilityProfile []byte
|
||||||
```
|
```
|
||||||
UsabilityProfile is a zip of a Firefox profile with Jshelter, HTTPS Everywhere,
|
|
||||||
uBlock Origin, LocalCDN, OICT, and I2PIPB
|
|
||||||
|
|
||||||
#### func BrowseStrict
|
## Functions
|
||||||
|
|
||||||
```go
|
### func [BrowseApp](/run.go#L53)
|
||||||
func BrowseStrict(profileDir, url string)
|
|
||||||
```
|
|
||||||
BrowseStrict launches a Firefox browser configured to use I2P and waits for it
|
|
||||||
to exit. The profile is in "Strict" mode
|
|
||||||
|
|
||||||
#### func BrowseUsability
|
`func BrowseApp(profileDir string, url ...string)`
|
||||||
|
|
||||||
```go
|
BrowseApp launches a Firefox browser configured to use I2P and waits for it to exit.
|
||||||
func BrowseUsability(profileDir, url string)
|
The profile is in "Usability" mode
|
||||||
```
|
|
||||||
BrowseUsability launches a Firefox browser configured to use I2P and waits for
|
|
||||||
it to exit. The profile is in "Usability" mode
|
|
||||||
|
|
||||||
#### func UnpackBase
|
### func [BrowseStrict](/run.go#L15)
|
||||||
|
|
||||||
|
`func BrowseStrict(profileDir string, url ...string)`
|
||||||
|
|
||||||
|
BrowseStrict launches a Firefox browser configured to use I2P and waits for it to exit.
|
||||||
|
The profile is in "Strict" mode
|
||||||
|
|
||||||
|
### func [BrowseUsability](/run.go#L34)
|
||||||
|
|
||||||
|
`func BrowseUsability(profileDir string, url ...string)`
|
||||||
|
|
||||||
|
BrowseUsability launches a Firefox browser configured to use I2P and waits for it to exit.
|
||||||
|
The profile is in "Usability" mode
|
||||||
|
|
||||||
|
### func [UnpackBase](/unembed.go#L22)
|
||||||
|
|
||||||
|
`func UnpackBase(profileDir string) (string, error)`
|
||||||
|
|
||||||
```go
|
|
||||||
func UnpackBase(profileDir string) (string, error)
|
|
||||||
```
|
|
||||||
UnpackBase unpacks a "Strict" mode profile into the "profileDir" and returns the
|
UnpackBase unpacks a "Strict" mode profile into the "profileDir" and returns the
|
||||||
path to the profile and possibly, an error if something goes wrong. If
|
path to the profile and possibly, an error if something goes wrong. If everything
|
||||||
everything works, the error will be nil
|
works, the error will be nil
|
||||||
|
|
||||||
#### func UnpackUsability
|
### func [UnpackUsability](/unembed.go#L41)
|
||||||
|
|
||||||
```go
|
`func UnpackUsability(profileDir string) (string, error)`
|
||||||
func UnpackUsability(profileDir string) (string, error)
|
|
||||||
```
|
UnpackUsability unpacks a "Usability" mode profile into the "profileDir" and returns the
|
||||||
UnpackUsability unpacks a "Usability" mode profile into the "profileDir" and
|
path to the profile and possibly, an error if something goes wrong. If everything
|
||||||
returns the path to the profile and possibly, an error if something goes wrong.
|
works, the error will be nil
|
||||||
If everything works, the error will be nil
|
|
||||||
|
## Sub Packages
|
||||||
|
|
||||||
|
* [i2pbrowser](./i2pbrowser)
|
||||||
|
|
||||||
|
---
|
||||||
|
Readme created from Go doc with [goreadme](https://github.com/posener/goreadme)
|
||||||
|
Reference in New Issue
Block a user