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 (limited to '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