YouTube Force Link Open in New Tab (Updated)

Opens YouTube links in new tabs without simulating Ctrl+Click, keeping the original page unchanged. Also pauses video on opening.

< Opiniones de YouTube Force Link Open in New Tab (Updated)

Puntuación: Bueno; el script funciona tal y como promete

§
Publicado: 20/12/2024

麻烦,能不能去除:打开视频时保持视频暂停,谢谢

sun yuanAutor
§
Publicado: 07/01/2025

我个人习惯是暂停,不需要的话只保留打开新页面即可。有需要我会新做一个任何界面都单开的

sun yuanAutor
§
Publicado: 07/01/2025

// Pause video on current page load
function pauseVideo() {
let video = document.querySelector('video');
if (video) {
video.pause();
} else {
// If video is not immediately found, try again after a short delay
setTimeout(pauseVideo, 100);
}
}
或者删除这一行

Publicar respuesta

Inicia sesión para responder.

长期地址
遇到问题?请前往 GitHub 提 Issues。