From c44a3967deda97beda6999d294e948999dfa24a3 Mon Sep 17 00:00:00 2001 From: justins83 Date: Tue, 8 Jan 2019 10:11:06 -0500 Subject: [PATCH] Update WMEPIE.js Disabling features in beta that were implemented natively --- WMEPIE.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/WMEPIE.js b/WMEPIE.js index 9fd1314..e98a749 100644 --- a/WMEPIE.js +++ b/WMEPIE.js @@ -1,7 +1,7 @@ // ==UserScript== // @name WME Place Interface Enhancements // @namespace https://greasyfork.org/users/30701-justins83-waze -// @version 2018.12.15.01 +// @version 2019.01.08.01 // @description Enhancements to various Place interfaces // @include https://www.waze.com/editor* // @include https://www.waze.com/*/editor* @@ -136,7 +136,7 @@ var UpdateObject, MultiAction; '
', '
', '', - '
', + !WazeWrap.isBetaEditor ? '
' : '', '

', '
', '' + I18n.t('pie.prefs.Zoom') + '
', @@ -739,7 +739,7 @@ var UpdateObject, MultiAction; updatePlaceSizeDisplay(); AddPlaceCategoriesButtons(); AddHoursParserInterface(); - AddEEPJumpButtons(); + AddEEPJumpButtons(); AddMakePrimaryButtons(); if(settings.ShowPlaceLocatorCrosshair) ShowPlaceLocatorCrosshair(); @@ -984,7 +984,6 @@ var UpdateObject, MultiAction; settings.PhotoViewerShowHiddenPlaces = isChecked('photoViewerShowHiddenPlaces'); saveSettings(); $(optDiv).css('display', 'none'); - debugger; Photos_scan(); }); } @@ -3036,6 +3035,8 @@ var UpdateObject, MultiAction; } function AddEEPJumpButtons(){ + if(WazeWrap.isBetaEditor) + return; $('.navigation-point-list-item').find('.buttons').prepend('
'); $('#EEPCrosshair').click(function(){ let point = WazeWrap.getSelectedFeatures()[0].model.attributes.entryExitPoints[0]._point; @@ -3163,6 +3164,8 @@ var UpdateObject, MultiAction; //Using the same display for lock buttons as ClickSaver (with permission from MapoMatic) - thanks MoM! function addLockButtons() { + if(WazeWrap.isBetaEditor) + return; if(WazeWrap.getSelectedFeatures().length > 0){ var item = WazeWrap.getSelectedFeatures()[0]; var isRPP = item.model.type === "venue" && item.model.isResidential(); //(item.model.type === "venue" && item.model.attributes.residential === true);