Tampermonkey script to spoof a Discord (browser-based) Rich Presence status like Spotify…
- User
Tampermonkey script to spoof a Discord (browser-based) Rich Presence status like Spotify or any other basically.
Assistant
Tampermonkey script to spoof a Discord (browser-based) Rich Presence status like Spotify or any other basically.
Here's a Tampermonkey script that can help you spoof a Discord Rich Presence status in the browser-based version of Discord. This script will inject custom presence data into the Discord web app:
// ==UserScript==
// @name Discord Rich Presence Spoofer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Spoof Discord Rich Presence status
// @match https://discord.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Configuration
const config = {
applicationId: '123456789012345678', // Replace with your application ID
name: 'Custom App',
details: 'Doing something cool',
state: 'In a custom state',
largeImageKey: 'large_image',
largeImageText: 'Large Image Text',
smallImageKey: 'small_image',
smallImageText: 'Small Image Text',
startTimestamp: Date.now(),
instance: false
};
// Function to inject the custom presence
function injectPresence() {
const script = document.createElement('script');
script.textContent = `
// Override the original setActivity function
const originalSetActivity = DiscordNative.nativeModules.RPCExports.setActivity;
DiscordNative.nativeModules.RPCExports.setActivity = function(args) {
const customPresence = ${JSON.stringify(config)};
originalSetActivity(customPresence);
};
// Trigger an update to apply the custom presence
DiscordNative.nativeModules.RPCExports.setActivity({});
`;
document.head.appendChild(script);
}
// Wait for the Discord app to load
function waitForDiscord() {
if (typeof DiscordNative !== 'undefined' && DiscordNative.nativeModules && DiscordNative.nativeModules.RPCExports) {
injectPresence();
} else {
setTimeout(waitForDiscord, 1000);
}
}
waitForDiscord();
})();
To use this script:
applicationId in the config object with your own Discord application ID. You can create a new application in the Discord Developer Portal.config object as desired:
name: The name of your custom appdetails: The first line of text under the app namestate: The second line of text under the app namelargeImageKey: The key for the large image (upload this in your Discord application)largeImageText: Text shown when hovering over the large imagesmallImageKey: The key for the small image (upload this in your Discord application)smallImageText: Text shown when hovering over the small imagestartTimestamp: The start time of the activity (defaults to when the script runs)Please note that this script is for educational purposes only. Be aware that using such scripts may violate Discord's Terms of Service, so use it at your own risk and responsibility.
Also, keep in mind that this script will only work on the browser-based version of Discord and not on the desktop app. The effectiveness of this script may vary depending on Discord's updates and security measures.
Not yet included in a published release.