Skip to content

Instantly share code, notes, and snippets.

@logan-mcgee
Last active September 2, 2025 23:32
Show Gist options
  • Select an option

  • Save logan-mcgee/13d11f6e251e1ab7ceeeb900f6c291fe to your computer and use it in GitHub Desktop.

Select an option

Save logan-mcgee/13d11f6e251e1ab7ceeeb900f6c291fe to your computer and use it in GitHub Desktop.
// ==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