├── .gitignore ├── input.txt ├── package.json ├── index.js └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/**/* -------------------------------------------------------------------------------- /input.txt: -------------------------------------------------------------------------------- 1 | Sniper Elite 3 2 | Road to Ballhalla 3 | Binary Domain 4 | Steel Rats 5 | Sorcerer King: Rivals 6 | F1 2011 7 | Desert Child 8 | Higurashi When They Cry Hou - Ch.1 Onikakushi 9 | Crusader Kings II + The Old Gods DLC 10 | Retry 11 | Penarium 12 | Double Fine Adventure Documentary 13 | Stronghold Crusader 2 14 | Unexplored 15 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "steam-game-searcher", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "CompSciLauren", 10 | "license": "ISC", 11 | "dependencies": { 12 | "shelljs": "^0.8.3" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs'); 2 | const path = require('path'); 3 | const shell = require('shelljs'); 4 | 5 | const inputFilePath = path.join(process.cwd(), 'input.txt'); 6 | const content = fs.readFileSync(inputFilePath, { encoding: 'utf-8' }); 7 | 8 | const lines = content.split('\r\n'); 9 | 10 | lines.forEach(gameName => { 11 | if (gameName !== '') { 12 | const encodedGameName = encodeURIComponent(gameName); 13 | const url = `https://store.steampowered.com/search/?term=${encodedGameName}`; 14 | shell.exec(`start chrome "${url}"`); 15 | } 16 | }); 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Steam Game Searcher 2 | 3 | :video_game: Opens Chrome tabs for Steam games based on a list of game titles 4 | 5 | ## How to Use 6 | 7 | 1. Clone or download this repo. 8 | 2. Run `npm install` 9 | 3. Replace the contents of the input.txt file to include your list of games to search for on Steam. 10 | 4. Run `node index.js` 11 | 5. Wait for Chrome tabs to finish loading, then begin viewing games! 12 | 13 | ## Tips 14 | 15 | - Every game you add to the input.txt file will be another Chrome tab to open. Don't add too many of these or you may experience significant lag. Start with 10 - 20 games and see how your computer handles it before increasing the number. 16 | - Once you move your mouse over the Steam game in the tab, leave it there. Now it's previewing that Steam game. If you aren't interested in it, press CTRL+W to close that Chrome tab. Now the next Chrome tab is being viewed, and the mouse is already hovering over the next game, so the next preview can begin. 17 | --------------------------------------------------------------------------------