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

×
avatar
petey212: Hey,

Not sure if itad changed things on you or what but australia is broken in your code. I fixed it by changing the following lines:

@1445:

var au2 = {
AU2: {
name: "Australia",
region_code: "au2",
currency: {
code: "AUD",
sign: "$",
delimiter: ".",
left: true,
html: "$"
}
}
};


@1497:

var region_map = {
eu1: eu1,
eu2: eu2,
uk: uk,
us: us,
ca: ca,
br: br,
au2: au2,
ru: ru,
tr: tr,
cn: cn
};

Regards,

Pete
Hey there. Sorry for getting back late; I don't get notifications when someone posts in this thread for some reason.

Anyway, I went ahead and applied your fix, along with a fix for the Brazil region. It appears ITAD changed things on their side for what region codes they use. The userscript should automatically update, if not, you can always remove it, and re-install from here: https://github.com/kevinfiol/enhanced-gog

In addition, I made a few minor improvements to help recover from an error like this on the user-side (region select is now always visible).

Regards!
Post edited July 06, 2020 by kebg
avatar
petey212: Hey,

Not sure if itad changed things on you or what but australia is broken in your code. I fixed it by changing the following lines:

@1445:

var au2 = {
AU2: {
name: "Australia",
region_code: "au2",
currency: {
code: "AUD",
sign: "$",
delimiter: ".",
left: true,
html: "$"
}
}
};


@1497:

var region_map = {
eu1: eu1,
eu2: eu2,
uk: uk,
us: us,
ca: ca,
br: br,
au2: au2,
ru: ru,
tr: tr,
cn: cn
};

Regards,

Pete
avatar
kebg: Hey there. Sorry for getting back late; I don't get notifications when someone posts in this thread for some reason.

Anyway, I went ahead and applied your fix, along with a fix for the Brazil region. It appears ITAD changed things on their side for what region codes they use. The userscript should automatically update, if not, you can always remove it, and re-install from here: https://github.com/kevinfiol/enhanced-gog

In addition, I made a few minor improvements to help recover from an error like this on the user-side (region select is now always visible).

Regards!
Nicely done :) updated like a charm - I also didn't see your reply till now!
I just tried this with Tampermonkey in SRWare Iron (Chrome) browser. It works as intended. Great work, kebg!
they changed the game pages handle languages, so it /<lang>/game now
e.g. https://www.gog.com/en/game

I did a change on mine to be /*/game
e.g. https://www.gog.com/*/game
Post edited December 26, 2021 by cutterjohn
Well it appears that some game pages have URLs in the form of /<lang>/game, e.g. /en/game

Others still have just /game with no language specifier

I'm not sure how extensive this is as I just noticed the above today.
avatar
cutterjohn: Well it appears that some game pages have URLs in the form of /<lang>/game, e.g. /en/game

Others still have just /game with no language specifier

I'm not sure how extensive this is as I just noticed the above today.
In case someone can't make the script work because of that, what I would suggest and also what I would do, as I'm hardly a programmer, is to install the script as two different ones, one checking for /<lang>/game and another one checking for /game.
Post edited December 26, 2021 by _Auster_
avatar
cutterjohn: they changed the game pages handle languages, so it /<lang>/game now
One game I came across like that still loaded the web page if you removed the /en language portion.

So no idea at this stage, whether GOG are making a change or just have a few specific game pages they use the language portion in the URL for.
Hey everyone,

I've updated the extension to version 1.3.1 to work for these URL patterns:

*.gog.com/game/*
*.gog.com/*/game/*

This should take care of URLs that now have the language in the URLs. If your userscript doesn't automatically update, follow these steps:

If you're using Violentmonkey, you can navigate to your Userscript dashboard and click "Check for Updates" on the enhanced-gog userscript for it to automatically update. Otherwise, you can always re-install the userscript manually at https://github.com/kevinfiol/enhanced-gog

Thank you to everyone here to commented on these new breaking changes! In the future, please don't hesitate to open up an issue at https://github.com/kevinfiol/enhanced-gog/issues since I don't get notifications here on the GOG forum.
Post edited December 27, 2021 by kebg
hey, i love this one c:
avatar
kebg: OP snip
Hi! It seems the script is having issues loading the prices for some regions, loading the price in USD as if it was the regional price instead. And if I go to the ITAD page linked by the script, it shows the correct prices.

Example of such behavior:
[set to show in USD] https://cdn.discordapp.com/attachments/636030269823909921/992855444873814046/unknown.png
[set to show in BRL] https://cdn.discordapp.com/attachments/636030269823909921/992855445058359336/unknown.png
[page on ITAD] https://cdn.discordapp.com/attachments/636030269823909921/992855665984942100/unknown.png
Script is showing that all time low for LEGO Batman premium was 6,79 Euro from 11/26/2021 which is not true. All time low was during the insomnia sale here on GOG which was part of the summer sale and it was 4,99 Euro.

But it seems the reason for this is that isthereanydeal missed this discount as well - so script is working as intended.
Post edited July 20, 2022 by MarkoH01
avatar
kebg: OP snip
avatar
_Auster_: Hi! It seems the script is having issues loading the prices for some regions, loading the price in USD as if it was the regional price instead. And if I go to the ITAD page linked by the script, it shows the correct prices.

Example of such behavior:
[set to show in USD] https://cdn.discordapp.com/attachments/636030269823909921/992855444873814046/unknown.png
[set to show in BRL] https://cdn.discordapp.com/attachments/636030269823909921/992855445058359336/unknown.png
[page on ITAD] https://cdn.discordapp.com/attachments/636030269823909921/992855665984942100/unknown.png
Thanks, just saw this. BR prices and AU prices are tricky. Can you file an issue on the Github repository if possible? Thank you.
avatar
kebg: Thanks, just saw this. BR prices and AU prices are tricky. Can you file an issue on the Github repository if possible? Thank you.
Ahead of you =D
https://github.com/kevinfiol/enhanced-gog/issues/5
(and I lost access to that account, so I will probably not be able to see any future replies through it, if needed)
Post edited October 28, 2022 by _Auster_
While I am a coder, I am not good with JavaScript, and just use a small number of scripts here, created by other folk.

Currently the one I use to show IN LIBRARY on GOG pages is not showing up as LIME colored label anymore. I tried to work out why, but no luck so far. It seems GOG have changed the name of the element or something.

Being LIME colored or any other color other than the current default color, which is identical to the background color, is very helpful when quickly scrolling the likes of a sales page etc.

Of course, GOG could have a different color assigned for such, like the CREAM color used for WISHLISTED, but for some odd reason they haven't. Would save us having to bother with a script if they did. Little things like that make a huge difference, when it comes to making it visually easier on your eyes and mind.
avatar
kebg: Thanks, just saw this. BR prices and AU prices are tricky. Can you file an issue on the Github repository if possible? Thank you.
I think I didn't make it clear:
Auster-South-Anemoi on GitHub is me. The issue was resolved back in July. I simply double-posted the issue here at the time as a precaution, since I didn't know where you were the most active.