Skip to content

Instantly share code, notes, and snippets.

@amitxv
Last active March 29, 2024 16:54
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save amitxv/0c454ba09a2feb3dd38f29c333f68c04 to your computer and use it in GitHub Desktop.
Save amitxv/0c454ba09a2feb3dd38f29c333f68c04 to your computer and use it in GitHub Desktop.
Steam -no-browser after patch

Steam -no-browser after patch (Working June 2023)

  • Disregard the original steam shortcut and only use the batch scripts below to launch steam

  • There is a slight CPU utilization penalty which can be circumvented by suspending the problematic thread

steam-no-browser.bat:

@echo off
setlocal EnableDelayedExpansion

set "steam_path=C:\Program Files (x86)\Steam"

:: kill steam if is running
tasklist | findstr /i "steam.exe" && taskkill /f /im "steam.exe"

:: rename binary back to .exe as steam requires it to initialize
for %%a in ("cef.win7", "cef.win7x64") do (
    set "bin=!steam_path!\bin\cef\%%~a\steamwebhelper.exee"
    if exist "!bin!" (
        ren "!bin!" "steamwebhelper.exe"
    )
)

:: open steam
start "" "!steam_path!\steam.exe" +open steam://open/minigameslist -vgui

:: only continue if steamwebhelper is running in case steam is updating
:query_steamwebhelper
tasklist | findstr /i "steamwebhelper.exe" || goto :query_steamwebhelper

:: allow a few seconds for steam to initialize/login
timeout /t 5 /nobreak

:: rename binary and kill the process
for %%a in ("cef.win7", "cef.win7x64") do (
    set "bin=!steam_path!\bin\cef\%%~a\steamwebhelper.exe"
    if exist "!bin!" (
        ren "!bin!" "steamwebhelper.exee"
    )
)

taskkill /f /im "steamwebhelper.exe"

steam-normal.bat:

@echo off
setlocal EnableDelayedExpansion

set "steam_path=C:\Program Files (x86)\Steam"

:: kill steam if is running
tasklist | findstr /i "steam.exe" && taskkill /f /im "steam.exe"

:: rename binary back to .exe as steam requires it to initialize
for %%a in ("cef.win7", "cef.win7x64") do (
    set "bin=!steam_path!\bin\cef\%%~a\steamwebhelper.exee"
    if exist "!bin!" (
        ren "!bin!" "steamwebhelper.exe"
    )
)

:: open steam
start "" "!steam_path!\steam.exe"
@Aetopia
Copy link

Aetopia commented Oct 14, 2023

steam://rungameid/730

It has that in the command ^.

Opening CS 2, so just remove it to prevent it from opening.

@Bloodninja93
Copy link

@improvised-explosive-device try this new ver: https://cdn.discordapp.com/attachments/1069748073955348550/1159234052356849794/Steam_No_Browser.bat

Newbie here - do I use this version (minus the CS2 part), or the original version but increase the timeout?

Is it possible to update the OP to fix this, and to remove all the functions which no longer works?

@amitxv
Copy link
Author

amitxv commented Dec 27, 2023

I'm not aware of a method that works currently. Haven't looked either since I don't use steam.

@techgamers2
Copy link

yup me to, i switched to epic games from steam coz 200mb to 400 mb is too much for me plus cpu spike by steam webhelper no matter what tweak i use they revert back after few updates by steam
as most games i play r already available in epic so i m using epic on Rare launcher open-source ,light , fast takes 40mb and closes automatically with game

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment