From ee4954a4f31702495d6ff54ace8c5e06c0eb4c8f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 19 Sep 2021 22:27:14 +0200 Subject: Add a way to get rid of the reload keyboard shortcut for Chrome The keyboard shortcut for reloading the extension causes the extension to fail to load in Chrome. That happens because the default shortcut uses the Control and Option modifiers together: > Key combinations that involve Ctrl+Alt are not permitted in order to > avoid conflicts with the AltGr key. https://developer.chrome.com/docs/extensions/reference/commands/#key-combinations Provide a way to remove the keyboard shortcuts from the manifest for Chrome. The shortcuts aren't necessary in Chrome, as new CSS files and changes to existing ones are automatically recognised without having to reload the extension. On Firefox, the extension must be manually reloaded in order for CSS changes to take effect. --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..afd4597 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Copyright (c) 2021 Teddy Wing +# +# This file is part of Legibility. +# +# Legibility is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, or (at +# your option) any later version. +# +# Legibility is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Legibility. If not, see . + + +.PHONY: chrome +chrome: + perl -i -0777 -pe 's/,\n\n\t"commands".*\t}//ms' manifest.json -- cgit v1.2.3 From 555ab5e8a6c045beb78adcd9dade3fe61f96f6ef Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 21 Sep 2021 21:01:11 +0200 Subject: README: Add `make chrome` to Chrome installation instructions --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c5b44c4..3fc2573 100644 --- a/README.md +++ b/README.md @@ -54,9 +54,12 @@ button on Legibility’s row. ### Chrome -Begin by cloning this repository. Open the Extensions page -(`chrome://extensions/`) and click the “Load unpacked” button. In the resulting -file browser, select the extension’s directory. + $ git clone https://github.com/teddywing/Legibility.git + $ cd Legibility + $ make chrome + +Open the Extensions page (`chrome://extensions/`) and click the “Load unpacked” +button. In the resulting file browser, select the extension’s directory. ## License -- cgit v1.2.3 From c73dff448350817476728ee738c8cd705c9d14ba Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 21 Sep 2021 21:03:28 +0200 Subject: Increase version v0.1.0 -> v0.1.1 --- CHANGELOG | 6 ++++++ manifest.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 96fac32..bc8048e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,12 @@ CHANGELOG ========= +v0.1.1 (2021-09-21): + Fixes: + + * Remove the extension reload keyboard shortcut in Chrome, as it isn't + necessary in Chrome and caused a load error. + v0.1.0 (2021-09-16): Additions: diff --git a/manifest.json b/manifest.json index c30245f..f5ad382 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Legibility", "description": "Apply custom CSS to web pages.", - "version": "0.1.0", + "version": "0.1.1", "applications": { "gecko": { -- cgit v1.2.3