Skip to content

Instantly share code, notes, and snippets.

@ngseke
Last active November 7, 2023 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngseke/d6bc4d7279fbfc8af01107ae8e9b229a to your computer and use it in GitHub Desktop.
Save ngseke/d6bc4d7279fbfc8af01107ae8e9b229a to your computer and use it in GitHub Desktop.
Hijack Function
// ==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