stuff
This commit is contained in:
parent
6003965702
commit
d795376843
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
@ -2,7 +2,7 @@
|
||||||
<head>
|
<head>
|
||||||
<script type="text/javascript" src="https://unpkg.com/react@16/umd/react.development.js"></script>
|
<script type="text/javascript" src="https://unpkg.com/react@16/umd/react.development.js"></script>
|
||||||
<script type="text/javascript" src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
|
<script type="text/javascript" src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
|
||||||
<script type="text/javascript" src="https://mwittrien.github.io/BetterDiscordAddons/Plugins/.res/DiscordPreview.js"></script>
|
<script type="text/javascript" src="https://mwittrien.github.io/BetterDiscordAddons/Plugins/_res/DiscordPreview.js"></script>
|
||||||
<link rel="stylesheet" href="https://rauenzi.github.io/BetterDiscordApp/src/styles/index.css">
|
<link rel="stylesheet" href="https://rauenzi.github.io/BetterDiscordApp/src/styles/index.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -11306,7 +11306,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
BDFDB.ModuleUtils.patch(BDFDB, LibraryModules.GuildStore, "getGuild", {after: e => {
|
BDFDB.ModuleUtils.patch(BDFDB, LibraryModules.GuildStore, "getGuild", {after: e => {
|
||||||
if (e.returnValue && e.methodArguments[0] == myGuildId) e.returnValue.banner = "https://mwittrien.github.io/BetterDiscordAddons/Library/.res/BDFDB.banner.png";
|
if (e.returnValue && e.methodArguments[0] == myGuildId) e.returnValue.banner = "https://mwittrien.github.io/BetterDiscordAddons/Library/_res/BDFDB.banner.png";
|
||||||
}});
|
}});
|
||||||
|
|
||||||
BDFDB.ModuleUtils.patch(BDFDB, LibraryModules.IconUtils, "getGuildBannerURL", {instead: e => {
|
BDFDB.ModuleUtils.patch(BDFDB, LibraryModules.IconUtils, "getGuildBannerURL", {instead: e => {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -636,7 +636,7 @@ var PluginRepo = (_ => {
|
||||||
let seps = ["\"", "\'", "\`"];
|
let seps = ["\"", "\'", "\`"];
|
||||||
let newEntriesData = BDFDB.DataUtils.load(this, "newentriesdata");
|
let newEntriesData = BDFDB.DataUtils.load(this, "newentriesdata");
|
||||||
cachedPlugins = (newEntriesData.urlbase64 ? atob(newEntriesData.urlbase64).split("\n") : []).concat(customList);
|
cachedPlugins = (newEntriesData.urlbase64 ? atob(newEntriesData.urlbase64).split("\n") : []).concat(customList);
|
||||||
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/PluginRepo/.res/PluginList.txt", (error, response, result) => {
|
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/PluginRepo/_res/PluginList.txt", (error, response, result) => {
|
||||||
if (!error && result) {
|
if (!error && result) {
|
||||||
result = result.replace(/[\r\t]/g, "");
|
result = result.replace(/[\r\t]/g, "");
|
||||||
BDFDB.DataUtils.save(btoa(result), this, "newentriesdata", "urlbase64");
|
BDFDB.DataUtils.save(btoa(result), this, "newentriesdata", "urlbase64");
|
||||||
|
@ -837,7 +837,7 @@ var PluginRepo = (_ => {
|
||||||
let loadTimeout = BDFDB.TimeUtils.timeout(_ => {
|
let loadTimeout = BDFDB.TimeUtils.timeout(_ => {
|
||||||
callback();
|
callback();
|
||||||
}, 600000);
|
}, 600000);
|
||||||
sandbox = BDFDB.WindowUtils.open(this, "https://mwittrien.github.io/BetterDiscordAddons/Plugins/.res/DiscordPreview.html", {
|
sandbox = BDFDB.WindowUtils.open(this, "https://mwittrien.github.io/BetterDiscordAddons/Plugins/_res/DiscordPreview.html", {
|
||||||
onLoad: _ => {
|
onLoad: _ => {
|
||||||
BDFDB.TimeUtils.clear(loadTimeout);
|
BDFDB.TimeUtils.clear(loadTimeout);
|
||||||
sandbox.executeJavaScriptSafe(`window.onmessage({
|
sandbox.executeJavaScriptSafe(`window.onmessage({
|
||||||
|
@ -928,7 +928,7 @@ var PluginRepo = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkForNewPlugins () {
|
checkForNewPlugins () {
|
||||||
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/PluginRepo/.res/PluginList.txt", (error, response, result) => {
|
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/PluginRepo/_res/PluginList.txt", (error, response, result) => {
|
||||||
if (response && !BDFDB.equals(result.replace(/\t|\r/g, "").split("\n").filter(n => n), grabbedPlugins)) {
|
if (response && !BDFDB.equals(result.replace(/\t|\r/g, "").split("\n").filter(n => n), grabbedPlugins)) {
|
||||||
loading = {is:false, timeout:null, amount:0};
|
loading = {is:false, timeout:null, amount:0};
|
||||||
this.loadPlugins();
|
this.loadPlugins();
|
||||||
|
|
|
@ -106,7 +106,7 @@ var ThemeRepo = (_ => {
|
||||||
return themes;
|
return themes;
|
||||||
}
|
}
|
||||||
openPreview() {
|
openPreview() {
|
||||||
preview = BDFDB.WindowUtils.open(this, "https://mwittrien.github.io/BetterDiscordAddons/Plugins/.res/DiscordPreview.html", {
|
preview = BDFDB.WindowUtils.open(this, "https://mwittrien.github.io/BetterDiscordAddons/Plugins/_res/DiscordPreview.html", {
|
||||||
alwaysOnTop: settings.keepOnTop,
|
alwaysOnTop: settings.keepOnTop,
|
||||||
showOnReady: true,
|
showOnReady: true,
|
||||||
frame: false,
|
frame: false,
|
||||||
|
@ -402,7 +402,7 @@ var ThemeRepo = (_ => {
|
||||||
value: this.props.useThemeFixer,
|
value: this.props.useThemeFixer,
|
||||||
onChange: (value, instance) => {
|
onChange: (value, instance) => {
|
||||||
this.props.useThemeFixer = value;
|
this.props.useThemeFixer = value;
|
||||||
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/.res/ThemeFixer.css", (error, response, body) => {
|
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/_res/ThemeFixer.css", (error, response, body) => {
|
||||||
if (preview) preview.executeJavaScriptSafe(`window.onmessage({
|
if (preview) preview.executeJavaScriptSafe(`window.onmessage({
|
||||||
origin: "ThemeRepo",
|
origin: "ThemeRepo",
|
||||||
reason: "ThemeFixer",
|
reason: "ThemeFixer",
|
||||||
|
@ -418,7 +418,7 @@ var ThemeRepo = (_ => {
|
||||||
label: "Download ThemeFixer",
|
label: "Download ThemeFixer",
|
||||||
children: "Download",
|
children: "Download",
|
||||||
onClick: _ => {
|
onClick: _ => {
|
||||||
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/.res/ThemeFixer.css", (error, response, body) => {
|
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/_res/ThemeFixer.css", (error, response, body) => {
|
||||||
_this.createThemeFile("ThemeFixer.theme.css", `//META{"name":"ThemeFixer","description":"ThemeFixerCSS for transparent themes","author":"DevilBro","version":"1.0.3","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien"}*//\n\n` + _this.createFixerCSS(body));
|
_this.createThemeFile("ThemeFixer.theme.css", `//META{"name":"ThemeFixer","description":"ThemeFixerCSS for transparent themes","author":"DevilBro","version":"1.0.3","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien"}*//\n\n` + _this.createFixerCSS(body));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -956,7 +956,7 @@ var ThemeRepo = (_ => {
|
||||||
let tags = ["name","description","author","version"];
|
let tags = ["name","description","author","version"];
|
||||||
let newEntriesData = BDFDB.DataUtils.load(this, "newentriesdata");
|
let newEntriesData = BDFDB.DataUtils.load(this, "newentriesdata");
|
||||||
cachedThemes = (newEntriesData.urlbase64 ? atob(newEntriesData.urlbase64).split("\n") : []).concat(customList);
|
cachedThemes = (newEntriesData.urlbase64 ? atob(newEntriesData.urlbase64).split("\n") : []).concat(customList);
|
||||||
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/.res/ThemeList.txt", (error, response, body) => {
|
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/_res/ThemeList.txt", (error, response, body) => {
|
||||||
if (!error && body) {
|
if (!error && body) {
|
||||||
body = body.replace(/[\r\t]/g, "");
|
body = body.replace(/[\r\t]/g, "");
|
||||||
BDFDB.DataUtils.save(btoa(body), this, "newentriesdata", "urlbase64");
|
BDFDB.DataUtils.save(btoa(body), this, "newentriesdata", "urlbase64");
|
||||||
|
@ -1053,7 +1053,7 @@ var ThemeRepo = (_ => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/.res/GeneratorList.txt", (error3, response3, body3) => {
|
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/_res/GeneratorList.txt", (error3, response3, body3) => {
|
||||||
if (!error3 && body3) for (let url of body3.replace(/[\r\t]/g, "").split("\n").filter(n => n)) if (loadedThemes[url]) generatorThemes.push(url);
|
if (!error3 && body3) for (let url of body3.replace(/[\r\t]/g, "").split("\n").filter(n => n)) if (loadedThemes[url]) generatorThemes.push(url);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1133,7 +1133,7 @@ var ThemeRepo = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkForNewThemes () {
|
checkForNewThemes () {
|
||||||
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/.res/ThemeList.txt", (error, response, result) => {
|
BDFDB.LibraryRequires.request("https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/_res/ThemeList.txt", (error, response, result) => {
|
||||||
if (response && !BDFDB.equals(result.replace(/\t|\r/g, "").split("\n").filter(n => n), grabbedThemes)) {
|
if (response && !BDFDB.equals(result.replace(/\t|\r/g, "").split("\n").filter(n => n), grabbedThemes)) {
|
||||||
loading = {is:false, timeout:null, amount:0};
|
loading = {is:false, timeout:null, amount:0};
|
||||||
this.loadThemes();
|
this.loadThemes();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<head>
|
<head>
|
||||||
<script type="text/javascript" src="https://unpkg.com/react@16/umd/react.development.js"></script>
|
<script type="text/javascript" src="https://unpkg.com/react@16/umd/react.development.js"></script>
|
||||||
<script type="text/javascript" src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
|
<script type="text/javascript" src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
|
||||||
<script type="text/javascript" src="https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/.res/DiscordPreview.js"></script>
|
<script type="text/javascript" src="https://mwittrien.github.io/BetterDiscordAddons/Plugins/ThemeRepo/_res/DiscordPreview.js"></script>
|
||||||
<link rel="stylesheet" href="https://rauenzi.github.io/BetterDiscordApp/css/main.min.css">
|
<link rel="stylesheet" href="https://rauenzi.github.io/BetterDiscordApp/css/main.min.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in New Issue