Solve the problem that MetaMask UI froze when switching to deprecated networks.
Reproduce the problem:
- Switch the MetaMask network to Rinkeby or another deprecated network.
Problem: - The UI layer freezes and cannot close prompts or use MetaMask.
Solution steps: - Open the MetaMask developer tools and find the element with ID “popover-content”.
- Delete that element.
- At this point, the stuck UI layer disappears, and you can normally close other prompts and use MetaMask.
- The MetaMask network successfully switches back to the Ethereum main network.