With the creation of Actually Playing Games, we've been finding it rather useful to be able to check for a given SteamGifts user how much they actually play the games they win here. Obviously most SG users don't have a BLAEO account - and just viewing a users profile in Steam takes a while and is difficult to filter down to just SG wins. So I've written a userscript for Tampermonkey for Firefox or Chrome that, when viewing the wins page for a user, allows you to quickly fetch some statistics about how much (i.e. playtime) and how well (i.e. achievements achieved) that user does for their wins.

Download the userscript from Github

IMPORTANT: this extension requires a Steam API key to function. You need to go to this page and register for one if you do not already have one (the domain name can be one you make up - its not important).

To use it, once you've installed the userscript in GM/TM, just go to any user's gifts won page and click on the button labelled "Provide API key", paste your API key into the prompt (this is cached hereafter), and then click on the new button labelled "Fetch Playing Info". You'll see the additional rows of the table slowly fill up as the information comes back from the Steam API, as well as individual games having their info updated in the rows below. The extension caches all the results it can and tells you when the cache was last updated.

Caveats: there are some considerable omissions that this script cannot deal with or be worked around:

  • the script will not work for fetching stats about users whose profile information is private,
  • if a user plays their games in offline mode or through family sharing, that time will not be included in the stats.

Warning: if you use this extension too many times in a day, there is a possibility Steam will block your API key for a period of time and the results that come back will be incorrect or none at all.

Changelogs

2018-01-23: New feature! Do You Even Play, Bro? now queries How Long to Beat (HLTB) for each game, and enriches both the list of games and adds some summary statistics to the table. This makes it easier to compare a users playtime to the consensus about how long a game should take, especially useful for games without any achievements.
2017-12-15: The latest version of Greasemonkey for Firefox 57 has broken a number of things (internal API changes, as well as installing userscripts from GitHub). Rather than waiting for them to fix all these issues, I instead suggest Firefox 57 users move to Tampermonkey since it has neither of these issues.
2017-07-07: Added a new feature of charting a user's cumulative achievement percentage (put your cursor over the graph for more details). Users can switch between the two styles by clicking on the link next to "Games with Achievements".
2017-05-20: With many thanks to BarefootMonkey for spotting it, my script no longer includes DLC in the counts - so hopefully those of you who have won individual DLC or collections that included DLC should see your stats have improved.
2017-05-16: Just pushed out version 1.3.5 of this script. It's made some slight changes to how the "win counts" (now "games with...") section of the table, moving the absolute counts to title attributes (i.e. hover over the percentage to see the ratio) and adding a new count of games with ≥25% of achievements available obtained.
2016-11-08: I've released version 1.2.0 of the script that introduces the ability to fetch the list of games within a sub, which should reduce the inaccuracy of some users statistics.

View attached image.
8 years ago*

Comment has been collapsed.

Every time when I click 'Update Playing Info' I get logged out of Steamgifts, it's really weird but I tried it 5+ times over a span of a few days and so far it happened all the time, it updates, I refresh the page or go to a different page and I am logged out, not sure how that can happen? I use Waterfox (Firefox) with Violentmonkey and some time ago it didn't had that problem, though I didn't check for some time now so no clue when the problem really started.
I was also wondering, does the script does a periodic check as well? 'Last retrieved: 27-12-2019' is when I did it last, does it only update when I ask it to or?

4 years ago
Permalink

Comment has been collapsed.

Same problem here, api errors and disconnect. My solution was to select the "Disable HLTB enrichment?" so far no more errors and disconnects.

4 years ago
Permalink

Comment has been collapsed.

I always have that on, I did disable it 1 time and enabled it again but that didn't help :(

4 years ago
Permalink

Comment has been collapsed.

Try the tampermonkey then, here despite the errors I was not logged out.

4 years ago
Permalink

Comment has been collapsed.

Ok, was some trouble getting all scripts + everything to Tempermonkey, even more when I disabled it, then enabled, then disabled, then enabled and then it decided not to work anymore, but I got it to work with all options I had in other scripts so thanks for that fix at least, weird that 1 script program has that issue but not another one?

4 years ago
Permalink

Comment has been collapsed.

Different ways to handle the errors in the script I imagine.

4 years ago
Permalink

Comment has been collapsed.

I probably will get some love out of this, but I'm a little pissed off rn so..
Can a script user kindly post my stats please

Thanks in advance

4 years ago
Permalink

Comment has been collapsed.

nice stats

View attached image.
4 years ago
Permalink

Comment has been collapsed.

Thank you, and happy new year :)

4 years ago
Permalink

Comment has been collapsed.

Maybe it's just me, but with the newest Firefox Update to version 73.0.1 the script is not working anymore. The button simply disappeared. Disabling/enabling the script and even reinstallation does not help at all. Worked fine with the previous version.

I use Tapermonkey btw.

