update stuff
This commit is contained in:
parent
3e8d3b29fc
commit
d3a90a9843
|
@ -33,8 +33,7 @@ class DisplayServersAsChannels {
|
|||
.bd-minimal .DSAC-styled ${BDFDB.dotCN.guild} {
|
||||
margin-left: 55px;
|
||||
}
|
||||
.bd-minimal .DSAC-styled ${BDFDB.dotCN.friendsonline},
|
||||
.bd-minimal .DSAC-styled #RANbutton-frame {
|
||||
.bd-minimal .DSAC-styled ${BDFDB.dotCN.friendsonline} {
|
||||
margin-left: 40px;
|
||||
}
|
||||
.DSAC-styled ${BDFDB.dotCN.guildseparator} ~ ${BDFDB.dotCN.guild},
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
class ReadAllNotificationsButton {
|
||||
initConstructor () {
|
||||
this.RANbuttonMarkup =
|
||||
`<div class="${BDFDB.disCN.guild}" id="RANbutton-frame" style="height: 20px; margin-bottom: 10px;">
|
||||
`<div class="${BDFDB.disCN.guild} RANbutton-frame" id="bd-pub-li" style="height: 20px; margin-bottom: 10px;">
|
||||
<div class="${BDFDB.disCN.guildinner}" style="height: 20px; border-radius: 4px;">
|
||||
<a>
|
||||
<div id="RANbutton" style="line-height: 20px; font-size: 12px;">read all</div>
|
||||
<div class="RANbutton" id="bd-pub-button" style="line-height: 20px; font-size: 12px;">read all</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>`;
|
||||
|
@ -27,7 +27,7 @@ class ReadAllNotificationsButton {
|
|||
|
||||
getDescription () {return "Adds a button to clear all notifications.";}
|
||||
|
||||
getVersion () {return "1.3.5";}
|
||||
getVersion () {return "1.3.6";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -106,7 +106,7 @@ class ReadAllNotificationsButton {
|
|||
BDFDB.addObserver(this, BDFDB.dotCN.popouts, {name:"mentionsPopoutObserver",instance:observer}, {childList: true});
|
||||
|
||||
$(this.RANbuttonMarkup).insertBefore(document.querySelector(BDFDB.dotCN.guildseparator))
|
||||
.on("click", "#RANbutton", () => {
|
||||
.on("click", ".RANbutton", () => {
|
||||
let servers = BDFDB.getData("includeMuted", this, "settings") ? BDFDB.readServerList() : BDFDB.readUnreadServerList();
|
||||
BDFDB.clearReadNotifications(servers);
|
||||
});
|
||||
|
@ -120,9 +120,10 @@ class ReadAllNotificationsButton {
|
|||
|
||||
stop () {
|
||||
if (typeof BDFDB === "object") {
|
||||
$("#RANbutton-frame, #RAMbutton").remove();
|
||||
$(".RANbutton-frame, .RAMbutton").remove();
|
||||
|
||||
$(".RAN-added").removeClass("RAN-added");
|
||||
$(".RAM-added").removeClass("RAM-added");
|
||||
|
||||
BDFDB.unloadMessage(this);
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
margin-left: 55px;
|
||||
}
|
||||
.bd-minimal ${BDFDB.dotCN.guildswrapper}.DSAC-styled ${BDFDB.dotCN.friendsonline},
|
||||
.bd-minimal ${BDFDB.dotCN.guildswrapper}.DSAC-styled #RANbutton-frame {
|
||||
.bd-minimal ${BDFDB.dotCN.guildswrapper}.DSAC-styled #bd-pub-li {
|
||||
margin-left: 40px;
|
||||
}
|
||||
${BDFDB.dotCN.guildswrapper}.DSAC-styled ${BDFDB.dotCN.guildseparator},
|
||||
|
|
|
@ -5,11 +5,11 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
|
||||
return class extends Plugin {
|
||||
initConstructor () {
|
||||
this.RANbuttonMarkup =
|
||||
`<div class="${BDFDB.disCN.guild}" id="RANbutton-frame" style="height: 20px; width: 50px; margin-bottom: 10px; margin-right: auto; margin-left: auto">
|
||||
this.bd-pub-buttonMarkup =
|
||||
`<div class="${BDFDB.disCN.guild}" id="bd-pub-li" style="height: 20px; width: 50px; margin-bottom: 10px; margin-right: auto; margin-left: auto">
|
||||
<div class="${BDFDB.disCN.guildinner}" style="height: 20px; width: 50px; border-radius: 4px;">
|
||||
<a>
|
||||
<div id="RANbutton" style="line-height: 20px; font-size: 12px;">read all</div>
|
||||
<div id="bd-pub-button" style="line-height: 20px; font-size: 12px;">read all</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>`;
|
||||
|
@ -83,8 +83,8 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
});
|
||||
BDFDB.addObserver(this, BDFDB.dotCN.popouts, {name:"mentionsPopoutObserver",instance:observer}, {childList: true});
|
||||
|
||||
$(this.RANbuttonMarkup).insertBefore(document.querySelector(BDFDB.dotCN.guildseparator))
|
||||
.on("click", "#RANbutton", () => {
|
||||
$(this.bd-pub-buttonMarkup).insertBefore(document.querySelector(BDFDB.dotCN.guildseparator))
|
||||
.on("click", "#bd-pub-button", () => {
|
||||
let servers = BDFDB.getData("includeMuted", this, "settings") ? BDFDB.readServerList() : BDFDB.readUnreadServerList();
|
||||
BDFDB.clearReadNotifications(servers);
|
||||
});
|
||||
|
@ -101,7 +101,7 @@ module.exports = (Plugin, Api, Vendor) => {
|
|||
|
||||
onStop () {
|
||||
if (typeof BDFDB === "object") {
|
||||
$("#RANbutton-frame, #RAMbutton").remove();
|
||||
$("#bd-pub-li, #RAMbutton").remove();
|
||||
|
||||
$(".RAN-added").removeClass("RAN-added");
|
||||
|
||||
|
|
|
@ -771,7 +771,6 @@ img[src="/assets/bfffd518c76d3f6bc5e96eb52e4ae2cf.svg"],
|
|||
#friends .tab-bar-item.selected,
|
||||
.guild-1EfMGQ.selected-ML3OIq .guildInner-3DSoA4[style*="background-color:"],
|
||||
.guildInner-3DSoA4[style*="background-color:"]:hover,
|
||||
#RANbutton:hover,
|
||||
#bd-pub-button:hover,
|
||||
.embedPill-1Zntps:not([style]),
|
||||
.searchFilter-2ESiM3,
|
||||
|
@ -1042,7 +1041,6 @@ img[src="/assets/bfffd518c76d3f6bc5e96eb52e4ae2cf.svg"],
|
|||
padding: 1px 4px;
|
||||
}
|
||||
|
||||
#RANbutton,
|
||||
#bd-pub-button,
|
||||
.guildInner-3DSoA4 {
|
||||
transition: background 500ms ease !important;
|
||||
|
|
|
@ -29,10 +29,10 @@
|
|||
margin: 10px 0;
|
||||
width: calc(60px * var(--vcolumns) - 10px) !important;
|
||||
}
|
||||
#server-search,
|
||||
.guildsWrapper-5TJh6A:not(.foldercontent) .guilds-1q_RqH > .guild-1EfMGQ:first-child,
|
||||
.guildsWrapper-5TJh6A .guilds-1q_RqH .dms-rcsEnV .guild-1EfMGQ:only-child,
|
||||
.guildsWrapper-5TJh6A .guilds-1q_RqH .friendsOnline-_wi_fM,
|
||||
#bd-pub-li,
|
||||
#RANbutton-frame {
|
||||
#bd-pub-li {
|
||||
margin: 4px calc((60px * var(--vcolumns) - 60px)/2) !important;
|
||||
}
|
Loading…
Reference in New Issue