8000 GitHub - atr0t0s/teams-chat-copier: Firefox extension to select and export a range of messages from Microsoft Teams web chat as HTML. · GitHub
[go: up one dir, main page]

Skip to content

About

Firefox extension to select and export a range of messages from Microsoft Teams web chat as HTML.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Teams Chat Copier

Firefox extension to select and export a range of messages from Microsoft Teams web chat as an HTML file.

How it works

Teams web uses virtual scrolling, so only a subset of messages exist in the DOM at any time. This extension works around that by caching messages as you scroll between your start and end points.

  1. Right-click on the first message you want to copy and select "Teams Copier: Set as Start"
  2. The message will be highlighted with a purple outline and a "START" label
  3. Scroll through the chat to load all messages in between
  4. Right-click on the last message and select "Teams Copier: Set as End & Copy"
  5. An HTML file containing all messages in the range will be downloaded

Installation

  1. Clone this repo or download the source
  2. Open Firefox and go to about:debugging#/runtime/this-firefox
  3. Click "Load Temporary Add-on"
  4. Select the manifest.json file from this directory

Files

File Description
manifest.json Extension manifest (v2)
background.js Registers context menu items
content.js Content script — handles message caching, range selection, and export
content.css Styles for the start marker highlight and toast notifications
icon.svg Extension icon

Permissions

  • contextMenus — adds right-click menu items
  • clipboardWrite — clipboard access (currently unused due to Firefox restrictions)
  • activeTab — access to the active Teams tab

Notes

  • Only works on teams.cloud.microsoft (Teams web)
  • Firefox blocks clipboard writes from extension content scripts without a direct user gesture, so the extension downloads an HTML file instead of copying to clipboard
  • Messages with images will attempt to inline them as data URIs

About

Firefox extension to select and export a range of messages from Microsoft Teams web chat as HTML.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0