Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nate-parrott committed Mar 27, 2015
2 parents 78ad1a5 + c57b491 commit 8ca5874
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PluginDirectories/1/genius.bundle/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def results(parsed, original_query):
}, 100);
</script>
"""%(json.dumps(search_url)),
"webview_user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53",
"webview_user_agent": "Mozilla/5.0 AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53",
"webview_links_open_in_browser": True
}

Expand Down
Binary file added PluginDirectories/1/qiita.bundle/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions PluginDirectories/1/qiita.bundle/examples.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
qiita ~qiitaquery(query here)
7 changes: 7 additions & 0 deletions PluginDirectories/1/qiita.bundle/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Qiita",
"displayName": "Search Qiita",
"examples": ["qiita flashlight"],
"categories": ["Developer"],
"creator_name": "Takuya Mannami"
}
27 changes: 27 additions & 0 deletions PluginDirectories/1/qiita.bundle/plugin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import urllib, json, i18n

def results(parsed, original_query):
search_specs = [
["Qiita", "~qiitaquery", "http://qiita.com/search?&q="]
]
for name, key, url in search_specs:
if key in parsed:
search_query = parsed[key].encode('UTF-8')
search_url = url + urllib.quote_plus(search_query)
return {
"title": i18n.localstr("Search {0} for '{1}'".format(name, search_query)),
"run_args": [search_url],
"html": """
<script>
setTimeout(function() {
window.location = %s
}, 500);
</script>
"""%(json.dumps(search_url)),
"webview_user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53",
"webview_links_open_in_browser": True
}

def run(url):
import os
os.system('open "{0}"'.format(url))
2 changes: 1 addition & 1 deletion PluginDirectories/1/torrent.bundle/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
def results(parsed, original_query):
search_specs = [
["Torrentz", "~torrentzquery", "http://torrentz.eu/search?q="],
["Kickass", "~kickassquery", "http://kickass.so/usearch/" ]
["Kickass", "~kickassquery", "http://kickass.to/usearch/" ]
]

for name, key, url in search_specs:
Expand Down
Binary file modified PluginDirectories/1/wireless-toggles.bundle/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8ca5874

Please sign in to comment.