From 47dbcde2701126df6c1599dabf7a2c54280b9b4b Mon Sep 17 00:00:00 2001 From: Uwe4Waze Date: Mon, 22 Jan 2024 22:35:28 +0100 Subject: [PATCH 1/3] strip obsolete structure elements --- WME-send-to-slack.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WME-send-to-slack.user.js b/WME-send-to-slack.user.js index 8f015e3..7f13df1 100644 --- a/WME-send-to-slack.user.js +++ b/WME-send-to-slack.user.js @@ -858,7 +858,7 @@ function getPermalinkCleaned(iconaction) { text = "https://www.waze.com/editor?env=" + W.app.getAppRegionCode() + "&"; var count = 0; var texttype = "venue" - var textTypeLoc = translationsInfo[23][0] + " : " + W.selectionManager.getSelectedFeatures()[0].data.wazeFeature._wmeObject.type; //"venue" + var textTypeLoc = translationsInfo[23][0] + " : " + W.selectionManager.getSelectedFeatures()[0]._wmeObject.type; //"venue" var CityName = ""; var CountryName = ""; var StateName = ""; @@ -873,7 +873,7 @@ function getPermalinkCleaned(iconaction) { var currentlocation = (new OpenLayers.LonLat(mapCenter.x,mapCenter.y)).transform(projI,projE).toString().replace(',','&'); $.each(W.selectionManager.getSelectedFeatures(), function(indx, section){ - var data = section.data.wazeFeature._wmeObject; + var data = section._wmeObject; if(texttype == "venue") { texttype = data.attributes.categories } From 47b37c8a554a07445848c090a3719799a31a76c9 Mon Sep 17 00:00:00 2001 From: Uwe4Waze Date: Mon, 22 Jan 2024 22:39:22 +0100 Subject: [PATCH 2/3] Proposal for version and change log --- WME-send-to-slack.user.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WME-send-to-slack.user.js b/WME-send-to-slack.user.js index 7f13df1..b2cb1cb 100644 --- a/WME-send-to-slack.user.js +++ b/WME-send-to-slack.user.js @@ -5,7 +5,7 @@ // @namespace https://wmests.bowlman.be // @description Script to send unlock/closures/Validations requests to slack // @description:fr Ce script vous permettant d'envoyer vos demandes de délock/fermeture et de validation directement sur slack -// @version 2024.01.06.02 +// @version 2024.01.22.01 // @updateURL https://greasyfork.org/scripts/408365-wme-send-to-slack/code/WME%20Send%20to%20Slack.user.js // @include /^https:\/\/(www|beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor.*$/ // @exclude https://www.waze.com/user/*editor/* @@ -58,7 +58,8 @@ const _WHATS_NEW_LIST = { // New in this version '2023.06.01.01': 'Fixing missing closure icons. Special thanks to @GyllieGyllie.', '2023.07.19.01': 'Fix requests not going through & fix missing validation icon.', '2023.08.03.01': 'Fix usernames not sending correctly anymore', - '2024.01.06.02': 'Adding Mauritius country.\nWe\'re now receiving again new country requests\nQuick Fix for a typo.' + '2024.01.06.02': 'Adding Mauritius country.\nWe\'re now receiving again new country requests\nQuick Fix for a typo.', + '2024.01.22.01': 'Fix breaking changes in WME v2.206.' }; // Var declaration var ScriptName = GM_info.script.name; From 76233b58328f65794cdf43436c09a19be21ef842 Mon Sep 17 00:00:00 2001 From: Uwe4Waze Date: Mon, 22 Jan 2024 23:13:22 +0100 Subject: [PATCH 3/3] replay proposal for version and changelog --- WME-send-to-slack.user.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WME-send-to-slack.user.js b/WME-send-to-slack.user.js index d8f19a8..3056704 100644 --- a/WME-send-to-slack.user.js +++ b/WME-send-to-slack.user.js @@ -5,7 +5,7 @@ // @namespace https://wmests.bowlman.be // @description Script to send unlock/closures/Validations requests to slack // @description:fr Ce script vous permettant d'envoyer vos demandes de délock/fermeture et de validation directement sur slack -// @version 2024.01.20.01 +// @version 2024.01.22.01 // @updateURL https://greasyfork.org/scripts/408365-wme-send-to-slack/code/WME%20Send%20to%20Slack.user.js // @include /^https:\/\/(www|beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor.*$/ // @exclude https://www.waze.com/user/*editor/* @@ -59,7 +59,8 @@ const _WHATS_NEW_LIST = { // New in this version '2023.07.19.01': 'Fix requests not going through & fix missing validation icon.', '2023.08.03.01': 'Fix usernames not sending correctly anymore', '2024.01.06.02': 'Adding Mauritius country.\nWe\'re now receiving again new country requests\nQuick Fix for a typo.', - '2024.01.20.01': 'Adding Qatar.' + '2024.01.20.01': 'Adding Qatar.', + '2024.01.22.01': 'Fix breaking changes in WME v2.206.' }; // Var declaration var ScriptName = GM_info.script.name;