Redirect YouTube Shorts

Seamlessly redirect YouTube Shorts to the regular video player WITHOUT a page reload

< 脚本 Redirect YouTube Shorts 的反馈

评价:好评 - 脚本运行良好

§
发布于:2025-06-22

https://www.youtube.com/watch?v=UBd37q-JJcU
如果新開視窗,無法轉成watch
但如果是從觀看紀錄點進影片再點留言連結就可以成功
If you open a new window, you cannot convert shorts to watch?v=
But if you enter the video from [Watching History] and click the comment link, you can succeed
https://www.youtube.com/feed/history
>

fznhq作者
§
发布于:2025-06-22
编辑于:2025-06-22

Thanks for the review. Can you help me add this line:

console.log(data, element);

Inside the findData function, like this:

function findData(linkQuery, key, type) {
    for (let element of document.querySelectorAll(linkQuery)) {
        let data;

        while (
            element.id != "contents" &&
            !(element.data && element.data.contents) &&
            !(data = dig(element.data, key))
        ) {
            element = element.parentElement;
        }

        console.log(data, element); // <-- Add this here

        if (data && (dig(data, "webPageType") || "").includes(type)) {
            return { a: element.querySelector("a"), data };
        }
    }
}

After that, please click the short link again and send me a screenshot of the console output. Thanks!

§
发布于:2025-06-22
编辑于:2025-06-22

RIGHT:Success (history>watch>click the short link)
LEFT:failure (watch>click the short link)
Screenshot like this?

fznhq作者
§
发布于:2025-06-22

Thanks for the screenshot. The issue is now fixed, please try again with version 2.0.0.

§
发布于:2025-06-23

非常感謝!!
可以成功轉換了~^^
Thank you very much!!
The conversion was successful~^^

发布留言

登录以发布留言。