Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

Commit

Permalink
Opera search from the location bar
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshu committed Jul 1, 2014
1 parent 3307b46 commit 5563243
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
EXTNAME := opera-zeroclick EXTNAME := opera-zeroclick
KEYFILE := $(EXTNAME).pem KEYFILE := $(EXTNAME).pem
SHELL := /usr/bin/env bash SHELL := /usr/bin/env bash
CHROME := chromium -n --args CHROME := opera-developer -n --args
CWD := $(shell pwd) CWD := $(shell pwd)
TMPDIR := $(shell mktemp -d) TMPDIR := $(shell mktemp -d)
VERSION := $(shell python2 -c "import json,sys;print json.loads(sys.stdin.read()).get('version','')" < manifest.json) VERSION := $(shell python2 -c "import json,sys;print json.loads(sys.stdin.read()).get('version','')" < manifest.json)
Expand Down
10 changes: 5 additions & 5 deletions js/background.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ Background.prototype.query = function(query, callback)


var background = new Background(); var background = new Background();


// chrome.omnibox.onInputEntered.addListener( function(text) { chrome.omnibox.onInputEntered.addListener( function(text) {
// chrome.tabs.getSelected( undefined, function(tab) { chrome.tabs.query({'currentWindow': true, 'active': true}, function(tabs) {
// chrome.tabs.update(tab.id, {url: tab.url = "https://duckduckgo.com/?q="+encodeURIComponent(text)}, undefined); chrome.tabs.update(tabs[0].id, {url: "https://duckduckgo.com/?q="+encodeURIComponent(text)});
// }); });
// }); });

0 comments on commit 5563243

Please sign in to comment.