Add CS2Tracker Extension#213
Open
MuhammedResulBilkil wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CS2Tracker Extension
Adds a CS2Tracker button to Steam community profile pages and a small badge to each row of the friends, pending-invite and recently-played-with lists. Clicking through opens
cs2tracker.gg/stats/{steamid64}for that player.Each badge and button reads its own player's Steam ID from the page it sits on, so a friend-row badge opens that friend's stats rather than the profile owner's. Three toggles in the settings panel control the profile button, the friend-list badges, and whether links open in Steam's browser or the system one.
Repository: https://github.com/MuhammedResulBilkil/cs2tracker-extension
Pinned at
9be073a, which is thev1.0.0release.How it differs from the plugins already on the store
leetify-extensionandcsstats-extensionlink out to Leetify and CSStats respectively; this one links to CS2Tracker, a different site. The profile button is deliberately styled to match the CSStats button's height, ground colour and wordmark treatment so that the three sit together as a row rather than competing visually — the screenshot above shows all three installed side by side.The friend-list badges are the part I haven't seen elsewhere: a per-row link on the friends, pending-invite and recently-played-with lists, each resolving that row's own account.
There is also #209 (Profile Button Config) open in this queue, which lets a user define arbitrary profile buttons from a URL template. I don't think the two make each other redundant, and I'd rather say why than leave a reviewer to wonder: PBC is a general tool for profile pages, configured by the user; this is a zero-configuration plugin for one site that also covers the friends lists, which a profile-page button cannot reach. Someone who wants a button for an arbitrary site is better served by PBC. If the maintainers see it differently I'd genuinely rather hear it now than after a merge.
Task Checklist
Developer
Plugin Functionality
Backend Configuration
"backendType": "lua"inplugin.json. It requireslogger,millenniumandjson, all of which Millennium preloads, and nothing else.main.lua.Community Contribution
Not yet — I'll pick two open submissions up and comment, and link them here when I have. Flagging it rather than leaving the boxes silently unticked.
Testing Instructions
Install, restart Steam, enable under Millennium → Plugins, then:
/id/{vanity}profile as well. The Steam ID isn't in that URL, so this exercises a different resolution path.<style>element.Network behaviour, if you want to check it: the plugin makes exactly one request of its own, to
steamcommunity.comfor the current page's?xml=1view, and only when the profile's Steam ID isn't already available from the URL or the page's own globals. Everything else is a link the user clicks.