How to write a ~/.firefoxrc?

Posted by kev on Super User See other posts from Super User or by kev
Published on 2012-04-08T03:31:32Z Indexed on 2012/04/08 5:35 UTC
Read the original article Hit count: 188

Filed under:
|
|

I want firefox sources ~/.firefoxrc automatically when I open a webpage.
~/.firefoxrc contains several javascript functions:

Array.prototype.sum = function(){
    for(var i=0,sum=0;i<this.length;sum+=this[i++]);
    return sum;
}
Array.prototype.max = function(){
    return Math.max.apply({},this)
}
Array.prototype.min = function(){
    return Math.min.apply({},this)
}

So I can use these functions in firebug console.

© Super User or respective owner

Related posts about firefox

Related posts about shell