diff --git a/constants.json b/constants.json index 836c5e6..e781f54 100644 --- a/constants.json +++ b/constants.json @@ -254,6 +254,12 @@ "bold": true, "italicized": true, "caseInsensitive": true + }, + "Pokerogue": { + "caseInsensitive": true, + "color": "#366383", + "outline": "#d43131", + "bold": true } } } \ No newline at end of file diff --git a/pageUpdater.js b/pageUpdater.js index 6f962cf..fd2841f 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -120,6 +120,13 @@ function highlighter(json, full = true) { style += "font-style: italic;" } + if (termProps.outline) { + var width = 2 + style += `text-shadow: -1px -1px 0 ${termProps.outline}, 1px -1px 0 ${termProps.outline}, -1px 1px 0 ${termProps.outline}, 1px 1px 0 ${termProps.outline};` + // style += `-webkit-text-stroke: 1px ${termProps.outline};` + // ^ Not in use because it looks bad :30 + } + if (termProps.bold) { classes += "bold" }