Compare commits
No commits in common. "334e6958ba0d04700e5ba1b97d392c87c0d9bb11" and "9fc83cc5fcb02051971c2a264fc039cac965c18f" have entirely different histories.
334e6958ba
...
9fc83cc5fc
2 changed files with 8 additions and 11 deletions
|
@ -23,10 +23,7 @@ const getImageUrl = (activity: LanyardActivity, size: "large" | "small") => {
|
||||||
if (!image) return null;
|
if (!image) return null;
|
||||||
|
|
||||||
if (image.startsWith("mp:external")) {
|
if (image.startsWith("mp:external")) {
|
||||||
return `https://wsrv.nl/?w=${size === "large" ? 120 : 40}&url=https://${image.split("/").slice(3).join("/")}`.replace(
|
return `https://wsrv.nl/?w=${size === "large" ? 120 : 40}&url=https://${image.split("/").slice(3).join("/")}`;
|
||||||
"1280x1280",
|
|
||||||
"160x160",
|
|
||||||
); // last bit assumes tidal.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (image.startsWith("mp:")) {
|
if (image.startsWith("mp:")) {
|
||||||
|
|
|
@ -13,14 +13,14 @@ document.body.appendChild(<App />);
|
||||||
let clicks = 0;
|
let clicks = 0;
|
||||||
let resetCount = "";
|
let resetCount = "";
|
||||||
document.onclick = () => {
|
document.onclick = () => {
|
||||||
clicks++;
|
clicks++;
|
||||||
|
|
||||||
if (clicks > 5) {
|
if (clicks > 5) {
|
||||||
snacker({
|
snacker({
|
||||||
message: `Please stop.${resetCount}`,
|
message: `Please stop.${resetCount}`,
|
||||||
});
|
});
|
||||||
resetCount += ".";
|
resetCount += ".";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// You're garbage, let me collect you.
|
// You're garbage, let me collect you.
|
||||||
|
|
Loading…
Add table
Reference in a new issue