GM 2 port - Function Override Helper

Not yet.

Version vom 21.06.2014. Aktuellste Version

Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyforks.org/scripts/2599/7462/GM%202%20port%20-%20Function%20Override%20Helper.js

Autor
Jixun.Moe
Version
1.0.2
Erstellt am
17.06.2014
Letzte Aktualisierung
21.06.2014
Größe
6,39 KB
Lizenz
n/a

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。