finicky
finicky copied to clipboard
WIP: Add JavascriptCore polyfill for require()
I want to put a number of helper functions in a separate file (see https://github.com/johnste/finicky/issues/261) including a base64 decoding function (see https://github.com/johnste/finicky/issues/223) so that I can decode and rewrite click tracking URLs where the ultimate URL is inside the base64 encoded query parameter.
(Here's my config https://github.com/jamesramsay/dotfiles/blob/main/finicky/config.js)
I wrote this as a quick proof-of-concept and have been using locally. @johnste are you open to including a polyfill like this?
Thanks @jamesramsay, +1 on the feature request.
My use case would be to base the decision on which browser to use on the contents of a SAML message which I need to decode (Base64, then inflate) to the full XML. Happy to contribute something if that's something you can accept in principle @johnste?
Merging the polyfill, thanks @jamesramsay !