diff --git a/constants.json b/constants.json index c402fc1..98e3b4f 100644 --- a/constants.json +++ b/constants.json @@ -255,19 +255,19 @@ "color": "rgb(225, 225, 225)" }, "Teto Tuesday": { - "color": "#d5738d", + "color": "rgb(255, 100, 100)", "caseInsensitive": true }, "Teto Territory": { - "color": "#d5738d", + "color": "rgb(255, 100, 100)", "caseInsensitive": true }, "Teto": { - "color": "#d5738d", + "color": "rgb(255, 100, 100)", "caseInsensitive": true }, "Kasane": { - "color": "#d5738d", + "color": "rgb(255, 100, 100)", "caseInsensitive": true }, "Ryouiki Tenkai": { diff --git a/pageUpdater.js b/pageUpdater.js index 5207af1..d0b2505 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -119,23 +119,10 @@ function highlighter(json, full = true) { spanEnd = element.content.length } - var spanStart = element.content.substring(0, termIndex).lastIndexOf(" ") + 1 - - // if (highTable[index] == "ULTRAKILL") { - // console.log(startContent, " ---- ", endContent) - // } - - var startContent = element.content.substring(spanStart - 1, termIndex) var endContent = element.content.substring(termIndex + termKey.length, spanEnd) - if (startContent.includes("(") && !endContent.includes(")")) { - spanEnd = element.content.indexOf(")", spanStart) + 1 - endContent = element.content.substring(termIndex + termKey.length, spanEnd) - } - else if (endContent.includes(")") && !startContent.includes("(")) { - spanStart = element.content.substring(0, spanStart).lastIndexOf("(") - startContent = element.content.substring(spanStart - 1, termIndex) - } + var spanStart = element.content.substring(0, termIndex).lastIndexOf(" ") + 1 + var startContent = element.content.substring(spanStart - 1, termIndex) var style = termProps.style || "" var classes = termProps.classes || ""