The script works by patching the webpack chunks instead of manipulating the DOM.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# adapted from https://github.com/bulbipop/ytwlstats/blob/master/cmd.py | |
from bs4 import BeautifulSoup as bs | |
from datetime import datetime, timedelta | |
from argparse import ArgumentParser | |
from filecmp import cmp as compare | |
import requests | |
import browser_cookie3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Define desired variables | |
exe_directory = "C:\Program Files (x86)\Steam\steamapps\common\Worms Armageddon" | |
exe_filename = "WA.exe" | |
res_x = 800 | |
res_y = 600 | |
'======== Script start ======== | |
'Quit with error return (1) if not a .WAgame file | |
replay_file = WScript.Arguments(0) |