From da0d35ac87e7c436db486036a2dba26cd039c567 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 20 Mar 2021 23:26:52 +0100 Subject: Build into a Greasemonkey user script Add Browserify to enable imports. Remove the script insertion code since it isn't necessary for a user script. --- main.js | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'main.js') diff --git a/main.js b/main.js index a8e3328..16fd714 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,4 @@ -// Copyright (c) 2015 Teddy Wing +// 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 @@ -14,16 +14,5 @@ // along with this program. If not, see . -(function() { - [ - 'lib/mousetrap/tests/libs/key-event.js', - 'peniquitous.js' - ].forEach(function(file) { - var s = document.createElement('script'); - s.src = chrome.extension.getURL(file); - s.onload = function() { - this.parentNode.removeChild(this); - }; - document.documentElement.appendChild(s); - }); -})(); +require('./lib/mousetrap/tests/libs/key-event.js'); +require('./peniquitous'); -- cgit v1.2.3