Compare commits
No commits in common. "ccb0968b189d11bc53ed2b797d3f447ae412535f" and "2e579f350d38964de18a2e56b3e73e4847b71f01" have entirely different histories.
ccb0968b18
...
2e579f350d
|
@ -30,8 +30,8 @@ browser.runtime.onInstalled.addListener(async () => {
|
||||||
|
|
||||||
browser.webNavigation.onBeforeNavigate.addListener(async (details) => {
|
browser.webNavigation.onBeforeNavigate.addListener(async (details) => {
|
||||||
const detailsUrl = new URL(details.url);
|
const detailsUrl = new URL(details.url);
|
||||||
const supportedHosts = ['duckduckgo.com', 'google.com', 'www.google.com'];
|
const supportedHosts = ['duckduckgo.com', 'google.com'];
|
||||||
if (!supportedHosts.includes(detailsUrl.host)) {
|
if (supportedHosts.includes(detailsUrl.host)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ export default function createManifest(
|
||||||
name: 'Fangs',
|
name: 'Fangs',
|
||||||
description:
|
description:
|
||||||
'Inject custom DuckDuckGo Bangs into your browsing experience.',
|
'Inject custom DuckDuckGo Bangs into your browsing experience.',
|
||||||
version: '0.3.1',
|
version: '0.3.0',
|
||||||
permissions: ['storage', 'webNavigation'],
|
permissions: ['storage', 'webNavigation'],
|
||||||
options_ui: {
|
options_ui: {
|
||||||
page: 'options/index.html',
|
page: 'options/index.html',
|
||||||
|
|
Loading…
Reference in New Issue