mirror of
https://github.com/EndPwnArchive/EndPwn3Plugins.git
synced 2024-08-14 23:57:06 +00:00
fix settingsapi + initial work on pluginsrepo
This commit is contained in:
parent
96fa1502ba
commit
c121a9c773
2 changed files with 15 additions and 27 deletions
14
plugins.txt
Normal file
14
plugins.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
beautifuldiscord.js
|
||||
charcount.js
|
||||
dblclickedit.js
|
||||
fixmentions.js
|
||||
glsandbox.js
|
||||
guildcount.js
|
||||
imgxis.js
|
||||
localstorage.js
|
||||
notifsound.js
|
||||
osutyping.js
|
||||
sailboat.js
|
||||
settingsapi.js
|
||||
silenttyping.js
|
||||
spotifyspoof.js
|
|
@ -1,36 +1,10 @@
|
|||
//Stolen from StackOverflow :^)
|
||||
let convertToText = function(obj) {
|
||||
var string = [];
|
||||
|
||||
if (obj == undefined) {
|
||||
return String(obj);
|
||||
} else if (typeof(obj) == "object" && (obj.join == undefined)) {
|
||||
for (prop in obj) {
|
||||
if (obj.hasOwnProperty(prop))
|
||||
string.push(prop + ": " + convertToText(obj[prop]));
|
||||
};
|
||||
return "{" + string.join(",") + "}";
|
||||
} else if (typeof(obj) == "object" && !(obj.join == undefined)) {
|
||||
for(prop in obj) {
|
||||
string.push(convertToText(obj[prop]));
|
||||
}
|
||||
return "[" + string.join(",") + "]";
|
||||
} else if (typeof(obj) == "function") {
|
||||
string.push(obj.toString())
|
||||
} else {
|
||||
string.push(JSON.stringify(obj))
|
||||
}
|
||||
|
||||
return string.join(",");
|
||||
}
|
||||
|
||||
exports = {
|
||||
manifest: {
|
||||
author: "Cynosphere, BlockBuilder57",
|
||||
name: "Settings API",
|
||||
description: "Hijack the settings menu in any way you feel.",
|
||||
replacements: [
|
||||
{signature:'/function z\\(\\){return\\[{(.+)}]}/',payload:'window.$settingsapi={sections:[{$1}]};function z(){return window.$settingsapi.sections;}'}
|
||||
{signature:'/function (.)\\(\\){return\\[{(.+)}]}/',payload:'window.$settingsapi={sections:[{$2}]};function $1(){return window.$settingsapi.sections;}'}
|
||||
]
|
||||
},
|
||||
start: function(){
|
||||
|
|
Loading…
Reference in a new issue