Enable Hidden "Immediate" Discord Push Notification Option
Have you ever wanted push notifications on your phone while being active on desktop? With this script you are able to do just that. I began searching for a solution to this issue after I had missed several messages due to Discord being active on my PC. I thought I would post the solution that I found here so that others having the same issue can benefit from it.
- Press Ctrl+Shift+I to open DevTools.
- Go to the
Consoletab. - Paste the following code and press enter:
(function () {
const p = webpackChunkdiscord_app
.push([
[Math.random().toString(36).substring(2, 15)],
{},
(e) => {
let modules = [];
for (let id in e.c) {
modules.push(e.c[id]);
}
return modules;
},
])
.find((m) => m.exports?.trackNetworkAction && m.exports?.launchSignature)
.exports.default.getSuperProperties();
fetch("https://discord.com/api/v9/users/@me/settings-proto/1", {
headers: {
accept: "*/*",
"accept-language": p.system_locale,
authorization: webpackChunkdiscord_app.push([
[Math.random()],
{},
(r) => {
for (let m of Object.keys(r.c)) {
let d = r.c[m].exports;
if (d && typeof d === "object") {
for (let f of Object.keys(d)) {
if (f === "default" && d[f]?.getToken) {
return d[f].getToken();
}
}
}
}
},
]),
"cache-control": "no-cache",
"content-type": "application/json",
pragma: "no-cache",
priority: "u=1, i",
"sec-ch-ua": '"Not:A-Brand";v="24", "Chromium";v="134"',
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": p.os,
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"x-debug-options": "bugReporterEnabled",
"x-discord-locale": p.system_locale,
"x-discord-timezone": Intl.DateTimeFormat().resolvedOptions().timeZone,
"x-super-properties": btoa(JSON.stringify(p)),
},
referrer: "https://discord.com/channels/@me",
referrerPolicy: "strict-origin-when-cross-origin",
body: '{"settings":"KgQyAggA"}',
method: "PATCH",
mode: "cors",
credentials: "include",
});
})();Note
If you're unable to paste into the console, you might have to type allow pasting and press enter. If DevTools aren't enabled, either download the PTB Client or follow this guide to enable them on stable.
While it is possibility, the chances of you getting banned are very slim and is no different than using any other client modification.
Disable the keybind in your AMD Radeon app.
Make sure your browser isn't auto-translating this website before copying the script. Turn off any translator extensions and try again.