Edit. It really seems to be a probelm with the newst Firefox update. Reverting back to the older version 72.0.2 the script works again.

4 years ago*
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 1 year ago.

4 years ago
Permalink

Comment has been collapsed.

Strange.
Just to make sure I updated my version again with the same result, so reverting back and voila it works again. Maybe it's a problem with the German version of Firefox shrug

4 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 1 year ago.

4 years ago
Permalink

Comment has been collapsed.

I do too.

4 years ago
Permalink

Comment has been collapsed.

OKay I give up.

I downloaded the newest version from their webpage, it did not work. I downloaded older versions and updated them, it would not work (already had all other extensions/addons disabled). I did this 5 times and with the 5th time it suddelny works like there was never a problem. After the first update I even uninstalled everything.

4 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 1 year ago.

4 years ago
Permalink

Comment has been collapsed.

Ich nutze die deutsche 64bit Version von Firefox 73.0.1 und das Script über Tapermonkey... und bei mir funktioniert es.
Hoffe Du findest das Problem... daumendrück

Schönes Wochenende! :-)

4 years ago
Permalink

Comment has been collapsed.

Hi danke,

ich hab keine Ahnung woran es lag. Ich hab den Krempel jetzt 5 mal neuinstalliert und plötzlich gehts. Macht zwar keinen Sinn aber ich nehm es jetzt einfach so hin.

Dir auch ein schönes Wochenende.

4 years ago
Permalink

Comment has been collapsed.

How long does it take this script to retrieve my gaming information (with HLTB turned off)? I've already waited two hours....

4 years ago
Permalink

Comment has been collapsed.

It took less than 30 seconds when I ran it for your profile. It should show you the progress as it gathers data so you should see what is the current state (sometimes it get stuck but a reload of the webpage and running it again usually helps). In case you are only interested in the stats themselves:
Average and Total Playtime
40 minutes per win, 4.2 hours per played win, 109 hours total
Games with any Playtime
15.9% (26/164)
Games with Playtime...
≥5 hours: 4.27% (7/164), ≥10 hours: 1.83% (3/164)
Avg. Achievement Percentage
48.4%
Games with ≥1 Achievement
11.3% (15/133)
Achievement Rates chart
≥25% complete: 7.52% (10/133), completed: 3.01% (4/133)

4 years ago
Permalink

Comment has been collapsed.

Yeah, I've waited seven hours and it's still "Retrieving Khalaq's logged playing times" without any update in the status or data gathered. (Everything still reads "0.") I'm guessing that something else I have installed is blocking it.

4 years ago
Permalink

Comment has been collapsed.

Hi! This is still working? It disappeared from my browser and I don't know if it is not supported anymore.

3 years ago
Permalink

Comment has been collapsed.

Last updated 486 day ago, but at least works well on my end.
Chrome Dev v92.0.4484.3.

3 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 1 year ago.

3 years ago
Permalink

Comment has been collapsed.

Seems like a good script. Took a bit to get working initially due to Tampermonkey having to allow access to like 5 or 6 different sites, but seems to be doing the job. Thanks

3 years ago
Permalink

Comment has been collapsed.

For some reason, for me it's retrieving forever (maybe I do something wrong)...

2 years ago
Permalink

Comment has been collapsed.

If you have enabled "HLTB enrichment" it might take some time to fetch the data.
I tested it out with HLTB enrichment enabled and disabled (63 games total) . Took me following time to finish my page,
HLTB enrichment enabled : 1 min 7 sec
HLTB enrichment disabled: 10 sec

For your page with 54 wins it took
HLTB enrichment enabled : 59 sec
HLTB enrichment disabled: 8 sec

If it is taking way more then that maybe something is interfering when you are running a script.

2 years ago
Permalink

Comment has been collapsed.

6 hours passed and no change, I'll see what I can do tomorrow after work 😅

2 years ago
Permalink

Comment has been collapsed.

Try to clear the cache and try again, maybe that will help you.

2 years ago
Permalink

Comment has been collapsed.

Already did, no help... I think I'll just give up on it.

2 years ago
Permalink

Comment has been collapsed.

Is it still working for anyone else?

All I get is "Retrieving NateSCC's logged playing times" and nothing more happens.

Tried reinstalling / deleting but nothing changes...


/Edit

Turns out, for it to work you have to use the correct Steam API key...

View attached image.
1 year ago*
Permalink

Comment has been collapsed.

It's working for me with Tampermonkey on Firefox Librewolf.

1 year ago
Permalink

Comment has been collapsed.

Works for me Firefox+Violentmonkey ¯\_(ツ)_/¯

1 year ago
Permalink

Comment has been collapsed.

I was getting the same problem. Turns out Valve have added verification to get an API key and for some reason my old key got revoked (maybe because of ASF?).

