תוספות לדפדפן Firefox
כניסה
תצוגה מקדימה של Purplemonkey2

Purplemonkey2 gholk מאת

Just like Violentmonkey, but with more unsafe API.

ניסיוניניסיוני
3 (1 reviews)3 (1 reviews)
15 Users15 Users
יש צורך ב־Firefox כדי להשתמש בהרחבה זו
הורדת Firefox
הורדת קובץ

נתוני העל של ההרחבה

על אודות הרחבה זו
# 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.
מדורג 3 על־ידי סוקר אחד
יש להתחבר כדי לדרג הרחבה זו
אין דירוגים עדיין

דירוג הכוכבים נשמר

5
0
4
0
3
1
2
0
1
0
קריאת סקירה אחת
הרשאות ונתוניםמידע נוסף

הרשאות נדרשות:

  • הזנת נתונים בלוח העריכה
  • הצגת התרעות
  • גישה ללשוניות
  • גישה לנתונים שלך מכל האתרים
מידע נוסף
קישורים לתוספת
  • דף הבית
  • אתר תמיכה
גרסה
2.20.0
גודל
2.02 מ״ב
עדכון אחרון
לפני שנה (21 יולי 2024)
קטגוריות קשורות
  • פיתוח הרשת
רישיון
MIT License
היסטוריית הגרסאות
  • הצגת כל הגרסאות
הוספה לאוסף
דיווח על תוספת זו
הערות שחרור עבור 2.20.0
add unsafe api
עוד הרחבות מאת gholk
  • אין דירוגים עדיין

  • אין דירוגים עדיין

  • אין דירוגים עדיין

  • אין דירוגים עדיין

  • אין דירוגים עדיין

  • אין דירוגים עדיין

מעבר לדף הבית של Mozilla

תוספות

  • על אודות
  • בלוג התוספות של Firefox
  • Extension Workshop
  • מרכז המפתחים
  • מדיניות למפתחים
  • בלוג קהילה
  • פורום
  • דיווח על תקלה
  • מדריך סקירה

דפדפנים

  • Desktop
  • Mobile
  • Enterprise

מוצרים

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • פרטיות
  • עוגיות
  • מידע משפטי

למעט היכן שצוין אחרת, התוכן באתר זה מוגש בכפוף לגרסה 3.0 של הרשיון Creative Commons Attribution Share-Alike או כל גרסה עדכנית יותר.