Tiện ích trình duyệt Firefox
Đăng nhập
Xem trước Purplemonkey

Purplemonkey bởi gholk

Hỗ trợ chạy userscript trên trình duyệt.

Thử nghiệmThử nghiệm
3 (1 đánh giá)3 (1 đánh giá)
20 người dùng20 người dùng
Tải xuông Firefox
Tải xuống tập tin

Siêu dữ liệu mở rộng

Về tiện ích mở rộng này
# 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.
Được xếp hạng 3 (bởi 1 người dùng)
Đăng nhập để đánh giá tiện ích này
Chưa có xếp hạng nào

Đã lưu xếp hạng sao

5
0
4
0
3
1
2
0
1
0
Đọc tất cả 1 đánh giá
Quyền hạn và dữ liệu

Quyền hạn bắt buộc:

  • Nhập dữ liệu vào bộ nhớ tạm
  • Hiển thị thông báo cho bạn
  • Truy cập các thẻ trên trình duyệt
  • Truy cập dữ liệu của bạn trên mọi trang web
Tìm hiểu thêm
Thêm thông tin
Liên kết tiện ích
  • Trang chủ
  • Trang hỗ trợ
Phiên bản
2.20.0
Kích cỡ
2,02 MB
Cập nhật gần nhất
một năm trước (21 Thg 07 2024)
Thể loại có liên quan
  • Phát triển Web
Giấy phép
Giấy phép MIT
Lịch sử các phiên bản
  • Xem tất cả phiên bản
Thêm vào bộ sưu tập
Báo cáo tiện ích này
Đi đến trang chủ Mozilla

Tiện ích

  • Giới thiệu
  • Blog tiện ích Firefox
  • Extension Workshop
  • Trung tâm nhà phát triển
  • Chính sách nhà phát triển
  • Blog cộng đồng
  • Diễn đàn
  • Báo cáo một lỗi
  • Hướng dẫn đánh giá

Trình duyệt

  • Desktop
  • Mobile
  • Enterprise

Sản phẩm

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Riêng tư
  • Cookie
  • Pháp lý

Trừ trường hợp khác đã ghi chú, nội dung trên trang này được cấp phép theo giấy phép Creative Commons Attribution Share-Alike v3.0 hoặc bất kỳ phiên bản nào sau này.