Show full upload dates in DD/MM/YYYY HH:MMam/pm format with improved performance
Das sind Skriptversionen, bei denen der Quelltext aktualisiert wurde. Alle Versionen anzeigen.
The "Full Date format for YouTube" userscript has been updated to address several issues that were causing it to fail with YouTube's current layout. This document explains the changes made and how they improve script functionality.
What changed: Added support for more URL formats, better fragment handling, and error handling to prevent script crashes if a URL is in an unexpected format.
What changed: Completely reworked selectors to match YouTube's current DOM structure and organized them into a more maintainable format.
What changed: Instead of blindly targeting the second span, the script now intelligently finds the best place to insert the date by looking for view count elements.
What changed: Added a debugging system that can be toggled on to help diagnose issues without cluttering the console during normal operation.
What changed: Added more reliable URL change detection to properly handle YouTube's single-page application navigation.
What changed: Added validation to check if the date is valid before proceeding, and wrapped the function in a try-catch to prevent script crashes.
What changed: Added multiple processing attempts at different times to catch elements as they load asynchronously.
holder.style.marginLeft = '4px'