Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Show Youtube Tags
- // @namespace https://www.youtube.com/
- // @description Show the youtube tags
- // @include *://www.youtube.com/watch*
- // @version 1
- // ==/UserScript==
- var tagRepeatTimeout = setTimeout(tagAdditionCommand, 50);
- function tagAdditionCommand() {
- if (!ytplayer) {
- tagRepeatTimeout = setTimeout(tagAdditionCommand, 50);
- return;
- }
- var tags = ytplayer.config.args.keywords.replace(/,/g, ', ');
- if (!tags) {
- tags = "-";
- }
- var li = document.createElement('li')
- li.innerHTML =
- '<h4 class="title">Tags</h4> \
- <div class="content"> \
- <p id="eow-reuse"> ' + tags + ' </p> \
- </div>'
- document.getElementById('watch-description-extras').children[0].appendChild(li);
- clearTimeout(tagRepeatTimeout);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement