Here is how I converted the polyfill into an ES5 npm module. https://gist.github.com/damoclark/9a43d8c405d4c72e2325bdabd80496f0 (gm4-polyfill.module.js) <https://gist.github.com/damoclark/9a43d8c405d4c72e2325bdabd80496f0>
Interestingly, when I attempted to export an object with all the properties, but without using an IIFE (Immediately Invokable Function Expression), it didn't work. I'm not sure why - it exceeds the limits of my JS knowledge. Damo. On Saturday, November 4, 2017 at 1:26:36 AM UTC+10, Anthony Lieuallen wrote: > > It would make sense for me to own the npm package I guess. I'll need to > figure that out... > > On Sun, Oct 29, 2017 at 10:36 PM, <[email protected] <javascript:>> > wrote: > >> Hi Anthony, >> >> I also use npm/browserify as part of my toolset for building user scripts >> (for more substantial ones anyway). I've created an npm module version of >> the polyfill for my userscripts. I was going to publish via npm, but >> wanted to check with you first Anthony to see whether you wish to publish >> under the Greasemonkey name. >> >> Damo. >> >> -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.
