Add-ons voor Firefox Browser
Aanmelden
Voorbeeld van Purplemonkey

Purplemonkey door gholk

Een open source gebruikersscriptbeheerder voor diverse webbrowsers

ExperimenteelExperimenteel
3 (1 reviews)3 (1 reviews)
15 gebruikers15 gebruikers
U hebt Firefox nodig om deze extensie te gebruiken
Firefox downloaden
Bestand downloaden

Metagegevens van extensie

Over deze extensie
# 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.
Met 3 gewaardeerd door 1 beoordelaar
Meld u aan om deze extensie te waarderen
Er zijn nog geen waarderingen

Sterrenwaardering opgeslagen

5
0
4
0
3
1
2
0
1
0
1 beoordeling lezen
Toestemmingen en gegevensMeer info

Vereiste machtigingen:

  • Gegevens op het klembord plaatsen
  • Notificaties weergeven
  • Browsertabbladen benaderen
  • Uw gegevens voor alle websites benaderen
Meer informatie
Add-on-koppelingen
  • Startpagina
  • Ondersteuningswebsite
Versie
2.20.0
Grootte
2,02 MB
Laatst bijgewerkt
één jaar geleden (21 jul. 2024)
Verwante categorieën
  • Webontwikkeling
Licentie
MIT-licentie
Versiegeschiedenis
  • Alle versies bekijken
Toevoegen aan collectie
Deze add-on rapporteren
Uitgaveopmerkingen voor 2.20.0
add unsafe api
Meer extensies van gholk
  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

  • Er zijn nog geen waarderingen

Naar Mozilla’s startpagina

Add-ons

  • Over
  • Firefox-add-onsblog
  • Extensieworkshop
  • Ontwikkelaarshub
  • Ontwikkelaarsbeleid
  • Gemeenschapsblog
  • Forum
  • Een bug melden
  • Beoordelingsrichtlijnen

Browsers

  • Desktop
  • Mobile
  • Enterprise

Producten

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

Tenzij anders vermeld, is op de inhoud van deze website de Creative Commons Attribution Share-Alike License v3.0 of latere versie van toepassing.