Skip to content

Commit

Permalink
feat: add Floorp linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed Nov 19, 2024
1 parent 594e9b2 commit b3cdc41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 2 additions & 0 deletions crates/decrypt-cookies/src/browser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ chromium_base_win!(
firefox_base_linux!(
{ Firefox , ".mozilla/firefox", "cookies.sqlite", "logins.json", "key4.db" },
{ Librewolf, ".librewolf" , "cookies.sqlite", "logins.json", "key4.db" },
{ Floorp , ".floorp" , "cookies.sqlite", "logins.json", "key4.db" },
);

firefox_base_macos!(
{ Firefox , "Library/Application Support/Firefox" , "cookies.sqlite", "logins.json", "key4.db" },
{ Librewolf, "Library/Application Support/librewolf", "cookies.sqlite", "logins.json", "key4.db" },
Expand Down
7 changes: 1 addition & 6 deletions crates/decrypt-cookies/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
pub use sea_orm::prelude::ColumnTrait;

#[cfg(not(target_os = "linux"))]
pub use crate::browser::{Arc, CocCoc, OperaGX};
#[cfg(target_os = "macos")]
pub use crate::safari::{SafariBuilder, SafariGetter};
#[cfg(feature = "binary_cookies")]
pub use crate::utils::binary_cookies::SafariCookie;
pub use crate::{
browser::{
cookies::LeetCodeCookies, Brave, Chrome, Chromium, Edge, Firefox, Librewolf, Opera,
Vivaldi, Yandex,
},
browser::{cookies::LeetCodeCookies, *},
chromium::{
ChromiumBuilder, ChromiumCookieCol, ChromiumCookieColIter, ChromiumGetter,
ChromiumLoginCol, ChromiumLoginColIter,
Expand Down
5 changes: 1 addition & 4 deletions crates/decrypt-cookies/tests/cookies_work.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use anyhow::Result;
use decrypt_cookies::{
browser::{Chrome, Firefox},
prelude::*,
};
use decrypt_cookies::prelude::*;

#[ignore = "need realy environment"]
#[tokio::test]
Expand Down

0 comments on commit b3cdc41

Please sign in to comment.