diff --git a/background.js b/background.js new file mode 100644 index 0000000..fd22a97 --- /dev/null +++ b/background.js @@ -0,0 +1,6 @@ +chrome.omnibox.onInputEntered.addListener( + function(text) { + var q = text + " -site:trthaber.com -site:memurlar.net -site:yeniasir.com.tr -site:t24.com.tr -site:haber7.com -site:sondakika.com -site:yenisafak.com -site:posta.com.tr -site:milligazete.com.tr -site:birgun.net -site:yeniakit.com.tr -site:internethaber.com -site:ensonhaber.com -site:mynet.com -site:star.com.tr -site:takvim.com.tr -site:gazeteduvar.com.tr -site:haberturk.com -site:sozcu.com.tr -site:haberler.com -site:odatv.com -site:hurriyet.com.tr -site:milliyet.com.tr -site:sabah.com.tr -site:cumhuriyet.com.tr -site:cnnturk.com"; + var newURL = 'https://www.google.com/search?q=' + encodeURIComponent(q); + chrome.tabs.create({ url: newURL }); + }); diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..e7d9321 --- /dev/null +++ b/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "NAYN.SEARCH", + "description": "nayn yazıp haber sitelerinin çöplüğü olmadan arama sonuçlarını görün", + "version": "1.0", + "background": { + "scripts": ["background.js"], + "persistent": false + }, + "omnibox": { "keyword" : "nayn" }, + "manifest_version": 2, + "browser_action": { + "default_icon": { + "16": "nayn_128.png", + "32": "nayn_128.png" + } + }, + "icons": { + "16": "nayn_128.png", + "32": "nayn_128.png", + "48": "nayn_128.png", + "128": "nayn_128.png" + } +} diff --git a/nayn_128.png b/nayn_128.png new file mode 100644 index 0000000..ceb8f38 Binary files /dev/null and b/nayn_128.png differ