Skip to content

Instantly share code, notes, and snippets.

@God-damnit-all
Created September 29, 2023 03:20
Show Gist options
  • Select an option

  • Save God-damnit-all/8e8dd7f76b0a6ff021ae35916e1b69b8 to your computer and use it in GitHub Desktop.

Select an option

Save God-damnit-all/8e8dd7f76b0a6ff021ae35916e1b69b8 to your computer and use it in GitHub Desktop.

Revisions

  1. AMIT revised this gist Jun 26, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## 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

  2. AMIT revised this gist Jun 26, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@ for %%a in ("cef.win7", "cef.win7x64") do (
    )
    :: open steam
    start "" "!steam_path!\steam.exe" +open steam://open/minigameslist
    start "" "!steam_path!\steam.exe" +open steam://open/minigameslist -vgui
    :: only continue if steamwebhelper is running in case steam is updating
    :query_steamwebhelper
  3. AMIT revised this gist Feb 27, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    - 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 with process explorer
    - There is a slight CPU utilization penalty which can be circumvented by suspending the problematic thread

    - See [this comment](https://gist.github.com/amitxv/0c454ba09a2feb3dd38f29c333f68c04?permalink_comment_id=4460606#gistcomment-4460606)

  4. AMIT revised this gist Feb 27, 2023. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,9 @@
    ## Steam -no-browser after patch
    **Notes**:

    - disregard the original steam shortcut and only use this batch script(s) to launch steam
    - 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 with process explorer

    - See [this comment](https://gist.github.com/amitxv/0c454ba09a2feb3dd38f29c333f68c04?permalink_comment_id=4460606#gistcomment-4460606)

    **steam-no-browser.bat**:
  5. AMIT revised this gist Feb 7, 2023. 1 changed file with 23 additions and 7 deletions.
    30 changes: 23 additions & 7 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -9,45 +9,61 @@

    ```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
    if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    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
    start "" "!steam_path!\steam.exe" +open steam://open/minigameslist
    :: 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
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exe" "steamwebhelper.exee"
    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**:

    ```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
    if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    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"
    start "" "!steam_path!\steam.exe"
    ```
  6. AMIT revised this gist Feb 5, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    ## Steam -no-browser after patch
    Notes:
    **Notes**:

    - disregard the original steam shortcut and only use this batch script(s) to launch steam
    - There is a slight CPU utilization penalty which can be circumvented with process explorer
  7. AMIT revised this gist Feb 5, 2023. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,9 @@
    ## Steam -no-browser after patch
    Note: disregard the original steam shortcut and only use this batch script(s) to launch steam
    Notes:

    - disregard the original steam shortcut and only use this batch script(s) to launch steam
    - There is a slight CPU utilization penalty which can be circumvented with process explorer
    - See [this comment](https://gist.github.com/amitxv/0c454ba09a2feb3dd38f29c333f68c04?permalink_comment_id=4460606#gistcomment-4460606)

    **steam-no-browser.bat**:

  8. AMIT revised this gist Feb 3, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    ## Steam -no-browser after patch
    Note: disregard the original steam shortcut and only use this batch script(s) to launch steam

    **steam-no-browser.bat**:
  9. AMIT revised this gist Feb 3, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    )
    :: open steam
    start "" "%steam_path%\steam.exe" +open steam://open/minigameslist +open steam://friends/
    start "" "%steam_path%\steam.exe" +open steam://open/minigameslist
    :: only continue if steamwebhelper is running in case steam is updating
    :query_steamwebhelper
  10. AMIT revised this gist Feb 3, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ Note: disregard the original steam shortcut and only use this batch script(s) to
    ```bat
    @echo off
    set "steam_path=C:\Users\AMIT\Downloads\SteamSetup"
    set "steam_path=C:\Program Files (x86)\Steam"
    :: kill steam if is running
    tasklist | findstr /i "steam.exe" && taskkill /f /im "steam.exe"
    @@ -33,7 +33,7 @@ taskkill /f /im "steamwebhelper.exe"
    ```bat
    @echo off
    set "steam_path=C:\Users\AMIT\Downloads\SteamSetup"
    set "steam_path=C:\Program Files (x86)\Steam"
    :: kill steam if is running
    tasklist | findstr /i "steam.exe" && taskkill /f /im "steam.exe"
  11. AMIT revised this gist Feb 3, 2023. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -5,18 +5,18 @@ Note: disregard the original steam shortcut and only use this batch script(s) to
    ```bat
    @echo off
    set "steam_path=C:\Program Files (x86)\Steam"
    set "steam_path=C:\Users\AMIT\Downloads\SteamSetup"
    :: exit if steam is already running
    tasklist | findstr /i "steam.exe" && exit /b
    :: 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
    if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    )
    :: open steam
    start "" "%steam_path%\steam.exe" +open steam://open/minigameslist
    start "" "%steam_path%\steam.exe" +open steam://open/minigameslist +open steam://friends/
    :: only continue if steamwebhelper is running in case steam is updating
    :query_steamwebhelper
    @@ -33,10 +33,10 @@ taskkill /f /im "steamwebhelper.exe"
    ```bat
    @echo off
    set "steam_path=C:\Program Files (x86)\Steam"
    set "steam_path=C:\Users\AMIT\Downloads\SteamSetup"
    :: exit if steam is already running
    tasklist | findstr /i "steam.exe" && exit /b
    :: 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
    if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
  12. AMIT revised this gist Feb 3, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Note: disregard the original steam shortcut and only use this batch script to launch steam
    Note: disregard the original steam shortcut and only use this batch script(s) to launch steam

    **steam-no-browser.bat**:

  13. AMIT revised this gist Feb 3, 2023. 1 changed file with 21 additions and 16 deletions.
    37 changes: 21 additions & 16 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -6,38 +6,43 @@ Note: disregard the original steam shortcut and only use this batch script to la
    @echo off
    set "steam_path=C:\Program Files (x86)\Steam"
    set "args=+open steam://open/minigameslist"
    :: exit if steam is already running
    tasklist | findstr /i "steam.exe"
    if %errorlevel% == 0 (
    exit /b
    )
    if not exist "%steam_path%" (
    echo error: invalid steam path
    exit /b
    )
    tasklist | findstr /i "steam.exe" && exit /b
    :: rename binary back to .exe as steam requires it to initialize
    if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    )
    :: open steam
    start "" "%steam_path%\steam.exe" %args%
    start "" "%steam_path%\steam.exe" +open steam://open/minigameslist
    :: only continue if steamwebhelper is running in case steam is updating
    :query_steamwebhelper
    tasklist | findstr /i "steamwebhelper.exe"
    if not %errorlevel% == 0 (
    goto :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 task
    :: rename binary and kill the process
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exe" "steamwebhelper.exee"
    taskkill /f /im "steamwebhelper.exe"
    ```

    **steam-normal.bat**:
    ```bat
    @echo off
    set "steam_path=C:\Program Files (x86)\Steam"
    :: exit if steam is already running
    tasklist | findstr /i "steam.exe" && exit /b
    :: rename binary back to .exe as steam requires it to initialize
    if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    )
    :: open steam
    start "" "%steam_path%\steam.exe"
    ```
  14. AMIT revised this gist Feb 3, 2023. 1 changed file with 9 additions and 7 deletions.
    16 changes: 9 additions & 7 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -5,26 +5,27 @@ Note: disregard the original steam shortcut and only use this batch script to la
    ```bat
    @echo off
    set "steam_path=C:\Program Files (x86)\Steam"
    set "args=+open steam://open/minigameslist"
    :: exit if steam is already running
    tasklist | findstr /i "steam.exe"
    if %errorlevel% == 0 (
    exit /b
    )
    set "steam=C:\Program Files (x86)\Steam"
    if not exist "%steam%" (
    if not exist "%steam_path%" (
    echo error: invalid steam path
    exit /b
    )
    :: rename binary back to .exe as steam requires it to initialize
    if exist "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    if exist "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    )
    :: open steam
    start "" "%steam%\steam.exe"
    start "" "%steam_path%\steam.exe" %args%
    :: only continue if steamwebhelper is running in case steam is updating
    :query_steamwebhelper
    @@ -36,6 +37,7 @@ if not %errorlevel% == 0 (
    :: allow a few seconds for steam to initialize/login
    timeout /t 5 /nobreak
    :: rename binary and kill the task
    ren "%steam%\bin\cef\cef.win7x64\steamwebhelper.exe" "steamwebhelper.exee"
    ren "%steam_path%\bin\cef\cef.win7x64\steamwebhelper.exe" "steamwebhelper.exee"
    taskkill /f /im "steamwebhelper.exe"
    ```
  15. AMIT revised this gist Feb 3, 2023. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -13,13 +13,18 @@ if %errorlevel% == 0 (
    set "steam=C:\Program Files (x86)\Steam"
    if not exist "%steam%" (
    echo error: invalid steam path
    exit /b
    )
    :: rename binary back to .exe as steam requires it to initialize
    if exist "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    )
    :: open steam
    start "" "%steam%\steam.exe" +open steam://open/minigameslist
    start "" "%steam%\steam.exe"
    :: only continue if steamwebhelper is running in case steam is updating
    :query_steamwebhelper
  16. AMIT revised this gist Feb 3, 2023. 2 changed files with 36 additions and 31 deletions.
    37 changes: 36 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,36 @@
    Note: disregard the original steam shortcut and only use this batch script to launch steam
    Note: disregard the original steam shortcut and only use this batch script to launch steam

    **steam-no-browser.bat**:

    ```bat
    @echo off
    :: exit if steam is already running
    tasklist | findstr /i "steam.exe"
    if %errorlevel% == 0 (
    exit /b
    )
    set "steam=C:\Program Files (x86)\Steam"
    :: rename binary back to .exe as steam requires it to initialize
    if exist "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    )
    :: open steam
    start "" "%steam%\steam.exe" +open steam://open/minigameslist
    :: only continue if steamwebhelper is running in case steam is updating
    :query_steamwebhelper
    tasklist | findstr /i "steamwebhelper.exe"
    if not %errorlevel% == 0 (
    goto :query_steamwebhelper
    )
    :: allow a few seconds for steam to initialize/login
    timeout /t 5 /nobreak
    :: rename binary and kill the task
    ren "%steam%\bin\cef\cef.win7x64\steamwebhelper.exe" "steamwebhelper.exee"
    taskkill /f /im "steamwebhelper.exe"
    ```
    30 changes: 0 additions & 30 deletions steam-no-browser.bat
    Original file line number Diff line number Diff line change
    @@ -1,30 +0,0 @@
    @echo off

    :: exit if steam is already running
    tasklist | findstr /i "steam.exe"
    if %errorlevel% == 0 (
    exit /b
    )

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

    :: rename binary back to .exe as steam requires it to initialize
    if exist "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    )

    :: open steam
    start "" "%steam%\steam.exe" +open steam://open/minigameslist

    :: only continue if steamwebhelper is running in case steam is updating
    :query_steamwebhelper
    tasklist | findstr /i "steamwebhelper.exe"
    if not %errorlevel% == 0 (
    goto :query_steamwebhelper
    )

    :: allow a few seconds for steam to initialize/login
    timeout /t 5 /nobreak
    :: rename binary and kill the task
    ren "%steam%\bin\cef\cef.win7x64\steamwebhelper.exe" "steamwebhelper.exee"
    taskkill /f /im "steamwebhelper.exe"
  17. AMIT created this gist Feb 3, 2023.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Note: disregard the original steam shortcut and only use this batch script to launch steam
    30 changes: 30 additions & 0 deletions steam-no-browser.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    @echo off

    :: exit if steam is already running
    tasklist | findstr /i "steam.exe"
    if %errorlevel% == 0 (
    exit /b
    )

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

    :: rename binary back to .exe as steam requires it to initialize
    if exist "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" (
    ren "%steam%\bin\cef\cef.win7x64\steamwebhelper.exee" "steamwebhelper.exe"
    )

    :: open steam
    start "" "%steam%\steam.exe" +open steam://open/minigameslist

    :: only continue if steamwebhelper is running in case steam is updating
    :query_steamwebhelper
    tasklist | findstr /i "steamwebhelper.exe"
    if not %errorlevel% == 0 (
    goto :query_steamwebhelper
    )

    :: allow a few seconds for steam to initialize/login
    timeout /t 5 /nobreak
    :: rename binary and kill the task
    ren "%steam%\bin\cef\cef.win7x64\steamwebhelper.exe" "steamwebhelper.exee"
    taskkill /f /im "steamwebhelper.exe"