With the advent and uptake of Firefox, Opera and other “alternative” browsers [to IE], the Internet has become a much healthier place to roam around than it was a few years ago when you couldn’t move for popups, browsers were flying around users’ screens and browser exploits were everywhere.
Its not that there isn’t less dodgy code flying around, its that our browsers are coping with all the junk much better plus they’re getting regular updates unlike IE did/does.
An example of such a page is the ScanAlert website which is linked to from all around the web declaring sites “Hacker Safe”. When you click the image, you’re linked to their details page about the site you’re on (have a look at their review of Experts-Exchange — **WARNING** Annoying JS on page) and promptly attempts to resize your browser to a miniscule size.
Extremely annoying if they make the browser bigger than the screen.
Combating Annoying JS in Firefox
The first thing is to get yourself into the options screen of Firefox, accessible from the Tools >> Options… menu.
If you’re using the latest version of Firefox (188.8.131.52) you want to head for the tab labeled Content. If you’re using an older version you might be looking for a tab named Web Features.
And here it is as it is after you do a default install of Firefox. Its already disabled status-bar-editing but still allows JS to resize and move windows, popping windows to the front and adding extra behavior to the right click context menu.
At the end of it, you should have something that looks a lot like this. If you need the feature reenabled, just come back to the screen and check the features you need.
Doing this In Opera
You’ll notice that Opera has a few extra options (some especially useful for debugging your own scripts) but the options you want to nuke are all named near enough the same thing.
Doing This In Other Browsers
As far as I can see there is no internal language choices for limiting JS on Internet Explorer 6. There could well be one on IE7 but I currently don’t have it installed to tell you or get screenshots.
If you know how to do this in IE or any other browsers, wang me a comment and I’ll get in contact with you about appending it to this article.
These boxes should probably be unchecked for later builds of Firefox and Opera (as default behavior) until someone can point out how any of these “features” are actually useful.