Copy YouTube URL w/ Timestamp & Details

Adds two buttons to manage and copy current YouTube live or video URL with it's timestamp and some other details to clipboard then turn into a shortened url (youtu.be) and auto switch color depending on your theme color, has a ~15 to 30 seconds delay for the time capture. (the Date and Time capture only works if this is an ongoing stream)

Stan na 20-10-2023. Zobacz najnowsza wersja.

Autor
Azb
Oceny
0 0 0
Wersja
0.2
Utworzono
19-10-2023
Zaktualizowano
20-10-2023
Rozmiar
9,88 KB
Licencja
MIT
Dotyczy

Adds a button to copy current YouTube video or live URL with timestamp to clipboard and turn it into a shortened url (youtu.be) - auto switch color depending on your theme color, is responsive.

Includes:

Dark Mode Detection:
Determines if YouTube is in dark or light mode to adjust the button's appearance.

Timestamp Retrieval:
For videos, the current playback time is fetched.
For live streams, the ongoing timestamp displayed on the YouTube player is used.

Date & Time Retrieval (Live Only):
Gather date & time of your current timestamp. Date is in American format, Time is in UTC

Channel Name Retrieval:
Gather the current channel name you're on

Button Integration:
A "Copy URL" button is added near the others buttons and is styled in the same way.
When clicked, it creates the timestamped, shortened URL and copies it to the clipboard.
A "Settings" button is added to manage which details you want to gather with your URL (Date / Time only works with ongoing stream) and Channel Name

Notification:
A temporary "URL Copied!" notification appears near the button after the URL is copied.