-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added xero.gg support. #2451
Added xero.gg support. #2451
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
upload proof of working presence
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need let variables for them, because you only use these variables in if statements so please change it to const.
I hope it's okay now.. |
websites/X/Xero.gg/presence.ts
Outdated
const claninfo = [ | ||
document.querySelector( | ||
"#player-profile-header-heading > div.medium.normal-color-name" | ||
).textContent, | ||
document.querySelector( | ||
"#clan-data-container > div > div.col-sm-3 > div > div.xero-pane-body > ul > li" | ||
).lastChild.textContent, | ||
document.querySelector( | ||
"#clan-data-container > div > div.col-sm-9 > div:nth-child(2) > div > div > a > div.media-body.ml-2 > div.bold" | ||
).textContent | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats an array, thats now how you merge consts
const var1 = obj,
var2 = obj2;
Okay I hope I finally understood it now. |
just to be sure please upload new proof of it working |
Ah sure, 1 sec |
@Bas950 I replaced the Showcase Link with a new video (You can also see the current date and time of windows) |
Showcase: Showcase
Website: xero.gg
What it is: xero.gg is a player and clan database for the private server called "S4 Xero" of the base game "S4 League".
What the presence does: The presence mainly shows what profile or clan you are currently looking at or what news you are currently reading. More features included and might follow.
Screenshots of the presence: