Utility action: JavaScript HTTP/S URL manipulation class


#1

http://actions.getdrafts.com/a/1HB

I want to manipulate URLs as part of actions.

There’s a proposed standard for a JavaScript URL class. Unfortunately, it is not available within Drafts (don’t know whether JavaScript Core supports it). So, I implemented a goodly portion of it (with several limitations).

In order to use this, you will need to use an Include Action step prior to your own JavaScript step.

My biggest use for this will be to strip analytics parameters (e.g. all the utm_* parameters for Google Analytics) from URLs.