Crate browser_info

Source
Expand description

§browser-info

Cross-platform library for retrieving active browser URL and detailed information.

Built on top of active-win-pos-rs for reliable window detection, with specialized browser information extraction capabilities.

§Quick Start

use browser_info::get_active_browser_info;

match get_active_browser_info() {
    Ok(info) => {
        println!("Current URL: {}", info.url);
        println!("Browser: {}", info.browser_name);
        println!("Title: {}", info.title);
    }
    Err(e) => eprintln!("Error: {}", e),
}

Re-exports§

pub use error::BrowserInfoError;
pub use platform::chrome_devtools::ChromeDevToolsExtractor;

Modules§

browser_detection
error
platform
url_extraction

Structs§

BrowserInfo
[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
WindowPosition
Window position and dimensions

Enums§

BrowserType
Browser type classification
ExtractionMethod

Functions§

get_active_browser_info
Retrieve information about the currently active browser
get_active_browser_url
Get only the URL from the active browser (lightweight version)
get_browser_info
デフォルト(自動判定・推奨)- PowerShell優先
get_browser_info_detailed
詳細情報重視(Chrome DevTools - デバッグモード必要)
get_browser_info_fast
後方互換性のためのエイリアス
get_browser_info_safe
高速・互換性重視(PowerShell方式)
get_browser_info_with_method
明示的な方法指定
is_browser_active
Check if the currently active window is a browser