Greasy Fork镜像 is available in English.

GM 2 port - Function Override Helper

Not yet.

目前為 2014-06-21 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.greasyforks.org/scripts/2599/7462/GM%202%20port%20-%20Function%20Override%20Helper.js

作者
Jixun.Moe
版本
1.0.2
建立日期
2014-06-17
更新日期
2014-06-21
尺寸
6.4 KB
授權條款
未知

GM 2.x port - Function Override Helper

GreasyMonkey 2.x Beta will break lots scripts, this library has made to help function hooking.

It provides 2.x API exportFunction and cloneInto for 1.x support (Which is just dummy sandbox).

It's well documented(Should be..) in source.

1.0.2

Fix this problem when hooking prototype / Object function.

return foo.apply({}, args); -> return foo.apply(this, args);

return bak.apply ({}, arguments); -> return bak.apply (this, arguments);

1.0.1

document.body -> document.head, to prevent document.body is null error.

长期地址
遇到问题?请前往 GitHub 提 Issues。