Skip to content

jjw24/BrowserTabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrowserTabs

BrowserTabs is a .NET library for retrieving all open tabs from Chromium-based browsers (such as Microsoft Edge, Google Chrome, Brave, Vivaldi, Opera, and Chromium) and Firefox-based browsers on Windows.

Installation

You can install BrowserTabs via NuGet Package Manager, or

Powershell:

Install-Package BrowserTabs

.Net CLI:

dotnet add package BrowserTabs

Features

  • Retrieve open tabs across Chromium-based and Firefox-based browsers.
  • Get core tab info: title, owning browser process name, minimized state, and window handle.
  • Activate (bring to foreground) or close tabs.
  • Works across multiple windows and profiles (normal/incognito, pop-outs).

Usage

  1. Reference the BrowserTabs library in your .NET project.
  2. Call BrowserTabManager.GetAllTabs(), BrowserTabManager.GetChromiumTabs() or BrowserTabManager.GetFirefoxTabs() to get a list of all open tabs.
  3. Use BrowserTabManager.ActivateTab(tab) or BrowserTabManager.CloseTab(tab) to interact with tabs.
  4. Supports the use of cancellation token to stop and return from tab retrieval processes.

# TODO:
1. Handle grouped tabs
2. Add proper logging

About

Library for retrieving all opened browser tabs in Chromium-based and Firefox-based browsers

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages