TextBuddy can help you capture and manipulate URLs.
TextBuddy captures the current Safari URL in this demo and then runs the “Clean URL” command. This lets you quickly remove tracking and advertising parameters and “clean” the URL.
TextBuddy is smart and will remember which URL parameters you turn on or off the next time you clean a URL.