aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
authorTeddy Wing2021-03-20 23:26:52 +0100
committerTeddy Wing2021-03-21 17:45:06 +0100
commitda0d35ac87e7c436db486036a2dba26cd039c567 (patch)
treee771eb694e8cd47972de11c2b634224f08c3cecd /main.js
parent2eafde8cca885987c12dfeb7aaed815c11a93ebc (diff)
downloadPeniquitous-da0d35ac87e7c436db486036a2dba26cd039c567.tar.bz2
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.
Diffstat (limited to 'main.js')
-rw-r--r--main.js17
1 files changed, 3 insertions, 14 deletions
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 <https://www.gnu.org/licenses/>.
-(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');