Open Enissay opened 9 years ago
+ The possibility of blacklisting a game from inside it's giveaway page...
Hey sorry, yes, we are interested in doing such things, but we need to wait till Endless Scroll is able to inform whether new giveaways are added. That will makes things much smoother and easier to implement.
@leomoty: I'm working on it. :)
Forgot to add a follow up on this, we just need someone to create the filters now, since @nikop already created the events to make it possible.
Should ping @nikop about this one.
2015-03-14 11:26 GMT-03:00 Enissay notifications@github.com:
- Also when you blacklist a game, the page auto-reloads, and it take a while to find where you were :> (nth page in Endless Scroll), it would be great if you make that optional (reload or not) or even make it come back to the same page after the reaload
— Reply to this email directly or view it on GitHub https://github.com/leomoty/SGPP/issues/80#issuecomment-80507767.
I made a little script with greasemonkey (adding colors to interesting games for me, remove others, filtering, ...) but I guess it confilcted SGPP since for example I cant no more blacklist a game :<
Anyway, I told myself why not help you move ahead instead of making my own script... I have some basic-medium experience with js-jQuery-Dom (No ts thought !), so maybe If you gimme some tasks (im a beginner at collaborative projects), i'll be glad to help...
@nikop @leomoty
Sure, add me on steam @Enissay
Should we add base module for giveaway filters?
Currently I have all code filtering in MarkOwnedGames. This isn't best solution, but it works.
https://github.com/leomoty/SGPP/blob/beta/SGPP/Modules/MarkOwnedGames.ts
1) We ensure it gets initiated first 2) Maybe provide function to call other modules (not needed, but would allow cleaner code).
Would return true on success and false on failure. No warnings, since modules may provide other features too.
3) Modules that want to add filters calls base module which handles filtering.
[BaseFilter instance].addFilter(filter|array of filter) for registering
Filter provided could be class that provides:
shouldHide() -> boolean if giveaway will be hidden. render(element) -> Render element (that provides tool for changing filters settings) setState(state) -> sets state from previous event stateChanged -> for saving state when changed (if enabled?)
Pull request #95 contains first version.
Initial version of filtering framework merged to beta branch.
Mainly filter by levels... That would be greatly helpful :)