aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-09-19 22:27:14 +0200
committerTeddy Wing2021-09-19 22:27:14 +0200
commitee4954a4f31702495d6ff54ace8c5e06c0eb4c8f (patch)
tree186261680859385612168f52bd010633cae991cd
parent26bcc649bc44d8b1cf6bbbf04597e703ddce31fe (diff)
downloadLegibility-fix-reload-keyboard-shortcut-on-Chrome.tar.bz2
Add a way to get rid of the reload keyboard shortcut for Chromefix-reload-keyboard-shortcut-on-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.
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>.
+
+
+.PHONY: chrome
+chrome:
+ perl -i -0777 -pe 's/,\n\n\t"commands".*\t}//ms' manifest.json