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.

(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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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