diff --git a/Library/_res/BDFDB.raw.css b/Library/_res/BDFDB.raw.css index 5393d37245..c7cd627259 100644 --- a/Library/_res/BDFDB.raw.css +++ b/Library/_res/BDFDB.raw.css @@ -1,16 +1,16 @@ @import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/_res/SupporterBadge.css); #pluginNotice[class=" "], #pluginNotice[class=""] { - z-index: 999; - background: black; + z-index: 999; + background: black; color: white; - text-align: center; - pointer-events: all; + text-align: center; + pointer-events: all; } #pluginNotice[class=" "] span, #pluginNotice[class=""] span { - position: relative; - top: 10px; - color: white; + position: relative; + top: 10px; + color: white; } img:not([src]), img[src=""], img[src="null"] { diff --git a/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js b/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js index 5373bff6e3..1dcdc0d847 100644 --- a/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js +++ b/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js @@ -1,7 +1,7 @@ //META{"name":"BadgesEverywhere","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BadgesEverywhere","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/BadgesEverywhere/BadgesEverywhere.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "BadgesEverywhere", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,17 +38,17 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var badgeClasses, requestedUsers = {}, loadedUsers = {}, requestQueue = {queue:[], timeout:null, id:null}, cacheTimeout; var nitroFlag, boostFlag; var settings = {}, badges = {}, indicators = {}; const miniTypes = ["list", "chat"]; - return class BadgesEverywhere extends Plugin { + return class BadgesEverywhere extends Plugin { onLoad() { this.patchedModules = { after: { @@ -482,5 +482,5 @@ module.exports = (_ => { return eles; } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/BetterFriendList/BetterFriendList.plugin.js b/Plugins/BetterFriendList/BetterFriendList.plugin.js index 52bc11135c..b185040eea 100644 --- a/Plugins/BetterFriendList/BetterFriendList.plugin.js +++ b/Plugins/BetterFriendList/BetterFriendList.plugin.js @@ -1,7 +1,7 @@ //META{"name":"BetterFriendList","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BetterFriendList","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/BetterFriendList/BetterFriendList.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "BetterFriendList", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds extra controls to the friends page, like sort by name/status, search and all/request/blocked amount." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var rerenderTimeout, sortKey, sortReversed, searchQuery, searchTimeout; var settings = {}; @@ -52,7 +52,7 @@ module.exports = (_ => { unknown: 6 }; - return class BetterFriendList extends Plugin { + return class BetterFriendList extends Plugin { onLoad() { this.defaults = { settings: { @@ -304,5 +304,5 @@ module.exports = (_ => { if (selectedButton) selectedButton.click(); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/BetterNsfwTag/BetterNsfwTag.plugin.js b/Plugins/BetterNsfwTag/BetterNsfwTag.plugin.js index abd3569459..24d99fa05b 100644 --- a/Plugins/BetterNsfwTag/BetterNsfwTag.plugin.js +++ b/Plugins/BetterNsfwTag/BetterNsfwTag.plugin.js @@ -1,7 +1,7 @@ //META{"name":"BetterNsfwTag","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BetterNsfwTag","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/BetterNsfwTag/BetterNsfwTag.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "BetterNsfwTag", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds a more noticeable tag to NSFW channels." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,11 +33,11 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { - return class BetterNsfwTag extends Plugin { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { + return class BetterNsfwTag extends Plugin { onLoad() { this.patchedModules = { after: { @@ -73,5 +73,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/BetterSearchPage/BetterSearchPage.plugin.js b/Plugins/BetterSearchPage/BetterSearchPage.plugin.js index 0c4fa57f75..3ae2b14b41 100644 --- a/Plugins/BetterSearchPage/BetterSearchPage.plugin.js +++ b/Plugins/BetterSearchPage/BetterSearchPage.plugin.js @@ -1,7 +1,7 @@ //META{"name":"BetterSearchPage","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/BetterSearchPage","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/BetterSearchPage/BetterSearchPage.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "BetterSearchPage", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds some extra controls to the search results page." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,13 +33,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var settings = {}; - return class BetterSearchPage extends Plugin { + return class BetterSearchPage extends Plugin { onLoad() { this.defaults = { settings: { @@ -180,5 +180,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/CharCounter/CharCounter.plugin.js b/Plugins/CharCounter/CharCounter.plugin.js index 64297181c8..81025165c6 100644 --- a/Plugins/CharCounter/CharCounter.plugin.js +++ b/Plugins/CharCounter/CharCounter.plugin.js @@ -1,7 +1,7 @@ //META{"name":"CharCounter","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/CharCounter","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/CharCounter/CharCounter.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "CharCounter", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,10 +38,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { const maxLenghts = { normal: 2000, edit: 2000, @@ -56,7 +56,7 @@ module.exports = (_ => { form: "upload" }; - return class CharCounter extends Plugin { + return class CharCounter extends Plugin { onLoad() { this.patchedModules = { after: { @@ -171,5 +171,5 @@ module.exports = (_ => { })); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ChatAliases/ChatAliases.plugin.js b/Plugins/ChatAliases/ChatAliases.plugin.js index 6924359bbb..9eb96d13f6 100644 --- a/Plugins/ChatAliases/ChatAliases.plugin.js +++ b/Plugins/ChatAliases/ChatAliases.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ChatAliases","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ChatAliases","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ChatAliases/ChatAliases.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ChatAliases", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,13 +38,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var settings = {}, amounts = {}, configs = {}, aliases = {}, commandAliases = {}; - return class ChatAliases extends Plugin { + return class ChatAliases extends Plugin { onLoad() { this.defaults = { configs: { @@ -580,5 +580,5 @@ module.exports = (_ => { BDFDB.DataUtils.save(aliases, this, "words"); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ChatFilter/ChatFilter.plugin.js b/Plugins/ChatFilter/ChatFilter.plugin.js index aa350c0f53..450663d33f 100644 --- a/Plugins/ChatFilter/ChatFilter.plugin.js +++ b/Plugins/ChatFilter/ChatFilter.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ChatFilter","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ChatFilter","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ChatFilter/ChatFilter.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ChatFilter", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Allows the user to censor words or block complete messages based on words in the chatwindow." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var oldBlockedMessages, oldCensoredMessages, words; var settings = {}, replaces = {}, configs = {}; - return class ChatFilter extends Plugin { + return class ChatFilter extends Plugin { onLoad() { this.defaults = { configs: { @@ -492,5 +492,5 @@ module.exports = (_ => { BDFDB.DataUtils.save(words, this, "words"); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/CompleteTimestamps/CompleteTimestamps.plugin.js b/Plugins/CompleteTimestamps/CompleteTimestamps.plugin.js index 150cdab591..e513c0bcbe 100644 --- a/Plugins/CompleteTimestamps/CompleteTimestamps.plugin.js +++ b/Plugins/CompleteTimestamps/CompleteTimestamps.plugin.js @@ -1,7 +1,7 @@ //META{"name":"CompleteTimestamps","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/CompleteTimestamps","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/CompleteTimestamps/CompleteTimestamps.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "CompleteTimestamps", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Replace all timestamps with complete timestamps." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var languages, currentMode; var settings = {}, choices = {}, formats = {}, amounts = {}; - return class CompleteTimestamps extends Plugin { + return class CompleteTimestamps extends Plugin { onLoad() { this.defaults = { settings: { @@ -389,5 +389,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/CopyRawMessage/CopyRawMessage.plugin.js b/Plugins/CopyRawMessage/CopyRawMessage.plugin.js index efaa06b577..85016742b4 100644 --- a/Plugins/CopyRawMessage/CopyRawMessage.plugin.js +++ b/Plugins/CopyRawMessage/CopyRawMessage.plugin.js @@ -1,7 +1,7 @@ //META{"name":"CopyRawMessage","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/CopyRawMessage","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/CopyRawMessage/CopyRawMessage.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "CopyRawMessage", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,13 +38,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var settings = {}; - return class CopyRawMessage extends Plugin { + return class CopyRawMessage extends Plugin { onLoad() { this.defaults = { settings: { @@ -166,5 +166,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/CreationDate/CreationDate.plugin.js b/Plugins/CreationDate/CreationDate.plugin.js index eb4c5ba277..310a1231ba 100644 --- a/Plugins/CreationDate/CreationDate.plugin.js +++ b/Plugins/CreationDate/CreationDate.plugin.js @@ -1,7 +1,7 @@ //META{"name":"CreationDate","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/CreationDate","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/CreationDate/CreationDate.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "CreationDate", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Displays the Creation Date of an Account in the UserPopout and UserModal." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var languages; var settings = {}, choices = {}, formats = {}, amounts = {}; - return class CreationDate extends Plugin { + return class CreationDate extends Plugin { onLoad() { this.defaults = { settings: { @@ -407,5 +407,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/CustomQuoter/CustomQuoter.plugin.js b/Plugins/CustomQuoter/CustomQuoter.plugin.js index 4da407536a..8fd5ff7993 100644 --- a/Plugins/CustomQuoter/CustomQuoter.plugin.js +++ b/Plugins/CustomQuoter/CustomQuoter.plugin.js @@ -1,7 +1,7 @@ //META{"name":"CustomQuoter","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/CustomQuoter","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/CustomQuoter/CustomQuoter.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "CustomQuoter", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Let's you customize the output of the native quote feature of Discord." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var _this; var settings = {}, formats = {}, format = null; @@ -72,7 +72,7 @@ module.exports = (_ => { } }; - return class CustomQuoter extends Plugin { + return class CustomQuoter extends Plugin { onLoad() { _this = this; @@ -350,5 +350,5 @@ module.exports = (_ => { return charArray.join(""); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/DisplayLargeMessages/DisplayLargeMessages.plugin.js b/Plugins/DisplayLargeMessages/DisplayLargeMessages.plugin.js index 59e3a75039..da0f349f53 100644 --- a/Plugins/DisplayLargeMessages/DisplayLargeMessages.plugin.js +++ b/Plugins/DisplayLargeMessages/DisplayLargeMessages.plugin.js @@ -1,7 +1,7 @@ //META{"name":"DisplayLargeMessages","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/DisplayLargeMessages","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/DisplayLargeMessages/DisplayLargeMessages.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "DisplayLargeMessages", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Injects the contents of large messages that were sent by discord via 'message.txt'." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var encodedMessages, requestedMessages, pendingRequests, oldMessages, updateTimeout; var settings = {}, amounts = {}; - return class DisplayLargeMessages extends Plugin { + return class DisplayLargeMessages extends Plugin { onLoad() { this.defaults = { settings: { @@ -353,5 +353,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js index 2b3277c891..f284ea3df1 100644 --- a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js +++ b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js @@ -1,7 +1,7 @@ //META{"name":"DisplayServersAsChannels","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/DisplayServersAsChannels","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "DisplayServersAsChannels", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,13 +38,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var settings = {}, amounts = {}; - return class DisplayServersAsChannels extends Plugin { + return class DisplayServersAsChannels extends Plugin { onLoad() { this.defaults = { settings: { @@ -486,5 +486,5 @@ module.exports = (_ => { }`); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index a3a4dce003..403fb28b92 100644 --- a/Plugins/EditChannels/EditChannels.plugin.js +++ b/Plugins/EditChannels/EditChannels.plugin.js @@ -1,7 +1,7 @@ //META{"name":"EditChannels","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/EditChannels","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/EditChannels/EditChannels.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "EditChannels", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,13 +38,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var changedChannels = {}, settings = {}; - return class EditChannels extends Plugin { + return class EditChannels extends Plugin { onLoad() { this.defaults = { settings: { @@ -758,5 +758,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/EditServers/EditServers.plugin.js b/Plugins/EditServers/EditServers.plugin.js index 9456f61100..af7d9a2d3a 100644 --- a/Plugins/EditServers/EditServers.plugin.js +++ b/Plugins/EditServers/EditServers.plugin.js @@ -1,7 +1,7 @@ //META{"name":"EditServers","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/EditServers","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/EditServers/EditServers.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "EditServers", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,13 +38,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var changedGuilds = {}, settings = {}; - return class EditServers extends Plugin { + return class EditServers extends Plugin { onLoad() { this.defaults = { settings: { @@ -1079,5 +1079,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 40d66c1511..a15d777002 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -1,7 +1,7 @@ //META{"name":"EditUsers","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/EditUsers","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/EditUsers/EditUsers.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "EditUsers", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,13 +38,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var changedUsers = {}, settings = {}; - return class EditUsers extends Plugin { + return class EditUsers extends Plugin { onLoad() { this.defaults = { settings: { @@ -1776,5 +1776,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/EmojiStatistics/EmojiStatistics.plugin.js b/Plugins/EmojiStatistics/EmojiStatistics.plugin.js index 44bdd0dc7b..66f76c1f6d 100644 --- a/Plugins/EmojiStatistics/EmojiStatistics.plugin.js +++ b/Plugins/EmojiStatistics/EmojiStatistics.plugin.js @@ -1,7 +1,7 @@ //META{"name":"EmojiStatistics","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/EmojiStatistics","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/EmojiStatistics/EmojiStatistics.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "EmojiStatistics", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds some helpful options to show you more information about emojis and emojiservers." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,13 +33,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var emojiReplicaList; - return class EmojiStatistics extends Plugin { + return class EmojiStatistics extends Plugin { onLoad() { this.patchedModules = { after: { @@ -374,5 +374,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ForceImagePreviews/ForceImagePreviews.plugin.js b/Plugins/ForceImagePreviews/ForceImagePreviews.plugin.js index 2b8c199597..b9e9d84943 100644 --- a/Plugins/ForceImagePreviews/ForceImagePreviews.plugin.js +++ b/Plugins/ForceImagePreviews/ForceImagePreviews.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ForceImagePreviews","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ForceImagePreviews","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ForceImagePreviews/ForceImagePreviews.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ForceImagePreviews", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Forces embedded Image Previews, if Discord doesn't do it itself. Caution: Externals Images can contain malicious code and reveal your IP!" } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,13 +33,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var loadedEmbeds, requestedEmbeds; - return class ForceImagePreviews extends Plugin { + return class ForceImagePreviews extends Plugin { onLoad() { loadedEmbeds = {}; requestedEmbeds = []; @@ -146,5 +146,5 @@ module.exports = (_ => { return false; } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/FriendNotifications/FriendNotifications.plugin.js b/Plugins/FriendNotifications/FriendNotifications.plugin.js index a7b4347c6f..fc996d93eb 100644 --- a/Plugins/FriendNotifications/FriendNotifications.plugin.js +++ b/Plugins/FriendNotifications/FriendNotifications.plugin.js @@ -1,7 +1,7 @@ //META{"name":"FriendNotifications","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/FriendNotifications","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/FriendNotifications/FriendNotifications.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "FriendNotifications", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Notifies you when a Friend or a User your choose to observe changes their online status, can be configured individually in the settings." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var _this; var userStatusStore, timeLog, lastTimes, friendCounter, checkInterval, paginationOffset = {}; var settings = {}, amounts = {}, notificationStrings = {}, notificationSounds = {}, observedUsers = {}; @@ -59,7 +59,7 @@ module.exports = (_ => { } }; - return class FriendNotifications extends Plugin { + return class FriendNotifications extends Plugin { onLoad() { _this = this; @@ -628,5 +628,5 @@ module.exports = (_ => { }); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/GoogleSearchReplace/GoogleSearchReplace.plugin.js b/Plugins/GoogleSearchReplace/GoogleSearchReplace.plugin.js index ae44b64859..af9220f7f9 100644 --- a/Plugins/GoogleSearchReplace/GoogleSearchReplace.plugin.js +++ b/Plugins/GoogleSearchReplace/GoogleSearchReplace.plugin.js @@ -1,7 +1,7 @@ //META{"name":"GoogleSearchReplace","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/GoogleSearchReplace","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/GoogleSearchReplace/GoogleSearchReplace.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "GoogleSearchReplace", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Replaces the default Google Text Search with a selection menu of several search engines." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { const textUrlReplaceString = "DEVILBRO_BD_GOOGLESEARCHREPLACE_REPLACE_TEXTURL"; var settings = {}, engines = {}, enabledEngines = {}; - return class GoogleSearchReplace extends Plugin { + return class GoogleSearchReplace extends Plugin { onLoad() { this.defaults = { settings: { @@ -277,5 +277,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js b/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js index 66dd32e63d..c0a3f6f287 100644 --- a/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js +++ b/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js @@ -1,7 +1,7 @@ //META{"name":"GoogleTranslateOption","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/GoogleTranslateOption","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/GoogleTranslateOption/GoogleTranslateOption.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "GoogleTranslateOption", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,10 +38,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { const translateIconGeneral = ``; const translateIconMask = ``; const translateIcon = translateIconGeneral.replace(``, ``).replace(``, ``).replace(` mask="url(#translateIconMask)"`, ``); @@ -67,7 +67,7 @@ module.exports = (_ => { var languages, translating, isTranslating, translatedMessages, oldMessages; var settings = {}, choices = {}, engines = {}, favorites = {}; - return class GoogleTranslateOption extends Plugin { + return class GoogleTranslateOption extends Plugin { onLoad() { languages = {}; translating = false; @@ -1098,5 +1098,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/HideMutedCategories/HideMutedCategories.plugin.js b/Plugins/HideMutedCategories/HideMutedCategories.plugin.js index dbf3b9957a..27d7fcc5d5 100644 --- a/Plugins/HideMutedCategories/HideMutedCategories.plugin.js +++ b/Plugins/HideMutedCategories/HideMutedCategories.plugin.js @@ -1,7 +1,7 @@ //META{"name":"PluginTemplate","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/PluginTemplate","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/PluginTemplate/PluginTemplate.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "HideMutedCategories", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Hides muted categories the same way muted channels are hidden, when the server is set to hide muted channels." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,11 +33,11 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { - return class HideMutedCategories extends Plugin { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { + return class HideMutedCategories extends Plugin { onLoad() { this.patchPriority = 10; @@ -80,5 +80,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ImageUtilities/ImageUtilities.plugin.js b/Plugins/ImageUtilities/ImageUtilities.plugin.js index ab2b27f2a7..34c97d0152 100644 --- a/Plugins/ImageUtilities/ImageUtilities.plugin.js +++ b/Plugins/ImageUtilities/ImageUtilities.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ImageUtilities","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ImageUtilities","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ImageUtilities/ImageUtilities.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ImageUtilities", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds a handful of options for images/emotes/avatars (direct download, reverse image search, zoom, copy image link, copy image to clipboard, gallery mode)" } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { const imgUrlReplaceString = "DEVILBRO_BD_REVERSEIMAGESEARCH_REPLACE_IMAGEURL"; var firedEvents = [], clickedImage; var settings = {}, inputs = {}, amounts = {}, zoomSettings = {}, engines = {}, enabledEngines = {}; @@ -83,7 +83,7 @@ module.exports = (_ => { } }; - return class ImageUtilities extends Plugin { + return class ImageUtilities extends Plugin { onLoad() { firedEvents = []; clickedImage = null; @@ -1257,5 +1257,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/JoinedAtDate/JoinedAtDate.plugin.js b/Plugins/JoinedAtDate/JoinedAtDate.plugin.js index b4fbc23589..34c15ab66f 100644 --- a/Plugins/JoinedAtDate/JoinedAtDate.plugin.js +++ b/Plugins/JoinedAtDate/JoinedAtDate.plugin.js @@ -1,7 +1,7 @@ //META{"name":"JoinedAtDate","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/JoinedAtDate","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/JoinedAtDate/JoinedAtDate.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "JoinedAtDate", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Displays the Joined At Date of the current Server for a Member in the UserPopout and UserModal." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var loadedUsers, requestedUsers, languages; var settings = {}, choices = {}, formats = {}, amounts = {}; - return class JoinedAtDate extends Plugin { + return class JoinedAtDate extends Plugin { onLoad() { loadedUsers = {}; requestedUsers = {}; @@ -423,5 +423,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/LastMessageDate/LastMessageDate.plugin.js b/Plugins/LastMessageDate/LastMessageDate.plugin.js index f119e71042..2fc47e1a17 100644 --- a/Plugins/LastMessageDate/LastMessageDate.plugin.js +++ b/Plugins/LastMessageDate/LastMessageDate.plugin.js @@ -1,7 +1,7 @@ //META{"name":"LastMessageDate","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/LastMessageDate","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/LastMessageDate/LastMessageDate.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "LastMessageDate", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Displays the Date of the last sent Message of a Member for the current Server/DM in the UserPopout and UserModal." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var loadedUsers, requestedUsers, languages; var settings = {}, choices = {}, formats = {}, amounts = {}; - return class LastMessageDate extends Plugin { + return class LastMessageDate extends Plugin { onLoad() { loadedUsers = {}; requestedUsers = {}; @@ -447,5 +447,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/MessageUtilities/MessageUtilities.plugin.js b/Plugins/MessageUtilities/MessageUtilities.plugin.js index ac5ff8e54a..801cbd1240 100644 --- a/Plugins/MessageUtilities/MessageUtilities.plugin.js +++ b/Plugins/MessageUtilities/MessageUtilities.plugin.js @@ -1,7 +1,7 @@ //META{"name":"MessageUtilities","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/MessageUtilities","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/MessageUtilities/MessageUtilities.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "MessageUtilities", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,15 +38,15 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { const clickMap = ["CLICK", "DBLCLICK"]; var firedEvents = []; var settings = {}, bindings = {}, enabledBindings = {}, toasts = {}; - return class MessageUtilities extends Plugin { + return class MessageUtilities extends Plugin { onLoad() { this.defaults = { settings: { @@ -400,5 +400,5 @@ module.exports = (_ => { return {messageDiv, message}; } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); diff --git a/Plugins/NotificationSounds/NotificationSounds.plugin.js b/Plugins/NotificationSounds/NotificationSounds.plugin.js index 5796e41c3d..1057d823d2 100644 --- a/Plugins/NotificationSounds/NotificationSounds.plugin.js +++ b/Plugins/NotificationSounds/NotificationSounds.plugin.js @@ -1,7 +1,7 @@ //META{"name":"NotificationSounds","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/NotificationSounds","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/NotificationSounds/NotificationSounds.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "NotificationSounds", "author": "DevilBro", @@ -15,13 +15,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -39,10 +39,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var audios, choices, firedEvents; const removeAllKey = "REMOVE_ALL_BDFDB_DEVILBRO_DO_NOT_COPY"; @@ -175,7 +175,7 @@ module.exports = (_ => { } }; - return class NotificationSounds extends Plugin { + return class NotificationSounds extends Plugin { onLoad() { audios = {}; choices = {}; @@ -678,5 +678,5 @@ module.exports = (_ => { BDFDB.TimeUtils.timeout(_ => {firedEvents[type] = false;},3000); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/OldTitleBar/OldTitleBar.plugin.js b/Plugins/OldTitleBar/OldTitleBar.plugin.js index 998957c5dd..9ffe231c1c 100644 --- a/Plugins/OldTitleBar/OldTitleBar.plugin.js +++ b/Plugins/OldTitleBar/OldTitleBar.plugin.js @@ -1,7 +1,7 @@ //META{"name":"OldTitleBar","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/OldTitleBar","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/OldTitleBar/OldTitleBar.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "OldTitleBar", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Reverts the title bar back to its former self." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var patched, electronWindow; var settings = {}; - return class OldTitleBar extends Plugin { + return class OldTitleBar extends Plugin { onLoad() { patched = false; @@ -288,5 +288,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/OwnerTag/OwnerTag.plugin.js b/Plugins/OwnerTag/OwnerTag.plugin.js index bde97c2447..44ef521e5f 100644 --- a/Plugins/OwnerTag/OwnerTag.plugin.js +++ b/Plugins/OwnerTag/OwnerTag.plugin.js @@ -1,7 +1,7 @@ //META{"name":"OwnerTag","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/OwnerTag","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/OwnerTag/OwnerTag.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "OwnerTag", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,10 +38,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { const userTypes = { NONE: 0, MANAGEMENT: 1, @@ -51,7 +51,7 @@ module.exports = (_ => { var settings = {}, inputs = {}; - return class OwnerTag extends Plugin { + return class OwnerTag extends Plugin { onLoad() { this.patchedModules = { after: { @@ -408,5 +408,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/PersonalPins/PersonalPins.plugin.js b/Plugins/PersonalPins/PersonalPins.plugin.js index 7746cf8fc8..896119e9cd 100644 --- a/Plugins/PersonalPins/PersonalPins.plugin.js +++ b/Plugins/PersonalPins/PersonalPins.plugin.js @@ -1,7 +1,7 @@ //META{"name":"PersonalPins","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/PersonalPins","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/PersonalPins/PersonalPins.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "PersonalPins", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,10 +38,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { const pinIconGeneral = ``; const pinIconMask = ``; const pinIcon = pinIconGeneral.replace(``, ``).replace(``, ``).replace(` mask="url(#pinIconMask)"`, ``); @@ -54,7 +54,7 @@ module.exports = (_ => { var choices = {}; - return class PersonalPins extends Plugin { + return class PersonalPins extends Plugin { onLoad() { this.defaults = { choices: { @@ -903,5 +903,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/PinDMs/PinDMs.plugin.js b/Plugins/PinDMs/PinDMs.plugin.js index c4097aed79..c4614d16bb 100644 --- a/Plugins/PinDMs/PinDMs.plugin.js +++ b/Plugins/PinDMs/PinDMs.plugin.js @@ -1,7 +1,7 @@ //META{"name":"PinDMs","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/PinDMs","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/PinDMs/PinDMs.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "PinDMs", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Allows you to pin DMs, making them appear at the top of your DMs/Server-List." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,16 +33,16 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var hoveredCategory, draggedCategory, releasedCategory; var hoveredChannel, draggedChannel, releasedChannel; var settings = {}; - return class PinDMs extends Plugin { + return class PinDMs extends Plugin { onLoad() { this.defaults = { settings: { @@ -1140,5 +1140,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/PluginRepo/PluginRepo.plugin.js b/Plugins/PluginRepo/PluginRepo.plugin.js index 2dae5241a1..ff4b369da5 100644 --- a/Plugins/PluginRepo/PluginRepo.plugin.js +++ b/Plugins/PluginRepo/PluginRepo.plugin.js @@ -1,7 +1,7 @@ //META{"name":"PluginRepo","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/PluginRepo","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/PluginRepo/PluginRepo.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "PluginRepo", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Allows you to look at all plugins from the plugin repo and download them on the fly." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var _this; var loading, cachedPlugins, grabbedPlugins, foundPlugins, loadedPlugins, updateInterval; var list, header, searchTimeout, forcedSort, forcedOrder, showOnlyOutdated; @@ -386,7 +386,7 @@ module.exports = (_ => { } }; - return class PluginRepo extends Plugin { + return class PluginRepo extends Plugin { onLoad() { _this = this; @@ -952,5 +952,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/QuickMention/QuickMention.plugin.js b/Plugins/QuickMention/QuickMention.plugin.js index 7cbb694a9b..6649f27a83 100644 --- a/Plugins/QuickMention/QuickMention.plugin.js +++ b/Plugins/QuickMention/QuickMention.plugin.js @@ -1,7 +1,7 @@ //META{"name":"QuickMention","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/QuickMention","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/QuickMention/QuickMention.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "QuickMention", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds a mention entry to the message option toolbar." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,11 +33,11 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { - return class QuickMention extends Plugin { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { + return class QuickMention extends Plugin { onLoad() {} onStart() {} @@ -63,5 +63,5 @@ module.exports = (_ => { })); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js b/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js index 4d9fca28f7..3597e293c9 100644 --- a/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js +++ b/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ReadAllNotificationsButton","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ReadAllNotificationsButton","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ReadAllNotificationsButton/ReadAllNotificationsButton.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ReadAllNotificationsButton", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds a button to clear all notifications." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var blacklist, clearing; var settings = {}; - return class ReadAllNotificationsButton extends Plugin { + return class ReadAllNotificationsButton extends Plugin { onLoad() { this.defaults = { settings: { @@ -500,5 +500,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js b/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js index 548c950fe5..a7bbea9ec1 100644 --- a/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js +++ b/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js @@ -1,7 +1,7 @@ //META{"name":"RemoveBlockedMessages","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RemoveBlockedMessages","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/RemoveBlockedMessages/RemoveBlockedMessages.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "RemoveBlockedMessages", "author": "DevilBro", @@ -17,13 +17,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -41,13 +41,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var settings = {}; - return class RemoveBlockedMessages extends Plugin { + return class RemoveBlockedMessages extends Plugin { onLoad() { this.defaults = { settings: { @@ -178,5 +178,5 @@ module.exports = (_ => { if (settings.removeUsers && BDFDB.ArrayUtils.is(e.instance.props.users)) e.instance.props.users = [].concat(e.instance.props.users).filter(n => !n.user || !BDFDB.LibraryModules.FriendUtils.isBlocked(n.user.id)); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/RemoveNicknames/RemoveNicknames.plugin.js b/Plugins/RemoveNicknames/RemoveNicknames.plugin.js index d585248713..c690430d68 100644 --- a/Plugins/RemoveNicknames/RemoveNicknames.plugin.js +++ b/Plugins/RemoveNicknames/RemoveNicknames.plugin.js @@ -1,7 +1,7 @@ //META{"name":"RemoveNicknames","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RemoveNicknames","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/RemoveNicknames/RemoveNicknames.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "RemoveNicknames", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Replace all nicknames with the actual accountnames." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,13 +33,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var settings = {}; - return class RemoveNicknames extends Plugin { + return class RemoveNicknames extends Plugin { onLoad() { this.defaults = { settings: { @@ -181,5 +181,5 @@ module.exports = (_ => { return settings.addNickname ? (settings.swapPositions ? (member.nick + " (" + username + ")") : (username + " (" + member.nick + ")")) : username; } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/RevealAllSpoilersOption/RevealAllSpoilersOption.plugin.js b/Plugins/RevealAllSpoilersOption/RevealAllSpoilersOption.plugin.js index 97c6ec25b4..2a4709702f 100644 --- a/Plugins/RevealAllSpoilersOption/RevealAllSpoilersOption.plugin.js +++ b/Plugins/RevealAllSpoilersOption/RevealAllSpoilersOption.plugin.js @@ -1,7 +1,7 @@ //META{"name":"RevealAllSpoilersOption","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/RevealAllSpoilersOption","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/RevealAllSpoilersOption/RevealAllSpoilersOption.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "RevealAllSpoilersOption", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds an entry to the message contextmenu to reveal all spoilers within a messageblock." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,11 +33,11 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { - return class RevealAllSpoilersOption extends Plugin { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { + return class RevealAllSpoilersOption extends Plugin { onLoad() {} onStart() {} @@ -73,5 +73,5 @@ module.exports = (_ => { for (let spoiler of messageDiv.querySelectorAll(BDFDB.dotCN.spoilerhidden)) spoiler.click(); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/SendLargeMessages/SendLargeMessages.plugin.js b/Plugins/SendLargeMessages/SendLargeMessages.plugin.js index 1a56e3c83b..ad27d49cd2 100644 --- a/Plugins/SendLargeMessages/SendLargeMessages.plugin.js +++ b/Plugins/SendLargeMessages/SendLargeMessages.plugin.js @@ -1,7 +1,7 @@ //META{"name":"SendLargeMessages","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/SendLargeMessages","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/SendLargeMessages/SendLargeMessages.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "SendLargeMessages", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Splits messages into several smaller messages when your message exceeds the limit." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,13 +33,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { const messageDelay = 1000; //changing at own risk, might result in bans or mutes - return class SendLargeMessages extends Plugin { + return class SendLargeMessages extends Plugin { onLoad() { this.patchedModules = { before: { @@ -236,5 +236,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ServerCounter/ServerCounter.plugin.js b/Plugins/ServerCounter/ServerCounter.plugin.js index a35a487d98..75b616a4b6 100644 --- a/Plugins/ServerCounter/ServerCounter.plugin.js +++ b/Plugins/ServerCounter/ServerCounter.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ServerCounter","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerCounter","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ServerCounter/ServerCounter.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ServerCounter", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds a server counter to the server list." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,11 +33,11 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { - return class ServerCounter extends Plugin { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { + return class ServerCounter extends Plugin { onLoad() { this.patchedModules = { after: { @@ -65,5 +65,5 @@ module.exports = (_ => { })); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ServerDetails/ServerDetails.plugin.js b/Plugins/ServerDetails/ServerDetails.plugin.js index c259892094..2d6a28fb91 100644 --- a/Plugins/ServerDetails/ServerDetails.plugin.js +++ b/Plugins/ServerDetails/ServerDetails.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ServerDetails","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerDetails","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ServerDetails/ServerDetails.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ServerDetails", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Shows details of a server when you hover over the icon in the server list." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var _this, languages; var settings = {}, colors = {}, choices = {}, formats = {}, amounts = {}; @@ -132,7 +132,7 @@ module.exports = (_ => { } }; - return class ServerDetails extends Plugin { + return class ServerDetails extends Plugin { onLoad() { _this = this; @@ -618,5 +618,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ServerFolders/ServerFolders.plugin.js b/Plugins/ServerFolders/ServerFolders.plugin.js index 364afb3dcb..696321b86d 100644 --- a/Plugins/ServerFolders/ServerFolders.plugin.js +++ b/Plugins/ServerFolders/ServerFolders.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ServerFolders","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerFolders","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ServerFolders/ServerFolders.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ServerFolders", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Patches Discords native Folders in a way to open Servers within a Folder in a new bar to the right. Also adds a bunch of new features to more easily organize, customize and manage your Folders." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var _this; var folderStates, folderReads, guildStates; var folderConfigs = {}, customIcons = {}, settings = {}; @@ -349,7 +349,7 @@ module.exports = (_ => { } }; - return class ServerFolders extends Plugin { + return class ServerFolders extends Plugin { onLoad() { _this = this; @@ -1663,5 +1663,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ServerHider/ServerHider.plugin.js b/Plugins/ServerHider/ServerHider.plugin.js index 2ae4c54472..ed5a50b036 100644 --- a/Plugins/ServerHider/ServerHider.plugin.js +++ b/Plugins/ServerHider/ServerHider.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ServerHider","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerHider","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ServerHider/ServerHider.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ServerHider", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Hide Servers in your Serverlist." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,11 +33,11 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { - return class ServerHider extends Plugin { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { + return class ServerHider extends Plugin { onLoad() { this.patchedModules = { after: { @@ -432,5 +432,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js b/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js index 06cc1059e2..05cd142398 100644 --- a/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js +++ b/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ShowHiddenChannels","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ShowHiddenChannels","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ShowHiddenChannels/ShowHiddenChannels.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ShowHiddenChannels", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Displays channels that are hidden from you by role restrictions." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var blacklist = [], collapselist = [], hiddenCategory, overrideTypes = []; var hiddenChannelCache = {}; var settings = {}; @@ -124,7 +124,7 @@ module.exports = (_ => { } }; - return class ShowHiddenChannels extends Plugin { + return class ShowHiddenChannels extends Plugin { onLoad() { overrideTypes = Object.keys(BDFDB.DiscordConstants.PermissionOverrideType); @@ -677,5 +677,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/SpellCheck/SpellCheck.plugin.js b/Plugins/SpellCheck/SpellCheck.plugin.js index 8f80362f29..f7303bce61 100644 --- a/Plugins/SpellCheck/SpellCheck.plugin.js +++ b/Plugins/SpellCheck/SpellCheck.plugin.js @@ -1,7 +1,7 @@ //META{"name":"SpellCheck","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/SpellCheck","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/SpellCheck/SpellCheck.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "SpellCheck", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds a spellcheck to all textareas. Select a word and rightclick it to add it to your dictionary." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var languages, dictionaries, langDictionaries, languageToasts, checkTimeout, currentText; var settings = {}, choices = {}, amounts = {}; - return class SpellCheck extends Plugin { + return class SpellCheck extends Plugin { onLoad() { languages = {}; dictionaries = {}; @@ -569,5 +569,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); diff --git a/Plugins/SpotifyControls/SpotifyControls.plugin.js b/Plugins/SpotifyControls/SpotifyControls.plugin.js index 68a47998f8..9addb5872b 100644 --- a/Plugins/SpotifyControls/SpotifyControls.plugin.js +++ b/Plugins/SpotifyControls/SpotifyControls.plugin.js @@ -1,7 +1,7 @@ //META{"name":"SpotifyControls","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/SpotifyControls","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/SpotifyControls/SpotifyControls.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "SpotifyControls", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Adds a control panel to discord when listening to spotify." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var _this; var insertPatchCancel; var controls, starting, lastSong, currentVolume, lastVolume, stopTime, previousIsClicked, previousDoubleTimeout, timelineTimeout, timelineDragging, updateInterval; @@ -385,7 +385,7 @@ module.exports = (_ => { } }; - return class SpotifyControls extends Plugin { + return class SpotifyControls extends Plugin { onLoad() { _this = this; @@ -713,5 +713,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/SteamProfileLink/SteamProfileLink.plugin.js b/Plugins/SteamProfileLink/SteamProfileLink.plugin.js index dc01f36573..6483f5e4d8 100644 --- a/Plugins/SteamProfileLink/SteamProfileLink.plugin.js +++ b/Plugins/SteamProfileLink/SteamProfileLink.plugin.js @@ -1,7 +1,7 @@ //META{"name":"SteamProfileLink","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/SteamProfileLink","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/SteamProfileLink/SteamProfileLink.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "SteamProfileLink", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Opens any Steam links in Steam instead of your internet browser." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,17 +33,17 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var settings = {}; var urls = { steam: ["https://steamcommunity.", "https://help.steampowered.", "https://store.steampowered.", "a.akamaihd.net/"] }; - return class SteamProfileLink extends Plugin { + return class SteamProfileLink extends Plugin { onLoad() { this.defaults = { settings: { @@ -107,5 +107,5 @@ module.exports = (_ => { }); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ThemeRepo/ThemeRepo.plugin.js b/Plugins/ThemeRepo/ThemeRepo.plugin.js index 23bdd11286..a95841c9dc 100644 --- a/Plugins/ThemeRepo/ThemeRepo.plugin.js +++ b/Plugins/ThemeRepo/ThemeRepo.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ThemeRepo","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ThemeRepo","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ThemeRepo/ThemeRepo.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ThemeRepo", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Allows you to preview all themes from the theme repo and download them on the fly." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,10 +33,10 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var _this; var loading, cachedThemes, grabbedThemes, foundThemes, loadedThemes, generatorThemes, updateInterval; var list, header, preview, searchTimeout, updateGeneratorTimeout, forceRerenderGenerator, nativeCSS, nativeCSSvars, forcedSort, forcedOrder, showOnlyOutdated; @@ -673,7 +673,7 @@ module.exports = (_ => { }); } }; - return class ThemeRepo extends Plugin { + return class ThemeRepo extends Plugin { onLoad() { _this = this; @@ -1151,5 +1151,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/ThemeSettings/ThemeSettings.plugin.js b/Plugins/ThemeSettings/ThemeSettings.plugin.js index e0e79462aa..04f5d20a59 100644 --- a/Plugins/ThemeSettings/ThemeSettings.plugin.js +++ b/Plugins/ThemeSettings/ThemeSettings.plugin.js @@ -1,7 +1,7 @@ //META{"name":"ThemeSettings","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ThemeSettings","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/ThemeSettings/ThemeSettings.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "ThemeSettings", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Allows you to change Theme Variables within BetterDiscord. Adds a Settings button (similar to Plugins) to customizable Themes in your Themes Page." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,13 +33,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var dir; - return class ThemeSettings extends Plugin { + return class ThemeSettings extends Plugin { onLoad() { dir = BDFDB.BDUtils.getThemesFolder(); } @@ -191,5 +191,5 @@ module.exports = (_ => { wrapper.appendChild(BDFDB.PluginUtils.createSettingsPanel(Object.assign({}, theme, {noLibrary: true}), settingsItems)); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/TimedLightDarkMode/TimedLightDarkMode.plugin.js b/Plugins/TimedLightDarkMode/TimedLightDarkMode.plugin.js index faab623901..356f1cb32e 100644 --- a/Plugins/TimedLightDarkMode/TimedLightDarkMode.plugin.js +++ b/Plugins/TimedLightDarkMode/TimedLightDarkMode.plugin.js @@ -1,7 +1,7 @@ //META{"name":"TimedLightDarkMode","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/TimedLightDarkMode","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/TimedLightDarkMode/TimedLightDarkMode.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "TimedLightDarkMode", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Allows you to automatically change light/dark mode depending on the time of day. Slider is added to the 'Appearance' settings." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,14 +33,14 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var checkInterval, changeTimeout, disableChanging; var settings = {}, values = {}; - return class TimedLightDarkMode extends Plugin { + return class TimedLightDarkMode extends Plugin { onLoad() { this.defaults = { settings: { @@ -223,5 +223,5 @@ module.exports = (_ => { return [hours, minutes]; } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js b/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js index 427b02996f..aa40413b91 100644 --- a/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js +++ b/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js @@ -1,7 +1,7 @@ //META{"name":"TopRoleEverywhere","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/TopRoleEverywhere","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/TopRoleEverywhere/TopRoleEverywhere.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "TopRoleEverywhere", "author": "DevilBro", @@ -14,13 +14,13 @@ module.exports = (_ => { } } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -38,13 +38,13 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { var settings = {}; - return class TopRoleEverywhere extends Plugin { + return class TopRoleEverywhere extends Plugin { onLoad() { this.defaults = { settings: { @@ -232,5 +232,5 @@ module.exports = (_ => { }); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/UserNotes/UserNotes.plugin.js b/Plugins/UserNotes/UserNotes.plugin.js index b72eace08e..c3e820a844 100644 --- a/Plugins/UserNotes/UserNotes.plugin.js +++ b/Plugins/UserNotes/UserNotes.plugin.js @@ -1,7 +1,7 @@ //META{"name":"UserNotes","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/UserNotes","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/UserNotes/UserNotes.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "UserNotes", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Allows you to write your own user notes wihtout a character limit." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,11 +33,11 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { - return class UserNotes extends Plugin { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { + return class UserNotes extends Plugin { onLoad() { this.css = ` .${this.name}-modal textarea { @@ -112,5 +112,5 @@ module.exports = (_ => { }); } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Plugins/WriteUpperCase/WriteUpperCase.plugin.js b/Plugins/WriteUpperCase/WriteUpperCase.plugin.js index fe9e9a8705..5b56dd514e 100644 --- a/Plugins/WriteUpperCase/WriteUpperCase.plugin.js +++ b/Plugins/WriteUpperCase/WriteUpperCase.plugin.js @@ -1,7 +1,7 @@ //META{"name":"WriteUpperCase","authorId":"278543574059057154","invite":"Jx3TjNS","donate":"https://www.paypal.me/MircoWittrien","patreon":"https://www.patreon.com/MircoWittrien","website":"https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/WriteUpperCase","source":"https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/WriteUpperCase/WriteUpperCase.plugin.js"}*// module.exports = (_ => { - const config = { + const config = { "info": { "name": "WriteUpperCase", "author": "DevilBro", @@ -9,13 +9,13 @@ module.exports = (_ => { "description": "Changes first letter in message input to uppercase." } }; - return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { + return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { getName () {return config.info.name;} getAuthor () {return config.info.author;} getVersion () {return config.info.version;} getDescription () {return config.info.description;} - load() { + load() { if (!window.BDFDB_Global || !Array.isArray(window.BDFDB_Global.pluginQueue)) window.BDFDB_Global = Object.assign({}, window.BDFDB_Global, {pluginQueue:[]}); if (!window.BDFDB_Global.downloadModal) { window.BDFDB_Global.downloadModal = true; @@ -33,11 +33,11 @@ module.exports = (_ => { }); } if (!window.BDFDB_Global.pluginQueue.includes(config.info.name)) window.BDFDB_Global.pluginQueue.push(config.info.name); - } - start() {} - stop() {} - } : (([Plugin, BDFDB]) => { - return class WriteUpperCase extends Plugin { + } + start() {this.load();} + stop() {} + } : (([Plugin, BDFDB]) => { + return class WriteUpperCase extends Plugin { onLoad() { this.patchedModules = { before: { @@ -70,5 +70,5 @@ module.exports = (_ => { } } }; - })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); + })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); })(); \ No newline at end of file diff --git a/Themes/BasicBackground/BasicBackground.css b/Themes/BasicBackground/BasicBackground.css index a7372e4426..f5fdfe2e2c 100644 --- a/Themes/BasicBackground/BasicBackground.css +++ b/Themes/BasicBackground/BasicBackground.css @@ -6698,8 +6698,8 @@ img[src="/assets/e8b66317ab0dc9ba3bf8d41a4f3ec914.png"] { /* videosettings opus border: none; border-radius: 4px; box-shadow: rgba(var(--vtransparencycolor), 0.3) 0px 2px 5px 0px; - box-sizing: border-box; - padding: 6px 8px; + box-sizing: border-box; + padding: 6px 8px; margin-left: -9px; } .bd-select .bd-select-options:after, @@ -6725,18 +6725,18 @@ img[src="/assets/e8b66317ab0dc9ba3bf8d41a4f3ec914.png"] { /* videosettings opus background-attachment: fixed; } .bd-select .bd-select-option { /* bd select popout option */ - display: flex; - align-items: center; - min-height: 32px; - border-radius: 2px; - box-sizing: border-box; + display: flex; + align-items: center; + min-height: 32px; + border-radius: 2px; + box-sizing: border-box; color: var(--interactive-normal); - font-size: 14px; - font-weight: 500; - line-height: 18px; - margin-top: 2px; - margin-bottom: 2px; - padding: 0 8px; + font-size: 14px; + font-weight: 500; + line-height: 18px; + margin-top: 2px; + margin-bottom: 2px; + padding: 0 8px; } .bd-select .bd-select-option:hover { background-color: rgba(var(--vtransparencycolor), 0.2); @@ -6940,8 +6940,8 @@ body #ace_settingsmenu .ace_optionsMenuEntry button[ace_selected_button=true] { background-color: rgb(var(--vaccentcolor)); box-shadow: none; border: none; - color: rgb(var(--fontwhite1)); - text-shadow: 1px 1px var(--vtextshadow); + color: rgb(var(--fontwhite1)); + text-shadow: 1px 1px var(--vtextshadow); cursor: default; } body #ace_settingsmenu .ace_optionsMenuEntry input[type="text"], @@ -7414,9 +7414,9 @@ html .channelTabs-fav:active { html .channelTabs-tabName, html .channelTabs-favName { font-size: 16px; - line-height: 20px; - font-weight: 500; - white-space: nowrap; + line-height: 20px; + font-weight: 500; + white-space: nowrap; } html .channelTabs-closeTab, html .channelTabs-selected .channelTabs-closeTab { diff --git a/Themes/BlurpleRecolor/BlurpleRecolor.css b/Themes/BlurpleRecolor/BlurpleRecolor.css index 4c22d2b7f2..549ad72259 100644 --- a/Themes/BlurpleRecolor/BlurpleRecolor.css +++ b/Themes/BlurpleRecolor/BlurpleRecolor.css @@ -1596,8 +1596,8 @@ color: rgb(var(--vaccentcolor)); } .lookGhost-2Fn_0-.colorBrand-3pXr91:hover { - color: rgb(var(--vaccentcolor)); background-color: rgba(var(--vaccentcolor), 0.15); + color: rgb(var(--vaccentcolor)); } .lookGhost-2Fn_0-.colorBrand-3pXr91:active, #app-mount .lookGhost-2Fn_0-.hoverBrand-1_Fxlk.hasHover-3X1-zV:active { @@ -1612,8 +1612,8 @@ } .lookLink-9FtZy-.colorBrand-3pXr91:hover .contents-18-Yxp, #app-mount .lookLink-9FtZy-.hoverBrand-1_Fxlk.hasHover-3X1-zV:hover .contents-18-Yxp { - color: rgb(var(--vaccentcolor)); background-image: linear-gradient(0deg, transparent, transparent 1px, rgb(var(--vaccentcolor)) 0, rgb(var(--vaccentcolor)) 2px, transparent 0); + color: rgb(var(--vaccentcolor)); } /* ---- 12.3. INPUTS ---- */ diff --git a/Themes/EmojiReplace/EmojiReplace.theme.css b/Themes/EmojiReplace/EmojiReplace.theme.css index af78cf4d62..2e582b4434 100644 --- a/Themes/EmojiReplace/EmojiReplace.theme.css +++ b/Themes/EmojiReplace/EmojiReplace.theme.css @@ -19,8 +19,8 @@ → WhatsApp */ -/* REPLACE THIS */ -/* ↓↓↓↓↓ */ +/* REPLACE THIS */ +/* ↓↓↓↓↓ */ @import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/EmojiReplace/base/Apple.css); -/* ↑↑↑↑↑ */ -/* REPLACE THIS */ \ No newline at end of file +/* ↑↑↑↑↑ */ +/* REPLACE THIS */ \ No newline at end of file diff --git a/Themes/FullThemeDark/FullThemeDark.css b/Themes/FullThemeDark/FullThemeDark.css index 5d70578c6e..d5ebec19ed 100644 --- a/Themes/FullThemeDark/FullThemeDark.css +++ b/Themes/FullThemeDark/FullThemeDark.css @@ -190,15 +190,15 @@ html { #app-mount .bd-addon-list .bd-addon-card.settings-open::-webkit-scrollbar-thumb, #app-mount .bda-description.scroller::-webkit-scrollbar-thumb { background-clip: padding-box; - background-color: var(--scrollbar-thin-thumb); - border: 2px solid transparent; - border-radius: 4px; - min-height: 40px; + background-color: var(--scrollbar-thin-thumb); + border: 2px solid transparent; + border-radius: 4px; + min-height: 40px; } #app-mount .bd-addon-list .bd-addon-card.settings-open::-webkit-scrollbar-track, #app-mount .bda-description.scroller::-webkit-scrollbar-track { - background-color: var(--scrollbar-thin-track); - border: 2px solid var(--scrollbar-thin-track); + background-color: var(--scrollbar-thin-track); + border: 2px solid var(--scrollbar-thin-track); } body .ace_editor { diff --git a/Themes/ServerColumns/ServerColumns.css b/Themes/ServerColumns/ServerColumns.css index 181e52ae1e..9aec691372 100644 --- a/Themes/ServerColumns/ServerColumns.css +++ b/Themes/ServerColumns/ServerColumns.css @@ -164,7 +164,7 @@ body.foldercontentopened .titleBar-AC4pGV.typeMacOS-3EmCyP .macButtons-2MuSAC { .wrapper-1Rf91z #bd-pub-li #bd-pub-button, .wrapper-1Rf91z .frame-oXWS21 .innerFrame-8Hg64E, .wrapper-1Rf91z .frame-oXWS21 .button-Jt-tIg { - white-space: pre !important; + white-space: pre !important; font-size: calc(1px * ((var(--vguildsize)/8) + 5)) !important; line-height: calc(1px * ((var(--vguildsize)/5) + 10)) !important; } @@ -207,7 +207,7 @@ body.foldercontentopened .titleBar-AC4pGV.typeMacOS-3EmCyP .macButtons-2MuSAC { html .typingindicator-guild, html .typingindicator-dms, html .typingindicator-folder { - right: 3px !important; - top: calc(var(--vguildsize) * 1px - 5px) !important; - bottom: unset !important; + right: 3px !important; + top: calc(var(--vguildsize) * 1px - 5px) !important; + bottom: unset !important; } \ No newline at end of file diff --git a/Themes/_res/BetterDocsBlock.css b/Themes/_res/BetterDocsBlock.css index adf4d2b0f2..663be57bda 100644 --- a/Themes/_res/BetterDocsBlock.css +++ b/Themes/_res/BetterDocsBlock.css @@ -105,9 +105,9 @@ body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="://betterdocs." i]::befor min-width: unset !important; overflow: hidden !important; position: absolute !important; - right: 0 !important; + right: 0 !important; text-align: justify !important; - top: 0 !important; + top: 0 !important; white-space: pre-wrap !important; width: unset !important; z-index: 2 !important; @@ -190,47 +190,47 @@ body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="www.betterdiscord.net" i] body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="://betterdiscord.net" i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="www.betterdiscordlibrary.com" i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="://betterdiscordlibrary.com" i]::after { - background-repeat: no-repeat !important; - border-radius: 0 5px !important; - color: #FFF !important; - font-size: 12px !important; - font-weight: 400 !important; - line-height: 1.3 !important; - padding: 1px 4px 1px 18px !important; - pointer-events: none !important; - position: absolute !important; - right: 0 !important; - top: 0 !important; + background-repeat: no-repeat !important; + border-radius: 0 5px !important; + color: #FFF !important; + font-size: 12px !important; + font-weight: 400 !important; + line-height: 1.3 !important; + padding: 1px 4px 1px 18px !important; + pointer-events: none !important; + position: absolute !important; + right: 0 !important; + top: 0 !important; z-index: 3 !important; } body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="www.betterdiscord.net" i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="://betterdiscord.net" i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="www.betterdiscordlibrary.com" i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="://betterdiscordlibrary.com" i]::after { - background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxOTIgMTkyIiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4Ij48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2UtbGluZWNhcD0iYnV0dCIgc3Ryb2tlLWxpbmVqb2luPSJtaXRlciIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtZGFzaGFycmF5PSIiIHN0cm9rZS1kYXNob2Zmc2V0PSIwIiBmb250LWZhbWlseT0ibm9uZSIgZm9udC13ZWlnaHQ9Im5vbmUiIGZvbnQtc2l6ZT0ibm9uZSIgdGV4dC1hbmNob3I9Im5vbmUiIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTogbm9ybWFsIj48cGF0aCBkPSJNMCwxOTJ2LTE5MmgxOTJ2MTkyeiIgZmlsbD0ibm9uZSIvPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik05NiwxNmMtNDQuMTEyLDAgLTgwLDM1Ljg4OCAtODAsODBjMCw0NC4xMTIgMzUuODg4LDgwIDgwLDgwYzQ0LjExMiwwIDgwLC0zNS44ODggODAsLTgwYzAsLTkuMDA4IC0xLjU2ODEzLC0xNy42NDYzOCAtNC4zMjgxMywtMjUuNzM0MzhsLTEyLjk1MzEyLDEyLjk1MzEzYzAuODQsNC4xMjggMS4yODEyNSw4LjQwNTI1IDEuMjgxMjUsMTIuNzgxMjVjMCwzNS4yODggLTI4LjcxMiw2NCAtNjQsNjRjLTM1LjI4OCwwIC02NCwtMjguNzEyIC02NCwtNjRjMCwtMzUuMjg4IDI4LjcxMiwtNjQgNjQsLTY0YzEzLjA2NCwwIDI1LjIxNTM4LDMuOTUxMTIgMzUuMzU5MzgsMTAuNzAzMTJsMTEuNDUzMTIsLTExLjQ1MzEyYy0xMy4xODQsLTkuNTUyIC0yOS4zMzI1LC0xNS4yNSAtNDYuODEyNSwtMTUuMjV6TTE3MC4zNDM3NSwyNi4zNDM3NWwtODIuMzQzNzUsODIuMzQzNzVsLTI2LjM0Mzc1LC0yNi4zNDM3NWwtMTEuMzEyNSwxMS4zMTI1bDM3LjY1NjI1LDM3LjY1NjI1bDkzLjY1NjI1LC05My42NTYyNXoiLz48L2c+PC9nPjwvc3ZnPg==') !important; - background-position: 2px !important; - background-size: 15% !important; + background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxOTIgMTkyIiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4Ij48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2UtbGluZWNhcD0iYnV0dCIgc3Ryb2tlLWxpbmVqb2luPSJtaXRlciIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtZGFzaGFycmF5PSIiIHN0cm9rZS1kYXNob2Zmc2V0PSIwIiBmb250LWZhbWlseT0ibm9uZSIgZm9udC13ZWlnaHQ9Im5vbmUiIGZvbnQtc2l6ZT0ibm9uZSIgdGV4dC1hbmNob3I9Im5vbmUiIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTogbm9ybWFsIj48cGF0aCBkPSJNMCwxOTJ2LTE5MmgxOTJ2MTkyeiIgZmlsbD0ibm9uZSIvPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik05NiwxNmMtNDQuMTEyLDAgLTgwLDM1Ljg4OCAtODAsODBjMCw0NC4xMTIgMzUuODg4LDgwIDgwLDgwYzQ0LjExMiwwIDgwLC0zNS44ODggODAsLTgwYzAsLTkuMDA4IC0xLjU2ODEzLC0xNy42NDYzOCAtNC4zMjgxMywtMjUuNzM0MzhsLTEyLjk1MzEyLDEyLjk1MzEzYzAuODQsNC4xMjggMS4yODEyNSw4LjQwNTI1IDEuMjgxMjUsMTIuNzgxMjVjMCwzNS4yODggLTI4LjcxMiw2NCAtNjQsNjRjLTM1LjI4OCwwIC02NCwtMjguNzEyIC02NCwtNjRjMCwtMzUuMjg4IDI4LjcxMiwtNjQgNjQsLTY0YzEzLjA2NCwwIDI1LjIxNTM4LDMuOTUxMTIgMzUuMzU5MzgsMTAuNzAzMTJsMTEuNDUzMTIsLTExLjQ1MzEyYy0xMy4xODQsLTkuNTUyIC0yOS4zMzI1LC0xNS4yNSAtNDYuODEyNSwtMTUuMjV6TTE3MC4zNDM3NSwyNi4zNDM3NWwtODIuMzQzNzUsODIuMzQzNzVsLTI2LjM0Mzc1LC0yNi4zNDM3NWwtMTEuMzEyNSwxMS4zMTI1bDM3LjY1NjI1LDM3LjY1NjI1bDkzLjY1NjI1LC05My42NTYyNXoiLz48L2c+PC9nPjwvc3ZnPg==') !important; + background-position: 2px !important; + background-size: 15% !important; } body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="www.betterdiscord.net" i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="://betterdiscord.net" i]::after { - content: "Official Source" !important; - background-color: #43B581 !important; + content: "Official Source" !important; + background-color: #43B581 !important; } body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="www.betterdiscordlibrary.com" i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="://betterdiscordlibrary.com" i]::after { - content: "Trusted Source" !important; - background-color: #FAA61A !important; + content: "Trusted Source" !important; + background-color: #FAA61A !important; } body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="www.discordsource." i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="://discordsource." i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="www.betterdocs." i]::after, body #app-mount .embed-IeVjo6 .embedLink-1G1K1D[href*="://betterdocs." i]::after { - content: "Unsafe Source" !important; - background-color: #F04747 !important; - background-image: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik01MDUuNDAzLDQwNi4zOTRMMjk1LjM4OSw1OC4xMDJjLTguMjc0LTEzLjcyMS0yMy4zNjctMjIuMjQ1LTM5LjM5LTIyLjI0NWMtMTYuMDIzLDAtMzEuMTE2LDguNTI0LTM5LjM5MSwyMi4yNDZMNi41OTUsNDA2LjM5NGMtOC41NTEsMTQuMTgyLTguODA0LDMxLjk1LTAuNjYxLDQ2LjM3YzguMTQ1LDE0LjQyLDIzLjQ5MSwyMy4zNzgsNDAuMDUxLDIzLjM3OGg0MjAuMDI4YzE2LjU2LDAsMzEuOTA3LTguOTU4LDQwLjA1Mi0yMy4zNzlDNTE0LjIwOCw0MzguMzQyLDUxMy45NTUsNDIwLjU3NCw1MDUuNDAzLDQwNi4zOTR6IE00NzcuMDM5LDQzNi4zNzJjLTIuMjQyLDMuOTY5LTYuNDY3LDYuNDM2LTExLjAyNiw2LjQzNkg0NS45ODVjLTQuNTU5LDAtOC43ODQtMi40NjYtMTEuMDI1LTYuNDM1Yy0yLjI0Mi0zLjk3LTIuMTcyLTguODYyLDAuMTgxLTEyLjc2NUwyNDUuMTU2LDc1LjMxNmMyLjI3OC0zLjc3Nyw2LjQzMy02LjEyNCwxMC44NDQtNi4xMjRjNC40MSwwLDguNTY1LDIuMzQ3LDEwLjg0Myw2LjEyNGwyMTAuMDEzLDM0OC4yOTJDNDc5LjIxMSw0MjcuNTEyLDQ3OS4yODEsNDMyLjQwMyw0NzcuMDM5LDQzNi4zNzJ6Ij48L3BhdGg+PHBhdGggZD0iTTI1Ni4xNTQsMTczLjAwNWMtMTIuNjgsMC0yMi41NzYsNi44MDQtMjIuNTc2LDE4Ljg2NmMwLDM2LjgwMiw0LjMyOSw4OS42ODYsNC4zMjksMTI2LjQ4OWMwLjAwMSw5LjU4Nyw4LjM1MiwxMy42MDcsMTguMjQ4LDEzLjYwN2M3LjQyMiwwLDE3LjkzNy00LjAyLDE3LjkzNy0xMy42MDdjMC0zNi44MDIsNC4zMjktODkuNjg2LDQuMzI5LTEyNi40ODlDMjc4LjQyMSwxNzkuODEsMjY4LjIxNiwxNzMuMDA1LDI1Ni4xNTQsMTczLjAwNXoiPjwvcGF0aD48cGF0aCBkPSJNMjU2LjQ2NSwzNTMuMzA2Yy0xMy42MDcsMC0yMy44MTQsMTAuODI0LTIzLjgxNCwyMy44MTRjMCwxMi42OCwxMC4yMDYsMjMuODE0LDIzLjgxNCwyMy44MTRjMTIuNjgsMCwyMy41MDUtMTEuMTM0LDIzLjUwNS0yMy44MTRDMjc5Ljk3LDM2NC4xMywyNjkuMTQ0LDM1My4zMDYsMjU2LjQ2NSwzNTMuMzA2eiI+PC9wYXRoPjwvc3ZnPg==') !important; - background-position: 3px !important; - background-size: 14% !important; + content: "Unsafe Source" !important; + background-color: #F04747 !important; + background-image: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik01MDUuNDAzLDQwNi4zOTRMMjk1LjM4OSw1OC4xMDJjLTguMjc0LTEzLjcyMS0yMy4zNjctMjIuMjQ1LTM5LjM5LTIyLjI0NWMtMTYuMDIzLDAtMzEuMTE2LDguNTI0LTM5LjM5MSwyMi4yNDZMNi41OTUsNDA2LjM5NGMtOC41NTEsMTQuMTgyLTguODA0LDMxLjk1LTAuNjYxLDQ2LjM3YzguMTQ1LDE0LjQyLDIzLjQ5MSwyMy4zNzgsNDAuMDUxLDIzLjM3OGg0MjAuMDI4YzE2LjU2LDAsMzEuOTA3LTguOTU4LDQwLjA1Mi0yMy4zNzlDNTE0LjIwOCw0MzguMzQyLDUxMy45NTUsNDIwLjU3NCw1MDUuNDAzLDQwNi4zOTR6IE00NzcuMDM5LDQzNi4zNzJjLTIuMjQyLDMuOTY5LTYuNDY3LDYuNDM2LTExLjAyNiw2LjQzNkg0NS45ODVjLTQuNTU5LDAtOC43ODQtMi40NjYtMTEuMDI1LTYuNDM1Yy0yLjI0Mi0zLjk3LTIuMTcyLTguODYyLDAuMTgxLTEyLjc2NUwyNDUuMTU2LDc1LjMxNmMyLjI3OC0zLjc3Nyw2LjQzMy02LjEyNCwxMC44NDQtNi4xMjRjNC40MSwwLDguNTY1LDIuMzQ3LDEwLjg0Myw2LjEyNGwyMTAuMDEzLDM0OC4yOTJDNDc5LjIxMSw0MjcuNTEyLDQ3OS4yODEsNDMyLjQwMyw0NzcuMDM5LDQzNi4zNzJ6Ij48L3BhdGg+PHBhdGggZD0iTTI1Ni4xNTQsMTczLjAwNWMtMTIuNjgsMC0yMi41NzYsNi44MDQtMjIuNTc2LDE4Ljg2NmMwLDM2LjgwMiw0LjMyOSw4OS42ODYsNC4zMjksMTI2LjQ4OWMwLjAwMSw5LjU4Nyw4LjM1MiwxMy42MDcsMTguMjQ4LDEzLjYwN2M3LjQyMiwwLDE3LjkzNy00LjAyLDE3LjkzNy0xMy42MDdjMC0zNi44MDIsNC4zMjktODkuNjg2LDQuMzI5LTEyNi40ODlDMjc4LjQyMSwxNzkuODEsMjY4LjIxNiwxNzMuMDA1LDI1Ni4xNTQsMTczLjAwNXoiPjwvcGF0aD48cGF0aCBkPSJNMjU2LjQ2NSwzNTMuMzA2Yy0xMy42MDcsMC0yMy44MTQsMTAuODI0LTIzLjgxNCwyMy44MTRjMCwxMi42OCwxMC4yMDYsMjMuODE0LDIzLjgxNCwyMy44MTRjMTIuNjgsMCwyMy41MDUtMTEuMTM0LDIzLjUwNS0yMy44MTRDMjc5Ljk3LDM2NC4xMywyNjkuMTQ0LDM1My4zMDYsMjU2LjQ2NSwzNTMuMzA2eiI+PC9wYXRoPjwvc3ZnPg==') !important; + background-position: 3px !important; + background-size: 14% !important; } .publicServersOpen ~ #pubslayerroot:empty:before {