1
0
mirror of https://github.com/taigrr/searchBGon synced 2025-01-18 05:03:12 -08:00

added ddg

This commit is contained in:
Tai Groot 2020-10-26 05:09:21 -07:00
parent ab6fb6a1c3
commit 1fe2da1f9d
Signed by: taigrr
GPG Key ID: D00C269A87614812
2 changed files with 4 additions and 3 deletions

View File

@ -4,8 +4,9 @@ function announce_close(){
var closeable=[]; var closeable=[];
for (var i=0; i<tabs.length; ++i) { for (var i=0; i<tabs.length; ++i) {
console.log(tabs[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) closeable.push(tabs[i].id)
} }
chrome.tabs.remove(closeable); chrome.tabs.remove(closeable);

View File

@ -4,7 +4,7 @@
"description": "Closes all Google Search tabs when clicked to free up tabs and save your sanity.", "description": "Closes all Google Search tabs when clicked to free up tabs and save your sanity.",
"short_name":"SearchBGon", "short_name":"SearchBGon",
"author": "Tai Groot", "author": "Tai Groot",
"version": "2.0.0", "version": "3.0.0",
"browser_action": { "browser_action": {
"default_icon": "static/icon.png" "default_icon": "static/icon.png"
}, },