Skip to content

Instantly share code, notes, and snippets.

@squidtopus
Last active May 14, 2021
Embed
What would you like to do?
GTA Online SCID Finder

SCID Finder

This script will let you look for the SCID/RID of any player by simply going to their Social Club Profile in the website.

  1. Install Tampermonkey on Chrome/Firefox.
  2. Click on the extension, go to Dashboard, click on the [+] button.
  3. Paste the JavaScript code below. Go to File > Save.
  4. Go to Installed scripts tab, enable the script.
  5. Go to the Social Club website and log in with your account.
  6. Find the user and go to the profile page.
  7. Refresh the website.

You'll find the SCID at the right side of the header.

// ==UserScript==
// @name Show Rockstar ID On Member Pages
// @version 0.5
// @description Show the Social Club ID of a member by looking for the profile in the site
// @author poedgirl, DJMC, danierutu
// @match https://*.socialclub.rockstargames.com/member/*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @namespace http://tampermonkey.net/
// ==/UserScript==
(function() {
'use strict';
function getCookie(e) {
for (var t = e + "=", r = decodeURIComponent(document.cookie).split(";"), o = 0; o < r.length; o++) {
for (var n = r[o];
" " == n.charAt(0);) n = n.substring(1);
if (0 == n.indexOf(t)) return n.substring(t.length, n.length)
}
return ""
}
var path = window.location.pathname;
if(path[path.length-1] != '/') path += '/';
var username = /^\/member\/([\w\W]+)\//.exec(path)[1];
setTimeout(function() { // Wait for everything to load
$.ajax({
method: 'GET',
url: 'https://scapi.rockstargames.com/profile/getprofile?nickname=' + username + '&maxFriends=3',
beforeSend: function(request) {
request.setRequestHeader('Authorization', 'Bearer ' + getCookie('BearerToken'));
request.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
}
})
.done(function(data) {
console.log(data);
var scid = data.accounts[0].rockstarAccount.rockstarId;
var $name = $('[class^="ProfileHeader__extraInfo"]');
$name.append('<span style="margin-left: 10px;">Social Club ID: ' + scid + '</span>');
});
}, 1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment