WME Language Forcer

Script to redirect to your language automaticaly

当前为 2018-07-18 提交的版本,查看 最新版本

// ==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/[email protected]
// @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);
}