Changes
This commit is contained in:
parent
1fa28a385a
commit
69137bc232
|
@ -37,7 +37,7 @@ class EditChannels {
|
|||
</div>`;
|
||||
|
||||
this.channelSettingsModalMarkup =
|
||||
`<span class="editchannels-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
|
|
@ -29,7 +29,7 @@ class EditServers {
|
|||
</div>`;
|
||||
|
||||
this.serverSettingsModalMarkup =
|
||||
`<span class="editservers-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
|
|
@ -56,7 +56,7 @@ class EditUsers {
|
|||
</div>`;
|
||||
|
||||
this.userSettingsModalMarkup =
|
||||
`<span class="editusers-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
|
|
@ -5,17 +5,17 @@ class EmojiStatistics {
|
|||
this.labels = {};
|
||||
|
||||
this.css = `
|
||||
.emojistatistics-modal .titles {
|
||||
.${this.getName()}-modal .titles {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .emojiserver-entry {
|
||||
.${this.getName()}-modal .emojiserver-entry {
|
||||
height: 50px;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojiserver-icon {
|
||||
.${this.getName()}-modal .emojiserver-entry .modal-emojiserver-icon {
|
||||
background-color: #484B51;
|
||||
background-size: cover;
|
||||
border-radius: 25px;
|
||||
|
@ -31,8 +31,8 @@ class EmojiStatistics {
|
|||
width: 50px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry label,
|
||||
.emojistatistics-modal .emojiserver-entry label {
|
||||
.${this.getName()}-modal .titles-entry label,
|
||||
.${this.getName()}-modal .emojiserver-entry label {
|
||||
color: #b9bbbe;
|
||||
display: inline-block;
|
||||
flex: 1;
|
||||
|
@ -46,37 +46,37 @@ class EmojiStatistics {
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .emojiserver-entry label {
|
||||
.${this.getName()}-modal .emojiserver-entry label {
|
||||
height: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry label {
|
||||
.${this.getName()}-modal .titles-entry label {
|
||||
margin-top: 0px;
|
||||
}
|
||||
.emojistatistics-modal .titles-entry .modal-titlesicon-label {
|
||||
.${this.getName()}-modal .titles-entry .modal-titlesicon-label {
|
||||
margin-left: 0px;
|
||||
text-align: center;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry .modal-titlesname-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojiname-label {
|
||||
.${this.getName()}-modal .titles-entry .modal-titlesname-label,
|
||||
.${this.getName()}-modal .emojiserver-entry .modal-emojiname-label {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry .modal-sorttitle-label {
|
||||
.${this.getName()}-modal .titles-entry .modal-sorttitle-label {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry .modal-titlestotal-label,
|
||||
.emojistatistics-modal .titles-entry .modal-titlesglobal-label,
|
||||
.emojistatistics-modal .titles-entry .modal-titleslocal-label,
|
||||
.emojistatistics-modal .titles-entry .modal-titlescopies-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojitotal-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojiglobal-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojilocal-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojicopies-label {
|
||||
.${this.getName()}-modal .titles-entry .modal-titlestotal-label,
|
||||
.${this.getName()}-modal .titles-entry .modal-titlesglobal-label,
|
||||
.${this.getName()}-modal .titles-entry .modal-titleslocal-label,
|
||||
.${this.getName()}-modal .titles-entry .modal-titlescopies-label,
|
||||
.${this.getName()}-modal .emojiserver-entry .modal-emojitotal-label,
|
||||
.${this.getName()}-modal .emojiserver-entry .modal-emojiglobal-label,
|
||||
.${this.getName()}-modal .emojiserver-entry .modal-emojilocal-label,
|
||||
.${this.getName()}-modal .emojiserver-entry .modal-emojicopies-label {
|
||||
text-align: center;
|
||||
width: 82px;
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ class EmojiStatistics {
|
|||
}`;
|
||||
|
||||
this.emojiInformationModalMarkup =
|
||||
`<span class="emojistatistics-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -343,7 +343,7 @@ class EmojiStatistics {
|
|||
}
|
||||
|
||||
var titleentry = $(this.emojiserverTitlesMarkup)
|
||||
.appendTo(".emojistatistics-modal .titles")
|
||||
.appendTo("." + this.getName() + "-modal .titles")
|
||||
.on("click", ".modal-sorttitle-label ", (e2) => {
|
||||
var oldTitle = e2.target.innerText;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ class FriendNotifications {
|
|||
this.timeLog = [];
|
||||
|
||||
this.timeLogModalMarkup =
|
||||
`<span class="FriendNotifications-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -50,10 +50,10 @@ class FriendNotifications {
|
|||
${BDFDB.dotCN.guilds} > ${BDFDB.dotCN.friendsonline} {
|
||||
cursor: pointer;
|
||||
}
|
||||
.FriendNotifications-modal .log-time {
|
||||
.${this.getName()}-modal .log-time {
|
||||
width: 110px;
|
||||
}
|
||||
.FriendNotifications-modal .log-avatar {
|
||||
.${this.getName()}-modal .log-avatar {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
background-size: cover;
|
||||
|
|
|
@ -74,7 +74,7 @@ class PluginRepo {
|
|||
</li>`;
|
||||
|
||||
this.pluginRepoModalMarkup =
|
||||
`<span class="pluginrepo-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -190,39 +190,39 @@ class PluginRepo {
|
|||
50% {opacity: 0.9;}
|
||||
to {opacity: 0.1;}
|
||||
}
|
||||
.pluginrepo-modal ${BDFDB.dotCN.modalinner} {
|
||||
.${this.getName()}-modal ${BDFDB.dotCN.modalinner} {
|
||||
min-height: 100%;
|
||||
min-width: 800px;
|
||||
width: 50%;
|
||||
}
|
||||
.pluginrepo-modal .pluginEntry,
|
||||
.pluginrepo-modal .pluginEntry .bda-header {
|
||||
.${this.getName()}-modal .pluginEntry,
|
||||
.${this.getName()}-modal .pluginEntry .bda-header {
|
||||
overflow: visible !important;
|
||||
}
|
||||
.pluginrepo-modal .pluginEntry .gitIcon,
|
||||
.pluginrepo-modal .pluginEntry ${BDFDB.dotCN.giffavoritebutton},
|
||||
.pluginrepo-modal .pluginEntry .trashIcon {
|
||||
.${this.getName()}-modal .pluginEntry .gitIcon,
|
||||
.${this.getName()}-modal .pluginEntry ${BDFDB.dotCN.giffavoritebutton},
|
||||
.${this.getName()}-modal .pluginEntry .trashIcon {
|
||||
position: relative !important;
|
||||
transform: none !important;
|
||||
opacity: 1 !important;
|
||||
margin-right: 5px !important;
|
||||
cursor: pointer !important;
|
||||
}
|
||||
.pluginrepo-modal .pluginEntry .gitIcon,
|
||||
.pluginrepo-modal .pluginEntry ${BDFDB.dotCN.giffavoritebutton}:not(${BDFDB.dotCN.giffavoriteselected}),
|
||||
.pluginrepo-modal .pluginEntry .trashIcon {
|
||||
.${this.getName()}-modal .pluginEntry .gitIcon,
|
||||
.${this.getName()}-modal .pluginEntry ${BDFDB.dotCN.giffavoritebutton}:not(${BDFDB.dotCN.giffavoriteselected}),
|
||||
.${this.getName()}-modal .pluginEntry .trashIcon {
|
||||
color: #4f545c !important;
|
||||
}
|
||||
${BDFDB.dotCN.themedark} .pluginrepo-modal .pluginEntry .gitIcon,
|
||||
${BDFDB.dotCN.themedark} .pluginrepo-modal .pluginEntry ${BDFDB.dotCN.giffavoritebutton}:not(${BDFDB.dotCN.giffavoriteselected}),
|
||||
${BDFDB.dotCN.themedark} .pluginrepo-modal .pluginEntry .trashIcon {
|
||||
${BDFDB.dotCN.themedark} .${this.getName()}-modal .pluginEntry .gitIcon,
|
||||
${BDFDB.dotCN.themedark} .${this.getName()}-modal .pluginEntry ${BDFDB.dotCN.giffavoritebutton}:not(${BDFDB.dotCN.giffavoriteselected}),
|
||||
${BDFDB.dotCN.themedark} .${this.getName()}-modal .pluginEntry .trashIcon {
|
||||
color: #fff !important;
|
||||
}
|
||||
.pluginrepo-modal .pluginEntry .trashIcon,
|
||||
.pluginrepo-modal .pluginEntry ${BDFDB.dotCN.giffavoritebutton} {
|
||||
.${this.getName()}-modal .pluginEntry .trashIcon,
|
||||
.${this.getName()}-modal .pluginEntry ${BDFDB.dotCN.giffavoritebutton} {
|
||||
margin-left: auto !important;
|
||||
}
|
||||
.pluginrepo-modal .pluginEntry.downloadable .trashIcon {
|
||||
.${this.getName()}-modal .pluginEntry.downloadable .trashIcon {
|
||||
opacity: 0 !important;
|
||||
pointer-events: none !important;
|
||||
}`;
|
||||
|
|
|
@ -11,24 +11,24 @@ class SendLargeMessages {
|
|||
this.messageDelay = 1000; //changing at own risk, might result in bans or mutes
|
||||
|
||||
this.css = `
|
||||
.sendlargemessages-modal textarea {
|
||||
.${this.getName()}-modal textarea {
|
||||
rows: 0;
|
||||
cols: 0;
|
||||
height: 100vw;
|
||||
resize: none;
|
||||
}
|
||||
.sendlargemessages-modal #warning-message {
|
||||
.${this.getName()}-modal #warning-message {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.sendlargemessages-modal #character-counter {
|
||||
.${this.getName()}-modal #character-counter {
|
||||
float: right;
|
||||
color: white;
|
||||
opacity: .5;
|
||||
}`;
|
||||
|
||||
this.sendMessageModalMarkup =
|
||||
`<span class="sendlargemessages-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,13 +5,13 @@ class ServerHider {
|
|||
this.labels = {};
|
||||
|
||||
this.css = `
|
||||
.serverhider-modal .entry ${BDFDB.dotCN.guild} {
|
||||
.${this.getName()}-modal .entry ${BDFDB.dotCN.guild} {
|
||||
height: 50px;
|
||||
position: relative;
|
||||
width: 50px;
|
||||
z-index: 1;
|
||||
}
|
||||
.serverhider-modal .entry ${BDFDB.dotCN.guildinner} {
|
||||
.${this.getName()}-modal .entry ${BDFDB.dotCN.guildinner} {
|
||||
background: #2f3136;
|
||||
border-radius: 25px !important;
|
||||
cursor: pointer;
|
||||
|
@ -20,7 +20,7 @@ class ServerHider {
|
|||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
.serverhider-modal .entry ${BDFDB.dotCNS.guild + BDFDB.dotCN.avatarsmallold} {
|
||||
.${this.getName()}-modal .entry ${BDFDB.dotCNS.guild + BDFDB.dotCN.avatarsmallold} {
|
||||
background-repeat: no-repeat;
|
||||
background-size: 50px 50px;
|
||||
border-radius: 0;
|
||||
|
@ -31,7 +31,7 @@ class ServerHider {
|
|||
height: 50px;
|
||||
width: 50px;
|
||||
}
|
||||
.serverhider-modal .entry ${BDFDB.dotCNS.guild + BDFDB.dotCN.badge} {
|
||||
.${this.getName()}-modal .entry ${BDFDB.dotCNS.guild + BDFDB.dotCN.badge} {
|
||||
background-clip: padding-box;
|
||||
background-color: #f04747;
|
||||
border-radius: 3px;
|
||||
|
@ -48,13 +48,13 @@ class ServerHider {
|
|||
right: -2px;
|
||||
text-shadow: 0 1px 0 rgba(0,0,0,.25);
|
||||
}
|
||||
.serverhider-modal .folderhideCheckboxWrapper {
|
||||
.${this.getName()}-modal .folderhideCheckboxWrapper {
|
||||
right: 8px;
|
||||
}`;
|
||||
|
||||
|
||||
this.serverHiderModalMarkup =
|
||||
`<span class="serverhider-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -257,7 +257,7 @@ class ServerHider {
|
|||
}
|
||||
|
||||
onContextMenu (context) {
|
||||
if (document.querySelector(".serverhider-modal") || !context || !context.tagName || !context.parentElement || context.querySelector(".serverhider-item")) return;
|
||||
if (document.querySelector("." + this.getName() + "-modal") || !context || !context.tagName || !context.parentElement || context.querySelector(".serverhider-item")) return;
|
||||
var info = BDFDB.getKeyInformation({"node":context, "key":"guild"});
|
||||
var valid = false;
|
||||
if (info && BDFDB.getKeyInformation({"node":context, "key":"displayName", "value":"GuildLeaveGroup"})) {
|
||||
|
|
|
@ -9,7 +9,7 @@ class StalkerNotifications {
|
|||
this.timeLog = [];
|
||||
|
||||
this.timeLogModalMarkup =
|
||||
`<span class="stalkernotifications-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -49,10 +49,10 @@ class StalkerNotifications {
|
|||
this.dividerMarkup = `<div class="${BDFDB.disCN.modaldivider}"></div>`;
|
||||
|
||||
this.css = `
|
||||
.stalkernotifications-modal .log-time {
|
||||
.${this.getName()}-modal .log-time {
|
||||
width: 110px;
|
||||
}
|
||||
.stalkernotifications-modal .log-avatar {
|
||||
.${this.getName()}-modal .log-avatar {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
background-size: cover;
|
||||
|
|
|
@ -82,7 +82,7 @@ class ThemeRepo {
|
|||
</li>`;
|
||||
|
||||
this.themeRepoModalMarkup =
|
||||
`<span class="themerepo-modal DevilBro-modal">
|
||||
`<span class="${this.getName()}-modal DevilBro-modal">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -236,39 +236,39 @@ class ThemeRepo {
|
|||
opacity: 0 !important;
|
||||
visibility: hidden !important;
|
||||
}
|
||||
.themerepo-modal ${BDFDB.dotCN.modalinner} {
|
||||
.${this.getName()}-modal ${BDFDB.dotCN.modalinner} {
|
||||
min-height: 100%;
|
||||
min-width: 800px;
|
||||
width: 50%;
|
||||
}
|
||||
.themerepo-modal .themeEntry,
|
||||
.themerepo-modal .themeEntry .bda-header {
|
||||
.${this.getName()}-modal .themeEntry,
|
||||
.${this.getName()}-modal .themeEntry .bda-header {
|
||||
overflow: visible !important;
|
||||
}
|
||||
.themerepo-modal .themeEntry .gitIcon,
|
||||
.themerepo-modal .themeEntry ${BDFDB.dotCN.giffavoritebutton},
|
||||
.themerepo-modal .themeEntry .trashIcon {
|
||||
.${this.getName()}-modal .themeEntry .gitIcon,
|
||||
.${this.getName()}-modal .themeEntry ${BDFDB.dotCN.giffavoritebutton},
|
||||
.${this.getName()}-modal .themeEntry .trashIcon {
|
||||
position: relative !important;
|
||||
transform: none !important;
|
||||
opacity: 1 !important;
|
||||
margin-right: 5px !important;
|
||||
cursor: pointer !important;
|
||||
}
|
||||
.themerepo-modal .themeEntry .gitIcon,
|
||||
.themerepo-modal .themeEntry ${BDFDB.dotCN.giffavoritebutton}:not(${BDFDB.dotCN.giffavoriteselected}),
|
||||
.themerepo-modal .themeEntry .trashIcon {
|
||||
.${this.getName()}-modal .themeEntry .gitIcon,
|
||||
.${this.getName()}-modal .themeEntry ${BDFDB.dotCN.giffavoritebutton}:not(${BDFDB.dotCN.giffavoriteselected}),
|
||||
.${this.getName()}-modal .themeEntry .trashIcon {
|
||||
color: #4f545c !important;
|
||||
}
|
||||
${BDFDB.dotCN.themedark} .themerepo-modal .themeEntry .gitIcon,
|
||||
${BDFDB.dotCN.themedark} .themerepo-modal .themeEntry ${BDFDB.dotCN.giffavoritebutton}:not(${BDFDB.dotCN.giffavoriteselected}),
|
||||
${BDFDB.dotCN.themedark} .themerepo-modal .themeEntry .trashIcon {
|
||||
${BDFDB.dotCN.themedark} .${this.getName()}-modal .themeEntry .gitIcon,
|
||||
${BDFDB.dotCN.themedark} .${this.getName()}-modal .themeEntry ${BDFDB.dotCN.giffavoritebutton}:not(${BDFDB.dotCN.giffavoriteselected}),
|
||||
${BDFDB.dotCN.themedark} .${this.getName()}-modal .themeEntry .trashIcon {
|
||||
color: #fff !important;
|
||||
}
|
||||
.themerepo-modal .themeEntry .trashIcon,
|
||||
.themerepo-modal .themeEntry ${BDFDB.dotCN.giffavoritebutton} {
|
||||
.${this.getName()}-modal .themeEntry .trashIcon,
|
||||
.${this.getName()}-modal .themeEntry ${BDFDB.dotCN.giffavoritebutton} {
|
||||
margin-left: auto !important;
|
||||
}
|
||||
.themerepo-modal .themeEntry.downloadable .trashIcon {
|
||||
.${this.getName()}-modal .themeEntry.downloadable .trashIcon {
|
||||
opacity: 0 !important;
|
||||
pointer-events: none !important;
|
||||
}`;
|
||||
|
@ -403,7 +403,7 @@ class ThemeRepo {
|
|||
clearInterval(this.updateInterval);
|
||||
clearTimeout(this.loading.timeout);
|
||||
|
||||
BDFDB.removeEles(".discordPreview",".themerepo-modal",".themerepo-notice",".bd-themerepobutton",".themerepo-loadingicon",BDFDB.dotCN.app + " > .repo-loadingwrapper:empty");
|
||||
BDFDB.removeEles(".discordPreview",".themerepo-notice",".bd-themerepobutton",".themerepo-loadingicon",BDFDB.dotCN.app + " > .repo-loadingwrapper:empty");
|
||||
|
||||
BDFDB.unloadMessage(this);
|
||||
}
|
||||
|
@ -519,7 +519,7 @@ class ThemeRepo {
|
|||
themeRepoModal.find("#input-hideupdated").prop("checked", hiddenSettings.updated || showOnlyOutdated);
|
||||
themeRepoModal.find("#input-hideoutdated").prop("checked", hiddenSettings.outdated && !showOnlyOutdated);
|
||||
themeRepoModal.find("#input-hidedownloadable").prop("checked", hiddenSettings.downloadable || showOnlyOutdated);
|
||||
if (!BDFDB.isRestartNoMoreEnabled()) BDFDB.removeEles(".themerepo-modal #RNMoption");
|
||||
if (!BDFDB.isRestartNoMoreEnabled()) BDFDB.removeEles("." + this.getName() + "-modal #RNMoption");
|
||||
else themeRepoModal.find("#input-rnmstart").prop("checked", BDFDB.loadData("RNMstart", this, "settings"));
|
||||
themeRepoModal
|
||||
.on("keyup." + this.getName(), BDFDB.dotCN.searchbarinput, () => {
|
||||
|
|
|
@ -30,7 +30,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
</div>`;
|
||||
|
||||
this.channelSettingsModalMarkup =
|
||||
`<span class="editchannels-modal DevilBro-modal">
|
||||
`<span class=""${this.name}-modal DevilBro-modal"">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
|
|
@ -32,7 +32,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
</div>`;
|
||||
|
||||
this.serverSettingsModalMarkup =
|
||||
`<span class="editservers-modal DevilBro-modal">
|
||||
`<span class=""${this.name}-modal DevilBro-modal"">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
|
|
@ -59,7 +59,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
</div>`;
|
||||
|
||||
this.userSettingsModalMarkup =
|
||||
`<span class="editusers-modal DevilBro-modal">
|
||||
`<span class=""${this.name}-modal DevilBro-modal"">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
|
|
@ -8,17 +8,17 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
this.labels = {};
|
||||
|
||||
this.css = `
|
||||
.emojistatistics-modal .titles {
|
||||
.${this.name}-modal .titles {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .emojiserver-entry {
|
||||
.${this.name}-modal .emojiserver-entry {
|
||||
height: 50px;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojiserver-icon {
|
||||
.${this.name}-modal .emojiserver-entry .modal-emojiserver-icon {
|
||||
background-color: #484B51;
|
||||
background-size: cover;
|
||||
border-radius: 25px;
|
||||
|
@ -33,8 +33,8 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
width: 50px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry label,
|
||||
.emojistatistics-modal .emojiserver-entry label {
|
||||
.${this.name}-modal .titles-entry label,
|
||||
.${this.name}-modal .emojiserver-entry label {
|
||||
color: #b9bbbe;
|
||||
display: inline-block;
|
||||
flex: 1;
|
||||
|
@ -48,37 +48,37 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .emojiserver-entry label {
|
||||
.${this.name}-modal .emojiserver-entry label {
|
||||
height: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry label {
|
||||
.${this.name}-modal .titles-entry label {
|
||||
margin-top: 0px;
|
||||
}
|
||||
.emojistatistics-modal .titles-entry .modal-titlesicon-label {
|
||||
.${this.name}-modal .titles-entry .modal-titlesicon-label {
|
||||
margin-left: 0px;
|
||||
text-align: center;
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry .modal-titlesname-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojiname-label {
|
||||
.${this.name}-modal .titles-entry .modal-titlesname-label,
|
||||
.${this.name}-modal .emojiserver-entry .modal-emojiname-label {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry .modal-sorttitle-label {
|
||||
.${this.name}-modal .titles-entry .modal-sorttitle-label {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.emojistatistics-modal .titles-entry .modal-titlestotal-label,
|
||||
.emojistatistics-modal .titles-entry .modal-titlesglobal-label,
|
||||
.emojistatistics-modal .titles-entry .modal-titleslocal-label,
|
||||
.emojistatistics-modal .titles-entry .modal-titlescopies-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojitotal-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojiglobal-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojilocal-label,
|
||||
.emojistatistics-modal .emojiserver-entry .modal-emojicopies-label {
|
||||
.${this.name}-modal .titles-entry .modal-titlestotal-label,
|
||||
.${this.name}-modal .titles-entry .modal-titlesglobal-label,
|
||||
.${this.name}-modal .titles-entry .modal-titleslocal-label,
|
||||
.${this.name}-modal .titles-entry .modal-titlescopies-label,
|
||||
.${this.name}-modal .emojiserver-entry .modal-emojitotal-label,
|
||||
.${this.name}-modal .emojiserver-entry .modal-emojiglobal-label,
|
||||
.${this.name}-modal .emojiserver-entry .modal-emojilocal-label,
|
||||
.${this.name}-modal .emojiserver-entry .modal-emojicopies-label {
|
||||
text-align: center;
|
||||
width: 82px;
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
}`;
|
||||
|
||||
this.emojiInformationModalMarkup =
|
||||
`<span class="emojistatistics-modal DevilBro-modal">
|
||||
`<span class=""${this.name}-modal DevilBro-modal"">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -323,7 +323,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
}
|
||||
|
||||
var titleentry = $(this.emojiserverTitlesMarkup)
|
||||
.appendTo(".emojistatistics-modal .titles")
|
||||
.appendTo("." + this.getName() + "-modal .titles")
|
||||
.on("click", ".modal-title-label ", (e2) => {
|
||||
var oldTitle = e2.target.innerText;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
this.timeLog = [];
|
||||
|
||||
this.timeLogModalMarkup =
|
||||
`<span class="FriendNotifications-modal DevilBro-modal">
|
||||
`<span class=""${this.name}-modal DevilBro-modal"">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -53,10 +53,10 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
${BDFDB.dotCN.guilds} > ${BDFDB.dotCN.friendsonline} {
|
||||
cursor: pointer;
|
||||
}
|
||||
.FriendNotifications-modal .log-time {
|
||||
.${this.name}-modal .log-time {
|
||||
width: 100px;
|
||||
}
|
||||
.FriendNotifications-modal .log-avatar {
|
||||
.${this.name}-modal .log-avatar {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
background-size: cover;
|
||||
|
|
|
@ -10,26 +10,26 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
this.messageDelay = 1000; //changing at own risk, might result in bans or mutes
|
||||
|
||||
this.css = `
|
||||
.sendlargemessages-modal textarea {
|
||||
.${this.name}-modal textarea {
|
||||
rows: 0;
|
||||
cols: 0;
|
||||
height: 100vw;
|
||||
resize: none;
|
||||
}
|
||||
.sendlargemessages-modal #warning-message {
|
||||
.${this.name}-modal #warning-message {
|
||||
font-weight: bold;
|
||||
color: red;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.sendlargemessages-modal #character-counter {
|
||||
.${this.name}-modal #character-counter {
|
||||
float: right;
|
||||
color: white;
|
||||
opacity: .5;
|
||||
}`;
|
||||
|
||||
this.sendMessageModalMarkup =
|
||||
`<span class="sendlargemessages-modal DevilBro-modal">
|
||||
`<span class=""${this.name}-modal DevilBro-modal"">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8,13 +8,13 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
this.labels = {};
|
||||
|
||||
this.css = `
|
||||
.serverhider-modal .entry ${BDFDB.dotCN.guild} {
|
||||
.${this.name}-modal .entry ${BDFDB.dotCN.guild} {
|
||||
height: 50px;
|
||||
position: relative;
|
||||
width: 50px;
|
||||
z-index: 1;
|
||||
}
|
||||
.serverhider-modal .entry ${BDFDB.dotCN.guildinner} {
|
||||
.${this.name}-modal .entry ${BDFDB.dotCN.guildinner} {
|
||||
background: #2f3136;
|
||||
border-radius: 25px !important;
|
||||
cursor: pointer;
|
||||
|
@ -23,7 +23,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
.serverhider-modal .entry ${BDFDB.dotCNS.guild + BDFDB.dotCN.avatarsmallold} {
|
||||
.${this.name}-modal .entry ${BDFDB.dotCNS.guild + BDFDB.dotCN.avatarsmallold} {
|
||||
background-repeat: no-repeat;
|
||||
background-size: 50px 50px;
|
||||
border-radius: 0;
|
||||
|
@ -34,7 +34,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
height: 50px;
|
||||
width: 50px;
|
||||
}
|
||||
.serverhider-modal .entry ${BDFDB.dotCNS.guild + BDFDB.dotCN.badge} {
|
||||
.${this.name}-modal .entry ${BDFDB.dotCNS.guild + BDFDB.dotCN.badge} {
|
||||
background-clip: padding-box;
|
||||
background-color: #f04747;
|
||||
border-radius: 3px;
|
||||
|
@ -51,13 +51,13 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
right: -2px;
|
||||
text-shadow: 0 1px 0 rgba(0,0,0,.25);
|
||||
}
|
||||
.serverhider-modal .folderhideCheckboxWrapper {
|
||||
.${this.name}-modal .folderhideCheckboxWrapper {
|
||||
right: 8px;
|
||||
}`;
|
||||
|
||||
|
||||
this.serverHiderModalMarkup =
|
||||
`<span class="serverhider-modal DevilBro-modal">
|
||||
`<span class=""${this.name}-modal DevilBro-modal"">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -242,7 +242,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
}
|
||||
|
||||
onContextMenu (context) {
|
||||
if (document.querySelector(".serverhider-modal") || !context || !context.tagName || !context.parentElement || context.querySelector(".serverhider-item")) return;
|
||||
if (document.querySelector("." + this.getName() + "-modal") || !context || !context.tagName || !context.parentElement || context.querySelector(".serverhider-item")) return;
|
||||
var info = BDFDB.getKeyInformation({"node":context, "key":"guild"});
|
||||
var valid = false;
|
||||
if (info && BDFDB.getKeyInformation({"node":context, "key":"displayName", "value":"GuildLeaveGroup"})) {
|
||||
|
|
|
@ -12,7 +12,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
this.timeLog = [];
|
||||
|
||||
this.timeLogModalMarkup =
|
||||
`<span class="stalkernotifications-modal DevilBro-modal">
|
||||
`<span class=""${this.name}-modal DevilBro-modal"">
|
||||
<div class="${BDFDB.disCN.backdrop}"></div>
|
||||
<div class="${BDFDB.disCN.modal}">
|
||||
<div class="${BDFDB.disCN.modalinner}">
|
||||
|
@ -55,10 +55,10 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
.guilds > .friends-online {
|
||||
cursor: pointer;
|
||||
}
|
||||
.stalkernotifications-modal .log-time {
|
||||
.${this.name}-modal .log-time {
|
||||
width: 100px;
|
||||
}
|
||||
.stalkernotifications-modal .log-avatar {
|
||||
.${this.name}-modal .log-avatar {
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
background-size: cover;
|
||||
|
|
Loading…
Reference in New Issue