@meetelise/chat 1.43.1 → 1.43.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,15 +47,17 @@ export const insertDNIIntoWebsite = (
|
|
|
47
47
|
allHTMLItems[i].childNodes.length === 1 &&
|
|
48
48
|
allHTMLItems[i].childNodes[0].nodeType == Node.TEXT_NODE
|
|
49
49
|
) {
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
const oldTextContent = allHTMLItems[i].textContent;
|
|
51
|
+
if (!oldTextContent) continue;
|
|
52
|
+
|
|
53
|
+
const newTextContent = oldTextContent.replace(
|
|
52
54
|
phoneNumberPattern,
|
|
53
55
|
newPhoneNumber
|
|
54
56
|
);
|
|
55
|
-
if (
|
|
57
|
+
if (oldTextContent !== newTextContent) {
|
|
56
58
|
totalReplacements++;
|
|
59
|
+
allHTMLItems[i].textContent = newTextContent;
|
|
57
60
|
}
|
|
58
|
-
allHTMLItems[i].innerHTML = newInnerHTML;
|
|
59
61
|
|
|
60
62
|
foundPhoneNumber = true;
|
|
61
63
|
|
|
@@ -60,7 +60,7 @@ export const replaceTourTriggerElementWithTourWidgetTrigger = (
|
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
const newLink = document.createElement("a");
|
|
63
|
-
newLink.
|
|
63
|
+
newLink.textContent = linkElement.textContent;
|
|
64
64
|
newLink.style.cursor = "pointer";
|
|
65
65
|
newLink.addEventListener("click", (event) => {
|
|
66
66
|
event.preventDefault();
|
|
@@ -19,6 +19,7 @@ export const replaceSelectButtonsWithNewLink = (
|
|
|
19
19
|
/\/onlineleasing.*\/oleapplication\.aspx(\?.*)?$/,
|
|
20
20
|
/vsc\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,
|
|
21
21
|
/vsc\.myresman\.com\/Portal\/Applicants\/New\/.*(\?.*)?$/,
|
|
22
|
+
/busboomgroup\.myresman\.com\/Portal\/Applicants\/Availability(\?.*)?$/,
|
|
22
23
|
];
|
|
23
24
|
|
|
24
25
|
const allElements = document.body.getElementsByTagName("a");
|
|
@@ -82,7 +83,13 @@ const getMutatedApplicationLink = (
|
|
|
82
83
|
buttonText: string,
|
|
83
84
|
newApplicationLink: string
|
|
84
85
|
) => {
|
|
85
|
-
const relevantText = [
|
|
86
|
+
const relevantText = [
|
|
87
|
+
"floor plan",
|
|
88
|
+
"floorplan",
|
|
89
|
+
"floor plans",
|
|
90
|
+
"floorplans",
|
|
91
|
+
"apply here",
|
|
92
|
+
];
|
|
86
93
|
if (relevantText.some((t) => buttonText.toLowerCase().includes(t))) {
|
|
87
94
|
return `${newApplicationLink}/units`;
|
|
88
95
|
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
|
|
22
|
-
/*! @license DOMPurify 3.1.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.2/LICENSE */
|
|
23
|
-
|
|
24
|
-
/*! lil-uuid - v0.1 - MIT License - https://github.com/lil-js/uuid */
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright 2017 Google LLC
|
|
29
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @license
|
|
34
|
-
* Copyright 2018 Google LLC
|
|
35
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @license
|
|
40
|
-
* Copyright 2019 Google LLC
|
|
41
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @license
|
|
46
|
-
* Copyright 2020 Google LLC
|
|
47
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @license
|
|
52
|
-
* Copyright 2021 Google LLC
|
|
53
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/
|