mirror of
https://github.com/taigrr/searchBGon
synced 2025-01-18 05:03:12 -08:00
added ddg
This commit is contained in:
parent
ab6fb6a1c3
commit
1fe2da1f9d
@ -4,8 +4,9 @@ function announce_close(){
|
||||
var closeable=[];
|
||||
for (var i=0; i<tabs.length; ++i) {
|
||||
console.log(tabs[i]);
|
||||
if(tabs[i].url.includes("https://www.google.com/search?"))
|
||||
{
|
||||
if(tabs[i].url.includes("google.com/search?")) {
|
||||
closeable.push(tabs[i].id)
|
||||
} else if(tabs[i].url.includes("duckduckgo.com/?q=")){
|
||||
closeable.push(tabs[i].id)
|
||||
}
|
||||
chrome.tabs.remove(closeable);
|
||||
|
@ -4,7 +4,7 @@
|
||||
"description": "Closes all Google Search tabs when clicked to free up tabs and save your sanity.",
|
||||
"short_name":"SearchBGon",
|
||||
"author": "Tai Groot",
|
||||
"version": "2.0.0",
|
||||
"version": "3.0.0",
|
||||
"browser_action": {
|
||||
"default_icon": "static/icon.png"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user