Додатки браузера Firefox
Увійти
Перегляд Purplemonkey

Purplemonkey автор gholk

Violentmonkey дозволяє користувачеві автоматично вводити скрипти в сторінки, щоб змінювати їх вигляд чи поведінку.

ЕкспериментальнийЕкспериментальний
3 (1 reviews)3 (1 reviews)
17 Users17 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.
Rated 3 by 1 reviewer
Увійдіть, щоб оцінити це розширення
Ще немає оцінок

Рейтинг збережено

5
0
4
0
3
1
2
0
1
0
Читати 1 відгук
Permissions and dataДокладніше

Необхідні дозволи:

  • Збереження даних в буфер обміну
  • Показувати сповіщення
  • Отримувати доступ до вкладок браузера
  • Отримувати доступ до ваших даних для всіх вебсайтів
Більше інформації
Посилання додатка
  • Домашня сторінка
  • Сайт підтримки
Версія
2.20.0
Розмір
2,02 МБ
Востаннє оновлено
рік тому (21 лип 2024 р.)
Пов'язані категорії
  • Інструменти розробника
Ліцензія
Ліцензія MIT
Історія версій
  • Переглянути всі версії
Додати до збірки
Повідомити про цей додаток
Примітки до випуску для 2.20.0
add unsafe api
Інші розширення від gholk
  • Ще немає оцінок

  • Ще немає оцінок

  • Ще немає оцінок

  • Ще немає оцінок

  • Ще немає оцінок

  • Ще немає оцінок

Перейти на домівку Mozilla

Додатки

  • Про
  • Блог додатків Firefox
  • Семінар з розширень
  • Центр розробника
  • Політики розробників
  • Блог спільноти
  • Форум
  • Повідомити про помилку
  • Настанови з написання відгуків

Браузери

  • Desktop
  • Mobile
  • Enterprise

Продукти

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Приватність
  • Файли cookie
  • Правові положення

За винятком випадків зазначених тут, вміст цього сайту ліцензовано на умовах ліцензії Creative Commons Attribution Share-Alike License v3.0, або будь-якою новішою версією.