Created
April 22, 2026 23:43
-
-
Save david-shepard/3660a88002c7dc726936efe8195578bf to your computer and use it in GitHub Desktop.
Split highlighted text into search terms and search for them in new tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const lines = window.getSelection().toString() | |
| const games = lines.split('\n') | |
| .map(q => q.trim()) | |
| .filter(Boolean) | |
| games.forEach(q => window.open('https://store.steampowered.com/search?term=' + encodeURIComponent(q))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment