Advertisement
Will_Robinson

Steam "What's New" Fix 2024 for AHKv2

May 8th, 2024
1,255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 0.88 KB | Source Code | 0 0
  1. #Requires AutoHotkey 2.0+
  2. #SingleInstance Force
  3.  
  4. ;Change the following line to your Steam CSS directory...
  5. SetWorkingDir("C:\Program Files (x86)\Steam\steamui\css\")
  6.  
  7. Loop Files "Chunk*.css","F"
  8.   F:=A_LoopFileName
  9. If !F
  10.   MsgBox("Matching CSS file not found!`n`nQuitting...","CSS File Error",0x30),ExitApp()
  11. S:=StrLen(H:=FileRead(F)),D:=0
  12.  
  13. ; #####  "What's New" section  #####
  14. If RegExMatch(H,".*?17uEB[^\{]*\{bo.*?\}\.Lib.*")
  15.   H:=RegExReplace(H,"`aim)(.*?17uEB[^\{]*\{)bo.*?(\}\.Lib.*)","$1display:none !important;$2"),D:=1
  16.  
  17. ; #####  "Add Shelf" section  #####
  18. If RegExMatch(H,".*?3SkuN[^\{]*\{bo.*?\}.*")
  19.   H:=RegExReplace(H,"`aim)(.*?3SkuN[^\{]*\{)bo.*?(\}.*)","$1display:none !important;$2"),D:=1
  20.  
  21. If D
  22.   FileMove(F,SubStr(F,1,-3) "bup",1),FileAppend(H Format("{: " S-StrLen(H) "}"," "),F)
  23. MsgBox("All replacements have" (D?"":" already") " been made.","All done...")
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement