forked from Inve1951/BetterDiscordStuff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiscordexperiments.plugin.js
More file actions
29 lines (25 loc) · 1.07 KB
/
discordexperiments.plugin.js
File metadata and controls
29 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//META{"name":"discordExperiments"}*//
var discordExperiments = (function(){
var t, o = Object, k = "isDeveloper";
return class _ {
getName(){ return "Discord Experiments" }
getDescription(){ return "Enables the experiments tab in discord's settings. Depends on samogot's Discord Internals Library: https://git.io/v7Sfp." }
getAuthor(){ return "square" }
getVersion(){ return "1.2.1" }
load(){}
start(){
if( "undefined" !== typeof DiscordInternals ) {
t = DiscordInternals.WebpackModules.findByUniqueProperties([k]);
o.defineProperty(t,k,{get:_=>1,set:_=>_,configurable:true});
} else {
alert("Look who can't read.\nInstall the Discord Internals Library Plugin or this won't work!\nhttps://git.io/v7Sfp")
console.error("Install Discord Internals Library!: https://github.com/samogot/betterdiscord-plugins/blob/master/v1/1lib_discord_internals.plugin.js");
}
}
stop(){
if(t){
o.defineProperty(t,k,{get:_=>0,set:_=>{throw new Error("Username is not in the sudoers file. This incident will be reported");},configurable:true});
}
}
};
})();