OpenRouter Activity Exporter

Export OpenRouter activity data to JSON

Autor
Romboter
Dziennych instalacji
0
Wszystkich instalacji
3
Oceny
0 0 0
Wersja
2.0
Utworzono
06-10-2024
Zaktualizowano
06-10-2024
Size
6,62 KB
Licencja
GNU GPLv3
Dotyczy

OpenRouter Activity Exporter

Description

OpenRouter Activity Exporter is a userscript that allows users to export their activity data from OpenRouter.ai to a JSON file. This tool adds a convenient "Export Activity" button to the OpenRouter activity page, enabling easy data extraction for analysis or backup purposes.

Features

  • Adds an "Export Activity" button to the OpenRouter activity page
  • Fetches activity data across multiple pages
  • Exports data in JSON format
  • Implements error handling and retry mechanism for improved reliability
  • Provides visual feedback during the export process

Installation

  1. Install a userscript manager extension for your browser (e.g., Tampermonkey for Chrome or Firefox).
  2. Create a new userscript in your userscript manager.
  3. Copy the entire content of the OpenRouter_Activity_Exporter.js file into the new userscript.
  4. Save the userscript.

Usage

  1. Navigate to the OpenRouter activity page (https://openrouter.ai/activity).
  2. You should see an "Export Activity" button in the bottom right corner of the page.
  3. Click the "Export Activity" button to start the export process.
  4. Wait for the script to fetch all activity data. The button will show loading progress.
  5. Once complete, the activity data will be automatically downloaded as a JSON file named activity_transactions.json.

Author

Romboter

Version

2.0

Notes

  • Ensure you are logged into your OpenRouter account before using this script.
  • The script requires permission to make cross-origin requests and modify the page's CSS.
  • If you encounter any issues, check the browser console for error messages when DEBUG mode is enabled.