SteamGifts v2 Giveaway Filter (with SteamGifts++ and SGv2 Dark support)

Back in the days of (good) old SteamGifts v1, I couldn't even image using the site without SteamGifts+ with endless scrolling and giveaway filtering. When SteamGifts v2 was in beta, I heard about people working on SteamGifts++, a version of SteamGifts+ for the new site. I was pretty happy thinking that when the new site comes out, I'll be able to use it the same way as before. Unfortunatelly, development of SG++ stopped, probably due to personal/time reasons which I completely understand and respect. One feature in the current SG++ was missing though, and it was the giveaway filtering, a crucial part of the original SG+ plugin. I waited a few months and after I did my first "Hello world" in Javascript, I decided I'd try to create the filtering scrip for myself. After I did, I sent it to the proud people of The Reset and surprisingly they liked it (thanks for the alpha testing, guys). Even though I refused it before, I decided to try to make a UI for the filter and make it public. And here we are!

You might ask why I didn't add the filtering to SG++ itself. I looked at it and they seemed to use some framework(s) which I didn't want to learn since pure Javascript seemed enough for the job. If anyone wants and is skilled enough, he/she can take this plugin and convert it to SG++, I won't mind. Just be aware that if you do so, I won't be able to support the development of the plugin as much as I could if it'd have stayed in pure Javascript. Now as mentioned earlier, I'm no web/Javascript developer and I don't aspire to be one. If you look at the code and think it's ugly, wrong or anything like that, I'll be happy to take any suggestions you can give me to improve it. Just try to avoid comments like "use jQuery, you noob" since these are not helping at all. If you want and think you can, you can always create a pull request and I'll be happy to take a look at your work and merge it into the plugin if possible.

I'll try to monitor the discussion below and try to implement the most requested features into the plugin, but since I'm working on the plugin in my free time, I might refuse to implement some features if I think it's too hard to do them properly without significant usability gain or I might take "forever" to develop them if I just don't have time to do it at the moment.

Thanks for reading, I hope you enjoy the plugin and happy giving/winning!


Features

  • Filtering giveaways based on the level required to join, number of entries and/or points required to enter.
  • Possibility to exclude group/whitelist/pinned/region-restricted giveaways from filtering.
  • Filtering enabled on per-page basis.
  • Hide entered giveaways (with or without respect to other filter options).
  • Support for SG++ endless scroll and grid view.
  • Remove pagination for truly seamless endless scrolling.

Screenshot here


Requirements

It might work with older versions of the browsers or userscript plugins, but it has been tested on those above mentioned. If it works on older versions, share it in the comments and I'll try to update the requirements based on what you say. My intention is to always make it work on the newest version of the browser/plugin without any backwards compatibility unless explicitly requested.


Download

There are three options how to get the plugin:

  • The release version - download here - suitable for most, should always be stable and without any major bugs.
  • The beta version - download here - suitable for those that want new features/bugfixes early and don't mind some minor problems with the plugin.
  • The development version - download here - for enthusiasts, always have the current state-of-the-art technology, but might contain plugin-breaking bugs.

Changelog

0.5.7-BETA

  • Fixed filtering on the main page in Chrome.

0.5.6-BETA

  • Added support for the "Recommended" giveaway view.

0.5.5-BETA

  • Fixed filtering not working after SG moved to the HTTPS protocol. - by SilentGuy
  • Fixed SG++ GridView filtering not working properly. - by SilentGuy/SquishedPotatoe

0.5.4-BETA

  • Added support for SGv2 Dark. (REQ2) - by SquishedPotatoe
  • Fixed filter being displayed in the details of a giveaway. - by 0657code
  • Fixed filtering not working in some versions of Chrome (hopefully should be working now).

0.4.2-BETA

  • Changed the hide entered giveaways option to have multiple modes ("Yes" and "Always") with different behavior.

0.4.1-BETA

  • Added an option to filter giveaways based on points required to enter. (REQ3)
  • Added an option to exclude region-restricted giveaways from filtering.
  • Added an option to hide entered giveaways.
  • Added an option to remove pagination (for truly seamless endless scrolling). (REQ1) - by Timmaeh
  • Fixed filtering not working when there are no pinned giveaways.
  • Fixed giveaways user can't currently enter due to level requirements being filtered as well even when they belong to the level range.

0.2.2-BETA

  • Fixed support for SG++ 0.4.0beta.

0.2.1-BETA

  • Fixed handling of pinned GAs in the SG++ grid view.

0.2-BETA

  • Initial version of the script.

Requested features

I'll try to keep track of the features requested by you here. You can "like" a request by positively mentioning it in your comment with the REQ code assigned to all requests. I'll try to keep track of the likes and requests with more likes will get more attention.


Contributors

(in order in which they did their first commit)


Supporting the plugin

If you can and want, the best support is to go and code a requested feature and send a pull request with it. You'll be listed as a contributor/developer of course. If you can't or don't want to be involved in the development, there is another way how to support. Now before I tell you more, let me say that I'll continue the development unless stated otherwise without any further support, but supporting might increase the speed of the development or push forward some features you'd like to see, but everything is strictly voluntary. If you want, you can support by donating me a game from my wishlist. While donating, we can talk about what feature or anything else you'd like to see in the plugin and we can agree that I'll do it based on your donation. If we, for some reason, don't agree, you don't have to donate the game, it's completely voluntary. You can also donate games not on my wishlist, but always consult me before because I don't want to just hoard games I'm not going to play. You'd do better service just simply giving the game away on SteamGifts instead of giving it to me :). I don't accept any money or any other kind of stuff/services.

8 years ago*

Comment has been collapsed.

I'm using the Chrome version, and it doesn't really work. Or rather, it filters on the first attempt to change some of the parameters, but then seems to forget as soon as you move to the next page and any settings are completely ignored.

8 years ago
Permalink

Comment has been collapsed.

yeap having same problem here. I have to click on one of the filter options for the page to display the new settings. It still filters, but just doesn't actually do it until I interact with the filter settings.

8 years ago
Permalink

Comment has been collapsed.

Hi, sorry for the late reply. Is it still broken for you?

8 years ago
Permalink

Comment has been collapsed.

Hi, sorry for the late reply. Is it still broken for you?

8 years ago
Permalink

Comment has been collapsed.

it seems fixed (thanks for getting back ) but i'm not sure how i managed to get it to work since it was awhile ago. sorry its not good feedback

8 years ago
Permalink

Comment has been collapsed.

It doesn't work anymore for me :(

8 years ago
Permalink

Comment has been collapsed.

Hi, sorry for the late reply. Is it still broken for you?

8 years ago
Permalink

Comment has been collapsed.

Does anybody know how this works on Chrome? I updated Tampermonkey and installed the extension but nothing is happening at all

8 years ago
Permalink

Comment has been collapsed.

Hi, sorry for the late reply. Is it still broken for you?

8 years ago
Permalink

Comment has been collapsed.

Am I doing something wrong? If I want to only look at certain level giveaways it only shows 3-4 results per page, sometimes less and sometimes more, it's random but usually only 4. Er I'm not trying to rhyme it just happened XD

8 years ago
Permalink

Comment has been collapsed.

Hi, sorry for the late reply. That's basically how it works unless you use endless scrolling. I suggest you use SG++ for that as it should be compatible. http://www.steamgifts.com/discussion/7euKx/steamgifts-beta-updated-041-live

8 years ago
Permalink

Comment has been collapsed.

No problem, thanks for the suggestion.

8 years ago
Permalink

Comment has been collapsed.

Update to version 0.5.4-BETA released:

  • Added support for SGv2 Dark. (REQ2) - by SquishedPotatoe
  • Fixed filter being displayed in the details of a giveaway. - by 0657code
  • Fixed filtering not working in some versions of Chrome (hopefully should be working now).
8 years ago
Permalink

Comment has been collapsed.

Thanks a lot for your work and this update!
Is it possible also to add the filter for number of games copies per giveaway? (e.g. showing only giveaways with 2+ copies, 3+ copies and so on)?

8 years ago
Permalink

Comment has been collapsed.

Oh my god, I love this! Thank you! I've been missing this badly!

8 years ago
Permalink

Comment has been collapsed.

You're welcome, glad you like it :)

8 years ago
Permalink

Comment has been collapsed.

Sorry everyone for not being very active and not developing the script, it's not dead (yet) though.

I just have some other projects I need to work on to try to improve my real life, not just the virtual one, and I rarely find strength in the evening to work on the script, especially when it just works so far.

I'm telling now since I finally released a new update that was almost done for the past few months so it seems like a proper time to do so.

I will still try to answer to all of your comments, track requests and fix bugs in current features if any occur, but I can't make any promises about feature development.

Thanks for your understanding and also for using and (hopefully) enjoying the work I and other mentioned people have done :)

8 years ago
Permalink

Comment has been collapsed.

Thank you for the update, take care of yourself!

8 years ago
Permalink

Comment has been collapsed.

hi,

it is work perfect for me before bug "ip block" , after i clear my cookies and site start working but now my filter options works but i have problems with pages . i cant look all gifts in one page how it was before.. now i see 0 - 3 gifts in one page and i must click to next page.
i tried to reinstall it but it is dont work.
PLZ HELP ME (((

edit: i tried in Google Chrome and in Opera

8 years ago*
Permalink

Comment has been collapsed.

Hi,

this script doesn't include endless scrolling so I guess some other script broke on your end, like SteamGifts++ if you are using that (in that case the proper setting could be found at this link http://www.steamgifts.com/sgpp).

Filip

8 years ago
Permalink

Comment has been collapsed.

omg i found , thank you ! ur product is insane also , thank you fot it too.

8 years ago
Permalink

Comment has been collapsed.

You're welcome, glad you like it :)

8 years ago
Permalink

Comment has been collapsed.

+1 to Filtering by amount of copies being given away (REQ9).

Thanks for the work

8 years ago
Permalink

Comment has been collapsed.

Yeah your script are amazing! And besides thanks I come here to support request about number of copies. I would like to exclude many-copy GA's from any filters.
Also would be nice to have some option in settings to enable/disable any filtering completely. Without need to disable script in Tampermonkey and with saving all filters that were set.

Thanks for good script and please continue support when you can!

8 years ago
Permalink

Comment has been collapsed.

8 years ago
Permalink

Comment has been collapsed.

+1 for Show region-restricted GAs only, possibly a new item in the left men REQ7

8 years ago
Permalink

Comment has been collapsed.

I love your script and it still is working. But it causes a mess with SG++'s latest version in the grid view.
It lists games one by one without their images and those images follow in a bulk below.

And if you still plan to implement further features, REQ5 would be my top priority. Or REQ9, as a step into the REQ5 direction.

View attached image.
8 years ago
Permalink

Comment has been collapsed.

temp fix

.giveaway__row-outer-wrap[data-gridview*="sgpp_gridview"] {display: none;}
8 years ago
Permalink

Comment has been collapsed.

Thank you. I must admit that I don't really know how to use your fix though. ;)

8 years ago
Permalink

Comment has been collapsed.

thanks, the temp fix work.

also, +1 for REQ5

8 years ago
Permalink

Comment has been collapsed.

Where do you insert this in?

8 years ago
Permalink

Comment has been collapsed.

If inserting into script CSS starts at line 520

Example:

  // Append Stylesheet
  var filterCss = '.giveaway__row-outer-wrap[data-gridview*="sgpp_gridview"] {display: none;}\
   .filterDetails {margin: -1px -14px !important; border-radius: 0px !important;}\
    #filterDetails span {padding: 0 5px; font-size: 12px;}\

Note since the change to HTTPS on steam gifts you need to change the @include's to https as well, they are located near the begining of the script

8 years ago
Permalink

Comment has been collapsed.

Thanks! The listings issue is now fixed but seems like the filter itself is broken. Edited the @include lines to https too.

8 years ago
Permalink

Comment has been collapsed.

You also need to edit the refs to http://www.steamgifts.com/ in the code too... somewhere around line 473. I already made a pull request to get the fixes into the script, no idea if he'll see it soon :)

8 years ago
Permalink

Comment has been collapsed.

Filter doesnt work for me anymore :(

8 years ago
Permalink

Comment has been collapsed.

Same here.

8 years ago
Permalink

Comment has been collapsed.

Same here and I tried the edit some people used and it's not working.

8 years ago
Permalink

Comment has been collapsed.

Firefox version ?

8 years ago
Permalink

Comment has been collapsed.

I add "https" instead of "http" everywhere in script and now it working.

8 years ago
Permalink

Comment has been collapsed.

does not actually filter anything for me, still

E: nvm I didn't change it everywhere :P

8 years ago
Permalink

Comment has been collapsed.

maybe you missed some http...
working for me in chrome just like before.

edit: ah well

8 years ago
Permalink

Comment has been collapsed.

I did the same. Now it shows up in the page, but it doesn't filter though...

8 years ago
Permalink

Comment has been collapsed.

Are you sure you changed it all? The pull request (that should work) as an example https://github.com/GarionCZ/sgv2-filter/pull/4/files

8 years ago
Permalink

Comment has been collapsed.

I just uninstalled and installed it again and now it works :D
Thanks!

8 years ago
Permalink

Comment has been collapsed.

Hi, as others already mentioned, SG went from http to https all of sudden. There already is a pull request to the development branch with the fix, hope I can merge it soon. I'll then put the fix into the beta and release branches in about 12 hours if I don't forget.

8 years ago
Permalink

Comment has been collapsed.

thank you so much for being onto it so quick, your code is so awesome :D

8 years ago
Permalink

Comment has been collapsed.

Well, I noticed stuff is not working, but at that time SilentGuy already submitted the fix, so all credit for that goes to him :)

8 years ago
Permalink

Comment has been collapsed.

Update to version 0.5.5-BETA released:

  • Fixed filtering not working after SG moved to the HTTPS protocol. - by SilentGuy
  • Fixed SG++ GridView filtering not working properly. - by SilentGuy/SquishedPotatoe
8 years ago
Permalink

Comment has been collapsed.

So today we have new page with recommended GAs - https://www.steamgifts.com/giveaways/search?type=recommended
Script not working on first page but works on the rest. Please fix. And please add to options possibility to exclude this area from filters.
Thanks!

8 years ago
Permalink

Comment has been collapsed.

Hi, not sure what you mean by the script not working on the first page (it does for me), but added the support for the recommended giveaway view. If something is still not working, let me know (possibly using a screenshot with filter settings + address from the address bar + not filtered GAs screenshot).

8 years ago
Permalink

Comment has been collapsed.

Well. After this update script working on recommended giveaway page but stoped working on main SG page. See screenshots. Main page not working, second page working.

View attached image.
View attached image.
8 years ago
Permalink

Comment has been collapsed.

That's weird, the script doesn't recognize that you are on the main page (should say "this page" when you are on it), but that works fine for me. What browser + version, tamper/grease monky + version do you use? Did you try reinstalling the addon? If you are using other SG addons as well (apart from the supported ones), did you try disabling them?

8 years ago
Permalink

Comment has been collapsed.

Yes i use other addons as you can see on screens. There was no conflicts before. I turned them off and reinstall your script, nothing changes. Works everywhere but main page. Maybe there are some cached data that i should clear somehow?
Chrome v50 + Tampermonkey v4.0.25

8 years ago*
Permalink

Comment has been collapsed.

Thanks. Should be fixed now (hopefully).

8 years ago
Permalink

Comment has been collapsed.

Thank you! Working fine now! :)

8 years ago
Permalink

Comment has been collapsed.

Glad to hear that :)

8 years ago
Permalink

Comment has been collapsed.

Update to version 0.5.6-BETA released:

  • Added support for the "Recommended" giveaway view.
8 years ago
Permalink

Comment has been collapsed.

Yay! Exactly what I was coming here to ask for :P

Now I just moved to the beta instead of the release version

8 years ago
Permalink

Comment has been collapsed.

Beta and release versions are currently the same :)

