aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2020-05-06 00:57:29 +0200
committerTeddy Wing2020-05-06 01:00:59 +0200
commit50859155dff9a85645dbfddf166ed888756be107 (patch)
treeef815d3a67d7e270e37375261c2418fb0fdddfdd /Makefile
parent0c56f4361c836f15d22daf7ce70570f9f95afdae (diff)
downloadnetflix-immersive-50859155dff9a85645dbfddf166ed888756be107.tar.bz2
Convert from a web extension to a user script
Since it looks like everything's going to happen in the content script, might as well make this a user script instead. Build with Browserify in order to get a compiled JS file compatible with browsers. For some reason I'm currently getting an error complaining that the `stylesheet` variable is `null`. Need to look into that.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f438824
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+BROWSERIFY := ./node_modules/.bin/browserify
+TSC := ./node_modules/.bin/tsc
+
+
+all: build/netflix-no-skip.user.js
+
+build/%.js: src/%.ts
+ $(TSC)
+
+build/netflix-no-skip.user.js: build/index.js src/userscript-header.txt
+ $(BROWSERIFY) $^ -o $@
+
+ cat src/userscript-header.txt $@ > $@.tmp
+ mv $@.tmp $@