Seamlessly redirect YouTube Shorts to the regular video player WITHOUT a page reload
< 脚本 Redirect YouTube Shorts 的反馈
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!
Thanks for the screenshot. The issue is now fixed, please try again with version 2.0.0.
非常感謝!!
可以成功轉換了~^^
Thank you very much!!
The conversion was successful~^^
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
>