refactor(extension): shorten Xiaohongshu clip menu text

This commit is contained in:
tianma-if committed 2026-10-02 23:56:56 +08:00
1 parent 8f08c89c1b
commit 7008f369a5
10 files changed
+19 -19

No files matched your search

+3 -3
View File
@@ -25,7 +25,7 @@ EdgeEver Web Clipper saves the current webpage, selected text, a right-clicked i
- Send content directly to your instance without an EdgeEver-operated relay.
- No advertising, analytics, tracking, or telemetry.
Before using the extension, enter your EdgeEver instance URL and API token in the extension settings. The extension reads and sends page content only after you click **Clip current page**, **Save selection to EdgeEver**, **Save image to EdgeEver**, **Save this post to EdgeEver**, **Save this Xiaohongshu note to EdgeEver**, **Save Zhihu content to EdgeEver**, or **Save this repository to EdgeEver**.
Before using the extension, enter your EdgeEver instance URL and API token in the extension settings. The extension reads and sends page content only after you click **Clip current page**, **Save selection to EdgeEver**, **Save image to EdgeEver**, **Save this post to EdgeEver**, **Save Xiaohongshu note to EdgeEver**, **Save Zhihu content to EdgeEver**, or **Save this repository to EdgeEver**.
## Data collection and transmission
@@ -46,7 +46,7 @@ The project maintainers do not receive or retain this data. Instance settings ar
7. On a normal webpage, right-click an image, choose **Save image to EdgeEver**, and verify the new note contains the image.
8. Open one X post page, right-click the post text (not a photo), choose **Save this post to EdgeEver**, and verify the note contains the post text and the post link.
9. Open one GitHub repository page, right-click the description or README text, choose **Save this repository to EdgeEver**, and verify the note contains the repository address and description.
10. Open one Xiaohongshu note, right-click the note text (not a photo), choose **Save this Xiaohongshu note to EdgeEver**, and verify the note contains the title, text, and source link.
10. Open one Xiaohongshu note, right-click the note text (not a photo), choose **Save Xiaohongshu note to EdgeEver**, and verify the note contains the title, text, and source link.
11. Open one Zhihu answer or article, right-click the text (not a photo), choose **Save Zhihu content to EdgeEver**, and verify the note contains the title, text, and source link.
12. Verify the created notes in the review EdgeEver instance.
@@ -85,4 +85,4 @@ EdgeEver 网页剪藏插件可将当前网页、选中的文字、右键选中
- 数据直接发送到用户自己的实例,不经过 EdgeEver 中转服务。
- 不包含广告、分析、追踪或遥测。
使用前,请在插件设置中填写 EdgeEver 实例地址和 API Token。插件只会在用户点击“剪藏当前网页”,或选择“保存选中文字到 EdgeEver”“保存图片到 EdgeEver”“保存这条推文到 EdgeEver”“保存这篇小红书笔记到 EdgeEver”“保存知乎内容到 EdgeEver”后读取并发送网页内容。
使用前,请在插件设置中填写 EdgeEver 实例地址和 API Token。插件只会在用户点击“剪藏当前网页”,或选择“保存选中文字到 EdgeEver”“保存图片到 EdgeEver”“保存这条推文到 EdgeEver”“保存小红书笔记到 EdgeEver”“保存知乎内容到 EdgeEver”后读取并发送网页内容。
+1 -1
View File
@@ -11,7 +11,7 @@ Chrome, Edge, and Firefox Manifest V3 extension for saving the current webpage,
- Right-click an image and choose **Save image to EdgeEver**. The image file is uploaded into a new note in the default notebook, with the source page linked underneath. An image saved from Google Search records “Google Search” and the search keyword instead of the results URL.
- Select text on a page, right-click, and choose **Save selection to EdgeEver**. That passage is saved as a new note in the default notebook, with the source page linked underneath. The rest of the page is not included.
- On X, right-click the post text and choose **Save this post to EdgeEver**. The post text, author, time, and photos already shown in that post are saved into one note. Text folded behind Show more is expanded first, so a long post is saved in full. Right-clicking a photo saves that image instead, so the command stays on the top-level menu. A single-post page can be saved immediately. On a timeline, the extension asks once for access to X so it can remember the post under the pointer.
- On Xiaohongshu, right-click the note text and choose **Save this Xiaohongshu note to EdgeEver**. The title, text, author, time, location, and photos go into one note. Comments are left out. Right-clicking a photo saves that image instead. An open note can be saved immediately. On the feed, the extension asks once for access to Xiaohongshu so it can remember the note under the pointer; open that note before saving if its full text is not on the page.
- On Xiaohongshu, right-click the note text and choose **Save Xiaohongshu note to EdgeEver**. The title, text, author, time, location, and photos go into one note. Comments are left out. Right-clicking a photo saves that image instead. An open note can be saved immediately. On the feed, the extension asks once for access to Xiaohongshu so it can remember the note under the pointer; open that note before saving if its full text is not on the page.
- On Zhihu, right-click the answer or article text and choose **Save Zhihu content to EdgeEver**. The title, author, full text, and photos go into one note. Comments are left out. Right-clicking a photo saves that image instead. An open answer or article can be saved immediately. On the home feed or a question page, the extension remembers the item under the pointer; if that listener is not running yet, right-click the same text once more.
- On a GitHub repository page or code tree, right-click the page background, the description, or the README text and choose **Save this repository to EdgeEver**. The note keeps the repository address, the About text, and the homepage, language, license, and topics when the page shows them. An empty About falls back to the README's first paragraph. Issue, discussion, and single-file pages are left unsaved. The toolbar action uses the same card on those repository pages. Right-clicking a link or an image keeps the existing selection and image commands, so this one stays on the top-level menu.
- When the page cannot hand over the image bytes, the extension asks once for access to that image's site. After that, later images from the same site save directly.
+1 -1
View File
@@ -89,7 +89,7 @@ Save the current webpage, user-selected text, a user-chosen image, one X post, o
### Permission justifications
- `activeTab`: Read the active page only after the user clicks the extension's save action or chooses Save selection to EdgeEver, Save image to EdgeEver, Save this post to EdgeEver, Save this Xiaohongshu note to EdgeEver, Save Zhihu content to EdgeEver, or Save this repository to EdgeEver.
- `activeTab`: Read the active page only after the user clicks the extension's save action or chooses Save selection to EdgeEver, Save image to EdgeEver, Save this post to EdgeEver, Save Xiaohongshu note to EdgeEver, Save Zhihu content to EdgeEver, or Save this repository to EdgeEver.
- `contextMenus`: Add one top-level item for the thing the user right-clicked: selected text, an image, an X post, a Xiaohongshu note, a Zhihu answer or article, or a GitHub repository page. It runs only after the user selects that item.
- `scripting`: Inject the packaged capture script into the active page after the user initiates a capture.
- `storage`: Store the user's EdgeEver instance URL, API token, and default notebook ID locally.
+1 -1
View File
@@ -12,7 +12,7 @@
<p class="hint" data-i18n="selectionSaveHint">Select text on a page, right-click, and choose “Save selection to EdgeEver”. It is saved as a new note in the default notebook selected below.</p>
<p class="hint" data-i18n="tweetSaveHint">On X, right-click a post and choose “Save this post to EdgeEver”. The visible text and photos go into one new note in the same notebook.</p>
<p class="hint" data-i18n="githubRepoSaveHint">On a GitHub repository page or code tree, right-click the page background, the description, or the README text and choose “Save this repository to EdgeEver”. The address and description are saved as a new note in the default notebook selected above.</p>
<p class="hint" data-i18n="xhsSaveHint">On Xiaohongshu, right-click the note text and choose “Save this Xiaohongshu note to EdgeEver”. The title, text, and photos go into one new note. Comments are left out.</p>
<p class="hint" data-i18n="xhsSaveHint">On Xiaohongshu, right-click the note text and choose “Save Xiaohongshu note to EdgeEver”. The title, text, and photos go into one new note. Comments are left out.</p>
<p class="hint" data-i18n="zhihuSaveHint">On Zhihu, right-click the answer or article text and choose “Save Zhihu content to EdgeEver”. The title, author, text, and photos go into one new note. Comments are left out.</p>
<form id="settings-form">
<label>
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@edgeever/extension",
"version": "0.1.13",
"version": "0.1.14",
"private": true,
"type": "module",
"scripts": {
@@ -352,10 +352,10 @@
"message": "Topics"
},
"saveXhsToEdgeEver": {
"message": "Save this Xiaohongshu note to EdgeEver"
"message": "Save Xiaohongshu note to EdgeEver"
},
"xhsSaveHint": {
"message": "On Xiaohongshu, right-click the note text and choose “Save this Xiaohongshu note to EdgeEver”. The title, text, and photos go into one new note. Comments are left out. Right-clicking a photo still saves that image only."
"message": "On Xiaohongshu, right-click the note text and choose “Save Xiaohongshu note to EdgeEver”. The title, text, and photos go into one new note. Comments are left out. Right-clicking a photo still saves that image only."
},
"savingXhs": {
"message": "Saving this note…"
@@ -391,7 +391,7 @@
"message": "Xiaohongshu note"
},
"xhsSaveWindowTitle": {
"message": "Save this Xiaohongshu note to EdgeEver"
"message": "Save Xiaohongshu note to EdgeEver"
},
"xhsLocationLabel": {
"message": "Location"
@@ -352,10 +352,10 @@
"message": "トピック"
},
"saveXhsToEdgeEver": {
"message": "この小紅書ノートを EdgeEver に保存"
"message": "小紅書のノートを EdgeEver に保存"
},
"xhsSaveHint": {
"message": "小紅書でノート本文を右クリックし、「この小紅書ノートを EdgeEver に保存」を選びます。タイトル、本文、画像が 1 件のノートになります。コメントは含めません。画像を右クリックした場合は、その画像だけを保存します。"
"message": "小紅書でノート本文を右クリックし、「小紅書のノートを EdgeEver に保存」を選びます。タイトル、本文、画像が 1 件のノートになります。コメントは含めません。画像を右クリックした場合は、その画像だけを保存します。"
},
"savingXhs": {
"message": "このノートを保存しています…"
@@ -391,7 +391,7 @@
"message": "小紅書のノート"
},
"xhsSaveWindowTitle": {
"message": "この小紅書ノートを EdgeEver に保存"
"message": "小紅書のノートを EdgeEver に保存"
},
"xhsLocationLabel": {
"message": "場所"
@@ -352,10 +352,10 @@
"message": "话题"
},
"saveXhsToEdgeEver": {
"message": "保存这篇小红书笔记到 EdgeEver"
"message": "保存小红书笔记到 EdgeEver"
},
"xhsSaveHint": {
"message": "在小红书笔记正文上右键,选择“保存这篇小红书笔记到 EdgeEver”。标题、正文和笔记里的图片会存成一条新笔记,评论不会写入。右键图片仍然只保存这张图片。"
"message": "在小红书笔记正文上右键,选择“保存小红书笔记到 EdgeEver”。标题、正文和笔记里的图片会存成一条新笔记,评论不会写入。右键图片仍然只保存这张图片。"
},
"savingXhs": {
"message": "正在保存这篇笔记……"
@@ -391,7 +391,7 @@
"message": "一篇小红书笔记"
},
"xhsSaveWindowTitle": {
"message": "保存这篇小红书笔记到 EdgeEver"
"message": "保存小红书笔记到 EdgeEver"
},
"xhsLocationLabel": {
"message": "地点"
+2 -2
View File
@@ -3,11 +3,11 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title data-i18n="xhsSaveWindowTitle">Save this Xiaohongshu note to EdgeEver</title>
<title data-i18n="xhsSaveWindowTitle">Save Xiaohongshu note to EdgeEver</title>
</head>
<body>
<main class="image-save-shell">
<h1 data-i18n="xhsSaveWindowTitle">Save this Xiaohongshu note to EdgeEver</h1>
<h1 data-i18n="xhsSaveWindowTitle">Save Xiaohongshu note to EdgeEver</h1>
<p class="hint" data-i18n="xhsPermissionIntro">The feed has many notes. Allow access to Xiaohongshu so the clipper can remember the note under the pointer. After that, right-click the same note once more. Only the note you choose is saved to the clipper's default notebook.</p>
<div class="image-save-actions">
<button id="allow" type="button" data-i18n="allowXhsAccess">Allow access to Xiaohongshu</button>
+1 -1
View File
@@ -119,7 +119,7 @@
},
"apps/extension": {
"name": "@edgeever/extension",
"version": "0.1.13",
"version": "0.1.14",
"dependencies": {
"@mixmark-io/domino": "2.2.0",
"@mozilla/readability": "^0.6.0",