Izegrar i yiminig Firefox
Qqen
Taskant n Purplemonkey2

Purplemonkey2 sɣur gholk

Just like Violentmonkey, but with more unsafe API.

ArmitanArmitan
3 (1 reviews)3 (1 reviews)
18 yiseqdacen18 yiseqdacen
Ilaq-ak·am Firefox i useqdec n usiɣzef-a
Sader Firefox
Sader afaylu

Asiɣzef aɣefisefka

Ɣef usiɣzef agi
# 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
Qqen akken ad ternud tazmilt i usiɣzef-agi
Ulac tazmilt akka tura

Amḍan n yitran yettwasekles

5
0
4
0
3
1
2
0
1
0
Ɣeṛ 1 n ucegger
Tisirag akked yisefkaIssin ugar

Yesra tisirag:

  • Sers isefka ɣef afus
  • Ad k-d-isken ilɣa
  • Kcem γer icarren n iminig
  • Kcem ɣer isefka-inek deg ismal web meṛṛa
Ugar n telɣut
TigIseɣwan n uzegrir
  • Asebter agejdan
  • Asmel n tallelt
Lqem
2.20.0
Teɣzi
2,02 MB
Aleqqem aneggaru
eit år sidan (21. juli 2024)
Taggayin i ilan assaɣ
  • Taneflit Web
Turagt
Turagt IT
Amazray n Lqem
  • Wali akk ileqman
Rnu ar tegrumma
Mmel azegrir-a
Tizmilin n tuffɣa n 2.20.0
add unsafe api
Ugar n isiɣzaf sɣur gholk
  • Ulac tazmilt akka tura

  • Ulac tazmilt akka tura

  • Ulac tazmilt akka tura

  • Ulac tazmilt akka tura

  • Ulac tazmilt akka tura

  • Ulac tazmilt akka tura

Ddu γer usebter agejdan n Mozilla

Izegrar

  • Γef
  • Ablug n yizegrar Firefox
  • Tanemselt ɣef usiɣzef
  • Tarbaɛt n ineflayen
  • Tasertit i yineflayen
  • Ablug n temɣiwent
  • Anmager
  • Azen-d abug
  • Aḍris n ucegger

Iminigen

  • Desktop
  • Mobile
  • Enterprise

Ifarisen

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Tabaḍnit
  • Inagan n tuqqna
  • Usḍif

Ala ma yettwammel akken-nniḍen, agbur n usmel-agi yella ddaw n turagt Creative Commons Attribution Share-Alike v3.0 neɣ ileqman imaynuten.