#!/usr/bin/env python3 """ Verify that the data mode toggle button is removed from the explorer """ import requests import re def main(): print("šŸ” Verifying Data Mode Toggle is Removed") print("=" * 60) # Get the explorer page print("\n1. Checking explorer page...") try: response = requests.get("https://aitbc.bubuit.net/explorer/") if response.status_code == 200: print("āœ… Explorer page loaded") else: print(f"āŒ Failed to load page: {response.status_code}") return except Exception as e: print(f"āŒ Error: {e}") return # Check for data mode toggle elements print("\n2. Checking for data mode toggle...") html_content = response.text # Check for toggle button if 'dataModeBtn' in html_content: print("āŒ Data mode toggle button still present!") return else: print("āœ… Data mode toggle button removed") # Check for mode-button class if 'mode-button' in html_content: print("āŒ Mode button class still found!") return else: print("āœ… Mode button class removed") # Check for data-mode-toggle if 'data-mode-toggle' in html_content: print("āŒ Data mode toggle component still present!") return else: print("āœ… Data mode toggle component removed") # Check JS file print("\n3. Checking JavaScript file...") try: js_response = requests.get("https://aitbc.bubuit.net/explorer/assets/index-7nlLaz1v.js") if js_response.status_code == 200: js_content = js_response.text if 'initDataModeToggle' in js_content: print("āŒ Data mode toggle initialization still in JS!") return else: print("āœ… Data mode toggle initialization removed") if 'dataMode:"mock"' in js_content: print("āŒ Mock data mode still configured!") return elif 'dataMode:"live"' in js_content: print("āœ… Live data mode confirmed") else: print(f"āŒ Failed to load JS: {js_response.status_code}") except Exception as e: print(f"āŒ Error checking JS: {e}") print("\n" + "=" * 60) print("āœ… Data mode toggle successfully removed!") print("\nšŸŽ‰ The explorer now:") print(" • Uses live data only") print(" • Has no mock/live toggle button") print(" • Shows real blockchain data") print(" • Is cleaner and more professional") if __name__ == "__main__": main()