WME Language Forcer

Script to redirect to your language automaticaly

As of 2018-07-18. See the latest version.

// ==UserScript==
// @name        WME Language Forcer
// @namespace   https://www.bowlman.org
// @description Script to redirect to your language automaticaly
// @match          https://editor-beta.waze.com/*editor*
// @match          https://beta.waze.com/*editor*
// @match          https://www.waze.com/*editor*
// @match          https://editor-beta.waze.com/*editor/*
// @match          https://beta.waze.com/*editor/*
// @match          https://www.waze.com/*editor/*
// @version     0.1
// @author         tunisiano187 '2018
// @license        MIT/BSD/X11
// @compatible     chrome firefox
// @supportURL      mailto:incoming+WMEScripts/WME-language-forcer@incoming.gitlab.com
// @contributionURL https://flattr.com/@tunisiano
// @grant       none
// ==/UserScript==

if (window.location.pathname.indexOf('/fr/editor/') == -1 && window.location != window.location.href.replace('/editor/', '/fr/editor/')) {
  setTimeout(function() {
    window.location = window.location.href.replace('/editor/', '/fr/editor/');
  }, 1000);
}