-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chrome support & manifest V3 support changes
+ Added support for chrome + Changes for manifest V3 = bgScript URLSearchParams was replaced with URL due to USP not working in Chrome MV3 = setBadgeText was separated into new function because browserAction was renamed to action in MV3 = Firefox remains on V2 because of the green dot permissions issue https://bugzilla.mozilla.org/show_bug.cgi?id=1851083 = Manifests have been given separate folder due to parcel issue parcel-bundler/parcel#8404 = Replaced @types/firefox-webext-browser with @types/webextension-polyfill as they both provide the same types & webextension-polyfill is in use for cross-browser compatibility of the Browser namespace
- Loading branch information
1 parent
70c8903
commit 5825a59
Showing
11 changed files
with
136 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "Omnisearch Companion", | ||
"version": "1.1.3", | ||
"description": "Display relevant search results from the Obsidian Omnisearch plugin.", | ||
"icons": { | ||
"300": "../../icons/Icon.png" | ||
}, | ||
"permissions": ["tabs", "storage"], | ||
"manifest_version": 3, | ||
"content_scripts": [ | ||
{ | ||
"matches": ["<all_urls>"], | ||
"js": ["../content_scripts/cScript.ts"] | ||
} | ||
], | ||
"action": { | ||
"default_icon": "../../icons/Icon.png", | ||
"default_title": "Omnisearch Companion", | ||
"default_popup": "../popup/popup.html" | ||
}, | ||
"options_ui": { | ||
"page": "../options/options.html" | ||
}, | ||
"background": { | ||
"service_worker": "../background_scripts/bgScript.ts", | ||
"type": "module" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "Omnisearch Companion", | ||
"version": "1.1.3", | ||
"description": "Display relevant search results from the Obsidian Omnisearch plugin.", | ||
"icons": { | ||
"300": "../../icons/Icon.png" | ||
}, | ||
"permissions": ["tabs", "storage"], | ||
"manifest_version": 2, | ||
"content_scripts": [ | ||
{ | ||
"matches": ["<all_urls>"], | ||
"js": ["../content_scripts/cScript.ts"] | ||
} | ||
], | ||
"browser_action": { | ||
"default_icon": "../../icons/Icon.png", | ||
"default_title": "Omnisearch Companion", | ||
"default_popup": "../popup/popup.html" | ||
}, | ||
"options_ui": { | ||
"page": "../options/options.html" | ||
}, | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "{c60894d8-7110-42a7-aaa8-1a0b64464b42}" | ||
} | ||
}, | ||
"background": { | ||
"scripts": ["../background_scripts/bgScript.ts"], | ||
"persistent": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import browser from 'webextension-polyfill'; | ||
|
||
export function isManifestV3(){ | ||
return browser.runtime.getManifest().manifest_version === 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import browser from 'webextension-polyfill'; | ||
|
||
export type SettingsType = { | ||
port: string | ||
notesShown: string | ||
|