I had to create a new API key, confirm it in the mobile app and then add it to DYEPB.
You can do that by reinstalling the plugin, or by editing the source code and adding an extra line on line 31. Afterwards you can remove it again.

var HLTB_URL = "https://howlongtobeat.com/search_main.php"; // takes a (POST) queryString and (GET) page number
GM_setValue("DYEPB_API_KEY", "YOUR NEW API KEY HERE"); console.log("API key updated"); // Add this line
var STEAM_API_KEY = GM_getValue("DYEPB_API_KEY");

11 months ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 10 months ago.

10 months ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 1 month ago.

1 month ago
Permalink

Comment has been collapsed.

Excellent tool worth EVERYONE's time.
BUMP!

Its easy to install, just follow OP's instructions.
Install Tampermonkey/Violentmonkey > Add Userscript > Steam API key

Tip: Incase it doesnt load the stats, Disable HLTB enrichment.

9 months ago*
Permalink

Comment has been collapsed.

There's a lesser-known related script that I find very useful called Did they even play?

It adds play stats to the Winners page of each giveaway. It's a convenient way of checking if a winner has played a game but can also be used to check if the winner already owns the game before sending them the key or if they've activated their win.

9 months ago
Permalink

Comment has been collapsed.

This is a cute idea, I'll just use it out of curiosity, no reason to judge people if they don't play their wins imo. Will try to 100% as many games as I can from my wins now, 4 down, 21 to go :)

9 months ago
Permalink

Comment has been collapsed.

Turnip Boy Commits Tax Evasion 5/26

8 months ago
Permalink

Comment has been collapsed.

Supraland 6/26 (All available content so far, until I get the DLC)

8 months ago
Permalink

Comment has been collapsed.

Distant Space 2 7/26

8 months ago
Permalink

Comment has been collapsed.

Inbento 8/43
Grow a Carrot 9/43
Gachi Heroes 10/43
Neon Space 2 11/43

6 months ago*
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 6 months ago.

6 months ago*
Permalink

Comment has been collapsed.

Hey everyone, this script stopped working for me a while ago. I waited a bit to see if it's a temporary issue, but it persists. It goes as far as to "retrieving games" and looping a loading loop thingy, but never actually ends the loop and gets to actually checking the games. I tried on several profiles, including my own.
Any ideas? It's probably a local problem, since no one else complained about it ;P

2 months ago
Permalink

Comment has been collapsed.

yep, its local problem, try to delete cached data and re-input steam API?
also https://www.steamgifts.com/discussion/NyDOv/tool-do-you-even-play-bro-tampermonkey-userscript/search?page=5#94BYl0b :p

View attached image.
2 months ago*
Permalink

Comment has been collapsed.

its Tuesday, likely steam maintenance causing issues.

2 months ago
Permalink

Comment has been collapsed.

The script broke recently due to a change to outgoing Steam links on SG (See cg's comment)

Here's what you need to do to fix the issue:

Search for each of the below lines in the code for the add-on.

var id = $ga_icon.attr("href").match(/https?:\/\/store.steampowered.com\/([^\/]*)\/([0-9]*)\//);

var type = $link.attr("href").match(/https?:\/\/store.steampowered.com\/([^\/]*)\/[0-9]*\//);

id = url.match(/https?:\/\/store.steampowered.com\/([^\/]*)\/([0-9]*)\//),

And replace them with these lines.

var id = $ga_icon.attr("href").match(/https?:\/\/store.steampowered.com\/([^\/]*)\/([0-9]*)/);

var type = $link.attr("href").match(/https?:\/\/store.steampowered.com\/([^\/]*)\/[0-9]*/);

id = url.match(/https?:\/\/store.steampowered.com\/([^\/]*)\/([0-9]*)/),
1 month ago*
Permalink

Comment has been collapsed.

nice that cg posted the solution because the add on creator was last online 6 years ago

1 month ago
Permalink

Comment has been collapsed.

Shorter version for this particular script:
Find all occurrences of \//) and replace with /)
Including the closing parenthesis isn't necessary, but it might be a bit safer this way.

I noticed a small mistake in your paste, there's a backtick at the end of the first code block which shouldn't be included in the search.

1 month ago*
Permalink

Comment has been collapsed.

Thanks. Fixed.

1 month ago
Permalink

Comment has been collapsed.

It's weird, I tried it on pizzahut's profile, first it ran but failed to return games with achievements, then after deleting fetched info and added the API key again, it somehow counted twice their won games. And has API querry errors, and no real results. I think I messed up something.

edit: I needed a browser restart maybe, it's working it properly now ^^

1 month ago*
Permalink

Comment has been collapsed.

Thank you!!!

4 weeks ago
Permalink

Comment has been collapsed.

Thanks for the fix

2 weeks ago
Permalink

Comment has been collapsed.

Thanks for the fix

1 day ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.