Display publish date for Youtube related video
✓ Published0🌍 Public
Aadkdev
Last edited Oct 28, 2017
Created on Oct 28, 2017
This userscript displays the publish date for YouTube related videos directly within their metadata lines. It runs after the page loads and waits five seconds before scanning the DOM for video titles, bylines, and metadata containers. The code extracts the date from each title’s `aria-label` attribute by stripping the title text and uploader name, then creates a new `<span>` element with the date and appends it to the corresponding metadata block. It relies on standard DOM APIs like `querySelectorAll`, `createElement`, and `classList.add`.
AI-generated description