Pengaya Peramban Firefox
Masuk
Pratinjau dari Purplemonkey

Purplemonkey oleh gholk

Pengelola userscript sumber terbuka yang mendukung banyak peramban

EksperimentalEksperimental
3 (1 reviews)3 (1 reviews)
15 Users15 Users
Anda memerlukan Firefox untuk menggunakan ekstensi ini
Unduh Firefox
Unduh berkas

Metadata Ekstensi

Tentang ekstensi ini
# 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.
Rated 3 by 1 reviewer
Masuk untuk menilai ekstensi ini
Belum ada peringkat

Peringkat bintang tersimpan

5
0
4
0
3
1
2
0
1
0
Baca semua 1 ulasan
Permissions and dataPelajari lebih lanjut

Required permissions:

  • Memasukkan data ke papan klip
  • Menampilkan notifikasi untuk Anda
  • Mengakses tab peramban
  • Mengakses data Anda pada semua situs
Informasi lebih lanjut
Tautan Pengaya
  • Halaman depan
  • Situs dukungan
Versi
2.20.0
Ukuran
2,02 MB
Terakhir dimutakhirkan
setahun yang lalu (21 Jul 2024)
Kategori Terkait
  • Pengembangan Web
Lisensi
Lisensi MIT
Riwayat Versi
  • Lihat semua versi
Tambahkan ke koleksi
Laporkan pengaya ini
Catatan rilis untuk 2.20.0
add unsafe api
Ekstensi lain dari gholk
  • Belum ada peringkat

  • Belum ada peringkat

  • Belum ada peringkat

  • Belum ada peringkat

  • Belum ada peringkat

  • Belum ada peringkat

Ke beranda Mozilla

Pengaya

  • Tentang
  • Blog Pengaya Firefox
  • Lokakarya Ekstensi
  • Pusat Pengembang
  • Kebijakan Pengembang
  • Blog Komunitas
  • Forum
  • Laporkan kutu
  • Panduan Ulasan

Peramban

  • Desktop
  • Mobile
  • Enterprise

Produk

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privasi
  • Kuki
  • Legal

Terkecuali saat dicatat berbeda, konten dalam situs ini dilisensikan di bawah Creative Commons Attribution Share-Alike License v3.0 atau versi lain yang lebih baru.