# Swap the stack entries, as Target is on top and URL is below that ActionStackSwap # Duplicate the destination URL ActionPushDuplicate ActionPush UInt32:0 ActionPush 'String:http://' ActionStringLength ActionStringExtract ActionPush 'String:http://' ActionStringEquals ActionIf ActuallyDoGetUrl2: ActionPushDuplicate ActionPush UInt32:0 ActionPush 'String:https://' ActionStringLength ActionStringExtract ActionPush 'String:https://' ActionStringEquals ActionIf ActuallyDoGetUrl2: ActionPushDuplicate ActionPush UInt32:0 ActionPush 'String:/' ActionStringLength ActionStringExtract ActionPush 'String:/' ActionStringEquals ActionIf ActuallyDoGetUrl2: ActionPop ActionPop # Exit ActionJump EndOfPatch: ActuallyDoGetUrl2: # This is executed when the origins match ActionStackSwap # Perform Action ActionGetURL2 EndOfPatch: