Last active
September 2, 2025 23:32
-
-
Save logan-mcgee/13d11f6e251e1ab7ceeeb900f6c291fe to your computer and use it in GitHub Desktop.
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 Social Club User Viewer | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.2 | |
| // @description Spoofs username check so user pages are visible again | |
| // @author logan | |
| // @match *://socialclub.rockstargames.com/* | |
| // @run-at document-start | |
| // @grant none | |
| // ==/UserScript== | |
| (() => { | |
| const origLowerCase = String.prototype.toLowerCase ; | |
| String.prototype.toLowerCase = function () { | |
| const stack = new Error().stack; | |
| const stackLines = stack.split("\n"); | |
| const callerLine = stackLines[2] || ""; | |
| const isComponentDidMount = callerLine.includes("componentDidMount"); | |
| // the check is purely just to compare names, so we dont need to return anything real | |
| if (isComponentDidMount) { | |
| console.log("Spoofed page name check") | |
| return "a" | |
| } | |
| return origLowerCase.call(this); | |
| }; | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment