Redirect Amazon to English version

Redirect websites to their English version

< Feedback on Redirect Amazon to English version


Posted: 2022-09-29


I'm very interested in your new script, but I would like to know how to modify the script without mistakes :
- Redirect Amazon Holland in its English version
- Redirect Amazon Germany in its English version

Please ?

Thank you for your answer.

Google Chrome Browser with Tampermonkey

Posted: 2022-09-29

You just have to change the local in the script.

fr_CA is the language I don't want.

en_CA is the language I want

fr is the language I don't want.

en is the language I want.

In my script I use window.location to read the url and to change it to what I want:

In your case this is the URL you don't want:

And this is the url you want:

So your script will have to remove/replace the middle of the URL to have it in the language you want.

Try and learn, you can't not broke anything, it's not that hard it just take time and trials/errors and you will succeed and be proud of you. :-)

Posted: 2022-10-01


Here are the changes made to have in English.
Unfortunately, it didn't work...
Some examples :

In addition, if I also want to add in English, it's possible ?
If yes, it should be like this ?

if (window.location.href.indexOf('de_DE';'nl_NL') > -1) {

var url = window.location.href;
window.location = url.replace(/de_DE/;/nl_NL/, 'en_GB');

if (window.location.href.indexOf('/de/';/nl/) > -1) {

var zurl = window.location.href;
window.location = zurl.replace(/\/de\//;/\/nl\//, '/en/');

Thank you in advance for your answer.

Posted: 2022-10-01

image image

Posted: 2022-10-01

Right now I don't have the time to look in your issue since I'm in the middle of a moving, message me again in the Christmas vacation if you did not succeed and I should have more time once I will be in my new home.

But try to understand how each JS functions work like window.location.href and other, this way you will be able to customize it lot more. It's not really hard but it take some time and dedication but at the end it's rewarding.

Post reply

Sign in to post a reply.