Greasy Fork is available in English.

Redirect Amazon to English version

Redirect websites to their English version

  1. // ==UserScript==
  2. // @name Redirect Amazon to English version
  3. // @namespace http://tampermonkey.net/
  4. // @version 2.0
  5. // @description Redirect websites to their English version
  6. // @author Mikhoul
  7. // @include https://www.amazon.*/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. if (window.location.href.indexOf('fr_CA') > -1) {
  12.  
  13. var url = window.location.href;
  14. window.location = url.replace(/fr_CA/, 'en_CA');
  15. }
  16.  
  17.  
  18. if (window.location.href.indexOf('/fr/') > -1) {
  19.  
  20. var zurl = window.location.href;
  21. window.location = zurl.replace(/\/fr\//, '/en/');
  22. }
  23.  
  24.  
  25.  
  26.  
  27. // var url = window.location.toString();