EALayer-Be-Gone

Are you a CM+ that is tired of the EA layer reappearing and ruining your editing experience? Get rid of the editable area layer from WME for good!

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        EALayer-Be-Gone
// @description Are you a CM+ that is tired of the EA layer reappearing and ruining your editing experience? Get rid of the editable area layer from WME for good!
// @namespace   hbiede.com
// @version     2019.08.06.002
// @include     /^https:\/\/(www|beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor.*$/
// @author      HBiede
// @license     MIT
// @run-at      document-end
// @grant       none
// @copyright   2019 HBiede
// ==/UserScript==

setTimeout(init, 2000);

function init() {
    if (!document.getElementById('layer-switcher-item_editable_areas')) setTimeout(init, 2000);
    let layerSwitch = document.getElementById('layer-switcher-item_editable_areas');
    if (layerSwitch.checked === true) layerSwitch.click();
    layerSwitch.disabled = true;
}