This commit is contained in:
Mirco Wittrien 2022-01-10 13:28:46 +01:00
parent 32fbc2c4e5
commit 4a28c0d993
2 changed files with 17 additions and 21 deletions

View File

@ -2,7 +2,7 @@
* @name GoogleSearchReplace
* @author DevilBro
* @authorId 278543574059057154
* @version 1.3.2
* @version 1.3.3
* @description Replaces the default Google Text Search with a custom Search Engine
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,13 +17,8 @@ module.exports = (_ => {
"info": {
"name": "GoogleSearchReplace",
"author": "DevilBro",
"version": "1.3.2",
"version": "1.3.3",
"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},
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},
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},
Ecosia: {value: true, name: "Ecosia", url: "https://www.ecosia.org/search?q=" + textUrlReplaceString},
GitHub: {value: true, name: "GitHub", url: "https://github.com/search?q=" + textUrlReplaceString},
Ecosia: {value: false, name: "Ecosia", url: "https://www.ecosia.org/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},
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},
Qwant: {value: true, 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},
Searx: {value: true, name: "Searx", url: "https://searx.info/?q=" + textUrlReplaceString},
Qwant: {value: false, name: "Qwant", url: "https://www.qwant.com/?t=all&q=" + textUrlReplaceString},
UrbanDictionary: {value: false, name: "Urban Dictionary", url: "https://www.urbandictionary.com/define.php?term=" + 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},
Startpage: {value: true, 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},
Startpage: {value: false, name: "Startpage", url: "https://www.startpage.com/sp/search?q=" + 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},
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}
}
};
}

View File

@ -2,7 +2,7 @@
* @name ServerFolders
* @author DevilBro
* @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
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "ServerFolders",
"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"
}
};
@ -694,14 +694,14 @@ module.exports = (_ => {
else BDFDB.DOMUtils.removeClassFromDOM(BDFDB.disCN._serverfoldersfoldercontentisopen);
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);
if (folderStates[e.instance.props.folderNode.id] && !BDFDB.equals(state, folderStates[e.instance.props.folderNode.id])) {
if (data.autoRead && (state.unread || state.badge > 0)) {
BDFDB.TimeUtils.clear(folderReads[e.instance.props.folderNode.id]);
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);
}
BDFDB.ReactUtils.forceUpdate(folderGuildContent);