开源替代重定向器

将您从专有网络服务重定向到道德替代品(前端)。

< 脚本 开源替代重定向器 的反馈

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

§
发布于:2022-03-20

instead of checking for the entire domains name, check for substring(str.includes('imgur.com')) as imgur redirects to m.imgur.com on mobile.
yes, I'm using your script on mobile. it works great!

NotYou作者
§
发布于:2022-03-21

You mean, do something like this or what?:

if(window.location.host.substring(this.toString().includes('imgur.com'))){ /* do something */ }

Also, I don't really think your format is a good idea, first, mega corps has much of subdomains, for example let's take google, it has subdomains: cloud.google.com, translate.google.com, support.google.com etc., So checking domain globally is not really that good idea. And about mobile Imgur, I'll try to figure out how to make redirect.

NotYou作者
§
发布于:2022-03-24

instead of checking for the entire domains name, check for substring(str.includes('imgur.com')) as imgur redirects to m.imgur.com on mobile.
yes, I'm using your script on mobile. it works great!

About Imgur, mobile Imgur version automatically redirects you to random gallery, as we know first loading DOM Content and then scripts and styles, so Imgur redirects first, so scripts can't really do anything.

发布留言

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

QingJ © 2025

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