Skip to content

Commit

Permalink
decorations: add valorant champions collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPi3141 committed Aug 7, 2024
1 parent 42874af commit 9897c12
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 8 deletions.
28 changes: 28 additions & 0 deletions decorations.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,34 @@
}
]
},
{
"name": "VALORANT CHAMPIONS",
"description": "All Paths End Here.",
"darkText": false,
"descriptionTopMargin": "4px",
"banner": {
"image": "/banners/valorant_champions.png",
"text": "/bannertext/valorant_champions.png",
"height": 40
},
"items": [
{
"name": "Yoru Dimensional Drift",
"description": "Looking for me?",
"file": "/decorations/yoru_dimensional_drift.png"
},
{
"name": "Viper Poison Cloud",
"description": "No one can hold their breath forever.",
"file": "/decorations/viper_poison_cloud.png"
},
{
"name": "Cypher Neural Theft",
"description": "Nothing stays hidden from me.",
"file": "/decorations/cypher_neural_theft.png"
}
]
},
{
"name": "Spongebob",
"description": "Celebrate 25 years of nautical nonsense!",
Expand Down
Binary file added public/banners/valorant_champions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/bannertext/valorant_champions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/decorations/cypher_neural_theft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/decorations/viper_poison_cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/decorations/yoru_dimensional_drift.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 10 additions & 8 deletions utils/getAvatarDecorations.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
(() => {
var e = [];
document
.querySelectorAll(
"div[class^='categories_'] div[class^='shopCard_'] div[class^='avatarContainer_'] svg:nth-child(2) div[class^='avatarStack_'] > img[class^='avatar_']"
)
.forEach((el) => {
e.push(el.getAttribute("src").replace(/size=\d{2,4}&passthrough=false/, "size=1024"));
});
const e = [];
for (const el of document.querySelectorAll(
"div[class^='categories_'] div[class^='shopCard'] div[class^='avatarContainer_'] svg:nth-child(2) div[class^='avatarStack_'] > img[class^='avatar_']",
)) {
e.push(
el
.getAttribute("src")
.replace(/size=\d{2,4}&passthrough=false/, "size=1024"),
);
}
console.log(e.join("\n"));
})();
3 changes: 3 additions & 0 deletions utils/massdownload/urls.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
https://cdn.discordapp.com/avatar-decoration-presets/a_da532f804b47f1681006c2996eb07b2a.png?size=1024
https://cdn.discordapp.com/avatar-decoration-presets/a_62cd9d7c0031a7c1eb5ad5cc96992189.png?size=1024
https://cdn.discordapp.com/avatar-decoration-presets/a_b1efe77f379c6c9c6e47e6b6299d5a7d.png?size=1024
https://cdn.discordapp.com/avatar-decoration-presets/a_71b359795488ef63c5c39a46bb8f2e54.png?size=1024
https://cdn.discordapp.com/avatar-decoration-presets/a_4946d58f2f74d54703a7aa26b494f62b.png?size=1024
https://cdn.discordapp.com/avatar-decoration-presets/a_914f20f4984a11b5255f0e42c661fa5b.png?size=1024
Expand Down

0 comments on commit 9897c12

Please sign in to comment.