# Sony PDE Helper Firefox Extension

A Firefox extension that extracts and copies authentication tokens, user identities, emails, and Datadog RUM session links from PDE systems with just one click.

> **Note**: This is the Firefox-compatible version. For the Chrome version, see the original in `ozhovnuvatyi/sony-pde-token-chrome-ext/`

Let me know if you want the .xpi file!!

## Features

- **🔑 Bearer Token** - Authentication token for API requests (with expiration validation)
- **👤 Identity UUID** - User identity identifier from Datadog RUM
- **📧 Email** - User email from Datadog RUM  
- **📊 Datadog RUM Link** - Direct link to session replay for debugging

## Installation

### Temporary Installation (for development/testing)

1. Clone this repository
2. Open Firefox and navigate to `about:debugging#/runtime/this-firefox`
3. Click "Load Temporary Add-on..."
4. Navigate to the `sony-pde-token-firefox-ext` directory and select the `manifest.json` file

**Note**: Temporary add-ons are removed when Firefox restarts. For permanent installation, see below.

### Permanent Installation (requires signing)

Firefox requires extensions to be signed for permanent installation. You have two options:

1. **For personal use**: Use [Firefox Developer Edition](https://www.mozilla.org/en-US/firefox/developer/) or [Firefox Nightly](https://www.mozilla.org/en-US/firefox/channel/desktop/) which allow unsigned extensions permanently
2. **For team distribution**: Submit to [addons.mozilla.org](https://addons.mozilla.org) for signing (can be unlisted for private use)

## Usage

1. Navigate to any supported Sony PDE system
2. Click the Sony PDE Helper extension icon in the Firefox toolbar
3. Click any of the four buttons to copy data to clipboard:
   - **Token** - Bearer token (shows time remaining if valid)
   - **Identity** - User identity UUID
   - **Email** - User email address
   - **Datadog RUM Link** - Session replay link

The extension automatically disables buttons on unsupported sites and shows clear status messages for each action.

## Firefox Compatibility

- **Minimum Firefox version**: 142.0
- Uses standard WebExtension APIs compatible with both Firefox and Chrome
- ES modules for background scripts (Firefox MV3 requirement)
