diff --git a/README.md b/README.md index bd133a0..3033721 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

I'm lazy and want to search the same thing on multiple sites

## About -I use a combination of [Letterboxd](https://letterboxd.com/), [Trakt](https://trakt.tv), [MyAnimeList](https://myanimelist.net/), and [MyDramaList](https://mydramalist.com/) to keep track and discover new movies, shows, anime, k-dramas, etc. I just needed a simple way to search all of them at once since lots of media appear on multiple sites. +I use a combination of [Letterboxd](https://letterboxd.com/), [Trakt](https://trakt.tv), [MyAnimeList](https://myanimelist.net/), and [MyDramaList](https://mydramalist.com/) to keep track and discover new movies, shows, anime, k-dramas, etc. I also look for songs to play in both Beat Saber and Clone Hero on [Beat Saver](https://bsaber.com) and [Chorus Encore](https://www.enchor.us). I use [Backloggd](https://www.backloggd.com), [Steam](https://store.steampowered.com), [GoG](https://www.gog.com), [Rockstar](https://store.rockstargames.com), and [Epic](https://store.epicgames.com) to keep track of games. I just needed a simple way to search all of them at once since lots of media appear on multiple sites. ## Authors - [@Noahffiliation](https://github.com/Noahffiliation) - Idea & Initial work diff --git a/index.html b/index.html index 6b86fd1..63d2e80 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,11 @@ +
+
+ + +
diff --git a/script.js b/script.js index fa7d1be..61130a0 100644 --- a/script.js +++ b/script.js @@ -10,10 +10,20 @@ const songWebsites = [ 'https://bsaber.com/?s=' ]; +const gameWebsites = [ + 'https://www.backloggd.com/search/games/', + 'https://store.steampowered.com/search/?term=', + 'https://www.gog.com/en/games?query=', + 'https://store.rockstargames.com/search?query=', + 'https://store.epicgames.com/en-US/expanded-search-results?q=' +]; + const mediaButton = document.getElementById("mediaButton"); const songButton = document.getElementById("songButton"); +const gameButton = document.getElementById("gameButton"); const mediaSearch = document.getElementById("mediaSearch"); const songSearch = document.getElementById("songSearch"); +const gameSearch = document.getElementById("gameSearch"); function openTabs(websites, searchElement) { const searchValue = searchElement.value; @@ -25,3 +35,4 @@ function openTabs(websites, searchElement) { mediaButton.addEventListener("click", () => openTabs(mediaWebsites, mediaSearch)); songButton.addEventListener("click", () => openTabs(songWebsites, songSearch)); +gameButton.addEventListener("click", () => openTabs(gameWebsites, gameSearch));