Browse Source

youtube: display tags as hover text on title

master
Conduitry 2 months ago
parent
commit
abb73d48b2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/youtube.user.js

+ 2
- 0
src/youtube.user.js View File

@ -16,5 +16,7 @@
if (el.getAttribute('aria-pressed') === 'true') {
el.dispatchEvent(new MouseEvent('click'));
}
const tags = [...document.querySelectorAll('meta[property="og:video:tag"]')].map(el => el.content).join(', ');
document.querySelectorAll('h1.title').forEach(el => el.title = tags);
}
})();

Loading…
Cancel
Save