mirror of
https://github.com/go-i2p/go-i2pbrowser.git
synced 2025-07-12 19:04:42 -04:00
update index.html
This commit is contained in:
40
README.md
40
README.md
@ -0,0 +1,40 @@
|
||||
# goi2pbrowser
|
||||
--
|
||||
import "github.com/eyedeekay/go-i2pbrowser"
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
#### func BrowseStrict
|
||||
|
||||
```go
|
||||
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
|
||||
|
||||
```go
|
||||
func BrowseUsability(profileDir, 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
|
||||
|
||||
```go
|
||||
func UnpackBase(profileDir string) (string, error)
|
||||
```
|
||||
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
|
||||
everything works, the error will be nil
|
||||
|
||||
#### func UnpackUsability
|
||||
|
||||
```go
|
||||
func UnpackUsability(profileDir string) (string, error)
|
||||
```
|
||||
UnpackUsability unpacks a "Usability" mode profile into the "profileDir" and
|
||||
returns the path to the profile and possibly, an error if something goes wrong.
|
||||
If everything works, the error will be nil
|
||||
|
1
go.mod
1
go.mod
@ -4,6 +4,7 @@ go 1.19
|
||||
|
||||
require (
|
||||
github.com/artdarek/go-unzip v1.0.0
|
||||
github.com/eyedeekay/go-fpw v0.0.0-20220925184713-d1d68bd3ce7b
|
||||
github.com/google/go-github v17.0.0+incompatible
|
||||
)
|
||||
|
||||
|
3
go.sum
3
go.sum
@ -1,3 +1,5 @@
|
||||
github.com/eyedeekay/go-fpw v0.0.0-20220925184713-d1d68bd3ce7b h1:iK6JlpfUxoxBkEsfJ5dLQ0Z8852eAHgNc7EvjRgqa24=
|
||||
github.com/eyedeekay/go-fpw v0.0.0-20220925184713-d1d68bd3ce7b/go.mod h1:OZD3uVWaZcd9uKc7JyZHXfFpEwkMg09EfcHmYjenVRw=
|
||||
github.com/eyedeekay/go-unzip v0.0.0-20220914222511-f2936bba53c2 h1:2ugjFSEUAduRk1lp5dSw19771HTZL8e37QSXjiiC7P4=
|
||||
github.com/eyedeekay/go-unzip v0.0.0-20220914222511-f2936bba53c2/go.mod h1:LRwT8AnFFHRm/oj++niZMHsi3o4rNDr1lN61xwHgFgI=
|
||||
github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM=
|
||||
@ -6,4 +8,5 @@ github.com/google/go-github v17.0.0+incompatible h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4r
|
||||
github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
|
||||
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
|
||||
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
|
||||
github.com/robertkrimen/godocdown v0.0.0-20130622164427-0bfa04905481/go.mod h1:C9WhFzY47SzYBIvzFqSvHIR6ROgDo4TtdTuRaOMjF/s=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
|
BIN
i2plogo.png
Normal file
BIN
i2plogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
113
index.html
Normal file
113
index.html
Normal file
@ -0,0 +1,113 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
goi2pbrowser
|
||||
</title>
|
||||
<meta name="author" content="eyedeekay" />
|
||||
<meta name="description" content="go-i2pbrowser.git" />
|
||||
<meta name="keywords" content="trunk" />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="navbar">
|
||||
<a href="#shownav">
|
||||
Show navigation
|
||||
</a>
|
||||
<div id="shownav">
|
||||
<div id="hidenav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="..">
|
||||
Up one level ^
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="index.html">
|
||||
index
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
<a href="#hidenav">
|
||||
Hide Navigation
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a id="returnhome" href="/">
|
||||
/
|
||||
</a>
|
||||
<h1>
|
||||
goi2pbrowser
|
||||
</h1>
|
||||
<p>
|
||||
–
|
||||
import “github.com/eyedeekay/go-i2pbrowser”
|
||||
</p>
|
||||
<h2>
|
||||
Usage
|
||||
</h2>
|
||||
<h4>
|
||||
func BrowseStrict
|
||||
</h4>
|
||||
<pre><code class="language-go">func BrowseStrict(profileDir, url string)
|
||||
</code></pre>
|
||||
<p>
|
||||
BrowseStrict launches a Firefox browser configured to use I2P and waits for it
|
||||
to exit. The profile is in “Strict” mode
|
||||
</p>
|
||||
<h4>
|
||||
func BrowseUsability
|
||||
</h4>
|
||||
<pre><code class="language-go">func BrowseUsability(profileDir, url string)
|
||||
</code></pre>
|
||||
<p>
|
||||
BrowseUsability launches a Firefox browser configured to use I2P and waits for
|
||||
it to exit. The profile is in “Usability” mode
|
||||
</p>
|
||||
<h4>
|
||||
func UnpackBase
|
||||
</h4>
|
||||
<pre><code class="language-go">func UnpackBase(profileDir string) (string, error)
|
||||
</code></pre>
|
||||
<p>
|
||||
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
|
||||
everything works, the error will be nil
|
||||
</p>
|
||||
<h4>
|
||||
func UnpackUsability
|
||||
</h4>
|
||||
<pre><code class="language-go">func UnpackUsability(profileDir string) (string, error)
|
||||
</code></pre>
|
||||
<p>
|
||||
UnpackUsability unpacks a “Usability” mode profile into the “profileDir” and
|
||||
returns the path to the profile and possibly, an error if something goes wrong.
|
||||
If everything works, the error will be nil
|
||||
</p>
|
||||
<div id="sourcecode">
|
||||
<span id="sourcehead">
|
||||
<strong>
|
||||
Get the source code:
|
||||
</strong>
|
||||
</span>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://github.com/eyedeekay/go-i2pbrowser.git">
|
||||
Source Repository: (https://github.com/eyedeekay/go-i2pbrowser.git)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<iframe src="https://snowflake.torproject.org/embed.html" width="320" height="240" frameborder="0" scrolling="no"></iframe>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://geti2p.net/">
|
||||
<img src="i2plogo.png"></img>
|
||||
I2P
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
15
showhider.css
Normal file
15
showhider.css
Normal file
@ -0,0 +1,15 @@
|
||||
/* edgar showhider CSS file */
|
||||
#show {display:none; }
|
||||
#hide {display:block; }
|
||||
#show:target {display: block; }
|
||||
#hide:target {display: none; }
|
||||
|
||||
#shownav {display:none; }
|
||||
#hidenav {display:block; }
|
||||
#shownav:target {display: block; }
|
||||
#hidenav:target {display: none; }
|
||||
|
||||
#donate {display:none; }
|
||||
#hidedonate {display:block; }
|
||||
#donate:target {display: block; }
|
||||
#hidedonate:target {display: none; }
|
164
style.css
Normal file
164
style.css
Normal file
@ -0,0 +1,164 @@
|
||||
/* edgar default CSS file */
|
||||
|
||||
body {
|
||||
font-family: "Roboto";
|
||||
font-family: monospace;
|
||||
text-align: justify;
|
||||
background-color: #373636;
|
||||
color: whitesmoke;
|
||||
font-size: 1.15em;
|
||||
}
|
||||
|
||||
ul {
|
||||
width: 55%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
ol {
|
||||
width: 55%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 1%;
|
||||
}
|
||||
|
||||
p {
|
||||
max-width: 90%;
|
||||
margin-top: 1%;
|
||||
margin-left: 3%;
|
||||
margin-right: 3%;
|
||||
}
|
||||
|
||||
img {
|
||||
float: left;
|
||||
top: 5%;
|
||||
left: 5%;
|
||||
max-width: 60%;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.inline {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.link-button:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.link-button:active {
|
||||
color: red;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: monospace;
|
||||
border-radius: 5%;
|
||||
padding: 1%;
|
||||
border-color: darkgray;
|
||||
font-size: .9em;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #C6D9FE;
|
||||
padding: 1%;
|
||||
}
|
||||
|
||||
ul li {
|
||||
color: #C6D9FE;
|
||||
}
|
||||
|
||||
iframe {
|
||||
background: aliceblue;
|
||||
border-radius: 15%;
|
||||
margin: 2%;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 36vw;
|
||||
height: 64vh;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.editor-toolbar a {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
text-decoration: none !important;
|
||||
color: whitesmoke !important;
|
||||
}
|
||||
|
||||
#feed {
|
||||
width: 60vw;
|
||||
height: unset !important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
float: right;
|
||||
background-color: #373636;
|
||||
color: whitesmoke;
|
||||
border: #C6D9FE solid 1px;
|
||||
}
|
||||
|
||||
.thread-post,
|
||||
.thread {
|
||||
color: whitesmoke !important;
|
||||
background-color: #373636;
|
||||
border: 1px solid darkgray;
|
||||
font-size: inherit;
|
||||
padding-top: 1%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
|
||||
.thread-post {
|
||||
margin-left: 4%;
|
||||
}
|
||||
|
||||
input {
|
||||
text-align: center;
|
||||
color: whitesmoke !important;
|
||||
background-color: #373636;
|
||||
border: 1px solid darkgray;
|
||||
font: normal normal normal 14px/1 FontAwesome;
|
||||
font-size: inherit;
|
||||
padding-top: 1%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
|
||||
.thread-hash {
|
||||
text-align: right;
|
||||
color: whitesmoke !important;
|
||||
background-color: #373636;
|
||||
border: 1px solid darkgray;
|
||||
font-size: inherit;
|
||||
padding-top: 1%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
|
||||
.post-body {
|
||||
text-align: left;
|
||||
color: whitesmoke !important;
|
||||
font-size: inherit;
|
||||
padding-top: 1%;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
#show {display:none; }
|
||||
#hide {display:block; }
|
||||
#show:target {display: block; }
|
||||
#hide:target {display: none; }
|
||||
|
||||
#shownav {display:none; }
|
||||
#hidenav {display:block; }
|
||||
#shownav:target {display: block; }
|
||||
#hidenav:target {display: none; }
|
||||
|
||||
#navbar {
|
||||
float: right;
|
||||
width: 15%;
|
||||
}
|
||||
#returnhome {
|
||||
font-size: xxx-large;
|
||||
display: inline;
|
||||
}
|
||||
h1 {
|
||||
display: inline;
|
||||
}
|
@ -19,6 +19,9 @@ func existsAlready(profileDir string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// 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 everything
|
||||
// works, the error will be nil
|
||||
func UnpackBase(profileDir string) (string, error) {
|
||||
if existsAlready(profileDir) {
|
||||
log.Println(profileDir, "exists already")
|
||||
@ -38,6 +41,9 @@ func UnpackBase(profileDir string) (string, error) {
|
||||
return filepath.Join(profileDir, "i2p.firefox.base.profile"), nil
|
||||
}
|
||||
|
||||
// UnpackUsability unpacks a "Usability" mode profile into the "profileDir" and returns the
|
||||
// path to the profile and possibly, an error if something goes wrong. If everything
|
||||
// works, the error will be nil
|
||||
func UnpackUsability(profileDir string) (string, error) {
|
||||
if existsAlready(profileDir) {
|
||||
log.Println(profileDir, "exists already")
|
||||
|
Reference in New Issue
Block a user