Running custom Javascript on every page in Mozilla Firefox

Posted by saturn on Stack Overflow See other posts from Stack Overflow or by saturn
Published on 2010-05-06T05:02:40Z Indexed on 2010/05/06 5:08 UTC
Read the original article Hit count: 338

I have a custom piece of Javascript which I would like to run on every web page from specific domains, or perhaps simply on every web page.

(If you are wondering: it is not malicious. It allows to display formulas by using MathJax.)

Is that possible? I tried including it in userContent.css, that of course did not work.

A simple Greasemonkey script I tried did not insert it. Is it because of the security precautions? (Which would be very logical).

Still, there should be a way to do it on the machine I physically control, by changing something in Mozilla chrome directory, shouldn't it?

Anyway, how can I do this for myself?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-execution