此主題已被鎖定
The Matt Reptar 2013 年 3 月 16 日 上午 11:06
open links WITH steam
Let's say I click a profile link in Firefox or Chrome, it opens a new tab in that browser.

Is there anyway to instead open that link with the Steam client?

Also, I did figure out that you can use the Steam browser protocol commands to do it but they only work if you use the long Steam ID number and not with the Steam ID name. Anyway to make it work with the name?

copy and paste into address bar on Firefox or Chrome or whatever browser you use
example: steam://url/SteamIDPage/76561197999984396 - works
steam://url/SteamIDPage/mattreptar - doesn't work
引用自 veteran29:
If someone is interested I've created a browser extension to open Steam links in the desktop client. It adds the "Open in Steam" button that's active only on Steam web pages.

Source: https://github.com/veteran29/steam-url-open-extension

Chrome: https://chrome.google.com/webstore/detail/steam-url-opener/oiboilmeofgpoiopgjdllegafaaeblon
Firefox: https://addons.mozilla.org/pl/firefox/addon/steam-url-opener/
< >
目前顯示第 16-30 則留言,共 77
PowerDuDe_DK 2018 年 8 月 13 日 上午 9:25 
引用自 Parasprite
引用自 PowerDuDe_DK
Here's a working trick, which is not too bad.

1. First copy whole url from your browser (Chrome, Firefox, w.e.)
2. Press WinKey+R to open the Run window.
3. Type "steam://openurl/" and insert URL with Ctrl+V
4. Press Enter, and your link should open in your Steam client =D

The string to open this exact page in steam is:

steam://openurl/https://steamcommunity.com/discussions/forum/1/828933455738089665/

Or just put steam://openurl/https://steamcommunity.com/discussions/forum/1/828933455738089665/ into your browser and skip the Run window.

Even better! Why didnt I think of just using the browser xD
DamonBad 2018 年 11 月 15 日 下午 12:24 
引用自 PowerDuDe_DK
Here's a working trick, which is not too bad.

1. First copy whole url from your browser (Chrome, Firefox, w.e.)
2. Press WinKey+R to open the Run window.
3. Type "steam://openurl/" and insert URL with Ctrl+V
4. Press Enter, and your link should open in your Steam client =D

The string to open this exact page in steam is:

steam://openurl/https://steamcommunity.com/discussions/forum/1/828933455738089665/
you dont need the 2 step just tap the link in the browser
PowerDuDe_DK 2018 年 11 月 15 日 下午 1:13 
引用自 DamonBad
引用自 PowerDuDe_DK
Here's a working trick, which is not too bad.

1. First copy whole url from your browser (Chrome, Firefox, w.e.)
2. Press WinKey+R to open the Run window.
3. Type "steam://openurl/" and insert URL with Ctrl+V
4. Press Enter, and your link should open in your Steam client =D

The string to open this exact page in steam is:

steam://openurl/https://steamcommunity.com/discussions/forum/1/828933455738089665/
you dont need the 2 step just tap the link in the browser

Parasprite already stated that. but thanks
Urfisch 2018 年 11 月 20 日 上午 3:13 
Same problem here, links are always opened in my standardbrowser instead staying in steam. Thats very annoying when you want to comment or rate steam-articles. Any solution?
Bad 💀 Motha 2018 年 11 月 20 日 上午 5:36 
引用自 Freek
Same problem here, links are always opened in my standardbrowser instead staying in steam. Thats very annoying when you want to comment or rate steam-articles. Any solution?

Just have your default browser logged into Steam, why is this ever a problem for folks?
That's how you should be doing things.
PowerDuDe_DK 2018 年 11 月 20 日 上午 9:40 


引用自 Freek
Same problem here, links are always opened in my standardbrowser instead staying in steam. Thats very annoying when you want to comment or rate steam-articles. Any solution?

You can install the SteamDB chrome extension. It's nice for many thinks, but what's REALLY nice is that it add an "Open in Steam client" button on every storepage.
tnkforce 2019 年 1 月 18 日 下午 8:18 
simple, go to steam://nav/console in your web browser and it'll open the steam client to the steam console, then just type open <url>. type open https://steamcommunity.com/discussions/forum/1/828933455738089665/ in the console to open this convo in the steam client

from the console you can also just type a normal steam profile url like open http://steamcommunity.com/id/tnkforce

to create a bookmark of the steam console link, you'll have to bookmark any page or just a blank and edit the properties of the bookmark to point there
最後修改者:tnkforce; 2019 年 1 月 18 日 下午 8:42
PowerDuDe_DK 2019 年 1 月 21 日 上午 11:33 
引用自 tnkforce
simple, go to steam://nav/console in your web browser and it'll open the steam client to the steam console, then just type open <url>. type open https://steamcommunity.com/discussions/forum/1/828933455738089665/ in the console to open this convo in the steam client

from the console you can also just type a normal steam profile url like open http://steamcommunity.com/id/tnkforce

to create a bookmark of the steam console link, you'll have to bookmark any page or just a blank and edit the properties of the bookmark to point there


Much easier to just use steam:/openurl/ + full url incl "http://"

just type this into your default browser:

steam:/openurl/https://steamcommunity.com/discussions/forum/1/828933455738089665/

Boom.. and it works... no bookmark needed.

You COULD make a bookmarklet if you really wanted to (bookmark with javascript that can open the provided URL as steam:/openurl/ + URL)
最後修改者:PowerDuDe_DK; 2019 年 1 月 21 日 上午 11:35
tnkforce 2019 年 1 月 22 日 上午 3:02 
the console thing was for ease. here's a js solution though.
edit the properties of a bookmark to point here:

javascript:window.location='steam://openurl/'+window.location.protocol+'//'+window.location.hostname+window.location.pathname;

this will open the current page in the steam client

ps: steam://* has 2 forward slashes otherwise it'll just take you to the steam page your client starts up with. this is in the documentation.
最後修改者:tnkforce; 2019 年 1 月 22 日 上午 9:17
PowerDuDe_DK 2019 年 1 月 24 日 下午 12:28 
引用自 tnkforce
the console thing was for ease. here's a js solution though.
edit the properties of a bookmark to point here:

javascript:window.location='steam://openurl/'+window.location.protocol+'//'+window.location.hostname+window.location.pathname;

this will open the current page in the steam client

ps: steam://* has 2 forward slashes otherwise it'll just take you to the steam page your client starts up with. this is in the documentation.

Much better. This is by far the most convinient solution so far for people with this "issue" (I say it like that because some would argue that it's like that for safety. but my friends computer opens all steam links in Steam... like it SHOULD be.. so no. it's not a safety mechanism).
tnkforce 2019 年 1 月 24 日 下午 12:42 
i'll take that as a thanks. it's a pleasure. i prefer the console thing though. i do a lot of work in the command line in real life and you can control the entire steam from the console, nearly like nix i suppose. i'm a terminal addict. whatever suits you more though. steam requests over 443 and i don't see how using base things like the protocol, hostname, or pathname can be dangerous if it's from a steam page provided you make sure it's a steam page. it directs(not redirects) a steam page directly to the steam client..

the ts&cs btw. don't quote me on that, i'm not a "hacker". even though this doesn't redirect the address and javascript is a client side language, it's just a request and might as well be you typing it in the address bar, use at your own risk.
最後修改者:tnkforce; 2019 年 1 月 24 日 下午 1:31
PowerDuDe_DK 2019 年 1 月 24 日 下午 1:41 
引用自 tnkforce
i'll take that as a thanks. it's a pleasure. i prefer the console thing though. i do a lot of work in the command line in real life and you can control the entire steam from the console, nearly like nix i suppose. i'm a terminal addict. whatever suits you more though. steam requests over 443 and i don't see how using base things like the protocol, hostname, or pathname can be dangerous if it's from a steam page provided you make sure it's a steam page. it directs(not redirects) a steam page directly to the steam client..

the ts&cs btw. don't quote me on that, i'm not a "hacker". even though this doesn't redirect the address and javascript is a client side language, it's just a request and might as well be you typing it in the address bar, use at your own risk.

You're welcome. I can see why it makes now difference for you when you use console so often. But I tend to like solutions that fit more for the average pc user. Something that doesn't require much knowledge to execute.

For me, the javascript bookmark is fantastic, because it's really convinient and easy to understand.

EDIT:

And oh. I read your js code, and it seems fine. I even tested it in my chrome based browser, and works like a charm... so thumbs up!
最後修改者:PowerDuDe_DK; 2019 年 1 月 24 日 下午 1:42
Rob 2019 年 4 月 25 日 上午 7:35 
引用自 PowerDuDe_DK
Here's a working trick, which is not too bad.

1. First copy whole url from your browser (Chrome, Firefox, w.e.)
2. Press WinKey+R to open the Run window.
3. Type "steam://openurl/" and insert URL with Ctrl+V
4. Press Enter, and your link should open in your Steam client =D

The string to open this exact page in steam is:

steam://openurl/https://steamcommunity.com/discussions/forum/1/828933455738089665/


wow, incredible, this works perfect! no add-on, no extension needed, thx a lot!
PowerDuDe_DK 2019 年 4 月 25 日 上午 9:36 
引用自 Rob
引用自 PowerDuDe_DK
Here's a working trick, which is not too bad.

1. First copy whole url from your browser (Chrome, Firefox, w.e.)
2. Press WinKey+R to open the Run window.
3. Type "steam://openurl/" and insert URL with Ctrl+V
4. Press Enter, and your link should open in your Steam client =D

The string to open this exact page in steam is:

steam://openurl/https://steamcommunity.com/discussions/forum/1/828933455738089665/


wow, incredible, this works perfect! no add-on, no extension needed, thx a lot!


My pleasure :)

There's an even easier way if you always have your browser open and bookmark bar visible:

1. Create new bookmark
2. Set the name to Open URL in Steam.
3. Set address to javascript:window.location='steam://openurl/'+window.location.protocol+'//'+window.location.hostname+window.location.pathname;

Voila! Now you can just click this bookmark, and it will open the active page in steam (if compatible with steam).

// Thanks to tnkforce for the trick!
最後修改者:PowerDuDe_DK; 2019 年 4 月 25 日 上午 9:36
tnkforce 2019 年 4 月 25 日 下午 12:38 
no probs. it might not work for pages that aren't from a games store page. it probably will, but if it doesn't just use;
javascript:window.location='steam://openurl/'+window.location.href
最後修改者:tnkforce; 2019 年 4 月 25 日 下午 12:41
< >
目前顯示第 16-30 則留言,共 77
每頁顯示: 1530 50

張貼日期: 2013 年 3 月 16 日 上午 11:06
回覆: 77