Nettlesartillegg for Firefox
Logg inn
Førehandsvising Purplemonkey2

Purplemonkey2 av gholk

Just like Violentmonkey, but with more unsafe API.

EksperimentellEksperimentell
3 (1 reviews)3 (1 reviews)
17 brukarar17 brukarar
Du treng Firefox for å bruke denne utvidinga
Last ned Firefox
Last ned fil

Metadata for utvidingar

Om denne utvidinga
# 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.
Vurdert 3 av 1 meldar
Logg inn for å vurdere denne utvidinga
Ingen vurderingar enno

Stjernevurdering lagra

5
0
4
0
3
1
2
0
1
0
Les 1 vurdering
Løyve og dataLes meir

Påkravde løyve:

  • Inndata til utklippstavla
  • Vis meldingar til deg
  • Få tilgang til nettlesarfaner
  • Tilgang tiil dataa dine frå alle nettsider
Meir informasjon
Lenker for tillegg
  • Heimeside
  • Brukarstøtteside
Versjon
2.20.0
Storleik
2,02 MB
Sist oppdatert
eit år sidan (21. juli 2024)
Liknande kategoriar
  • Web Development
Lisens
MIT License
Versjonshistorikk
  • Vis alle versjonar
Legg til i samling
Rapporter dette tillegget
Versjonsnotat for 2.20.0
add unsafe api
Fleire utvidingar av gholk
  • Ingen vurderingar enno

  • Ingen vurderingar enno

  • Ingen vurderingar enno

  • Ingen vurderingar enno

  • Ingen vurderingar enno

  • Ingen vurderingar enno

Gå til Mozilla-heimesida

Utvidingar

  • Om
  • Firefox tilleggsblogg
  • Utvidingsverkstad
  • Utviklarsenter
  • Utviklarpraksis
  • Fellesskaps-blogg
  • Forum
  • Rapporter ein feil
  • Vurderingsguide

Nettlesar

  • Desktop
  • Mobile
  • Enterprise

Produkt

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Personvern
  • Infokapslar
  • Juridisk

Om ikkje noko anna er spesifisert, er innhaldet på denne nettstaden lisensiert under Creative Commons Attribution Share-Alike License v3.0 eller ein seinare versjon.