Interesting idea. You should mention though, that you placed that button on https://www.steamgifts.com/account/manage/whitelist. I expected it on https://www.steamgifts.com/giveaways/new. ;)
Could you implement that functionality directly in the Steam store? You could directly fetch the appID from the open site and the benefits for the users should be obvious too.
Comment has been collapsed.
Some games Such as Death Road to Canada, show up as "null". But otherwise works well!
Comment has been collapsed.
Hey,
Work well here i use it With Opera and violentmonkey.
Thank you for your usefull script Gaffi !
i'll see one possible improvment
When i do a Blue heart GA i'd like to send some kind of "personal" invitation. Now, quite sure you see where it leads (◕‿-)✌
It would be amazing if there is a possibility to display the name of WL's members which owned the game.
BR
Comment has been collapsed.
Not bad, but without actual caching this concept is very slow and ineffective. You absolutely must keep wishlist of given user in a short-lived local cache, probably 24 hours would do (that's what I have in ArchiBoT). In addition to that it would make sense to also cache your wishlist to avoid cluttering SG servers. With those two enhancements, you can easily check multiple appIDs while only initial request will take time, everything else will be pulled from cache, and refresh if needed.
If you need some examples, check out my 2hu userscript (code, features won't work for you). I cache my API responses in short-lived cache for 15 minutes. This way my 2hu group members can easily view giveaway values without asking my API for data on each page being refreshed, otherwise it'd be killing my server. And I'm doing that for response as fast as this - caching wishlists is a must.
Comment has been collapsed.
As always I was already going too far and I thought I suggested that already ;_;. In addition to showing how many users miss given game you could also implement indicator how many users wishlisted given title. And in this case you should cache games as well as wishlists. Pretty much what ArchiBoT is doing, just for your WL and not given group.
Comment has been collapsed.
I don't know what limit is, but appIDs are stored as 32-bit unsigned integers (even lower if you apply actual steam masks and XOR, but hell please don't do that for your own sake).
https://arty.name/localstorage.html
5200000 characters were stored successfully, but 5300000 weren't.
Assuming appIDs are 6-characters (mostly), that gives you ability to store approx. 866.6 thousands of games, so over 8k per user if you have ~100. That should be enough. Actual limit will be a bit lower due to json structure, but you can do smart tricks such as storing json in base64 or any other format that takes less characters and decompress it, it's really easy and js already offers methods out of the box.
Apart from that, there is no way to do that with JS only. You can either use smart tricks and compress the data, or write your own API for managing cache. Assuming you don't want to do the second (nobody wants), you should stick with first option.
I'm not JS expert, I hate that language - I'm mostly coding backends in C# these days. But I'm sure there are ways to minify that json further, not only restructurizing it to contain only relevant info, but also compressing it using one method or another - cache is big enough, it's just a matter of proper logic.
Good luck.
Comment has been collapsed.
I once read about GM_setValue, it doesn't have a limitation of variable size and number of variable can be stored.
But if there are too many variable stored, it'll slow down the script.
I once used each appID as a variable name for my script, so the script have thousands of variables stored, and it became slower the more appID stored.
I then use an array to store appID, convert it to json, and save it to 1 variable, e.g GM_setValue("data", "your_json")
Comment has been collapsed.
It is pretty simple to save data with GM_setValue("bundle-34900", true), GM_setValue("cards-34900", true), GM_setValue("achievements-34900", true)
But then again, 1 game has at least 5 variables, lol
I didn't knew it will slow down the script. :D
Every time the script runs, I pull the json and store it in an array
var GameData = GM_getValue("GameData", "");
GameData = JSON.parse(GameData);
And everytime GameData updated, I just need to update the GM value
GM_setValue("GameData", JSON.stringify(GameData));
Comment has been collapsed.
When I put the game id, nothing happens. Both in the SG and Steam Store. That progress button doesn't appear.
Comment has been collapsed.
would be nice since
swl.mabako.net seems to be down ;)
Comment has been collapsed.
Nice script. Very simple and easy to use.
Displaying details about ownership, such as who has a game (rather than only summary statistics)
This will be great if you can make it :D
Scanning wishlists for most wanted games
Isn't m0l0's Whitelist Wishlist and Tools already done this?
Comment has been collapsed.
I hope you don't mind that I edited your script to better fit my needs. I moved the button to the left of the community button and changed the label to "SG♥" because I am using several scripts that add buttons and it's getting crammed.
In case anyone else is interested: Script
If you don't like that I will remove the link.
Comment has been collapsed.
Sounds like a good idea but the name Inventory Checker is misleading since it would check the Inventory for unredeemed gifts of that game. If I understood this correctly Libary Checker would be more accurate.
Comment has been collapsed.
can you move that default input number to a placeholder or something? as it is alert box, i understand difficulty, but that's a minus for me. on Linux I use thing, let's call it quick paste, where you select text somewhere and with middle mouse paste it without it going in to clipboard. the problem here is that, if i select that number in steam store link, opening your alert that default number selects over my steam selection and i'm pasting your default number. and as i can't switch tabs with your modal dialog, this happens every time.
Comment has been collapsed.
Came here to give my +1 for any inclusion of groups instead of only whitelists.
It would be extra-nice of you!!!!!!
Comment has been collapsed.
Very good! It will be veru useful for the whole community!
Comment has been collapsed.
Sorry sir, i didn't found the link on description, just a quick look =/
But thanks again!
Comment has been collapsed.
Damn, tried several times, but seems like Chrome is not accepting it... and when i clicked, gives a library error =/
Comment has been collapsed.
I was using Grease Monkey, but i forgot that i've uninstalled! Hahaha, gonna try again, sorry!
Comment has been collapsed.
thanks so much for your service to the community! this would be the tool that finally pushes me to try and figure out all of this userscript stuff when being able to check groups beyond whitelist is added. finally got bugged enough at the by-now obvious fact of swl's death... i bump from this thread
hopefully -
i stressed "when being able..." so much because i added it after the fact - did so to stress the edit... the comment didn't show as edited, but it will now... hangs head
oye dang, i commented the same a month ago... i promise i'm not hounding, i just saw this and yeah... well a bump is a bump? know that life gets in teh way and other things happen, i'm sorry
Comment has been collapsed.
unsure if it's supposed to be working on the steam store pages as well, but the button there isn't doing anything for me at all (see photo). works great from the steamgifts group page, but not there. if that section is only for whitelists then that would explain why it's broken for me though, since i have no whitelist.
Comment has been collapsed.
118 Comments - Last post 28 minutes ago by RobbyRatpoison
23 Comments - Last post 45 minutes ago by WangKerr
16,470 Comments - Last post 3 hours ago by shandyseggs
47,206 Comments - Last post 5 hours ago by fomi
21 Comments - Last post 7 hours ago by FluffyKittenChan
185 Comments - Last post 7 hours ago by vlbastos
194 Comments - Last post 7 hours ago by E4R0R
105 Comments - Last post 5 minutes ago by pomeyarou
14 Comments - Last post 7 minutes ago by BirdCute
31 Comments - Last post 8 minutes ago by eldar4k
9,802 Comments - Last post 15 minutes ago by Lakraj1209
439 Comments - Last post 57 minutes ago by KillingArts
89 Comments - Last post 1 hour ago by reigifts
16 Comments - Last post 2 hours ago by Vampus
Comment has been collapsed.