diff options
author | Teddy Wing | 2021-03-21 17:00:38 +0100 |
---|---|---|
committer | Teddy Wing | 2021-03-21 17:45:47 +0100 |
commit | 1e7a1cb1bf70736cf1673faa1ebc4119cb058771 (patch) | |
tree | 63807acf0c3000f777ff8794e3eda60c0c365368 | |
parent | dad4ca866f7c6a7b3795759a0263c33ffbba2cca (diff) | |
download | Peniquitous-1e7a1cb1bf70736cf1673faa1ebc4119cb058771.tar.bz2 |
Makefile: Add a new `peniquitous.user.js` target
Don't need Browserify. Just concatenate the user script header and the
compiled `main.js`.
Rebuild the `peniquitous.user.js` user script file.
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | peniquitous.user.js | 21 |
2 files changed, 20 insertions, 4 deletions
@@ -37,6 +37,9 @@ build/main.js: main.js.in $(addprefix build/,$(IMPORTS_BASENAME)) $< \ > $@ +peniquitous.user.js: build/main.js userscript-header.txt + cat userscript-header.txt build/main.js > $@ + .PHONY: clean clean: rm -rf build diff --git a/peniquitous.user.js b/peniquitous.user.js index 4242d9d..5458d7f 100644 --- a/peniquitous.user.js +++ b/peniquitous.user.js @@ -21,9 +21,6 @@ // along with this program. If not, see <https://www.gnu.org/licenses/>. -// var key_event = require('./lib/mousetrap/tests/libs/key-event.js'); -// var peniquitous = require('./peniquitous'); - function key_event () { var KeyEvent = function(data, type) { this.keyCode = 'keyCode' in data ? data.keyCode : 0; @@ -155,7 +152,23 @@ function key_event () { } function peniquitous () { - key_codes = { +// Copyright (c) 2015, 2021 Teddy Wing +// +// This program 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. +// +// This program 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 this program. If not, see <https://www.gnu.org/licenses/>. + + + var key_codes = { p: 80, n: 78, UP_ARROW: 38, |