Site Search for Arc Browser for Google users

Enables site search for Arc browser and others using shortcuts

作者
faisalbhuiyan3038
日安装量
0
总安装量
4
评分
0 0 0
版本
0.1
创建于
2024-11-30
更新于
2024-11-30
大小
2.9 KB
许可证
MIT
适用于
所有网站

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.

Features

  • Instant redirection to search results
  • Multiple search engines support
  • Easy to customize and extend

Supported Search Engines

Shortcut Site
@perplexity Perplexity AI
@g Google
@youtube YouTube
@morphic Morphic
@qwant Qwant
@phind Phind
@yandex Yandex

Usage

  1. Install a userscript manager (like Tampermonkey)
  2. Install this userscript
  3. In any search box, type a shortcut followed by your search query
    • Example: @perplexity how to make pasta
    • Example: @youtube funny cats
    • Example: @phind javascript arrays

The script will instantly redirect you to the corresponding search engine with your query.

Customization

Adding a New Search Engine
  1. Open the userscript
  2. Find the searchEngines array
  3. Add a new entry following this format: javascript { shortcut: '@example', url: 'https://example.com/search?q=%s' }
  4. Add the domain to the searchDomains Set: javascript const searchDomains = new Set([ 'example.com', // other domains... ]);
Removing a Search Engine
  1. Remove its entry from the searchEngines array
  2. Remove its domain from the searchDomains Set

Important Note About Default Search Engines

⚠️ Do not add your browser's default search engine to the script. This can cause redirect loops because:

  1. When you search, your browser first redirects to your default search engine
  2. The script then tries to redirect from there
  3. This creates a conflict and breaks the functionality

For example, if you use Brave Search as your default search engine, don't add the @brave shortcut to the script.

Query Parameter Support

The script supports various search query parameters:

  • q (most search engines)
  • search_query (YouTube)
  • text (Yandex)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址