您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes YouTube automatically redirect you to your Subscription page if signed in.
// ==UserScript== // @name YouTube Default to My Subscriptions // @namespace https://greasyforks.org/users/5097-aemony // @description Makes YouTube automatically redirect you to your Subscription page if signed in. // @include *://*.youtube.com/ // @exclude /^https?:\/\/\w+\.youtube\.com\/\w+$/ // @run-at document-start // @version 1.0 // ==/UserScript== var regex = new RegExp("/feed/subscriptions[/u]*"); // Check if cookie SID can be found (seems to be used when signed in) if (document.cookie.indexOf("SID") !== -1 && !document.referrer.match(regex)) { document.location = document.URL + "feed/subscriptions"; }