module CookiesExtractor::Firefox

Defined in:

cookies-extractor/firefox-extractor.cr

Constant 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

Class Method Detail

def self.browser_directories(profile : String | Path | Nil = nil) : Array(Path) #

[View source]
def self.extract_cookies(hosts_searched : Array(String) | Nil, db_path : Path) : Array(Cookie) #

[View source]
def self.extract_cookies(hosts_searched : Array(String) | Nil = nil, profile : String | Path | Nil = nil) : Array(Cookie) #

[View source]
def self.get_profile_path(profile : String | Path | Nil = nil) : Path #

[View source]
def self.identify_path(profile : String | Path | Nil = nil) : Tuple(Path, Path) #

[View source]
def self.identify_paths(directories : Array(Path)) : Hash(Path, Path) #

[View source]
def self.identify_paths(profile : String | Path | Nil = nil) : Hash(Path, Path) #

[View source]