Hm, I used "redirecter" in ESGST all this time and no one corrected me so I didn't even notice. Thanks.
Comment has been collapsed.
Eh, I usually don't nit-pick, but I thought you'd like to correct it while the thread/script is still "fresh". ^^
Comment has been collapsed.
I don't know, is the use of include a bad thing? The script's supposed to run everywhere, so I didn't think match would be appropriate.
Comment has been collapsed.
Replaced it with match, I wasn't aware of the insecurities of include.
Comment has been collapsed.
Well, at least here it says "match" is safer.
It's not like the script is heavy, it won't affect the performance in the page. I personally would want to be redirected from anywhere. If you don't, just edit the "match" fields yourself to the pages that you want it to run on.
Comment has been collapsed.
I personally would want to be redirected from anywhere. If you don't, just edit the "match" fields yourself to the pages that you want it to run on.
I modified mine to only work on the places where I click on Steam URLs the most:
// @match *://*.steamgifts.com/*
// @match *://*.steamtrades.com/*
// @match *://*.steampowered.com/*
// @match *://*.steamcommunity.com/*
// @match *://*.reddit.com/*
// @match *://*.google.com/*
Comment has been collapsed.
Hmm, interesting, I never really thought of doing it that way, although I'm pretty sure the gain would not be noticeable at all. I'll change it later.
Comment has been collapsed.
I tried it once just to see if ESGST loaded fine, and it did (although I didn't test all features, so I can't confirm if it works 100%), but I didn't use it long enough to get a good feel on it. I added it to the list because usually Chrome users go for Tampermonkey, Firefox users go for Greasemonkey and Opera users go for Violentmonkey, so I think those are the 3 main ones, but there are a lot other userscript managers around.
Comment has been collapsed.
Btw for me on Firefox/GM the bar above the posts in the thread hasn't been working at all for many months. It used to have a button to mark all posts read and another to go to the first unread post, but neither has been functional in a few forevers.
Comment has been collapsed.
Because back then it was "I don't feel like supporting GreaseMonkey / Firefox users" (IIRC some realtime data sync between tabs did not work). Right now the OP lists GreaseMonkey as a supported userscript manager and you also just mentioned Firefox users as individuals permitted to breathe in the post I replied to.
Comment has been collapsed.
I mean if you're on a website that has endless scrolling, links to the Steam store that are added to the page later on are also modified.
Comment has been collapsed.
These are the ones I remember from the top of my head:
Comment has been collapsed.
It's what the script does. It adds "#app_ID" or "#sub_ID" to the end of all links to the Steam store, so that if the page is redirected, the hash remains in the URL and the script is able to detect that the game has been removed.
The way ESGST did it was by using a local storage, but that doesn't work in most cases (for example, when right clicking the link and opening it in a new tab), so this is the best way to do it.
Comment has been collapsed.
Yeah, I am very happy it supports also middle click. :) It's ok with the URL, I was afraid that people have to write the URLs like that. It's no problem when the script adds it. Good work.
BTW the script already have 3 Stars on Github. It seems to be quite popular even now. :)
Comment has been collapsed.
You could probably also make a head request when a new URL is added (or first mouseenter, ...) and change href if reply indicates missing game page. As your script runs at document-start I guess there is not much difference in speed.
Comment has been collapsed.
I'd rather not make any useless requests. If there are a lot of URLs in the page, that could extremely slow things down.
Comment has been collapsed.
Yeah, that's why I added first mouseenter. Or perhaps first click? But yeah doing it for every link wouldn't be that great :D
Also of course filter by valid href first.
Comment has been collapsed.
It cleans the URL in the Steam Store page if there was no redirection.
I notice that for some reason, it leaves a "#" symbol on the end of all unredirected links. It didn't seem to do that yesterday, but does today.
Comment has been collapsed.
Yeah, I don't think it's possible to remove that symbol. Usually Steam removes it when they redirect it.
Comment has been collapsed.
Like I said in previous comments, it doesn't need to, but it should, if the script is to be fully effective. And the script is not heavy nor malicious, so there's absolutely no problem in it matching all URLs, but if you don't like that, you can change it manually like another user did, I'm not going to limit it officially.
Comment has been collapsed.
Really useful script! It's nice to no longer need to do it manually :)
Comment has been collapsed.
Released a new version that has some improvements, if anyone still uses it.
Comment has been collapsed.
Does a hash get appended to the link? Like this: http://store.steampowered.com/app/91310#app_91310
Comment has been collapsed.
oh, just tried again and seems like it works now. should link to the steam hub page for the game right?
https://i.imgur.com/8TrjPps.png
Comment has been collapsed.
Well, if you configured it to redirect to SteamDB, it should be redirecting to SteamDB, not SteamCommunity.
Comment has been collapsed.
1,810 Comments - Last post 32 minutes ago by WaxWorm
545 Comments - Last post 1 hour ago by UltraMaster
41 Comments - Last post 1 hour ago by ViToos
69 Comments - Last post 2 hours ago by Hawkingmeister
1,520 Comments - Last post 3 hours ago by ayuinaba
451 Comments - Last post 3 hours ago by Rosefildo
7 Comments - Last post 19 hours ago by xXSAFOXx
15 Comments - Last post 5 minutes ago by LunarPriestess
44 Comments - Last post 6 minutes ago by Greativity
9,529 Comments - Last post 6 minutes ago by Vasharal
10,782 Comments - Last post 7 minutes ago by schmoan
111 Comments - Last post 30 minutes ago by s4k1s
86 Comments - Last post 45 minutes ago by coleypollockfilet
7,997 Comments - Last post 47 minutes ago by schmetti
Redirects removed games from the Steam store to SteamCommunity or SteamDB.
Install
Configuration
Go to https://steamcommunity.com/?ssr=wizard to run the settings wizard. This wizard allows you to change the redirect between SteamCommunity and SteamDB (default is SteamCommunity).
How does it work?
It appends the hash '#app_[steamId]' or '#sub_[steamId]' to all of the store links in the page. This way, when you open a link and the game has been removed from the store, you are redirected to the main store page, but the hash remains in the URL, allowing the script to detect that the game has been removed and redirect you to SteamCommunity or SteamDB.
If the game has not been removed, the hash is removed from the URL, for cosmetic purposes.
It also keeps observing the page, so that it can append the hash to any links added dynamically.
Examples
After installing the script, you can test it on the links below:
Source: https://rafaelgssa.gitlab.io/monkey-scripts/steam-store-redirector
Comment has been collapsed.