20 lines
639 B
Plaintext
20 lines
639 B
Plaintext
f="/opt/wevads-arsenal/public/ethica-app-v3.html"
|
|
c=open(f).read()
|
|
|
|
# Add Send Engine nav before Consents
|
|
old='<div class="nav-item" onclick="go(\'consent\')">'
|
|
new_nav='<div class="nav-item" onclick="go(\'send\')">⚡ <span>Send Engine</span><span class="badge badge-new">NEW</span></div>\n' + old
|
|
if "go('send')" not in c:
|
|
c = c.replace(old, new_nav)
|
|
print("NAV_ADDED")
|
|
else:
|
|
print("NAV_EXISTS")
|
|
|
|
# Add title mapping
|
|
if "Send Engine" not in c:
|
|
c = c.replace("exports:'\\u2193 Exports'", "exports:'\\u2193 Exports',send:'\\u26a1 Send Engine'")
|
|
print("TITLE_ADDED")
|
|
|
|
open(f,"w").write(c)
|
|
print(f"SIZE:{len(c)}B")
|