Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enable Discord Developer Menus in any environment except mobile app without BetterDiscord using Console.
(() => {
// Extracted from Samogot's LibDiscordInternals for BetterDiscord.
const req = typeof(webpackJsonp) === "function" ? webpackJsonp([], {
'__extra_id__': (module, exports, req) => exports.default = req
}, ['__extra_id__']).default : webpackJsonp.push([[], {
'__extra_id__': (module, exports, req) => module.exports = req
}, [['__extra_id__']]]);
delete req.m['__extra_id__'];
delete req.c['__extra_id__'];
const find = (filter, options = {}) => {
const {cacheOnly = true} = options;
for (let i in req.c) {
if (req.c.hasOwnProperty(i)) {
let m = req.c[i].exports;
if (m && m.__esModule && m.default && filter(m.default))
return m.default;
if (m && filter(m))
return m;
}
}
if (cacheOnly) {
console.warn('Cannot find loaded module in cache');
return null;
}
console.warn('Cannot find loaded module in cache. Loading all modules may have unexpected side effects');
for (let i = 0; i < req.m.length; ++i) {
try {
let m = req(i);
if (m && m.__esModule && m.default && filter(m.default))
return m.default;
if (m && filter(m))
return m;
}
catch (e) {
}
}
console.warn('Cannot find module');
return null;
};
const findByUniqueProperties = (propNames, options) => find(module => propNames.every(prop => module[prop] !== undefined), options);
// https://github.com/Inve1951/BetterDiscordStuff/blob/master/plugins/discordexperiments.plugin.js
Object.defineProperty(findByUniqueProperties(["isDeveloper"]),"isDeveloper",{get:_=>1,set:_=>_,configurable:true});
})();
@MPThLee

This comment has been minimized.

Copy link
Owner Author

@MPThLee MPThLee commented Dec 16, 2018

This script works on any environment except mobile app. also works on Web version with Chrome and Firefox.

How to enable experiments menu

  1. Copy whole script.
  2. Press Ctrl + Shift + I(Mac: ⌥+⌘+I) Normally, It opens Devloper Console. also on Web Browser. Described on Discord Support
  3. You will see a warning. Paste this script.
  4. Go to setting menu. You can see the experiments menu now.

Is this scam?

image

Nope. but as you can see on the warning on console, if you don't know what script does. You can close console menu.
Please do not paste any scripts on console menu. Before paste script(s), Please trying to review a code.

License Information

I don't have any copyrights on this script.

samogot's LibDiscordInternals:

MIT License

Copyright (c) 2017 samogot

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Inve1951's BetterDiscordStuff:

©2017-2018 square
@Furry

This comment has been minimized.

Copy link

@Furry Furry commented Oct 19, 2020

Confirmed and working!

@QWERT2T

This comment has been minimized.

Copy link

@QWERT2T QWERT2T commented Oct 23, 2020

Hey, I need to talk to you privately whats your Discord/Telegram?

@QWERT2T

This comment has been minimized.

Copy link

@QWERT2T QWERT2T commented Oct 23, 2020

Hey, I need to talk to you privately whats your Discord/Telegram?

Ether#0621 is my discord

I talked to the person who made this not you

@MPThLee

This comment has been minimized.

Copy link
Owner Author

@MPThLee MPThLee commented Oct 24, 2020

For what? I didn't working/maintaining this script anymore. I'm currently just leaving discord client as pure.

@InvisibleOS

This comment has been minimized.

Copy link

@InvisibleOS InvisibleOS commented Dec 19, 2020

How do I remove this feature? I have downloaded it, but now I want to get rid of it.

@Furry

This comment has been minimized.

Copy link

@Furry Furry commented Dec 19, 2020

How do I remove this feature? I have downloaded it, but now I want to get rid of it.

In line 42, replace the 'true' to 'false' maybe?

@Mineinjava

This comment has been minimized.

Copy link

@Mineinjava Mineinjava commented Jan 8, 2021

is this compliant with discord ToS?

@Furry

This comment has been minimized.

Copy link

@Furry Furry commented Jan 9, 2021

is this compliant with discord ToS?

no

@Kuba2134

This comment has been minimized.

Copy link

@Kuba2134 Kuba2134 commented Feb 10, 2021

How to remove it?

@guacaplushy

This comment has been minimized.

Copy link

@guacaplushy guacaplushy commented Feb 26, 2021

change the 1 in Object.defineProperty(findByUniqueProperties(["isDeveloper"]),"isDeveloper",{get:=>1,set:=>_,configurable:true}); to 0

if you want to remove it

@Pythex

This comment has been minimized.

Copy link

@Pythex Pythex commented Mar 5, 2021

Yeah its safe and works :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment