Last active
January 28, 2020 11:16
-
-
Save kiwofusi/3b8991441dde58746e44c712c19e03da to your computer and use it in GitHub Desktop.
YouTubeのチャット欄のモデレータのコメントを見やすくするブックマークレット
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:for (const msg of document.querySelector('#chatframe').contentWindow.document.querySelectorAll('yt-live-chat-text-message-renderer')) { if (msg.getAttribute('author-type') === 'moderator') { document.querySelector('#chatframe').contentWindow.document.querySelector('#item-scroller.animated.yt-live-chat-item-list-renderer #items').append(msg); } } | |
上の文字列をブックマークして実行するとモデレータのコメントが一番下に移動します。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (const msg of document.querySelector('#chatframe').contentWindow.document.querySelectorAll('yt-live-chat-text-message-renderer')) { | |
if (msg.getAttribute('author-type') === 'moderator') { | |
document.querySelector('#chatframe').contentWindow.document.querySelector('#item-scroller.animated.yt-live-chat-item-list-renderer #items').append(msg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment