Dodatki za brskalnik Firefox
  • Razširitve
  • Teme
    • za Firefox
    • Slovarji in jezikovni paketi
    • Druge strani brskalnika
    • Dodatki za Android
Prijava
Predogled "Purplemonkey2"

Purplemonkey2 — gholk

Just like Violentmonkey, but with more unsafe API.

PoskusenPoskusen
Na voljo za Firefox za Android™Na voljo za Firefox za Android™
3 (1 reviews)3 (1 reviews)
19 Users19 Users
Za uporabo te razširitve potrebujete Firefox
Prenesite Firefox in pridobite razširitev
Prenesi datoteko

Metapodatki o razširitvi

O tej razširitvi
# 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.
Ocena 3 (1 mnenje)
Prijavite se, da ocenite to razširitev
Še ni ocenjeno

Ocena shranjena

5
0
4
0
3
1
2
0
1
0
Preberi 1 oceno
Dovoljenja in podatkiVeč o tem

Zahtevana dovoljenja:

  • shranjuje podatke na odložišče
  • prikazuje obvestila
  • dostopa do zavihkov brskalnika
  • dostopa do vaših podatkov za vsa spletna mesta
Več informacij
Povezave dodatka
  • Domača stran
  • Stran s podporo
Različica
2.20.0
Velikost
2,02 MB
Zadnja posodobitev
pred enim letom (21. jul. 2024)
Sorodne kategorije
  • Razvoj za splet
Licenca
Licenca MIT
Zgodovina različic
  • Ogled vseh različic
Dodaj v zbirko
Prijavi ta dodatek
Opombe ob izdaji 2.20.0
add unsafe api
Več razširitev razvijalca gholk
  • Še ni ocenjeno

  • Še ni ocenjeno

  • Še ni ocenjeno

  • Še ni ocenjeno

  • Še ni ocenjeno

  • Še ni ocenjeno

Pojdi na domačo stran Mozille

Dodatki

  • O strani
  • Blog Dodatkov za Firefox
  • Delavnica razširitev
  • Razvojno središče
  • Pravilniki za razvijalce
  • Blog skupnosti
  • Forum
  • Prijavi hrošča
  • Smernice za ocene

Brskalniki

  • Desktop
  • Mobile
  • Enterprise

Izdelki

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Zasebnost
  • Piškotki
  • Pravno obvestilo

Če ni navedeno drugače, je vsebina tega spletnega mesta na voljo pod licenco Creative Commons Attribution Share-Alike v3.0 ali pod katerokoli novejšo različico. Android je blagovna znamka družbe Google LLC.