>>45391361/ ==UserScript==
// @name YouTube - Autoplay Channels Stop
// @namespace
http://script.b9mx.com/youtube-autoplay-channels-stop.user.js// @description Stop autoplay for link clicking to visit channel, profile, or playlist.
// @include http*://
www.youtube.com/*
// @include http*://
apis.google.com/u/0/_/hovercard/*// @version 1.0.4
// @grant none
// ==/UserScript==
window.a_is_channel = [];
window.a_is_channel[3] = 0;
window.a_is_channel[2] = 0;
window.a_is_channel[0] = function(){
var a = document.getElementsByTagName("a");
if(window.a_is_channel[3] === a.length
&& window.a_is_channel[2] === a[a.length-1]){
return;
}
var c = [];
var l=document.location.href;
for(i in a){
if(typeof a
.href === "undefined") continue;
var h = a.href;
if(h.match(/\/(user|channel)\/[^$\/]*$/)!==null
&& h.match(/\/(user|channel)\/[^$\/]*((?!videos).)*$/)!==null
&& h.match(/\/+/g).length === 3){
a.href = h.replace(/\?.*$/,"") + "/videos";
}
if(h.match("&list")!==null&&h.match("watch?")!==null
&&l.match(/\/videos$/)===null&&l.match(/playlist\?list/)===null){
a.href = h.replace(/watch\?[^&]*&list/,"playlist?list");
}
}
window.a_is_channel[2] = a[a.length-1];
window.a_is_channel[3] = a.length;
}
window.a_is_channel[1] = setInterval(window.a_is_channel[0], 1000);