bonus tip: for more darkness > https://darkreader.org/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var through2 = require('through2'); | |
gulp.task('build', function () { | |
return gulp.src('./src/main.js') | |
.pipe(through2.obj(function (file, enc, next) { | |
browserify(file.path, { debug: process.env.NODE_ENV === 'development' }) | |
.transform(require('babelify')) | |
.bundle(function (err, res) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
To install, find your reddit_enhancement_suite.user.js file and paste it in after the other modules. | |
Firefox seems to detect when you tamper with extensions, so for now this is only working in Chrome. | |
1. WIN: Press Windows+R and paste in "%HOMEDRIVE%%HOMEPATH%\AppData\Local\Google\Chrome\User Data\Default\Extensions" (w/o quotes). | |
MAC: Open a Finder window, press Command+Shift+G, and paste in "~/Library/Application Support/Google/Chrome/Default/Extensions" (w/o quotes). | |
2. Paste "reddit_enhancement_suite.user.js" (w/o quotes) into the search bar, and search in the Extensions folder. | |
3. Open the file in a text editor (if you don't have one, download Sublime Text from sublimetext.com and use that). | |
Paste the code right after all the other module definitions, which should be around line 21323. |