This commit is contained in:
Mirco Wittrien 2019-02-21 16:34:39 +01:00
parent baa77a7c97
commit 12e4d22f29
3 changed files with 11 additions and 7 deletions

View File

@ -3,13 +3,17 @@
class PluginRepo {
getName () {return "PluginRepo";}
getVersion () {return "1.7.3";}
getVersion () {return "1.7.4";}
getAuthor () {return "DevilBro";}
getDescription () {return "Allows you to look at all plugins from the plugin repo and download them on the fly. Repo button is in the plugins settings.";}
initConstructor () {
this.changelog = {
"fixed":[["BDContextMenu","Fixed compatibility with the newest version of BDContextMenu"]]
};
this.patchModules = {
"V2C_List":"componentDidMount"
};
@ -318,8 +322,7 @@ class PluginRepo {
let observer = new MutationObserver(changes => {
changes.forEach(change => {
if (change.addedNodes) change.addedNodes.forEach(node => {
if (node.tagName && BDFDB.containsClass(node, "plugin-context-menu") && !node.querySelector(".pluginrepo-item")) {
observer.disconnect();
if (node.tagName && BDFDB.containsClass(node, BDFDB.disCN.contextmenu) && BDFDB.getReactValue(node, "return.return.return.memoizedProps.label") == "BandagedBD" && !node.querySelector(".pluginrepo-item")) {
let item = node.querySelectorAll(BDFDB.dotCN.contextmenuitem);
item = item[item.length-1];
var settingsContextEntry = BDFDB.htmlToElement(this.settingsContextEntryMarkup);

View File

@ -3,7 +3,7 @@
class ThemeRepo {
getName () {return "ThemeRepo";}
getVersion () {return "1.7.3";}
getVersion () {return "1.7.4";}
getAuthor () {return "DevilBro";}
@ -11,7 +11,7 @@ class ThemeRepo {
initConstructor () {
this.changelog = {
"fixed":[["DiscordPreview","Fixed the issue where the titlebar would overlap with the titlebar in the fake preview"]]
"fixed":[["BDContextMenu","Fixed compatibility with the newest version of BDContextMenu"]]
};
this.patchModules = {
@ -380,8 +380,7 @@ class ThemeRepo {
let observer = new MutationObserver(changes => {
changes.forEach(change => {
if (change.addedNodes) change.addedNodes.forEach(node => {
if (node.tagName && BDFDB.containsClass(node, "plugin-context-menu") && !node.querySelector(".themerepo-item")) {
observer.disconnect();
if (node.tagName && BDFDB.containsClass(node, BDFDB.disCN.contextmenu) && BDFDB.getReactValue(node, "return.return.return.memoizedProps.label") == "BandagedBD" && !node.querySelector(".themerepo-item")) {
let item = node.querySelectorAll(BDFDB.dotCN.contextmenuitem);
item = item[item.length-1];
var settingsContextEntry = BDFDB.htmlToElement(this.settingsContextEntryMarkup);

View File

@ -818,6 +818,8 @@ a {
[style*="/assets/f046e2247d730629309457e902d5c5b3.svg"]:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgb(var(--vaccentcolor)) !important;