plugins
This commit is contained in:
parent
32fbc2c4e5
commit
4a28c0d993
|
@ -2,7 +2,7 @@
|
||||||
* @name GoogleSearchReplace
|
* @name GoogleSearchReplace
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.3.2
|
* @version 1.3.3
|
||||||
* @description Replaces the default Google Text Search with a custom Search Engine
|
* @description Replaces the default Google Text Search with a custom Search Engine
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,13 +17,8 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "GoogleSearchReplace",
|
"name": "GoogleSearchReplace",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
"description": "Replaces the default Google Text Search with a custom Search Engine"
|
"description": "Replaces the default Google Text Search with a custom Search Engine"
|
||||||
},
|
|
||||||
"changeLog": {
|
|
||||||
"added": {
|
|
||||||
"Ecosia": "Added Ecosia as search engine"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -83,22 +78,23 @@ module.exports = (_ => {
|
||||||
_all: {value: true, name: BDFDB.LanguageUtils.LanguageStrings.FORM_LABEL_ALL, url: null},
|
_all: {value: true, name: BDFDB.LanguageUtils.LanguageStrings.FORM_LABEL_ALL, url: null},
|
||||||
Ask: {value: true, name: "Ask", url: "https://ask.com/web?q=" + textUrlReplaceString},
|
Ask: {value: true, name: "Ask", url: "https://ask.com/web?q=" + textUrlReplaceString},
|
||||||
Bing: {value: true, name: "Bing", url: "https://www.bing.com/search?q=" + textUrlReplaceString},
|
Bing: {value: true, name: "Bing", url: "https://www.bing.com/search?q=" + textUrlReplaceString},
|
||||||
DogPile: {value: true, name: "DogPile", url: "http://www.dogpile.com/search/web?q=" + textUrlReplaceString},
|
DogPile: {value: false, name: "DogPile", url: "http://www.dogpile.com/search/web?q=" + textUrlReplaceString},
|
||||||
DuckDuckGo: {value: true, name: "DuckDuckGo", url: "https://duckduckgo.com/?q=" + textUrlReplaceString},
|
DuckDuckGo: {value: true, name: "DuckDuckGo", url: "https://duckduckgo.com/?q=" + textUrlReplaceString},
|
||||||
Ecosia: {value: true, name: "Ecosia", url: "https://www.ecosia.org/search?q=" + textUrlReplaceString},
|
Ecosia: {value: false, name: "Ecosia", url: "https://www.ecosia.org/search?q=" + textUrlReplaceString},
|
||||||
GitHub: {value: true, name: "GitHub", url: "https://github.com/search?q=" + textUrlReplaceString},
|
GitHub: {value: false, name: "GitHub", url: "https://github.com/search?q=" + textUrlReplaceString},
|
||||||
Google: {value: true, name: "Google", url: "https://www.google.com/search?q=" + textUrlReplaceString},
|
Google: {value: true, name: "Google", url: "https://www.google.com/search?q=" + textUrlReplaceString},
|
||||||
GoogleScholar: {value: true, name: "Google Scholar", url: "https://scholar.google.com/scholar?q=" + textUrlReplaceString},
|
GoogleScholar: {value: false, name: "Google Scholar", url: "https://scholar.google.com/scholar?q=" + textUrlReplaceString},
|
||||||
Quora: {value: true, name: "Quora", url: "https://www.quora.com/search?q=" + textUrlReplaceString},
|
Quora: {value: true, name: "Quora", url: "https://www.quora.com/search?q=" + textUrlReplaceString},
|
||||||
Qwant: {value: true, name: "Qwant", url: "https://www.qwant.com/?t=all&q=" + textUrlReplaceString},
|
Qwant: {value: false, name: "Qwant", url: "https://www.qwant.com/?t=all&q=" + textUrlReplaceString},
|
||||||
UrbanDictionary: {value: true, name: "Urban Dictionary", url: "https://www.urbandictionary.com/define.php?term=" + textUrlReplaceString},
|
UrbanDictionary: {value: false, name: "Urban Dictionary", url: "https://www.urbandictionary.com/define.php?term=" + textUrlReplaceString},
|
||||||
Searx: {value: true, name: "Searx", url: "https://searx.info/?q=" + textUrlReplaceString},
|
Searx: {value: false, name: "Searx", url: "https://searx.info/?q=" + textUrlReplaceString},
|
||||||
StackOverflow: {value: true, name: "Stack Overflow", url: "https://stackoverflow.com/search?q=" + textUrlReplaceString},
|
StackOverflow: {value: true, name: "Stack Overflow", url: "https://stackoverflow.com/search?q=" + textUrlReplaceString},
|
||||||
Startpage: {value: true, name: "Startpage", url: "https://www.startpage.com/sp/search?q=" + textUrlReplaceString},
|
Startpage: {value: false, name: "Startpage", url: "https://www.startpage.com/sp/search?q=" + textUrlReplaceString},
|
||||||
WolframAlpha: {value: true, name: "Wolfram Alpha", url: "https://www.wolframalpha.com/input/?i=" + textUrlReplaceString},
|
Whoogle: {value: false, name: "Whoogle", url: "https://search.sethforprivacy.com/search?q=" + textUrlReplaceString},
|
||||||
|
WolframAlpha: {value: false, name: "Wolfram Alpha", url: "https://www.wolframalpha.com/input/?i=" + textUrlReplaceString},
|
||||||
Yandex: {value: true, name: "Yandex", url: "https://yandex.com/search/?text=" + textUrlReplaceString},
|
Yandex: {value: true, name: "Yandex", url: "https://yandex.com/search/?text=" + textUrlReplaceString},
|
||||||
Yahoo: {value: true, name: "Yahoo", url: "https://search.yahoo.com/search?p=" + textUrlReplaceString},
|
Yahoo: {value: true, name: "Yahoo", url: "https://search.yahoo.com/search?p=" + textUrlReplaceString},
|
||||||
YouTube: {value: true, name: "YouTube", url: "https://www.youtube.com/results?q=" + textUrlReplaceString}
|
YouTube: {value: false, name: "YouTube", url: "https://www.youtube.com/results?q=" + textUrlReplaceString}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @name ServerFolders
|
* @name ServerFolders
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 6.9.8
|
* @version 6.9.9
|
||||||
* @description Changes Discord's Folders, Servers open in a new Container, also adds extra Features to more easily organize, customize and manage your Folders
|
* @description Changes Discord's Folders, Servers open in a new Container, also adds extra Features to more easily organize, customize and manage your Folders
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "ServerFolders",
|
"name": "ServerFolders",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "6.9.8",
|
"version": "6.9.9",
|
||||||
"description": "Changes Discord's Folders, Servers open in a new Container, also adds extra Features to more easily organize, customize and manage your Folders"
|
"description": "Changes Discord's Folders, Servers open in a new Container, also adds extra Features to more easily organize, customize and manage your Folders"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -694,14 +694,14 @@ module.exports = (_ => {
|
||||||
else BDFDB.DOMUtils.removeClassFromDOM(BDFDB.disCN._serverfoldersfoldercontentisopen);
|
else BDFDB.DOMUtils.removeClassFromDOM(BDFDB.disCN._serverfoldersfoldercontentisopen);
|
||||||
|
|
||||||
let data = this.getFolderConfig(e.instance.props.folderNode.id);
|
let data = this.getFolderConfig(e.instance.props.folderNode.id);
|
||||||
if (data.muteFolder) for (let guildId of e.instance.props.guildIds) if (!BDFDB.LibraryModules.MutedUtils.isGuildOrCategoryOrChannelMuted(guildId)) BDFDB.LibraryModules.GuildNotificationsUtils.updateGuildNotificationSettings(guildId, {muted: true, suppress_everyone: true});
|
if (data.muteFolder) for (let guildId of e.instance.props.folderNode.children.map(n => n.id)) if (!BDFDB.LibraryModules.MutedUtils.isGuildOrCategoryOrChannelMuted(guildId)) BDFDB.LibraryModules.GuildNotificationsUtils.updateGuildNotificationSettings(guildId, {muted: true, suppress_everyone: true});
|
||||||
|
|
||||||
let state = this.getState(e.instance);
|
let state = this.getState(e.instance);
|
||||||
if (folderStates[e.instance.props.folderNode.id] && !BDFDB.equals(state, folderStates[e.instance.props.folderNode.id])) {
|
if (folderStates[e.instance.props.folderNode.id] && !BDFDB.equals(state, folderStates[e.instance.props.folderNode.id])) {
|
||||||
if (data.autoRead && (state.unread || state.badge > 0)) {
|
if (data.autoRead && (state.unread || state.badge > 0)) {
|
||||||
BDFDB.TimeUtils.clear(folderReads[e.instance.props.folderNode.id]);
|
BDFDB.TimeUtils.clear(folderReads[e.instance.props.folderNode.id]);
|
||||||
folderReads[e.instance.props.folderNode.id] = BDFDB.TimeUtils.timeout(_ => {
|
folderReads[e.instance.props.folderNode.id] = BDFDB.TimeUtils.timeout(_ => {
|
||||||
BDFDB.GuildUtils.markAsRead(e.instance.props.guildIds);
|
BDFDB.GuildUtils.markAsRead(e.instance.props.folderNode.children.map(n => n.id));
|
||||||
}, 10000);
|
}, 10000);
|
||||||
}
|
}
|
||||||
BDFDB.ReactUtils.forceUpdate(folderGuildContent);
|
BDFDB.ReactUtils.forceUpdate(folderGuildContent);
|
||||||
|
|
Loading…
Reference in New Issue