====== Remove Proxmox subscription badge ======
To remove the subcription badge that is displayed after logging in into Proxmox VE or Proxmox BS, you can either manually edit the ''proxmoxlib.js'' under ''/usr/share/javascript/proxmox-widget-toolkit'' or install our script.
===== Automatic way =====
The script(s) can be found under [[https://github.com/Zyzonix/attic/tree/main/proxmox-tweaks|github.com/Zyzonix/attic/tree/main/proxmox-tweaks]]. When using the install script, a crontab will be installed that runs daily. If the script detects a change of ''proxmoxlib.js'' it will edit the changed line that creates the subscription badge and restart the webproxy.
**Downloading the installer:**
wget https://raw.githubusercontent.com/Zyzonix/attic/main/proxmox-tweaks/install-proxmox-tweaks.sh
**Run the installation script:**
bash install-proxmox-tweaks.sh
From now the script will check every day if there was a change of ''proxmoxlib.js''.
**Remove the installation script:**
rm install-proxmox-tweaks.sh
===== Manual way =====
Create a backup of ''proxmoxlib.js'' under ''/usr/share/javascript/proxmox-widget-toolkit''.
cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.bak
Open the file and search for the line contaning this: ''if (res === null || res === undefined || !res || res.data.status.toLowerCase() !== ‚active‘) {''. Change the ''if''-statement to ''false'': ''if (false) {''.
Finally restart the proxy:
**ProxmoxVE:**
systemctl restart pveproxy.service
**ProxmoxBS:**
systemctl restart proxmox-backup-proxy.service