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!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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;
}