[YouTube] Remove share dialog

Copies link without opening share dialog

< Feedback on [YouTube] Remove share dialog

Review: Good - script works

Posted: 2023-07-19

Currently, it doesn't work for links like https://www.youtube.com/watch?app=desktop&v=egEraZP9yXQ which seems to be something that YouTube is showing on desktops. Changing the regex to /(?<=(\?|&)v=).+?(?=(&|$))/ig fixes it.

Post reply

Sign in to post a reply.