Greasy Fork is available in English.
TOT
当前为
// ==UserScript==
// @name Enter the commenter's channel by youtube chat
// @namespace Enter the commenter's channel
// @version 1.0.0
// @description TOT
// @author null
// @match *://*.youtube.com/*
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @grant GM_addStyle
// ==/UserScript==
(function () {
'use strict';
if (window.location.pathname !== "/live_chat"&&window.location.pathname !== "/live_chat_replay") return;
let URL
let Itemslist = document.querySelector("#items.yt-live-chat-item-list-renderer");
if (!Itemslist) return;
Itemslist.ondblclick = (e) =>{
switch (e.target.id)
{
case "author-name":
URL = e.target.parentNode.parentNode.parentNode.data.authorExternalChannelId
URL&&window.open("https://www.youtube.com/channel/" + URL +"/about")
}
}
Itemslist.onmouseover = (e) =>{
switch (e.target.id)
{
case "author-name":
e.target.style.cursor = "pointer"
}
}
})();