Added new search provider
This commit is contained in:
@@ -159,9 +159,12 @@ export function updateLabel(text) {
|
|||||||
case "t":
|
case "t":
|
||||||
document.getElementById("searchType").innerHTML = "Trakt search";
|
document.getElementById("searchType").innerHTML = "Trakt search";
|
||||||
break;
|
break;
|
||||||
case "y":
|
case "yt":
|
||||||
document.getElementById("searchType").innerHTML = "YouTube search";
|
document.getElementById("searchType").innerHTML = "YouTube search";
|
||||||
break;
|
break;
|
||||||
|
case "y":
|
||||||
|
document.getElementById("searchType").innerHTML = "You search";
|
||||||
|
break;
|
||||||
case "w":
|
case "w":
|
||||||
document.getElementById("searchType").innerHTML = "Wikipedia search";
|
document.getElementById("searchType").innerHTML = "Wikipedia search";
|
||||||
break;
|
break;
|
||||||
@@ -218,9 +221,12 @@ export function search(text) {
|
|||||||
case "tv":
|
case "tv":
|
||||||
window.location = "https://www.thetvdb.com/search?query=" + subtext;
|
window.location = "https://www.thetvdb.com/search?query=" + subtext;
|
||||||
break;
|
break;
|
||||||
case "y":
|
case "yt":
|
||||||
window.location = "https://www.youtube.com/results?search_query=" + subtext;
|
window.location = "https://www.youtube.com/results?search_query=" + subtext;
|
||||||
break;
|
break;
|
||||||
|
case "y":
|
||||||
|
window.location = "https://www.you.com/search?q=" + subtext;
|
||||||
|
break;
|
||||||
case "w":
|
case "w":
|
||||||
window.location = "https://en.wikipedia.org/w/index.php?search=" + subtext;
|
window.location = "https://en.wikipedia.org/w/index.php?search=" + subtext;
|
||||||
break;
|
break;
|
||||||
@@ -239,7 +245,7 @@ export function search(text) {
|
|||||||
case "d":
|
case "d":
|
||||||
window.location = "https://www.duckduckgo.com";
|
window.location = "https://www.duckduckgo.com";
|
||||||
break;
|
break;
|
||||||
case "y":
|
case "yt":
|
||||||
window.location = "https://www.youtube.com";
|
window.location = "https://www.youtube.com";
|
||||||
break;
|
break;
|
||||||
case "r":
|
case "r":
|
||||||
@@ -281,4 +287,4 @@ export function replaceAll(search, replacement) {
|
|||||||
|
|
||||||
export default function main () {
|
export default function main () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"name": "Nextcloud",
|
"name": "Nextcloud",
|
||||||
"url": "https://home.halfaperture.com/nextcloud"
|
"url": "https://home.halfaperture.com/nextcloud/apps/files"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "OneDrive",
|
"name": "OneDrive",
|
||||||
@@ -98,15 +98,15 @@
|
|||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"name": "Plex",
|
"name": "Plex",
|
||||||
"url": "http://plex.tv"
|
"url": "https://app.plex.tv"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Twitch",
|
"name": "Twitch",
|
||||||
"url": "http://twitch.tv"
|
"url": "https://twitch.tv"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Netflix",
|
"name": "Netflix",
|
||||||
"url": "http://netflix.com"
|
"url": "https://netflix.com"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "YouTube",
|
"name": "YouTube",
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
{"name":"Spotify","url":"https://open.spotify.com/search/results/","prefix":"/s"},
|
{"name":"Spotify","url":"https://open.spotify.com/search/results/","prefix":"/s"},
|
||||||
{"name":"TheTVDB","url":"https://www.thetvdb.com/search?query=","prefix":"/tv"},
|
{"name":"TheTVDB","url":"https://www.thetvdb.com/search?query=","prefix":"/tv"},
|
||||||
{"name":"Trakt","url":"https://trakt.tv/search?query=","prefix":"/t"},
|
{"name":"Trakt","url":"https://trakt.tv/search?query=","prefix":"/t"},
|
||||||
{"name":"YouTube","url":"https://www.youtube.com/results?search_query=","prefix":"/y"},
|
{"name":"YouTube","url":"https://www.youtube.com/results?search_query=","prefix":"/yt"},
|
||||||
|
{"name":"You","url":"https://www.you.com/search?q=","prefix":"/y"},
|
||||||
{"name":"Wikipedia","url":"https://en.wikipedia.org/w/index.php?search=","prefix":"/w"},
|
{"name":"Wikipedia","url":"https://en.wikipedia.org/w/index.php?search=","prefix":"/w"},
|
||||||
{"name":"Plex","url":"https://app.plex.tv/desktop/#!/search?query=","prefix":"/p"},
|
{"name":"Plex","url":"https://app.plex.tv/desktop/#!/search?query=","prefix":"/p"},
|
||||||
{"name":"Rotten Tomatoes","url":"https://www.rottentomatoes.com/search?search=","prefix":"/rt"}
|
{"name":"Rotten Tomatoes","url":"https://www.rottentomatoes.com/search?search=","prefix":"/rt"}
|
||||||
|
|||||||
Reference in New Issue
Block a user