Last active
November 7, 2023 12:33
-
-
Save ngseke/d6bc4d7279fbfc8af01107ae8e9b229a to your computer and use it in GitHub Desktop.
Hijack Function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hijack Function | |
// @namespace https://ngseke.me/ | |
// @version 0.1 | |
// @description Hijack Function | |
// @author You | |
// @match https://* | |
// @grant none | |
// ==/UserScript== | |
Function.prototype.apply = function (thisArg, argsArray = []) { | |
console.log(this.toString(), argsArray) | |
if (this.toString() === '...') { | |
} | |
return this.call(thisArg, ...argsArray) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment