Edit: A yearly edition is available. Do you want to know how you did throughout the whole of 2024?
Here is the modified script :)
https://pastebin.com/ixQ4T3Nf

Hopefully, I did don't forget anyone on the author list

Edit: The script has been drastically improved by other members!! I am cleaning up the description so it is a bit more objective.

Swordoffury suggested I create a discussion on its own for the script since it would have more visibility and members with some programming know-how could help improve it.

We often have discussions with the topic of "what you are trying to win" or "what game you have entered most giveaways", but SG itself doesn't provide us a tool to easily check on that.
So it is up to us unoccupied users to improve our experience with extra tools! :)

The latest script version counts only the year of 2024 on click. It can be found at https://pastebin.com/ixQ4T3Nf
In the previous version, you have to set the number of pages to scan, it can be found here: https://pastebin.com/Aj2G2WDY

How to use it:

  • Install the scripts on your tamper/greasemonkey extension
  • go to page https://www.steamgifts.com/giveaways/entered . There should be a green button on the lower left for "Retrieve column headings"
  • Click on the green button and wait for the magic to happen. (or choose the number of pages to scan, in case you are using the default script)

You can also manually modify the 2024 script to scan back for full years, as described by ngoclong19 here: https://www.steamgifts.com/go/comment/NzFRtT1

There is a 1-second delay between fetching each page result. You can open the console on your browser to check the progress or just wait for the results to be displayed.

Thanks to:
missingtexture - massive overall, fusing 2 scripts into one, improving result display and more
SquishedPotatoe - for result display improvements leading to a SG style.
kivan - for detecting an issue with giveaways of multiple copies, improved sorting, grouped entries table and several improvements.
lav29 - for further results display improvements.
greatmastermario- for the fork with the sortng by number of copies and added headers to the column
ngoclong19 - Further fixes, improvements and maintenance :)

PS - I might take a while to further fix / give feedback... Hopefully by Monday I will be back on my schedule.

8 months ago*

Comment has been collapsed.

Bumping for my own update :)

1 month ago
Permalink

Comment has been collapsed.

Bumping your bump !

1 month ago
Permalink

Comment has been collapsed.

I found an issue. In the result list, the link to the store page is https://store.steampowered.com/app/_item_assets/.

I suggest replacing

key.appID = thumbnail.style.backgroundImage.substring(48);
key.appID = key.appID.substring(0, key.appID.search('/'));

with

