您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Simple script to change youtube playlist links (on the play list page under channels) to go directly to the playlist instead of the first video.
// ==UserScript== // @name Direct Playlist Links for Youtube // @namespace http://tampermonkey.net/ // @version 0.2 // @description Simple script to change youtube playlist links (on the play list page under channels) to go directly to the playlist instead of the first video. // @author Son_Of_Diablo // @include *://*.youtube.com/channel/*/playlists // @include *://youtube.com/channel/*/playlists // @include *://*.youtube.com/user/*/playlists // @include *://youtube.com/user/*/playlists // @grant none // ==/UserScript== (function() { 'use strict'; var playlists = document.getElementsByClassName("yt-simple-endpoint style-scope ytd-grid-playlist-renderer"); var playlists2 = document.getElementsByClassName("yt-simple-endpoint style-scope ytd-playlist-thumbnail"); for (var i = 0; i < playlists.length; i++) { changeUrls(playlists[i]); } for (var i2 = 0; i2 < playlists2.length; i2++) { changeUrls(playlists2[i2]); } function changeUrls(playlist){ var tmpUrl = playlist.href; var index = tmpUrl.indexOf("&"); playlist.href = "/playlist?" + tmpUrl.substring(index + 1); } })();