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!

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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.

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

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