Fixed incorrect opensearch template, updated readme
parent
20fce34db3
commit
48b9f66490
|
@ -30,8 +30,11 @@ heroku open
|
|||
TODO
|
||||
|
||||
## Extra Steps
|
||||
- Set Shoogle as your primary search engine
|
||||
- From the main shoogle folder, run `python opensearch.py "\<your app url\>"`
|
||||
#### Set Shoogle as your primary search engine
|
||||
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)
|
||||
- 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)
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<Description>Shoogle: A lightweight, deployable Google search proxy for desktop/mobile that removes Javascript, AMP links, and ads</Description>
|
||||
<InputEncoding>UTF-8</InputEncoding>
|
||||
<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}"/>
|
||||
</Url>
|
||||
<Url type="application/x-suggestions+json" template="SHOOGLE_URL"/>
|
||||
<moz:SearchForm>SHOOGLE_URL</moz:SearchForm>
|
||||
<Url type="application/x-suggestions+json" template="SHOOGLE_URL/search"/>
|
||||
<moz:SearchForm>SHOOGLE_URL/search</moz:SearchForm>
|
||||
</OpenSearchDescription>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ if len(sys.argv) != 2:
|
|||
print('Example: python opensearch.py "https://my-app-1776.herokuapps.com"')
|
||||
sys.exit(0)
|
||||
|
||||
app_url = sys.argv[1]
|
||||
app_url = sys.argv[1].rstrip('/')
|
||||
opensearch_template = open(template_path, 'r').read()
|
||||
|
||||
with open(opensearch_path, 'w') as opensearch_xml:
|
||||
|
|
Loading…
Reference in New Issue