Proxy through thumbor
This commit is contained in:
parent
84e2535f53
commit
def91cfa87
3 changed files with 6 additions and 5 deletions
7
index.js
7
index.js
|
@ -73,7 +73,7 @@ function pageUpdate() {
|
||||||
addedHTML += "<hr><p>"
|
addedHTML += "<hr><p>"
|
||||||
if (status.emoji) {
|
if (status.emoji) {
|
||||||
if (status.emoji.id) {
|
if (status.emoji.id) {
|
||||||
addedHTML += `<img class="emoji" src="https://cdn.discordapp.com/emojis/${status.emoji.id}.webp?size=32&quality=lossless"/> `
|
addedHTML += `<img class="emoji" src="https://thumbor-production-0e82.up.railway.app/unsafe/https://cdn.discordapp.com/emojis/${status.emoji.id}.webp?size=32&quality=lossless"/> `
|
||||||
} else {
|
} else {
|
||||||
addedHTML += status.emoji.name
|
addedHTML += status.emoji.name
|
||||||
}
|
}
|
||||||
|
@ -139,6 +139,7 @@ function pageUpdate() {
|
||||||
return decodeURIComponent(activityImages[activity.name])
|
return decodeURIComponent(activityImages[activity.name])
|
||||||
} else {
|
} else {
|
||||||
return decodeURIComponent(`https://cdn.discordapp.com/app-assets/680748054038577165/680775885317472448.png`)
|
return decodeURIComponent(`https://cdn.discordapp.com/app-assets/680748054038577165/680775885317472448.png`)
|
||||||
|
// This was supposed to be temporary but it kinda stuck honestly lol (It's an ultrakill icon)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -159,7 +160,7 @@ function pageUpdate() {
|
||||||
if (activity.type == 2) {
|
if (activity.type == 2) {
|
||||||
addedHTML += `
|
addedHTML += `
|
||||||
<div class="chip activity col-md-6 testing">
|
<div class="chip activity col-md-6 testing">
|
||||||
<img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}">
|
<img src="https://thumbor-production-0e82.up.railway.app/unsafe/${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}">
|
||||||
<p>
|
<p>
|
||||||
Listening to <span style="color: limegreen;">${activity.name}</span>
|
Listening to <span style="color: limegreen;">${activity.name}</span>
|
||||||
<br> Song: ${activity.details || " "}
|
<br> Song: ${activity.details || " "}
|
||||||
|
@ -178,7 +179,7 @@ function pageUpdate() {
|
||||||
|
|
||||||
addedHTML += `
|
addedHTML += `
|
||||||
<div class="chip activity col-md-6 testing">
|
<div class="chip activity col-md-6 testing">
|
||||||
<img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}">
|
<img src="https://thumbor-production-0e82.up.railway.app/unsafe/${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}">
|
||||||
<p>
|
<p>
|
||||||
Playing <span style="color: rgb(255, 100, 150);">${activity.name}</span>
|
Playing <span style="color: rgb(255, 100, 150);">${activity.name}</span>
|
||||||
<br> ${activity.details || activity.assets.large_text || " "}
|
<br> ${activity.details || activity.assets.large_text || " "}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<div class="container-fluid row" id="card">
|
<div class="container-fluid row" id="card">
|
||||||
<h2>Violet</h2>
|
<h2>Violet</h2>
|
||||||
<div style="display: flex; justify-content: center; align-items: center;">
|
<div style="display: flex; justify-content: center; align-items: center;">
|
||||||
<img src="https://api.lanyard.rest/534132311781015564.png" class="pfp">
|
<img src="https://thumbor-production-0e82.up.railway.app/unsafe/https://api.lanyard.rest/534132311781015564.png" class="pfp">
|
||||||
<div>
|
<div>
|
||||||
<p><a href="pronouns">They/Them</a></p>
|
<p><a href="pronouns">They/Them</a></p>
|
||||||
<p>Developer</p>
|
<p>Developer</p>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<div class="container-fluid row" id="card">
|
<div class="container-fluid row" id="card">
|
||||||
<h2>Violet</h2>
|
<h2>Violet</h2>
|
||||||
<div style="display: flex; justify-content: center; align-items: center;">
|
<div style="display: flex; justify-content: center; align-items: center;">
|
||||||
<img src="https://api.lanyard.rest/534132311781015564.png" class="pfp">
|
<img src="https://thumbor-production-0e82.up.railway.app/unsafe/https://api.lanyard.rest/534132311781015564.png" class="pfp">
|
||||||
<div>
|
<div>
|
||||||
<p>Developer</p>
|
<p>Developer</p>
|
||||||
<p id="discStatus" style="transition: all 2s cubic-bezier(0.075, 0.82, 0.165, 1);">Offline</p>
|
<p id="discStatus" style="transition: all 2s cubic-bezier(0.075, 0.82, 0.165, 1);">Offline</p>
|
||||||
|
|
Loading…
Reference in a new issue