Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript: Feature to open links with native browser #171

Open
Ran-Mewo opened this issue Oct 27, 2023 · 2 comments
Open

JavaScript: Feature to open links with native browser #171

Ran-Mewo opened this issue Oct 27, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Ran-Mewo
Copy link

Could it be possible to add in a custom JavaScript function (I am not sure if there's already a way to do this regularly) that, instead of opening links within Steam, it'll open links directly within the native browser?

I am creating a custom script that adds niche buttons to find specific mods for the game on NexusMods, GameBanana, or any website, except that it opens those links with the built-in browser of Steam. The CEF on Steam isn't quite well equipped like most browsers are, and it especially doesn't like when a webpage requests a custom protocol or uses newer JavaScript and HTML5 features.

@PhantomGamers
Copy link
Owner

If you go to http://localhost:8080/json/version in your browser you will see that Steam uses Chrome 85 (and I mean, CEF even so it's probably more restricted than the normal Chrome 85 browser).

I do hope they update it at some point.

Anyway doing such a thing as you're requesting would definitely be possible from SFP's perspective, though I'm not amazing with javascript myself so yeah I'm not sure if there is a built-in way to do so without any changes from SFP's side.

@PhantomGamers PhantomGamers added enhancement New feature or request help wanted Extra attention is needed labels Oct 27, 2023
@Bread-Ch4n
Copy link

There is no way in JS to open another app. Unless that app has a handle like Nexus for the vortex manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants