OpenRouter Activity Exporter

Export OpenRouter activity data to JSON

作者
Romboter
日安装量
0
总安装量
8
评分
0 0 0
版本
2.0
创建于
2024-10-06
更新于
2024-10-06
大小
6.6 KB
许可证
GNU GPLv3
适用于

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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址