Snapshot: full project state
This commit is contained in:
18
remove_dup_leaderboard.py
Normal file
18
remove_dup_leaderboard.py
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Remove duplicate Leaderboard button (wallet row) from SatsSpin bundle."""
|
||||
import io
|
||||
|
||||
B = "/opt/casino/dist/assets/index-CzzrlZy-.js"
|
||||
bundle = io.open(B, encoding="utf-8").read()
|
||||
|
||||
old = ('s.jsxs("button",{onClick:()=>fe(!0),className:"flex items-center gap-1.5 px-3 py-2 '
|
||||
'rounded-xl bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 border '
|
||||
'border-amber-500/30 text-xs font-bold transition-all cursor-pointer",'
|
||||
'children:[s.jsx(xi,{className:"w-3.5 h-3.5"}),s.jsx("span",{className:"hidden '
|
||||
'sm:inline",children:"Leaderboard"})]}),')
|
||||
|
||||
n = bundle.count(old)
|
||||
assert n == 1, f"expected 1 match, found {n}"
|
||||
bundle = bundle.replace(old, "", 1)
|
||||
io.open(B, "w", encoding="utf-8").write(bundle)
|
||||
print("DUPLICATE LEADERBOARD BUTTON REMOVED")
|
||||
Reference in New Issue
Block a user