Reply
Thread Tools
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:
Posts: 566 | Thanked: 150 times | Joined on Dec 2007
#2
Good find! It shouldn't be to hard to whip up a small app for changing those settings graphically...anyone?
 
Posts: 13 | Thanked: 20 times | Joined on Aug 2008 @ Switzerland
#3
On line :
Code:
user_pref("capability.policy.jsok.sites", "https://www.google.com");
we can put as many sites as we need, for example :

Code:
user_pref("capability.policy.jsok.sites", "http://site1 http://site2 http://site3 http://site4");
I agree that an app or an extension to modify this preference on-the-fly would be so cool !
 

The Following User Says Thank You to lbalogh For This Useful Post:
Reply

Tags
browser, javascript, microb, speed

Thread Tools

 
Forum Jump


All times are GMT. The time now is 18:17.