Disable YouTube Shorts

Disables YouTube Shorts player on the website by redirecting to the standard player.

< 腳本Disable YouTube Shorts的回應

評論:負評 - 腳本失效或無法使用

§
發表於:2022-08-12

No longer works.

§
發表於:2023-01-17
編輯:2023-01-17

It wasn't working until I tweaked it like that:

function replace(word1,word2){
window.location.href = window.location.href.replace(word1, word2)
}
window.addEventListener('click', function() {

replace("shorts/","watch?v=")
});
if (window.location.href.indexOf("shorts") > -1){
window.addEventListener('mouseover', function() {
replace("shorts/","watch?v=")
});
}


The first function call is for when I click on the button shorts, while the second one is if I accessed The shorts through a hyperlink.

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址