const found = thumbnail.style.backgroundImage.match(/apps\/(\d+)\//);
if (found) key.appID = found[1];

I test with this thumbnail:
https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2701450/capsule_184x69.jpg?t=1710414471

1 month ago*
Permalink

Comment has been collapsed.

Ty for input!
I will fix it tomorrow morning when I sit on pc.

1 month ago
Permalink

Comment has been collapsed.

I found another issue. After finishing, the Copy Data button is overlay on top of the Retrieve Column Headings button (this button originally has the text Retrieve Data).

1 month ago
Permalink

Comment has been collapsed.

script breaks when encountering missing thumbnail this way

1 month ago
Permalink

Comment has been collapsed.

Thank you! I missed the packages (sub). I update to remedy it, please try again.

1 month ago
Permalink

Comment has been collapsed.

Bump! Somehow I never saw this thread til now. Thank you for the useful script meneldur :D

1 month ago
Permalink

Comment has been collapsed.

I'd like to suggest the solution for the issue that makes the script ends prematurely as reported here and there. Thank @Mantve for their suggestion.

Currently the script checks giveaway end date. However I think it's more appropriate to check the entered date.
I suggest replacing this code wrap.querySelector('span[data-timestamp]') with wrap.querySelector('div > span[data-timestamp]').

1 month ago
Permalink

Comment has been collapsed.

New paste with the suggestion: https://pastebin.com/ixQ4T3Nf
This time around I didn't forget to include you as author :)

1 month ago
Permalink

Comment has been collapsed.

I am having problems. I was able to get the green button to appear by enabling developer mode but when I click the button nothing happens. There is nothing asking me how many pages to do, nothing happens at all. I tried on chrome and edge it's the same thing.

1 month ago
Permalink

Comment has been collapsed.

Hello there!
I will check on it tomorrow (I am on my phone running after my son, so I cannot provide much support).

I edited the guide on the discussion as well. You shouldnt have to select the number of pages and it will scan all pages with giveaways of 2024.

Did you try to check console to see if it is updating?

1 month ago
Permalink

Comment has been collapsed.

What console are you talking about? I don't see a console anywhere. I don't program, you have to talk to me like a 5 year old. I was under the impression you install it, click a button and magic happens. Nothing is happening. Even after 10 minutes nothing happens and I have only been here a year, I don't have a million entries to sort through.

1 month ago
Permalink

Comment has been collapsed.

1 month ago
Permalink

Comment has been collapsed.

That honestly doesn't help either, I don't understand anything I see in there. It all looks like gibberish. All I know is I click the green retrieve column headings button and absolutely nothing ever happens. Nothing happens in that console after I click the button either. This is on chrome and edge. I mean literally nothing happens, it's like I'm not even clicking the button even though I am.

1 month ago
Permalink

Comment has been collapsed.

My green button is Retrieve Data, so please make sure you're using the latest version.
I tested with Microsoft Edge 131.0.2903.70 (64-bit), Violentmonkey 2.28.0.
I don't use Tampermonkey on Edge so I'm sorry if it isn't helpful.

1 month ago
Permalink

Comment has been collapsed.

I found some kind of "console" I don't know if it's what you are talking about, the only thing in there is this
MenuCmdKeyListeners initialized
5extension.js:862 onMessage: Unknown method "contextmenu"
extension.js:862 onMessage: Unknown method "prepare"
extension.js:862 onMessage: Unknown method "contextmenu"
extension.js:862 onMessage: Unknown method "prepare"
2extension.js:862 onMessage: Unknown method "contextmenu"

1 month ago
Permalink

Comment has been collapsed.

I just got fed up and uninstalled everything and installed it all again. Somehow it fixed the problem. The green button says retrieve data now instead and when I click it magic actually happens instead of nothing.

1 month ago
Permalink

Comment has been collapsed.

Sorry for my lack of feedback. I was not on PC for a while, but I am glad that you solved it out :)

1 month ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 1 month ago.

1 month ago
Permalink

Comment has been collapsed.

It looks like the script is not counting all giveaways pages. For example, when I count the entries for SUPERHOT: MIND CONTROL DELETE manually, it is over 250 and this script only reports 22.

When I open the console it reports that it scanned page 64 and then stopped. Maybe that is intentional. In my case I know that there are more then 1400 pages. So it might not be desirable to scan ALL giveaway pages.

1 month ago
Permalink

Comment has been collapsed.

You shouldnt have to select the number of pages and it will scan all pages with giveaways of 2024.
https://www.steamgifts.com/go/comment/yFyrqHh

op silently limited range without giving choice

1 month ago
Permalink

Comment has been collapsed.

Thank you. I was suspecting there was some limit. All entries in 2024 makes sense.

1 month ago
Permalink

Comment has been collapsed.

I am updating the post to give the previous script version :)
Sorry for the delay

1 month ago
Permalink

Comment has been collapsed.

To get the general (all years) edition, you could try to replace the script's condition year === 2024 with true.
Or you can comment out this line to get all data: continueRetrieving = false;.

1 month ago*
Permalink

Comment has been collapsed.

Thanks for the tip. I changed the line year === 2024 to year >= 2022 to include all giveaways up to and including 2022.

1 month ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 1 month ago.

1 month ago
Permalink

Comment has been collapsed.

I think you meant to post in this thread.

1 month ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 1 month ago.

1 month ago
Permalink

Comment has been collapsed.

Thanks for providing the script. I have always been interested in checking it

