-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
zh-CN: create userScripts.register()
#24966
base: main
Are you sure you want to change the base?
Conversation
Preview URLs Flaws (13)URL:
External URLs (1)URL:
(comment last updated: 2024-12-17 12:42:31) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
翻译后请打开内容预览页面和英文文档的内容对照一遍,我提过好多次了
files/zh-cn/mozilla/add-ons/webextensions/api/userscripts/register/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/mozilla/add-ons/webextensions/api/userscripts/register/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/mozilla/add-ons/webextensions/api/userscripts/register/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/mozilla/add-ons/webextensions/api/userscripts/register/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/mozilla/add-ons/webextensions/api/userscripts/register/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/mozilla/add-ons/webextensions/api/userscripts/register/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/mozilla/add-ons/webextensions/api/userscripts/register/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/mozilla/add-ons/webextensions/api/userscripts/register/index.md
Outdated
Show resolved
Hide resolved
files/zh-cn/mozilla/add-ons/webextensions/api/userscripts/register/index.md
Outdated
Show resolved
Hide resolved
{{JSxRef("Promise")}},在用户脚本注册时兑现为一个 {{WebExtAPIRef("userScripts.RegisteredUserScript","RegisteredUserScript")}} 用于注销用户脚本的对象。 | ||
|
||
> [!NOTE] | ||
> 用户脚本在相关的扩展页面(从中注册了用户脚本)卸载时会被自动注销,因此你应该从一个至少持续到你希望用户脚本保持注册的扩展页面中注册用户脚本。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
和 #24964 (comment) 的问题一样
Co-authored-by: A1lo <yin199909@aliyun.com>
No description provided.