8 years ago
Permalink

Comment has been collapsed.

Doesnt work for me again :( On the main page

8 years ago
Permalink

Comment has been collapsed.

Same browser and Tampermonky version as Frostt? https://www.steamgifts.com/go/comment/4HDeGbb

8 years ago
Permalink

Comment has been collapsed.

tampermonkey 4.0.25 and chrome 49.0.2623

8 years ago
Permalink

Comment has been collapsed.

Thanks, should be fixed.

8 years ago
Permalink

Comment has been collapsed.

Indeed, thankies :)

8 years ago
Permalink

Comment has been collapsed.

You're welcome :)

8 years ago
Permalink

Comment has been collapsed.

Update to version 0.5.7-BETA released:

  • Fixed filtering on the main page in Chrome.
8 years ago
Permalink

Comment has been collapsed.

Nice! Thank you for this, quite useful.

8 years ago
Permalink

Comment has been collapsed.

Glad you like it :)

8 years ago
Permalink

Comment has been collapsed.

This addon is awesome, but after the last update the remove pagination feature does not work anymore. How can I solve this?

8 years ago
Permalink

Comment has been collapsed.

Hi, do you use SG++ GridView? Did you try deactivating other scripts to see if that helps? If not, I'll need a screenshot and browser + version.

8 years ago
Permalink

Comment has been collapsed.

I have the same problem. No SG++, all other Greasemonkey scripts are disabled. 0.5.7 filter version, Firefox 45.0.2. What do you need me to screenshot?

8 years ago
Permalink

Comment has been collapsed.

Screenshot (and possibly mark in a paintbrush or somewhere) what do you think is an error.

Because to be honest, the "remove pagination" feature only makes sense with SG++ endless scrolling feature, otherwise it doesn't do anything as there is nothing to remove.

8 years ago
Permalink

Comment has been collapsed.

Ah, my mistake. I assumed the script itself included an endless scroll feature that wasn't working properly. Sorry.

8 years ago
Permalink

Comment has been collapsed.

That's OK, I just didn't want to duplicate features that were available elsewhere while developing this script so I decided it's better to just make it compatible with at least one script that supports endless scrolling.

8 years ago
Permalink

Comment has been collapsed.

Problem solved. Thanks!

8 years ago
Permalink

Comment has been collapsed.

Hey mate, ive seen that sg guys added new search function for amount of copies, could you attach it for your script maybe?

7 years ago
Permalink

Comment has been collapsed.

Hi, no, not really, as changing the values would reload the whole page. So if you would like to change it from 1 to 4 by clicking on the up button, you would need to wait for the page to reload 3 times, resulting in a really bad user experience.

7 years ago
Permalink

Comment has been collapsed.

Ahhh :( okay

7 years ago
Permalink

Comment has been collapsed.

Thank you sir !

7 years ago
Permalink

Comment has been collapsed.

Thanks alot i really needed this =)

7 years ago
Permalink

Comment has been collapsed.

REQ9 +1

An example for an option for it to combine : max # of entries + EXCEPT giveaways than have more than one copies

7 years ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.