Skip to content

localization added #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 48 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
# Cursor 设备标识生成器

一个安全、简便、快捷的 Cursor Pro Trial 设备标识重置工具。

## 功能特点

- 🔒 安全可靠:纯前端生成,无需后端服务
- 🚀 快速便捷:一键生成新的设备标识
- 💻 跨平台支持:WindowsmacOS Linux

## 使用步骤

1. 退出cursor的登录账号,确保 Cursor 完全关闭(包括后台进程),一般关闭Cursor就可以了。
2. 打开工具页面,点击"重新生成 ID"按钮。页面地址在[这里](https://cursor-id.duu.men/),或看简介链接
3. 根据您的操作系统,找到并打开对应的配置文件:
- Windows(win键+R,输入): `%APPDATA%\Cursor\User\globalStorage\storage.json`
- macOS: `~/Library/Application Support/Cursor/User/globalStorage/storage.json`
- Linux: `~/.config/Cursor/User/globalStorage/storage.json`
4. 将生成的三个标识码复制替换到配置文件中:
- `telemetry.macMachineId`
- `telemetry.machineId`
- `telemetry.devDeviceId`
5. 保存文件
6. 重新启动 Cursor 并登录
7. 确保Cursor Pro Trial(pro测试) 账号正常,就可以正常使用了。

## 快速访问配置文件

### Windows
1. `Win + R` 打开运行对话框
2. 粘贴 `%APPDATA%\Cursor\User\globalStorage\storage.json`
3. 点击确定

### macOS
1. Finder 中按 `Command + Shift + G`
2. 粘贴 `~/Library/Application Support/Cursor/User/globalStorage/storage.json`
3. 点击前往

### Linux
直接在终端中使用编辑器打开:
# Cursor Device Identifier Generator

A secure, simple, and fast tool for resetting the Cursor Pro Trial device identifier.

## Features

- 🔒 **Secure & Reliable** – Fully frontend-based, no backend service required
- 🚀 **Fast & Convenient** – Generate a new device identifier with one click
- 💻 **Cross-Platform Support** – Works on Windows, macOS, and Linux

## Usage Instructions

1. Log out of your Cursor account and ensure Cursor is completely closed (including background processes). Usually, closing Cursor is enough.
2. Open the tool page and click the **"Regenerate ID"** button. The page is available [here](https://cursor-id.duu.men/) or check the description link.
3. Locate and open the corresponding configuration file based on your operating system:
- **Windows (Win + R, then enter)**: `%APPDATA%\Cursor\User\globalStorage\storage.json`
- **macOS**: `~/Library/Application Support/Cursor/User/globalStorage/storage.json`
- **Linux**: `~/.config/Cursor/User/globalStorage/storage.json`
4. Copy and replace the following three identifiers in the configuration file with the newly generated ones:
- `telemetry.macMachineId`
- `telemetry.machineId`
- `telemetry.devDeviceId`
5. Save the file.
6. Restart Cursor and log in.
7. Ensure your Cursor Pro Trial account is working correctly.

## Quick Access to Configuration File

### Windows
1. Press `Win + R` to open the Run dialog.
2. Paste `%APPDATA%\Cursor\User\globalStorage\storage.json`.
3. Click **OK**.

### macOS
1. In Finder, press `Command + Shift + G`.
2. Paste `~/Library/Application Support/Cursor/User/globalStorage/storage.json`.
3. Click **Go**.

### Linux
Open the file in a text editor using the terminal:
```bash
nano ~/.config/Cursor/User/globalStorage/storage.json
# or
vim ~/.config/Cursor/User/globalStorage/storage.json
```
```

## 注意事项
## Important Notes

- ⚠️ 使用前请确保 Cursor 完全关闭
- 💾 建议在修改前备份原配置文件
- 🔄 如果修改后无效,请检查 Cursor 是否还在后台运行。
- ⚠️ Make sure Cursor is completely closed before making changes.
- 💾 It is recommended to back up the original configuration file before modifying it.
- 🔄 If the changes do not take effect, check if Cursor is still running in the background.

## 免责声明
## Disclaimer

本工具仅供学习和研究使用。使用本工具产生的任何问题和风险由使用者自行承担。cursor 是一个不错的编辑器,条件允许,请购买支持。
This tool is for educational and research purposes only. Users assume full responsibility for any issues or risks arising from its use. Cursor is an excellent editor—if possible, consider purchasing it to support development.
68 changes: 67 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,72 @@ <h1>手动替换Cursor设备 ID</h1>

regenerateJSON();
</script>


<script>
const translations = {
"zh-CN": {
title: "手动替换Cursor设备 ID",
path: "C:\\Users\\[用户]\\AppData\\Roaming\\Cursor\\User\\globalStorage\\storage.json",
tutorial: "视频教程",
regenerate: "重新生成 ID",
tip: "提示:你可以通过按 WIN + R 并粘贴以下路径来快速打开",
pathTip: "%APPDATA%\\Cursor\\User\\globalStorage\\storage.json",
note: "mac、linux 用户使用方法请看github说明",
warning: "在运行脚本之前,你必须先退出并完全关闭 Cursor。否则它可能会恢复到之前的设备 ID,使重置无效。",
github: "在 GitHub 上查看(点个星星呗)"
},
"en-US": {
title: "Manually Replace Cursor Device ID",
path: "C:\\Users\\[User]\\AppData\\Roaming\\Cursor\\User\\globalStorage\\storage.json",
tutorial: "Video Tutorial",
regenerate: "Regenerate ID",
tip: "Tip: You can quickly open the file by pressing WIN + R and pasting the following path",
pathTip: "%APPDATA%\\Cursor\\User\\globalStorage\\storage.json",
note: "For macOS and Linux users, see GitHub instructions",
warning: "Before running the script, you must exit and completely close Cursor. Otherwise, it may revert to the previous device ID, making the reset ineffective.",
github: "View on GitHub (Give it a star!)"
},
"ru-RU": {
title: "Ручная замена ID устройства Cursor",
path: "C:\\Users\\[User]\\AppData\\Roaming\\Cursor\\User\\globalStorage\\storage.json",
tutorial: "Видеоурок",
regenerate: "Сгенерировать ID",
tip: "Совет: Вы можете быстро открыть файл, нажав WIN + R и вставив следующий путь",
pathTip: "%APPDATA%\\Cursor\\User\\globalStorage\\storage.json",
note: "Пользователям macOS и Linux см. инструкции на GitHub",
warning: "Перед запуском скрипта необходимо выйти и полностью закрыть Cursor. В противном случае он может восстановить предыдущий ID устройства, что сделает сброс неэффективным.",
github: "Открыть на GitHub (Поставьте звезду!)"
},

"uk-UA": {
title: "Ручна заміна ID пристрою Cursor",
path: "C:\\Users\\[User]\\AppData\\Roaming\\Cursor\\User\\globalStorage\\storage.json",
tutorial: "Відеоурок",
regenerate: "Згенерувати ID",
tip: "Порада: Ви можете швидко відкрити файл, натиснувши WIN + R і вставивши такий шлях",
pathTip: "%APPDATA%\\Cursor\\User\\globalStorage\\storage.json",
note: "Користувачам macOS і Linux див. інструкції на GitHub",
warning: "Перед запуском скрипту потрібно вийти та повністю закрити Cursor. В іншому випадку він може відновити попередній ID пристрою, що зробить скидання неефективним.",
github: "Відкрити на GitHub (Поставте зірку!)"
}

};

function setLanguage() {
const lang = navigator.language in translations ? navigator.language : "en-US";
document.querySelector("h1").textContent = translations[lang].title;
document.querySelector("sup").innerHTML = `${translations[lang].path} <a href='https://www.bilibili.com/video/BV1UhrbYzEvC/' target='_blank'>${translations[lang].tutorial}</a>`;
document.getElementById("regenerate-btn").textContent = translations[lang].regenerate;
document.querySelector(".tip p").innerHTML = `<strong>${translations[lang].tip}:</strong> ${translations[lang].pathTip}`;
document.querySelector(".tip p:last-child").textContent = translations[lang].note;
document.querySelector(".important").innerHTML = `<a href='https://www.bilibili.com/video/BV1UhrbYzEvC/' target='_blank'>[${translations[lang].tutorial}]</a> ${translations[lang].warning}`;
document.querySelector(".github-btn").textContent = translations[lang].github;
}

setLanguage();
</script>

</body>

</html>
</html>