Skip to content

Commit

Permalink
nayn search
Browse files Browse the repository at this point in the history
  • Loading branch information
hmert committed May 30, 2020
1 parent 54ba5a2 commit 0490916
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
@@ -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 });
});
23 changes: 23 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
Binary file added nayn_128.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 0490916

Please # to comment.