Add-ons foar Firefox Browser
  • Utwreidingen
  • Tema’s
    • foar Firefox
    • Wurdboeken en taalpakketten
    • Oare browserwebsites
    • Add-ons foar Android
Oanmelde
Foarbyld fan Purplemonkey2

Purplemonkey2 troch gholk

Just like Violentmonkey, but with more unsafe API.

EksperiminteelEksperiminteel
Beskikber yn Firefox foar Android™Beskikber yn Firefox foar Android™
3 (1 reviews)3 (1 reviews)
15 brûkers15 brûkers
Jo hawwe Firefox nedich om dizze útwreiding te brûken
Firefox downloade en de útwreiding ûntfange
Bestân downloade

Metadata útwreiding

Oer dizze útwreiding
# 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.
Wurdearre: 3 troch 1 beoardieler
Meld jo oan om dizze útwreiding te wurdearjen
Der binne noch gjin wurdearringen

Stjer-wurdearring wurdt bewarre

5
0
4
0
3
1
2
0
1
0
1 beoardieling lêze
Tastimmingen en gegevensMear ynfo

Fereaske machtigingen:

  • Gegevens op it klamboerd pleatse
  • Notifikaasjes werjaan
  • Browserljepblêden benaderje
  • Jo gegevens foar alle websites benaderje
Mear ynformaasje
Add-on-keppelingen
  • Startside
  • Stipewebsite
Ferzje
2.20.0
Grutte
2,02 MB
Lêst bywurke
ien jier lyn (21 jul. 2024)
Sibbe kategoryen
  • Webûntwikkeling
Lisinsje
MIT-lisinsje
Ferzjeskiednis
  • Alle ferzjes besjen
Tafoegje oan kolleksje
Dizze add-on rapportearje
Utjefte-opmerkingen foar 2.20.0
add unsafe api
Mear útwreidingen fan gholk
  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

Nei Mozilla’s startside

Add-ons

  • Oer
  • Firefox-add-onsblog
  • Utwreidingsworkshop
  • Untwikkelershub
  • Untwikkelersbelied
  • Mienskipsblog
  • Foarum
  • In bug melde
  • Beoardielingsrjochtlinen

Browser

  • Desktop
  • Mobile
  • Enterprise

Produkten

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Juridysk

Utsein oars vermeld, is op de ynhâld fan dizze website de Creative Commons Attribution Share-Alike License v3.0 of lettere ferzje fan tapassing. Android is in hannelsmerk fan Google LLC.