Adds exact upload time to youtube videos
Ili estas versioj de tiu ĉi skripto, kie la kodo estas ĝisdatigita. Montri ĉiujn versiojn
Updated to make it work on the new youtube layout
Adjusted French translation and created the variables outside of the if to prevent redeclaration of them
Added French and Italian translation (hopefully correct) and switched from moment.min.js 1.29.1 to moment-with-locales.min.js 1.29.4 to be able to set the locale and use the set locales month names and weekday names. I haven't really had in my brain how I set up the script initially so I just hope it works for now, if not I need to look into it again later.
Moved the date and time above the player to hopefully fix the problems reported by https://greasyfork.org/en/users/912803-karimawii. It seems to work from my few tests.
Fixed it so it also updates without reloading the page.
Added Compatibility with YouTube's new design
Changed some strings because youtube made some tweaks on it's page whereas i couldn't find the fitting element by the id 'date'. I had to use the id 'info-strings'.
Repaired the script because it strangly enough it stopped working after a day.
Repaired the script by using the InnerTube API for getting the player video details, because i got a "404 Not Found" when i was using the script with the old approach.
repaired script by replacing 'https://www.youtube.com/get_video_info?video_id=' with 'https://www.youtube.com/get_video_info?html5=1&video_id='
Preset the constants except the API Key in english and german according to the language of the youtube page and added a TODAY_AT constant based on the recommendation of https://greasyfork.org/de/users/74427-ccrowles
Added the ability to reload the Videoinfo from the API, to get the new data (if nothing changes the Info on the page does update with the same content already was there - so no visible update).Maybe usefull if you opened a livestream/premiere on scheduled and you want to see the uptime counter or when you want to see when exactly the livestream/premiere ended
Made Age Restriction Text configurable
Removed my API-Key from the script and regenerated it on the developer console, because i forgot to remove it from the script in the last version