Skip to content

feat(cybershoke): add Cybershoke presence#10918

Open
lovpassion wants to merge 3 commits into
PreMiD:mainfrom
lovpassion:feature/cybershoke
Open

feat(cybershoke): add Cybershoke presence#10918
lovpassion wants to merge 3 commits into
PreMiD:mainfrom
lovpassion:feature/cybershoke

Conversation

@lovpassion

@lovpassion lovpassion commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Description

This Pull Request adds a new presence for CYBERSHOKE (cybershoke.net), a popular Counter-Strike 2 community server platform.

What's new

  • Server & Map tracking: Displays the current server name (e.g. ) and the active map name (e.g. ) as the large image tooltip.
  • Dynamic Map cover: Sets the large image to the actual map thumbnail retrieved from Cybershoke's CDN (e.g., ) instead of a generic logo.
  • Persistent connection state: Captures clicks on the 'Join' button (both on the list cards and inside details preview modals) and persists the state after Steam launches the game.
  • Contextual browsing: Displays actions such as viewing profiles, checking Premium benefits, customizing weapons via the skin-changer, and viewing stats or leaderboards.
  • Automatic idle reset: Automatically resets the status back to browsing if the user clicks elsewhere on the page to browse servers again.

Technical note

The presence interceptor hooks click events on server cards and join buttons. If a user is not logged in with Steam, the details modal shows a generic warning ('Your account is not autorized'), but the script successfully walks up the DOM to match the previously clicked server name and resolves the map name/cover image dynamically.

Acknowledgements

Screenshots

image

@dimerp

dimerp Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

🖼️ Activity asset preview

I rummaged through the diff and found these. Finders keepers? No? Fine, they're yours.

Cybershoke (websites/C/Cybershoke) — creation

Preview Source URL
logo https://cybershoke.net/logo512.png

Beep boop — I refresh this comment on every push, so no need to scroll. 🤖

Comment thread websites/C/Cybershoke/metadata.json Fixed

@Bas950 Bas950 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to use the presence.info / presence.warn instead of the console ones.

"regExp": "^https?[:][/][/]([a-z0-9-]+[.])*cybershoke[.]net",
"version": "1.0.0",
"logo": "https://cybershoke.net/logo512.png",
"thumbnail": "https://cybershoke.net/logo512.png",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thumbnail should be a promotional banner or screenshot of the website homepage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants