Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

Build Status

chromietabs

Build Status

Lightweight library for getting information about open/active tabs in Google Chrome and Chromium web browser

Example

Example below demonstrates how to print all open tabs in the Google Chrome browser.

auto session_path = ChromieTabs::PathUtils::get_current_session_path(
                                              ChromieTabs::BrowserType::GOOGLE_CHROME);
ChromieTabs::SessionAnalyzer analyzer{ChromieTabs::SessionReader(session_path)};

std::cout << "Tabs:" << std::endl;
for (auto wnd_id : analyzer.get_window_ids())
{
    for (const auto& navigation : analyzer.get_window_navigation_entries(wnd_id))
    {
        std::cout << "   [Window " << wnd_id << "] Url: " << navigation.url << std::endl;
    }
}

Full example can be found here: chromietabs-example

Build

  1. Download the sources:

a) latest git-master version:

$ git clone https://github.com/loganek/chromietabs.git
$ cd chromietabs

b) latest release: sources

  1. Compile the project
$ mkdir build
$ cd build
$ cmake ..
$ make

Documentation

Documentation for the latest version of the library can be found here: master documentation. Documentation for all available releases can be found here: documentation.

Contributing

Please fork the parent repository and contribute back using pull requests. Features can be requested using issues. All code, comments, and critiques are greatly appreciated.

Licensing

This project is developed under MIT license. See LICENSE file for more details.

About

Lightweight library for accessing currently opened tabs in Google Chrome / Chromium

Resources

License

Packages

No packages published