It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
A much easier way would be to simply do
document.findElementById(''all_genres_listContainer").className="hide_purchased_from_list";

Or in plain English, add the class "hide_purchased_from_list" to the (div) tag with id "all_genres_listContainer". Remove the same class to show owned games again.

Should probably be a slight bit faster that walking through every owned game in the catalogue.
Post edited June 16, 2013 by Maighstir
avatar
Maighstir: A much easier way would be to simply do
document.findElementById(''all_genres_listContainer").className="hide_purchased_from_list";

Or in plain English, add the class "hide_purchased_from_list" to the (div) tag with id "all_genres_listContainer". Remove the same class to show owned games again.

Should probably be a slight bit faster that walking through every owned game in the catalogue.
I don't understand how the above works. Wouldn't that hide everything? Or is there some remnant of GOGs hiding method?

It is instantaneous on my machine with 500 items to iterate over so I didn't consider it to be a problem. Is anyone having performance issues with this?
avatar
xyem: I don't understand how the above works. Wouldn't that hide everything? Or is there some remnant of GOGs hiding method?
No, it does exactly what it says on the tin, "hide purchased from list".

Owned games are marked with the class "own", and there is a style for .hide_purchased_from_list .own { display: none; } (which means "any element with class 'own' that is somewhere inside another element with class 'hide_purchased_from_list' will not be drawn" - but you should know that).

This is what the now-removed checkbox did - add and remove that class.

The styles for the checkbox itself are also still present, but though I have scoured the scripts, I can't find what would make it function (the checkbox had the class "hide_purchased_check" and was likely inside a span with class "hide_purchased", but should likely have an id or another hook to make it active). I'm not sure if the function is still there, and I just can't find it, or if they removed it when they removed the checkbox.


EDIT: That said, I'm not trying to belittle your work. It's great, just that I personally would look to see if at least part of the plumbing is already there to hook into before running my own.
Attachments:
capture.png (17 Kb)
Post edited June 16, 2013 by Maighstir
Xyem, just teasing you ;-p

It is nice to see add-ons from many sources! Thanks ;-D
avatar
Maighstir: EDIT: That said, I'm not trying to belittle your work. It's great, just that I personally would look to see if at least part of the plumbing is already there to hook into before running my own.
No worries, no belittling interpreted.

I can understand why you would try to use the existing plumbing.. but GOG could remove that at any time and I'd rather it not break because they decided to do some clean up :)
Post edited June 16, 2013 by xyem
avatar
xyem: I just ran the code through JSlint and it came up with similar things. They are not errors, it is complaining about the (more sensical, in my opinion) code layout. It wants me to define all the variables at the top of toggle_owned_visibility instead of as I use them.
Nothing and to be honest, I'm surprised he hasn't implemented this himself.

My end-game is to have this part of his GOG essentials package. He'll probably beat me to it, but once I have added a GUI element to control it (like how it used to be) and fixed some issues where they can reappear (e.g. during it loading more games in), I will merge it into GOG essentials and send him a patch.
Sorry, I just picked a key that was easy to access and wouldn't interfere with any existing browser shortcuts as I didn't want to mess around trying to get a checkbox to work at those early hours!
NP it works like a charm now
Hmm, I'm having trouble with the script on TamperMonkey in Google Chrome. Not getting anything when I press `.
avatar
SirPrimalform: Hmm, I'm having trouble with the script on TamperMonkey in Google Chrome. Not getting anything when I press `.
The "owned" tags don't work at the moment, they have been disabled because of the server load.
Post edited June 18, 2013 by DarkoD13
avatar
DarkoD13: The "owned" tags don't work at the moment, they have been disabled because of the server load.
Ah I see!

Nice job GOG, make it less convenient to browse your catalogue.
yeah i want to buy a lot of the games i don't own but i obviously won't be doing it til i can easily browse the games i don't already own
I'm going to go ahead and add a warning about the sale situation to the OP.

*grumble grumble*
avatar
xyem: I'm going to go ahead and add a warning about the sale situation to the OP.

*grumble grumble*
I'm still not able to get it working, did GOG ever reactivate the 'owned' tags?
avatar
SirPrimalform: Hmm, I'm having trouble with the script on TamperMonkey in Google Chrome. Not getting anything when I press `.
avatar
DarkoD13: The "owned" tags don't work at the moment, they have been disabled because of the server load.
so when will you bring it back
avatar
butcer: so when will you bring it back
You're asking the wrong person. Ask one of the staff, a bluetext.
avatar
DarkoD13: The "owned" tags don't work at the moment, they have been disabled because of the server load.
avatar
butcer: so when will you bring it back
Well in this post: http://www.gog.com/forum/general/holiday_sale_incoming/post93 allegedly a blue text claimed it would be put back around the 16/12/2012... after 13 months it appears it is still missing.