Youtube Anti Shorts

shorts is a shit, fuck you youtube

< 脚本 Youtube Anti Shorts 的反馈

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

§
发布于:2023-02-17

Can you add option to rewrite links directly on page, so that other scripts (like "YouTube Video Preview and Ratings Keyless") can use these video links?

Anong0u0作者
§
发布于:2023-02-17
编辑于:2023-02-17

Maybe you should tell the script's author to fix this problem.
In this case, change the line 787:
From const v_id = e.target.firstElementChild?.href?.match(/(?<=v=)[a-zA-Z0-9_-]*/)?.[0];
To const v_id = e.target.firstElementChild?.href?.match(/((?<=v=)|(?<=\/shorts\/))[a-zA-Z0-9_-]*/)?.[0];
change the line 1123:
From const v_id = thumb.href?.match(/(?<=v=)[a-zA-Z0-9_-]*/)?.[0];
To const v_id = thumb.href?.match(/((?<=v=)|(?<=\/shorts\/))[a-zA-Z0-9_-]*/)?.[0];
It's work perfectly in my test.

§
发布于:2023-02-17

Thanks for the help! I'll repost your solution on "YouTube Video Preview and Ratings Keyless" feedback page.

发布留言

登录(不可用)以发布留言。

QingJ © 2025

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