aboutsummaryrefslogtreecommitdiffstats
path: root/firefox/manifest.json
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-10-24 19:22:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-10-24 19:22:01 -0700
commit47f82008434777eec7b2707563b087483aa78fd6 (patch)
tree9b7ceafb25d0e2ba86b7cd742cd5f80b85b122bf /firefox/manifest.json
parentcb7b3b5cfb3d59e1e3210c6eeff8cb39e6830c8e (diff)
downloadjp-hash-47f82008434777eec7b2707563b087483aa78fd6.tar.gz
jp-hash-47f82008434777eec7b2707563b087483aa78fd6.tar.bz2
jp-hash-47f82008434777eec7b2707563b087483aa78fd6.zip
New: JP-Hash Firefox extension.
Puts a button on the toolbar which will replace the contents of the current input box with its JP-Hash. The Alt-J hot key sequence does the same. * firefox/background.js, * firefox/jp-hash.js: New files. * firefox/jp-hash-32.png, * firefox/jp-hash-48.png, * firefox/jp-hash-96.png: Likewise. * firefox/manifest.json: Likewise.
Diffstat (limited to 'firefox/manifest.json')
-rw-r--r--firefox/manifest.json48
1 files changed, 48 insertions, 0 deletions
diff --git a/firefox/manifest.json b/firefox/manifest.json
new file mode 100644
index 0000000..82c3c35
--- /dev/null
+++ b/firefox/manifest.json
@@ -0,0 +1,48 @@
+{
+ "manifest_version": 2,
+ "name": "JP-Hash",
+ "version": "1.0",
+
+ "description": "Converts any text input field content into its JP-Hash",
+
+ "homepage_url" : "https://www.kylheku.com/cgit/jp-hash/about",
+
+ "icons": {
+ "48": "jp-hash-48.png",
+ "96": "jp-hash-96.png"
+ },
+
+ "background": {
+ "scripts": ["background.js"]
+ },
+
+ "content_scripts": [
+ {
+ "matches": ["<all_urls>"],
+ "js": ["jp-hash.js"]
+ }
+ ],
+
+ "browser_action": {
+ "default_icon": "jp-hash-32.png",
+ "default_title": "Calculate JP-Hash"
+ },
+
+ "commands": {
+ "_execute_browser_action": {
+ "suggested_key": {
+ "default": "Alt+J"
+ }
+ }
+ },
+
+ "permissions": [
+ "<all_urls>", "webNavigation"
+ ],
+
+ "browser_specific_settings": {
+ "gecko": {
+ "id": "json-hash@kylheku.com"
+ }
+ }
+}