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
JaqFrost: Has anyone seen Barefoot_Monkey around lately? The last time he posted in this thread was March 10.
Yes. I saw him here and there last week. I suppose he's occupied with other things and will get back to BE when he does.
avatar
mrkgnao: Yes. I saw him here and there last week. I suppose he's occupied with other things and will get back to BE when he does.
As long as he's all right, it's all good. =P I feel like there's been a lot of people who've dropped off because of illness.
I did not want to open a new thread for this and I think it fits in here.

Anyone knows how to make a script to change the links from the library. Because I was annoyed that the gog downloader links only let me download the complete bundle of goodies. But then I realised that if I just take the url of the browser downloads and replace the first part with "gogdownloader", I can sent them directly to the downloader. So a script to do that would be neat since it also would get rid of always going to the subpage for the downloader link.

Example to explain more clearly:

The url for the browser download looks like this:
https://www.gog.com/downlink/file/game_name/file_name

If I change it to
gogdownloader://game_name/file_name
the file gets sent to the gog downloader.

So any way to make this into a script that automatically can do that?
Just installed this fine script. I love the Quick Post area!
avatar
moonshineshadow: So any way to make this into a script that automatically can do that?
The script would be:
setInterval(function() {
var gameLinks = document.querySelectorAll('.game-link');
for(i=0;i<gameLinks.length;i++) {
var hrefParts = gameLinks[i].href.split('/downlink/file/');
if( hrefParts.length === 1 ) {
hrefParts = gameLinks[i].href.split('/downlink/');
}
if( hrefParts.length > 1 ) {
gameLinks[i].href = 'gogdownloader:\/\/' + hrefParts[1]
}
}
}, 1000)

You can run it in your browsers console. It's checking for URLs every second. Assuming what you have written is true. BUT! It is not. :) Downloader links for game files differ between website and downloader. For example Mount&Blade:

downloaderUrl: "gogdownloader://mount_blade/installer_win_en"
manualUrl: "/downlink/mount_blade/en1installer1"

It will work for extras though.
avatar
moonshineshadow: So any way to make this into a script that automatically can do that?
avatar
jnowotny: You can run it in your browsers console. It's checking for URLs every second. Assuming what you have written is true. BUT! It is not. :) Downloader links for game files differ between website and downloader. For example Mount&Blade:

downloaderUrl: "gogdownloader://mount_blade/installer_win_en"
manualUrl: "/downlink/mount_blade/en1installer1"

It will work for extras though.
Thanks!
Hmmm... interesting, I did not realise that the links for the game files differ, since I was downloading extras. I need to check that further :D
Post edited May 12, 2015 by moonshineshadow
I have to switch it off to respond to Friend requests. Doing so reveals how badly GOG has broken their site over the months. I had forgotten how many basic but useful things were due entirely to this script.
avatar
IAmSinistar: I have to switch it off to respond to Friend requests. Doing so reveals how badly GOG has broken their site over the months. I had forgotten how many basic but useful things were due entirely to this script.
My "friends" UI works fine with BE enabled (Firefox).
avatar
mrkgnao: My "friends" UI works fine with BE enabled (Firefox).
Mine does now too. I'm not sure why it wasn't before. I'm glad I can leave the script on now, there are too many enhancements that would otherwise be missed.
avatar
mrkgnao: My "friends" UI works fine with BE enabled (Firefox).
Same for me.


And I just realised that with the Grid and List View not being separate urls anymore, Barefoot_Monkey may not be able to restore those two buttons in the BE menu. :(
Post edited May 12, 2015 by HypersomniacLive
avatar
mrkgnao: My "friends" UI works fine with BE enabled (Firefox).
avatar
HypersomniacLive: Same for me.

And I just realised that with the Grid and List View not being separate urls anymore, Barefoot_Monkey may not be able to restore those two buttons in the BE menu. :(
He could.
Under the assumption that the choice is kept in a LocalStorage variable, he could manipulate the variable before calling the common URL.
avatar
mrkgnao: He could.
Under the assumption that the choice is kept in a LocalStorage variable, he could manipulate the variable before calling the common URL.
I'm not that savvy in these matters. I hope he can do it, as I really liked having two distinct buttons for each view that I could click on and go to the respective page. It was very handy as I used a different order mode for each one. Now I not only can't have this, but the game collection page also keeps reverting to Grid between browser sessions, and it's pretty annoying.

That is provided he's willing to update the script, looks a lot of work, and I'd totally understand if he drew the line.
avatar
HypersomniacLive: looks a lot of work, and I'd totally understand if he drew the line.
Yes it is and so would I.
avatar
HypersomniacLive: Now I not only can't have this, but the game collection page also keeps reverting to Grid between browser sessions, and it's pretty annoying.
We'll fix that. :) It's stored in local storage, will be stored on the server though.
avatar
jnowotny: We'll fix that. :) It's stored in local storage, will be stored on the server though.
We? Do you have a link to a blue text confirming that it will be fixed?