View Single Post
Posts: 13 | Thanked: 20 times | Joined on Aug 2008 @ Switzerland
#1
Hey, I think I found something interesting for speeding up Microb.

As we don't have (yet) a NoScript extension to block JavaScript, there is an other way. This page :

http://www.mozilla.org/projects/secu...figPolicy.html

describe how to use configurable security policies to selectively define which JavaScript functions a specific site (or list of site) can call.

There is one exemple that disable JavaScript on ALL sites but some we can define. For example I added this to my ~/.mozilla/microb/prefs.js :

Code:
user_pref("capability.policy.policynames", "jsok");
user_pref("capability.policy.default.javascript.enabled", "noAccess");
user_pref("capability.policy.jsok.sites", "https://www.google.com");
user_pref("capability.policy.jsok.javascript.enabled", "allAccess");
and it worked ! When I visit, for example, Google Reader (https://www.google.com/reader/i), JavaScript is enabled, and on all other sites, it is disabled, which makes MicroB flying Not as user friendly as an extension, but with this trick I'm much less frustrated by the speed of the browser, without sacrifying the usability of some sites that need JS to work.

Sorry if it has already been posted on the forum (yes I did a search !).

Last edited by lbalogh; 2008-10-19 at 09:40.
 

The Following 14 Users Say Thank You to lbalogh For This Useful Post: