Copies link without opening share dialog
< Părere la script-ul [YouTube] Remove share dialog
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.
https://www.youtube.com/watch?app=desktop&v=egEraZP9yXQ
/(?<=(\?|&)v=).+?(?=(&|$))/ig
Autentifică-te pentru a posta un răspuns.
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.