Archived
1
0

Added new search provider

This commit is contained in:
2022-11-21 12:01:29 -06:00
parent 17e9255405
commit becf4fa546
3 changed files with 16 additions and 9 deletions

View File

@@ -159,9 +159,12 @@ export function updateLabel(text) {
case "t":
document.getElementById("searchType").innerHTML = "Trakt search";
break;
case "y":
case "yt":
document.getElementById("searchType").innerHTML = "YouTube search";
break;
case "y":
document.getElementById("searchType").innerHTML = "You search";
break;
case "w":
document.getElementById("searchType").innerHTML = "Wikipedia search";
break;
@@ -218,9 +221,12 @@ export function search(text) {
case "tv":
window.location = "https://www.thetvdb.com/search?query=" + subtext;
break;
case "y":
case "yt":
window.location = "https://www.youtube.com/results?search_query=" + subtext;
break;
case "y":
window.location = "https://www.you.com/search?q=" + subtext;
break;
case "w":
window.location = "https://en.wikipedia.org/w/index.php?search=" + subtext;
break;
@@ -239,7 +245,7 @@ export function search(text) {
case "d":
window.location = "https://www.duckduckgo.com";
break;
case "y":
case "yt":
window.location = "https://www.youtube.com";
break;
case "r":
@@ -281,4 +287,4 @@ export function replaceAll(search, replacement) {
export default function main () {
return;
}
}