Dodaci za preglednik Firefox
Prijavi se
Pregled za Purplemonkey

Purplemonkey od gholk

Omogućava korištenje korisničkih skripti u web pregledniku.

EksperimentalnoEksperimentalno
3 (1 reviews)3 (1 reviews)
15 Users15 Users
Za korištenje ovog proširenja trebat ćeš Firefox
Preuzmi Firefox
Preuzmi datoteku

Metapodaci proširenja

Informacije o ovom proširenju
# 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
Prijavi se i ocijeni ovo proširenje
Još nema ocjena

Ocjena je spremljena

5
0
4
0
3
1
2
0
1
0
Pročitaj 1 recenziju
Dozvole i podaciSaznaj više

Potrebne dozvole:

  • Unijeti podatke u međuspremnik
  • Prikazati obavijesti
  • Pristupiti karticama preglednika
  • Pristupiti tvojim podacima za sve web stranice
Daljnje informacije
Poveznice dodatka
  • Početna stranica
  • Stranica podrške
Verzija
2.20.0
Veličina
2,02 MB
Zadnje aktualiziranje
prije godinu (21. srp. 2024)
Povezane kategorije
  • Razvoj weba
Licenca
MIT licenca
Povijest verzija
  • Pogledaj sve verzije
Dodaj u zbirku
Prijavi ovaj dodatak
Napomene o izdanju za 2.20.0
add unsafe api
Daljnja proširenja od gholk
  • Još nema ocjena

  • Još nema ocjena

  • Još nema ocjena

  • Još nema ocjena

  • Još nema ocjena

  • Još nema ocjena

Idi na početnu stranicu Mozille

Dodaci

  • Informacije
  • Blog za Firefox dodatke
  • Radionica za proširenja
  • Centar za programere
  • Pravila za programere
  • Blog zajednice
  • Forum
  • Prijavi grešku
  • Priručnik za recenziranje

Preglednici

  • Desktop
  • Mobile
  • Enterprise

Proizvodi

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privatnost
  • Kolačići
  • Pravne informacije

Osim gdje je drugačije navedeno, sadržaj ove stranice licenciran je pod licencom Creative Commons Imenovanje dijeli pod istim uvjetima verzija 3.0 ili novijoj.