Remove YouTube Redirection and Open in Private Window in Safari

When you copy a link to another website on Youtube, you get YouTube redirection instead of the direct link. You run this macro from the clipboard filter menu. It checks if the link was copied from video description or info card (different pattern) and removes YouTube redirection using a regular expression. Then it decodes the URL, opens it in a new private window in Safari and deletes links from the clipboard history.

Remove Youtube redirection and open in private window.kmmacros (5.6 KB)