module
CookiesExtractor::Firefox
Defined in:
cookies-extractor/firefox-extractor.crConstant Summary
-
BROWSER_DIRECTORIES =
{% if flag?(:windows) %} [ Path.new("%APPDATA%\\Mozilla\\Firefox\\").expand(home: true), ] {% else %}{% if flag?(:darwin) %} [ Path.new("~/Library/Application Support/Firefox/").expand(home: true), ] {% else %} [ # When installed on system Path.new("~/.mozilla/firefox/").expand(home: true), # When installed through snap Path.new("~/snap/firefox/common/.mozilla/firefox/").expand(home: true), # When installed through flatpak Path.new("~/.var/app/org.mozilla.firefox/.mozilla/firefox/").expand(home: true), ] {% end %}{% end %} -
COOKIES_DB_NAME =
"cookies.sqlite"
Class Method Summary
- .browser_directories(profile : String | Path | Nil = nil) : Array(Path)
- .extract_cookies(hosts_searched : Array(String) | Nil, db_path : Path) : Array(Cookie)
- .extract_cookies(hosts_searched : Array(String) | Nil = nil, profile : String | Path | Nil = nil) : Array(Cookie)
- .get_profile_path(profile : String | Path | Nil = nil) : Path
- .identify_path(profile : String | Path | Nil = nil) : Tuple(Path, Path)
- .identify_paths(directories : Array(Path)) : Hash(Path, Path)
- .identify_paths(profile : String | Path | Nil = nil) : Hash(Path, Path)