
Purplemonkey ์ ์์: gholk
์คํ์ ์คํ์
Androidโข์ฉ Firefox์์ ์ฌ์ฉ ๊ฐ๋ฅAndroidโข์ฉ 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.
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.
ํ๊ฐ
๊ถํ๋ ์์๋ณด๊ธฐ
๋ค์ ๊ถํ ํ์:
- ํด๋ฆฝ๋ณด๋์ ๋ฐ์ดํฐ ๋ฃ๊ธฐ
- ์๋ฆผ ํ์
- ๋ธ๋ผ์ฐ์ ํญ์ ์ ๊ทผ
- ๋ชจ๋ ์น์ฌ์ดํธ์์ ์ฌ์ฉ์์ ๋ฐ์ดํฐ์ ์ ๊ทผ
์ถ๊ฐ ์ ๋ณด
- ๋ถ๊ฐ ๊ธฐ๋ฅ ๋งํฌ
- ๋ฒ์
- 2.20.0
- ํฌ๊ธฐ
- 2.02 MB
- ๋ง์ง๋ง ์ ๋ฐ์ดํธ
- 10๋ฌ ์ (2024๋ 7์ 21์ผ)
- ๊ด๋ จ ์นดํ ๊ณ ๋ฆฌ
- ๋ผ์ด์ ์ค
- MIT License
- ๋ฒ์ ๋ชฉ๋ก
๋ชจ์์ง์ ์ถ๊ฐ
๋ฒ์ 2.20.0์ ์ถ์ ์ ๋ณด
add unsafe api
gholk ๋์ ๋ค๋ฅธ ํ์ฅ ๊ธฐ๋ฅ
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค