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
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).
Comment has been collapsed.
Thank you! I missed the packages (sub). I update to remedy it, please try again.
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]')
.
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 :)
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.
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?
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.
Comment has been collapsed.
I think they're talking about the web console (shortcut key F12):
https://developer.chrome.com/docs/devtools/open
https://firefox-source-docs.mozilla.org/devtools-user/web_console/
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.
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.
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"
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.
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
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;
.
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.
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?
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.
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.
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?
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.
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
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 ^^;
Comment has been collapsed.
300 Comments - Last post 17 minutes ago by MXY
12 Comments - Last post 22 minutes ago by Stakaniy
182 Comments - Last post 1 hour ago by GeekDoesStuff
1,537 Comments - Last post 4 hours ago by terrascura
261 Comments - Last post 4 hours ago by Yorickmeister
85 Comments - Last post 5 hours ago by Aerctaure
53 Comments - Last post 6 hours ago by RobbyRatpoison
99 Comments - Last post 52 seconds ago by Aldcoran
53 Comments - Last post 11 minutes ago by kctan
43 Comments - Last post 11 minutes ago by oblueknighto
173 Comments - Last post 13 minutes ago by Begum
9,788 Comments - Last post 20 minutes ago by chaosttc
38 Comments - Last post 31 minutes ago by Scifryed
437 Comments - Last post 56 minutes ago by GeekDoesStuff
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:
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.
Comment has been collapsed.