I'm not sure what you mean by "I already tried this because I knew of that website". I literally wrote that code a few minutes ago so it couldn't have existed before my post.
Well, this question was first posed by AGB and later by Evan, and now you tell us you do have a pop-up blocker and switching it off solves the issue.........
Note also from the same report that the Dark Mode and Dark Reader extensions also inject web page changes and therefore might also have a detrimental effect on App Inventor, which is not a simple web page but a web-based program.
If you need to retain ghostery, you could dedicate a separate browser to APP Inventor, thus avoiding issues all around. If that were Chrome, you wouldn't need to worry about Google breaching your privacy because you would not be using it to browse.
The fix I submitted to the rest of the team for review should resolve the negative interaction with extension-based stylesheets, so hopefully this won't be an issue in future versions of App Inventor.