Fix Web

By Kim A. Brandt Last update May 7, 2008 — Installed 1,459 times.


Script Summary:

Script homepage

If you like JavaScript and are not worried about its use you won't need this script.

An alternative to this script

I started to use the `capability.policy.' preference branch to restrict the use of JavaScript. It allows to tell the browser on which websites it is allowed to enable JavaScript. It's a way of whitelisting good sites. You can also blacklist bad sites instead if that is what you want.

To whitelist sites do as follows:

  • close your browser
  • locate your user.js file
  • add these lines to the file:
    user_pref("capability.policy.default.javascript.enabled", "noAccess");
    user_pref("capability.policy.jsok.javascript.enabled", "allAccess");
    user_pref("capability.policy.jsok.sites", "http://www.good-site.org http://www.another-good-site.org");
    user_pref("capability.policy.policynames", "jsok");

After restarting the browser, JavaScript should only work on the sites specified. By the way, you can also use the NoScript addon, which does a lot more then just that.

Main Features

SWFObject

SWFObject is a small Javascript file used for embedding Adobe Flash content.

Fixweb attempts to show embedded content on untrusted sites where JavaScript is disabled. SWFObject is a small framework for doing so if JavaScript is enabled. It's one of many(?) non-standards but widely used.

Flash Player Detection Kit

The Flash® Player Detection Kit helps developers implement robust player detection for a variety of deployment environments by providing a set of templates and techniques to successfully detect the version of Flash Player installed on a user’s computer...

After I had so much fun with the SWFObject I played around with the Flash Player Detection Kit.

Unobtrusive Flash Objects (UFO)

UFO is a DOM script that detects the Flash plug-in and embeds Flash objects (files with the .swf extension).

UFO does the same thing as the others but different. The focus is also another.

onClick to Link

This script also attempts to find urls in onclick attributes of anchors, buttons and input[type='button'] and transforms them into anchors (links) with an normal href attribute.