I'm new to node.js and I've been trying to use a function in my chrome extension that uses require - however, even after installing browserify, bundling up the modules in content.js into bundle.js, and trying to make require global with
browserify content.js --standalone Bundle > bundle.js
I'm still getting
Uncaught ReferenceError: require is not defined
The contents of my html file are at https://pastebin.com/JSUk1C0E
The contents of content.js (where my original code was) are at https://pastebin.com/BY7147R3
The contents of bundle.js are at https://github.com/zzirun/clickerance-bundle/blob/master/bundle.js
Any help would be really appreciated, and I'm really sorry if this is a stupid question hahaha