1 month ago
Permalink

Comment has been collapsed.

Thanks for the great script!
Are you planning on publishing it on Github? That way the community can also probably help out with some bugs or suggestions and there will be a more organized way for you to view the issues and what not.

1 month ago
Permalink

Comment has been collapsed.

Finally I've decided to try the script but this is the 2024 edition - only giveaways entered during this year. Where's the "general edition" for any year?

Also I have a problem where it only loads 2 pages, but I'd like to try the other script before asking for help.

1 month ago
Permalink

Comment has been collapsed.

Please see here for the general edition, https://www.steamgifts.com/go/comment/NzFRtT1.

Do you have any errors in the browser's console when the scripts stop at the second page?

1 month ago*
Permalink

Comment has been collapsed.

Thanks that's all I needed.
I used your tip mentioned by ShroudOfLethe just below and it began getting all pages.

1 month ago
Permalink

Comment has been collapsed.

I updated my comment to include both approaches. Sometime ideas pop out and they're different.
I also use Firefox and Tampermonkey, btw.

1 month ago
Permalink

Comment has been collapsed.

Hey, Ngoclong! Thanks for helping people out on this thread. I was bedridden and it was too much of an effort to reply to anything on the phone.
I am updating the thread discussion and referring to your comment.

1 month ago
Permalink

Comment has been collapsed.

I had the same problem - script stopped after two pages. ngoclong19's tip fixed it right up.
...Which is strange, because I only joined the site a few months ago, meaning all my entered giveaways should have been included in the 2024 range anyway.

1 month ago
Permalink

Comment has been collapsed.

Using FireFox+Tampermonkey? I think it's because maybe the script has been developed with Chrome and FF has some problems with it. Or it with FF. Who knows.

Thanks for the link to the tip, now it looks it's working fine. I'll leave it getting pages tomorrow and see if it works till the end.

1 month ago
Permalink

Comment has been collapsed.

Yep, I tried both tampermonkey and greasemonkey with Firefox and got the same problem both times. I’d agree with you about it being a Firefox thing, but it seems like others got it to work with no issues, so who knows?

1 month ago
Permalink

Comment has been collapsed.

Maybe it's something clashing with other extensions? Sometimes SteamDB gives me an error when selling an item since I added Augmented Steam. It's something harmless and random, but I wonder what other random things could happen that aren't harmless and I don't see.

Anyway, just speculations. Once again, thanks for the link to the tip. I have no experience with these greasetampermonkey things and I wouldn't have dared to change anything by myself without clear instructions.

1 month ago
Permalink

Comment has been collapsed.

I think it's because it is deciding by the GA end date. Some of the GAs in the xmas train end up a bit after new year, which is in 2025. The script checks for the exact 2024 date, therefore breaking the loop. Thats why changing year === 2024 to year >= 2024 fixes it

1 month ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 4 weeks ago.

1 month ago
Permalink

Comment has been collapsed.

You probably meant to post in this thread.

1 month ago
Permalink

Comment has been collapsed.

Ah, oops, sorry. Thanks for pointing it out

4 weeks ago
Permalink

Comment has been collapsed.

Thanks again for the script.

1 month ago
Permalink

Comment has been collapsed.

im having trouble. im not very skilled

i copy paste into new tamper monkey script and save but it's not showing green button or anything

1 month ago
Permalink

Comment has been collapsed.

Google Chrome browser?

Then go here "chrome://extensions/" and enable "Developer mode" top right corner.

1 month ago
Permalink

Comment has been collapsed.

That is probably it haha

1 month ago
Permalink

Comment has been collapsed.

So, I tried out the script and I dont know what I do wrong, but it shows me as the top spot "Animal well" with 3 entries while there are, even on the first page, multiple games with more than 3 entries.
EDIT: Nevermind, I am a big dumbdumb. I rarely enter GAs so the list is correct for all of 2024 ^^;

4 weeks ago*
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 weeks ago.

3 weeks ago*
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.