forked from browserutils/kooky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request browserutils#23 from srlehn/finder-etc
add finder interface, rework chrome implementation, add examples
- Loading branch information
Showing
48 changed files
with
2,273 additions
and
812 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package allbrowsers | ||
|
||
import ( | ||
_ "github.com/zellyn/kooky/browsh" | ||
_ "github.com/zellyn/kooky/chrome" | ||
_ "github.com/zellyn/kooky/dillo" | ||
_ "github.com/zellyn/kooky/edge" | ||
_ "github.com/zellyn/kooky/elinks" | ||
_ "github.com/zellyn/kooky/epiphany" | ||
_ "github.com/zellyn/kooky/firefox" | ||
_ "github.com/zellyn/kooky/ie" | ||
_ "github.com/zellyn/kooky/konqueror" | ||
_ "github.com/zellyn/kooky/lynx" | ||
_ "github.com/zellyn/kooky/netscape" | ||
_ "github.com/zellyn/kooky/opera" | ||
_ "github.com/zellyn/kooky/safari" | ||
_ "github.com/zellyn/kooky/uzbl" | ||
_ "github.com/zellyn/kooky/w3m" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package kooky_test | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/zellyn/kooky" | ||
_ "github.com/zellyn/kooky/allbrowsers" // This registers all cookiestore finders! | ||
// _ "github.com/zellyn/kooky/chrome" // load only the chrome cookiestore finder | ||
) | ||
|
||
func ExampleReadCookies_all() { | ||
// try to find cookie stores in default locations and | ||
// read the cookies from them. | ||
// decryption is handled automatically. | ||
cookies := kooky.ReadCookies() | ||
|
||
for _, cookie := range cookies { | ||
fmt.Println(cookie) | ||
} | ||
} | ||
|
||
var _ struct{} // ignore this - for correct working of the documentation tool |
Oops, something went wrong.