Firefox 浏览器附加组件
登录
Purplemonkey 预览

Purplemonkey 作者: gholk

一个开源的用户脚本管理器,支持很多浏览器

实验性实验性
3 (1 reviews)3 (1 reviews)
15 个用户15 个用户
您需要 Firefox 来使用此扩展
下载 Firefox
下载文件

扩展元数据

关于此扩展
# Purplemonkey
Just like [Violentmonkey], but with more unsafe API.

[Violentmonkey]: https://violentmonkey.github.io/api/gm/

## Purplemonkey API
only the additional api from violent monkey are listed.
other api are same to the violent monkey in the same version.

### GM_messageExtension(id, payload)
send message to other extension's `browser.runtime.onMessageExternal` handler.

* id: the id of the destination extension.
* payload: the data to send. must be structure clonable.
* return: a promise resolve to the response or reject to error.

to use this api, you have to add `@connect web-extension://id`
in the userscript's meta field.
where id is the extension that you want to send message with.
the special `web-extension://*` allow to connect to all the other extensions.

### GM_webextEval(code, args)
eval string or function in violent monkey background script.

* String(code): the code is call as
`(function (...args) {return eval(code)})(...args)`,
so the last statement is return.

* Function(code): code is stringify and reconstructed as function in background.
stringify so any closure will not work.

if this is a method, you should make sure that it could be stringify
and reconstruct correctly.

async could work.

* args: an argument array that structure clonable.

* return: a promise resolve to result or reject to error.
评分 3(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
1
2
0
1
0
阅读全部 1 条评价
权限与数据详细了解

必要权限:

  • 输入数据到剪贴板
  • 为您显示通知
  • 获取浏览器标签页
  • 访问您在所有网站的数据
更多信息
附加组件链接
  • 主页
  • 用户支持网站
版本
2.20.0
大小
2.02 MB
上次更新
1 年前 (2024年7月21日)
相关分类
  • 网页开发
许可证
MIT 许可证
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
2.20.0 的发布说明
add unsafe api
gholk 制作的更多扩展
  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。