Compare commits

...

5 commits

3 changed files with 17 additions and 8 deletions

View file

@ -194,7 +194,8 @@
"words": [
"YouTube",
"ULTRAKILL",
"Lethal Company"
"Lethal Company",
"FreeBSD"
],
"color": "red",
"caseInsensitive": true
@ -237,6 +238,7 @@
"words": [
"Violet",
"Purgatory",
"violets-",
"Limbo",
"The Watcher"
],
@ -354,6 +356,13 @@
"color": "rgb(150, 220, 255)",
"caseInsensitive": true
},
{
"words": [
"Arch"
],
"color": "rgb(0, 255, 255)",
"caseInsensitive": true
},
{
"words": [
"Roblox"

View file

@ -101,7 +101,7 @@ function highlighter(json, full = true) {
if (element.attributes) {
for (var x in element.attributes) {
var attribute = element.attributes[x]
if (attribute.key == "class" && attribute.value == "value") {
if (attribute.key == "class" && attribute.value.includes("noHighlight")) {
valid = false
break
}
@ -307,7 +307,7 @@ function converter(html, dynamic = true) {
for (var x = 0; x < sitesTable.length; x++) {
var siteName = sitesTable[x]
var siteData = sites[siteName]
html += `<a class="chip" ${onlyIfExists(`href="${siteData.url}"`, siteData.url)}>${siteName}: ${siteData.name.replaceAll("Violet", "{Violet}")}</a>`
html += `<a class="chip" ${onlyIfExists(`href="${siteData.url}"`, siteData.url)}>${siteName}: <span class="noHighlight">${siteData.name.replaceAll("Violet", "{Violet}")}</span></a>`
}
html += "</div></div>"

View file

@ -76,11 +76,11 @@
<h2><hr>Services</h2>
<p>List of services for public use hosted on Violet's Purgatory.</p>
<a href="https://sxng.violets-purgatory.dev" class="chip">SearXNG: sxng.violets-purgatory.dev</a>
<a class="chip">Matrix: matrix.violets-purgatory.dev</a>
<a href="https://element.violets-purgatory.dev" class="chip">Element: element.violets-purgatory.dev</a>
<a href="https://git.violets-purgatory.dev" class="chip">Forgejo: git.violets-purgatory.dev (contact me for an account)</a>
<a class="chip">Thumbor: thumbor.violets-purgatory.dev</a>
<a href="https://sxng.violets-purgatory.dev" class="chip">SearXNG: <span class="noHighlight">sxng.violets-purgatory.dev</span></a>
<!-- <a class="chip">Matrix: matrix.violets-purgatory.dev</a> -->
<!-- <a href="https://element.violets-purgatory.dev" class="chip">Element: element.violets-purgatory.dev</a> -->
<a href="https://git.viois.gay" class="chip">Forgejo: <span class="noHighlight">git.viois.gay</span></a>
<a class="chip">Thumbor: <span class="noHighlight">thumbor.violets-purgatory.dev</span></a>
<hr>
<h1>Socials</h1>
{PATH_SOCIALS}