{"data":{"markdownRemark":{"id":"469604ce-7c9d-5679-9c89-3232dc98292a","html":"<p>I tried using DuckDuckGo for a couple days (privacy, unbiased results, control, blah blah blah), but I found myself preceding every search with <code class=\"language-text\">!g</code>. DuckDuckGo has these things called <em>!Bangs</em>, which are “shortcuts that quickly take you to search results on other sites”, according to <a href=\"https://duckduckgo.com/bang\">their website</a>. For example, if I want to search “dog” on Wikipedia, I can type <code class=\"language-text\">!w dog</code> in the search field at the top of my browser, and it will take me to the <a href=\"https://en.wikipedia.org/wiki/Dog\">search result of dogs on wikipedia</a>.</p>\n<p><em>!Bangs</em> were the only thing stopping me from switching back to Google search… But then I found out you can homebrew your own bangs with Google and I instantly switched back.</p>\n<h2 id=\"creating-custom-search-engines\"><a href=\"#creating-custom-search-engines\" aria-label=\"creating custom search engines permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Creating Custom Search Engines</h2>\n<p>In Google Chrome, go to settings (⌘ + ,), scroll down to <em>Search Engine</em>, and select <em>Manage Search Engines</em>.</p>\n<p>In the <em>Other search engines</em> section, you might see a bunch of random stuff. These are websites automatically adding them for you. Feel free to delete these so there’s no conflicts when you add your own. When you select <strong>Add</strong>, a modal will pop up:</p>\n<p><img src=\"/media/custom_search_engine.png\" alt=\"add search engine\" title=\"Add New Search Engine\"></p>\n<p>There’s 3 fields with sort of crappy names, but here’s what they mean:</p>\n<ul>\n<li><strong>Search Engine</strong>: This is the name of your custom search. You never type this in, but it will display after you’ve activated the custom search.</li>\n<li><strong>Keyword</strong>: This is your shortcut to activate the custom search. I personally follow the same structure as DuckDuckGo’s <em>!Bangs</em> by preceding the shortcut with a <code class=\"language-text\">!</code>, but it can be whatever you want. I suggest picking a short-ish term that is related to the site you’re querying.</li>\n<li><strong>URL with %s in place of query</strong>: This field requires a little work. Go to the site you want to make a custom search for and make a search. You’ll most likely see your search reflected in the URL. Take this URL and substitute <code class=\"language-text\">%s</code> with the term that you searched.</li>\n</ul>\n<p>Here’s an example for searching for subreddits on Reddit:</p>\n<p><img src=\"/media/custom_search_example.png\" alt=\"add search engine example\" title=\"New Search Engine Example\"></p>\n<p>To use this custom search, type the <strong>keyword</strong> into your browser search bar, hit <em>space</em> or <em>tab</em>, and then type your query.</p>\n<p><img src=\"/media/custom_search.gif\" alt=\"using custom search gif\" title=\"Using Custom Search\"></p>\n<h2 id=\"my-custom-search-engines\"><a href=\"#my-custom-search-engines\" aria-label=\"my custom search engines permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>My Custom Search Engines</h2>\n<p>Here’s a list of the custom searches I currently have set up (along with the config):</p>\n<table>\n<thead>\n<tr>\n<th align=\"left\">Search Engine</th>\n<th align=\"left\">Keyword</th>\n<th align=\"left\">URL</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"left\">Reddit</td>\n<td align=\"left\">!sr</td>\n<td align=\"left\"><code class=\"language-text\">https://www.reddit.com/r/%s</code></td>\n</tr>\n<tr>\n<td align=\"left\">Google Drive</td>\n<td align=\"left\">!drive</td>\n<td align=\"left\"><code class=\"language-text\">https://drive.google.com/drive/search?q=%s</code></td>\n</tr>\n<tr>\n<td align=\"left\">Google Translate (to French)</td>\n<td align=\"left\">!2fr</td>\n<td align=\"left\"><code class=\"language-text\">https://translate.google.com/#en/fr/%s</code></td>\n</tr>\n<tr>\n<td align=\"left\">Netflix</td>\n<td align=\"left\">!netflix</td>\n<td align=\"left\"><code class=\"language-text\">https://www.netflix.com/search?q=%s</code></td>\n</tr>\n<tr>\n<td align=\"left\">YouTube</td>\n<td align=\"left\">!yt</td>\n<td align=\"left\"><code class=\"language-text\">https://www.youtube.com/results?search_query=%s</code></td>\n</tr>\n<tr>\n<td align=\"left\">Genius (Lyrics)</td>\n<td align=\"left\">!genius</td>\n<td align=\"left\"><code class=\"language-text\">https://genius.com/search?q=%s</code></td>\n</tr>\n<tr>\n<td align=\"left\">Thesaurus</td>\n<td align=\"left\">!t</td>\n<td align=\"left\"><code class=\"language-text\">https://www.thesaurus.com/browse/%s</code></td>\n</tr>\n<tr>\n<td align=\"left\">Google Maps</td>\n<td align=\"left\">!m</td>\n<td align=\"left\"><code class=\"language-text\">https://www.google.com/maps/search/%s</code></td>\n</tr>\n</tbody>\n</table>\n<p>If you want more inspiration (or keyword suggestions), check out <a href=\"https://duckduckgo.com/bang\">DuckDuckGo’s !Bangs page</a> for a very, very long list of shortcuts they have set up.</p>","fields":{"slug":"custom-search-engines","tagSlugs":["/tag/productivity/"]},"frontmatter":{"date":"2019-07-05T03:45:00.000Z","description":"Sometimes we want our searches to be more specific than Google. Maybe we want to search something on wikipedia, netflix,  or google translate. Maybe you think it takes one-too-many clicks to search for a site, go to it, and search from there. Here's the solution.","tags":["productivity"],"title":"custom search engine shortcuts"}}},"pageContext":{"isCreatedByStatefulCreatePages":false,"slug":"custom-search-engines"}}