Redirector alternativ cu sursă deschisă

Vă redirecționează de la servicii web proprietare la alternative etice (front-end).

< Părere la script-ul Redirector alternativ cu sursă deschisă

Recenzie: Bun, script-ul merge

§
Postat în: 20-03-2022

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!

NotYouAutor
§
Postat în: 21-03-2022

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.

NotYouAutor
§
Postat în: 24-03-2022

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.

Postează un raspuns

Autentifică-te pentru a posta un răspuns.