diff options
author | Teddy Wing | 2021-03-20 23:26:52 +0100 |
---|---|---|
committer | Teddy Wing | 2021-03-21 17:45:06 +0100 |
commit | da0d35ac87e7c436db486036a2dba26cd039c567 (patch) | |
tree | e771eb694e8cd47972de11c2b634224f08c3cecd /main.js | |
parent | 2eafde8cca885987c12dfeb7aaed815c11a93ebc (diff) | |
download | Peniquitous-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.js | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -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'); |