CSE
CSE copied to clipboard
This is an extension to customize Safari's search engine.
Customize Search Engine
Safari Extension to customize your search engine.
Features
Customize your Search Engine
Change Safari's default search engine.
This is the most basic feature.
CSE for Private Browse
Switch search engines in Private Browse.
Quick Search
Enter the keyword at the top to switch search engines.
Example:
- Search
br somethingto search in Brave Search - Search
wiki Safarito find Safari on Wikipedia - Search
yt Me at the zooto find the oldest videos on YouTube - Search
chatgpt Hello!to say hello to ChatGPT - Search
wbm apple.comto see the old Apple website
Emoji Search
If you enter only one emoji, you can search on Emojipedia.org.
Switch Search Engines by Shortcuts and Focus
You can use a different custom search engine or disable CSE while at work, school, etc.
How it works
CSE works on pages from Safari's default search engines (Google, DuckDuckGo, etc.).
It detects the special parameters in the URL when searching from Safari's search bar. (For example, Google has the parameter client=safari in its URL.)
Then automatically redirects the page to your search engine.
If the custom search engine has POST Data
CSE needs to create <form method="post"> on the page to submit the form.
Due to CSP restrictions, this will likely not work on Safari's default search engine, so first redirect to a local page generated by CSE (called post_redirector.html).
[!IMPORTANT] I know this method is not available in macOS Safari, so this feature is disabled by default in CSE on macOS.
Therefore, if you set a search engine with strict CSP restrictions (such as DuckDuckGo) as the default for Safari, custom search engines with POST Data will not be available.
License
This software is licensed under the terms of the Mozilla Public License 2.0.
Tip
Did you like it? Send me a tip if you like!