-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Due to manifest incompatibilities between Mozilla and Chrome different packages are built for each browser vendor.
- Loading branch information
1 parent
149411b
commit 4d6b503
Showing
6 changed files
with
68 additions
and
21 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
browser.browserAction.onClicked.addListener((tab) => { | ||
// Entrypoint for extension in Mozilla which only supports background script in | ||
// manifest version 3. | ||
browser.action.onClicked.addListener((tab) => { | ||
browser.tabs.create({ url: "bookmarks.html" }); | ||
}); | ||
}); |
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,22 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "Json Bookmarks", | ||
"version": "${version}", | ||
"homepage_url": "https://github.com/1nfiniteloop/json-bookmarks", | ||
"description": "Import and export bookmarks between browsers with a json file", | ||
"permissions": ["bookmarks"], | ||
"action": { | ||
"default_title": "JSON Bookmarks" | ||
}, | ||
"icons": { | ||
"16": "icon/16.png", | ||
"32": "icon/32.png", | ||
"48": "icon/48.png", | ||
"96": "icon/96.png", | ||
"128": "icon/128.png" | ||
}, | ||
"background": { | ||
"service_worker": "service_worker.js", | ||
"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
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,7 @@ | ||
// Entrypoint for extension in Chrome which only supports service workers in | ||
// manifest version 3. | ||
import "./third_party/browser-polyfill.min.js"; | ||
|
||
browser.action.onClicked.addListener((tab) => { | ||
browser.tabs.create({ url: "bookmarks.html" }); | ||
}); |
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