@spelk piped command is a feature of bash or dash. You can create a script or invoke dash directly in "Application shortcuts":
sh -c 'xsel | sed -e "s/youtube.com/invidio.us/g" | xsel -b'
note the tricky quotation marks 😉
Don't have an account? You can sign up here