Enables site search for Arc browser and others using shortcuts
Note: This is for users who use Google Search as default search engine. The only change from the other userscript is that Google search shortcut is removed from here. This is because userscript won't work if any of the search engines in the userscript is set as default.
Here's the other version for users with other search engines as default (apart from the ones mentioned in the list): Arc-Style Site Search
A userscript that 'fixes' site search functionality in Arc Browser. Use shortcuts like @perplexity from the address bar directly to instantly search on your favorite sites. Why does this exist? Well, while the feature works perfectly on macOS, it's widely known that site search just does not work on Arc for Windows. So, decided to fix it.
| Shortcut | Site | 
|---|---|
| @perplexity | Perplexity AI | 
| @g | |
| @youtube | YouTube | 
| @morphic | Morphic | 
| @qwant | Qwant | 
| @phind | Phind | 
| @yandex | Yandex | 
@perplexity how to make pasta@youtube funny cats@phind javascript arraysThe script will instantly redirect you to the corresponding search engine with your query.
searchEngines arrayjavascript
{
shortcut: '@example',
url: 'https://example.com/search?q=%s'
}
searchDomains Set:
javascript
const searchDomains = new Set([
'example.com',
// other domains...
]);
searchEngines arraysearchDomains Set⚠️ Do not add your browser's default search engine to the script. This can cause redirect loops because:
For example, if you use Brave Search as your default search engine, don't add the @brave shortcut to the script.
The script supports various search query parameters:
q (most search engines)search_query (YouTube)text (Yandex)