-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathURC_SouthCentral-beta.js
234 lines (221 loc) · 18.7 KB
/
URC_SouthCentral-beta.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
// ==UserScript==
// @name WME URComments USA_SouthCentral - Beta
// @description This script is for South Central editors for standard comments to be used with the script URComments
// @namespace https://greasyfork.org/en/scripts/374178-wme-urcomments-usa-southcentral-beta
// @grant none
// @grant GM_info
// @version 2018.11.19.01
// @match https://editor-beta.waze.com/*editor*
// @match https://beta.waze.com/*editor*
// @match https://www.waze.com/*editor*
// @author Original script created by Rick Zabel '2014, Modified for use in SCR by Travis Turner (turnertr) [email protected] and assisted by Daniel Beames (dBsooner) [email protected]
// @license MIT/BSD/X11
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYz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ycj5hVUy/NhAcIFgb8H3SqVSZCH4+fmJ7DmgguLjiIhDvwmyG+SyTALmHvtYLNIOcHaei5S0H5X9UYPL/wQYAOwQASZqvrLnAAAAAElFTkSuQmCC
// ==/UserScript==
/* Changelog
* 5th update to the format
* 0.0.1 - initial version
* 0.0.10 - correct auto reminder/close positions
* 0.0.11 - Corrections to update messaging
* 2018.02.22.01 - New version numbering, update Address Adjustment, Added "Add Toll Pass to App", change "I" to "We". - dB
* 2018.02.27.01 - Modified Address Adjustment, spellchecked. - dB
* 2018.03.13.01 - Added Researching, moved Unlock Request, modified Speed Limit already correct. - dB
* 2018.03.13.02 - Missed "," after a statement in array. - dB
* 2018.08.15.01 - Changed match statements to match the parent script -tt
* 2018.11.06.01 - Fixed index for default reminder position. Added Manual Tile Refresh. Revised Add Toll Pass to App. - dB
* 2018.11.06.02 - Didn't escape quotations. My fault. :( - dB
* 2018.11.06.03 - Updated Add Toll Pass to App verbage per karlcr9911's recommendations. Removed "Tolls - No User Transponder". Updated "Tolls - No User Transponder (avoid tolls)" to just be "Tolls - Avoid Tolls". - dB
* 2018.11.09.01 - Rewrote to pull canned messages from Google sheets. - dB
* 2018.11.09.02 - Updated namespace. - dB
* 2018.11.09.03 - Set static vars / arrays before async. - dB
* 2018.11.09.04 - Additional logging. - dB
* 2018.11.09.05 - let to var. - dB
* 2018.11.14.01 - RC 1. Prep for release to public. Coordinating with rickzabel. - dB
* 2018.11.16.01 - RC 2. New code for use with new spreadsheet layout. - dB
* 2018.11.16.02 - RC 2. New code for use with new spreadsheet layout. - dB
* 2018.11.19.01 - RC 3. Separated spreadsheets to create new layout. - dB
*/
/* global $ */
/* global GM_info */
(function() {
var URComments_CustomGSheets_ListName = "USA_SouthCentral"; // The name assigned by rickzabel which is used in the URComments main script.
var URComments_CustomGSheets_JSON_URL = "https://spreadsheets.google.com/feeds/list/13pmsBn_euXzqoZd5YhLZrE_SwddW570gACPaOMEyBxo/7/public/values?alt=json";
var URComments_CustomGSheets_Name = GM_info.script.name;
var URComments_CustomGSheets_Version = GM_info.script.version;
var URComments_CustomGSheets_UpdateMessage = true; // true - alert the user, false - silent update.
var URComments_CustomGSheets_VersionUpdateNotes = URComments_CustomGSheets_Name + " has been updated to v" + URComments_CustomGSheets_Version;
if (URComments_CustomGSheets_UpdateMessage) {
if (localStorage.getItem(URComments_CustomGSheets_Name + "_Version") !== URComments_CustomGSheets_Version) {
alert(URComments_CustomGSheets_VersionUpdateNotes);
localStorage.setItem(URComments_CustomGSheets_Name + "_Version", URComments_CustomGSheets_Version);
}
}
const DEBUG = true;
function log(message) { console.log(URComments_CustomGSheets_Name + ": ", message); }
function logError(message) { console.error(URComments_CustomGSheets_Name + ": ", message); }
function logDebug(message) { if (DEBUG) console.debug(URComments_CustomGSheets_Name + ": ", message); }
function logWarning(message) { console.warn(URComments_CustomGSheets_Name + ": ", message); }
var parsedCommentsResults = [];
var parsedDefaultURTypesResults = [];
var parsedTextAndTooltipsResults = [];
var parsedUserPromptsResults = [];
var reminderMsgIdx, closedNotIdentifiedIdx;
function setURCommentsVars() {
return new Promise((resolve,reject) => {
let result = {error:null};
logDebug("Setting vars");
window['Urcomments' + URComments_CustomGSheets_ListName + 'def_names'] = [];
window['Urcomments' + URComments_CustomGSheets_ListName + 'URC_Text'] = [];
window['Urcomments' + URComments_CustomGSheets_ListName + 'URC_Text_tooltip'] = [];
window['Urcomments' + URComments_CustomGSheets_ListName + 'URC_USER_PROMPT'] = [];
window['Urcomments' + URComments_CustomGSheets_ListName + 'URC_URL'] = [];
parsedDefaultURTypesResults.forEach(parsedResult => {
window['Urcomments' + URComments_CustomGSheets_ListName + 'def_names'][parsedResult.index] = parsedResult.text;
});
parsedTextAndTooltipsResults.forEach(parsedResult => {
let type;
if (parsedResult.type === "TOOLTIP") {
type = "Text_tooltip";
} else if (parsedResult.type === "URL") {
type = "URL";
} else if (parsedResult.type === "REPLYINSTRUCTIONS") {
type = "ReplyInstructions";
} else {
type = "Text";
}
if (type === "ReplyInstructions") {
window['Urcomments' + URComments_CustomGSheets_ListName + type] = parsedResult.text;
} else {
window['Urcomments' + URComments_CustomGSheets_ListName + 'URC_' + type][parsedResult.index] = parsedResult.text;
}
});
parsedUserPromptsResults.forEach(parsedResult => {
window['Urcomments' + URComments_CustomGSheets_ListName + 'URC_USER_PROMPT'][parsedResult.index] = parsedResult.text;
});
window['Urcomments' + URComments_CustomGSheets_ListName + 'Array2'] = parsedCommentsResults;
window['Urcomments' + URComments_CustomGSheets_ListName + 'ReminderPosistion'] = reminderMsgIdx;
window['Urcomments' + URComments_CustomGSheets_ListName + 'CloseNotIdentifiedPosistion'] = closedNotIdentifiedIdx;
resolve(result);
});
}
function loadCommentsSpreadsheetAsync() {
logDebug("Running Async");
return new Promise((resolve, reject) => {
$.get({
url: URComments_CustomGSheets_JSON_URL,
success: function(data) {
let result = {error:null};
var defaultURTypeStart = false;
var textAndTooltipsStart = false;
var userPromptsStart = false;
for(let entryIdx = 0; entryIdx < data.feed.entry.length && !result.error; entryIdx++) {
let cellValue = data.feed.entry[entryIdx].title.$t;
if (cellValue === "Default_UR_Types_Start") {
defaultURTypeStart = true;
continue;
} else if (cellValue === "Text_and_Tooltips_Start") {
defaultURTypeStart = false;
textAndTooltipsStart = true;
continue;
} else if (cellValue === "User_Prompts_Start") {
defaultURTypeStart = false;
textAndTooltipsStart = false;
userPromptsStart = true;
continue;
} else if (cellValue === "End_of_File") {
defaultURTypeStart = false;
textAndTooltipsStart = false;
userPromptsStart = false;
continue;
}
if (entryIdx === 0) {
if (URComments_CustomGSheets_Version < cellValue) {
result.error = URComments_CustomGSheets_Name + ' must be updated to at least version ' + cellValue + ' before the custom URComments for ' + URComments_CustomGSheets_ListName + ' can be loaded.';
}
} else if (entryIdx === 1) {
// This is the index for the Reminder Comment
reminderMsgIdx = parseInt(cellValue);
} else if (entryIdx === 2) {
// This is the index for the Closed Not Identified Comment
closedNotIdentifiedIdx = parseInt(cellValue);
} else {
// Process rows into array
let splitRow = cellValue.split("|");
if (defaultURTypeStart) {
parsedDefaultURTypesResults.push({'index':splitRow[0], 'text':splitRow[1]});
} else if (textAndTooltipsStart) {
var index = parseInt(splitRow[0].replace(/^.*(\d\d) - (.*)/i, '$1'));
var type = splitRow[0].replace(/^.*(\d\d) - (.*)/i, '$2').toUpperCase();
if (((index === "3" || index === "4" || index === "11") && type === "TEXT") ||
((index === "5" || index === "6" || index === "7" || index === "11" || index === "23" || index === "24") && type === "TOOLTIP")) {
continue;
} else {
var text = splitRow[1];
parsedTextAndTooltipsResults.push({'index':index, 'type':type, 'text':text});
}
} else if (userPromptsStart) {
parsedUserPromptsResults.push({'index':splitRow[0], 'text':splitRow[1]});
} else {
if(splitRow[0] != "REMOVED" && splitRow[1] != "REMOVED" && splitRow[2] != "REMOVED") {
splitRow.forEach(function(val){
parsedCommentsResults.push(val);
});
}
}
}
}
logDebug("Finished Async");
resolve(result);
},
error: function() {
window['Urcomments' + URComments_CustomGSheets_ListName + 'Array2'] = [ "<br><b><font color=red>ERROR</font></b>", "", "Open", "An error occurred while loading the " + URComments_CustomGSheets_Name + " custom URComments spreadsheet.", "", "Open" ];
reject({message: 'An error occurred while loading the ' + URComments_CustomGSheets_Name + ' custom URComments spreadsheet.'});
}
});
});
}
async function URC_CustomGSheets_init() {
let t0 = performance.now();
var result = await loadCommentsSpreadsheetAsync().catch((err) => {
let msg;
if (err && err.message) {
msg = err.message;
} else {
msg = err;
}
window['Urcomments' + URComments_CustomGSheets_ListName + 'Array2'] = [ "<br><b><font color=red>ERROR</font></b>", "", "Open", msg, "", "Open" ];
logError(msg);
});
if (typeof result !== 'undefined') {
if (result.error) {
logError(result.error);
window['Urcomments' + URComments_CustomGSheets_ListName + 'Array2'] = [ "<br><b><font color=red>ERROR</font></b>", "", "Open", result.error, "", "Open" ];
} else {
var setURCommentsVarResult = await setURCommentsVars().catch((err) => {
let msg;
if (err & err.message) {
msg = err.message;
} else {
msg = err;
}
window['Urcomments' + URComments_CustomGSheets_ListName + 'Array2'] = [ "<br><b><font color=red>ERROR</font></b>", "", "Open", msg, "", "Open" ];
logError(msg);
}).then(() => {
logDebug('Loaded ' + parsedCommentsResults.length/3 + ' comments and headers and all text and tooltips in ' + Math.round(performance.now() - t0) + ' ms.');
log('Initialized.');
});
if (typeof setURCommentsVarResult !== 'undefined') {
if (setURCommentsVarResult.error) {
logError(setURCommentsVarResult.error);
window['Urcomments' + URComments_CustomGSheets_ListName + 'Array2'] = [ "<br><b><font color=red>ERROR</font></b>", "", "Open", setURCommentsVarResult.error, "", "Open" ];
}
}
}
}
}
function URC_CustomGSheets_bootstrap() {
log('Initializing...');
URC_CustomGSheets_init();
}
URC_CustomGSheets_bootstrap();
})();