From 82c986779c0469e32b40a0f767658330b43bdec9 Mon Sep 17 00:00:00 2001 From: "mr.Shu" Date: Wed, 28 Sep 2016 00:05:00 +0200 Subject: [PATCH] update: Add 'call to action' * Add Call to Action for non-windows platforms. Signed-off-by: mr.Shu --- js/background.js | 12 ++++++++++++ manifest.json | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/js/background.js b/js/background.js index 3280a2be..57a0db86 100755 --- a/js/background.js +++ b/js/background.js @@ -69,6 +69,18 @@ function Background() { }); } }); + + // Show search engine settings along with steps required to make DuckDuckGo + // the default for platforms where the override does not work. + if (os !== 'w') { + chrome.tabs.create({ url: 'chrome://settings/searchEngines' }); + chrome.notifications.create({ + type: "basic", + iconUrl: "./img/icon_128.png", + title: "One more step!", + message: "Click 'Make Default' next to DuckDuckGo in the list below." + }); + } }); chrome.extension.onMessage.addListener(function(request, sender, callback) { diff --git a/manifest.json b/manifest.json index 224f619b..d4951f5c 100755 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "DuckDuckGo for Chrome", - "version": "42.7.3", + "version": "42.7.4", "description": "DuckDuckGo enhancements for Chrome.", "icons": { "16": "img/icon_16.png", @@ -51,6 +51,7 @@ "contextMenus", "webRequest", "webRequestBlocking", - "*://*.duckduckgo.com/" + "*://*.duckduckgo.com/", + "notifications" ] }