您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change YouTube leftbar's subscription links to channel/user video page. For new YouTube layout only.
当前为
// ==UserScript== // @name Change YouTube Leftbar Subscription Links To Channel/User Video Page // @namespace ChangeYouTubeLeftbarSubscriptionLinksToChannelUserVideoPage // @version 1.0.1 // @description Change YouTube leftbar's subscription links to channel/user video page. For new YouTube layout only. // @author jcunews // @match *://www.youtube.com/* // @grant none // @run-at document-start // ==/UserScript== function patchGuide(guide) { if (guide && !guide.cysl_done) { guide.cysl_done = 1; guide.items.forEach(function(v, i) { if (v.guideSubscriptionsSectionRenderer) { v.guideSubscriptionsSectionRenderer.items.forEach(function(w, j) { w.guideEntryRenderer.navigationEndpoint.webNavigationEndpointData.url += "/videos"; }); } }); return true; } return false; } var ht1 = 0, ht2 = 0; (function chkStatic(ev) { clearTimeout(ht1); if (!patchGuide(window.ytInitialGuideData)) { ht1 = setTimeout(chkStatic, 0); } })(); (function chkSpf() { clearTimeout(ht2); if (window.spf && spf.request && !spf.request_cysl) { spf.request_cysl = spf.request; spf.request = function(a, b) { if (b && b.onDone) { var onDone_ = b.onDone, that = this; b.onDone = function(response, url) { if (response && (/\/guide_ajax\?/).test(response.url) && response.response && response.response.response) { patchGuide(response.response.response); } return onDone_.apply(this, arguments); }; return this.request_cysl.apply(this, arguments); } }; return; } ht2 = setTimeout(chkSpf, 0); })(); addEventListener("load", function() { clearTimeout(ht1); clearTimeout(ht2); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址