Fixed incorrect opensearch template, updated readme
parent
20fce34db3
commit
48b9f66490
|
@ -30,8 +30,11 @@ heroku open
|
||||||
TODO
|
TODO
|
||||||
|
|
||||||
## Extra Steps
|
## Extra Steps
|
||||||
- Set Shoogle as your primary search engine
|
#### Set Shoogle as your primary search engine
|
||||||
- From the main shoogle folder, run `python opensearch.py "\<your app url\>"`
|
1. From the main shoogle folder, run `python opensearch.py "\<your app url\>"`
|
||||||
|
2. Rebuild and release your updated app
|
||||||
|
- `heroku container:push web` and then `heroku container:release web`
|
||||||
|
3. Update browser settings
|
||||||
- Firefox (Desktop)
|
- Firefox (Desktop)
|
||||||
- Navigate to your app's url, and click the 3 dot menu in the address bar. At the bottom, there should be an option to "Add Search Engine". Once you've clicked this, open your Firefox Preferences menu, click "Search" in the left menu, and use the available dropdown to select "Shoogle" from the list.
|
- Navigate to your app's url, and click the 3 dot menu in the address bar. At the bottom, there should be an option to "Add Search Engine". Once you've clicked this, open your Firefox Preferences menu, click "Search" in the left menu, and use the available dropdown to select "Shoogle" from the list.
|
||||||
- Firefox (Mobile)
|
- Firefox (Mobile)
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
<Description>Shoogle: A lightweight, deployable Google search proxy for desktop/mobile that removes Javascript, AMP links, and ads</Description>
|
<Description>Shoogle: A lightweight, deployable Google search proxy for desktop/mobile that removes Javascript, AMP links, and ads</Description>
|
||||||
<InputEncoding>UTF-8</InputEncoding>
|
<InputEncoding>UTF-8</InputEncoding>
|
||||||
<Image width="16" height="16" type="image/x-icon">/static/img/favicon.ico</Image>
|
<Image width="16" height="16" type="image/x-icon">/static/img/favicon.ico</Image>
|
||||||
<Url type="text/html" template="SHOOGLE_URL">
|
<Url type="text/html" template="SHOOGLE_URL/search">
|
||||||
<Param name="q" value="{searchTerms}"/>
|
<Param name="q" value="{searchTerms}"/>
|
||||||
</Url>
|
</Url>
|
||||||
<Url type="application/x-suggestions+json" template="SHOOGLE_URL"/>
|
<Url type="application/x-suggestions+json" template="SHOOGLE_URL/search"/>
|
||||||
<moz:SearchForm>SHOOGLE_URL</moz:SearchForm>
|
<moz:SearchForm>SHOOGLE_URL/search</moz:SearchForm>
|
||||||
</OpenSearchDescription>
|
</OpenSearchDescription>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ if len(sys.argv) != 2:
|
||||||
print('Example: python opensearch.py "https://my-app-1776.herokuapps.com"')
|
print('Example: python opensearch.py "https://my-app-1776.herokuapps.com"')
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
app_url = sys.argv[1]
|
app_url = sys.argv[1].rstrip('/')
|
||||||
opensearch_template = open(template_path, 'r').read()
|
opensearch_template = open(template_path, 'r').read()
|
||||||
|
|
||||||
with open(opensearch_path, 'w') as opensearch_xml:
|
with open(opensearch_path, 'w') as opensearch_xml:
|
||||||
|
|
Loading…
Reference in New Issue