Setting "allow pages to choose their own fonts" on a per-domain basis in Firefox

17

5

Normally I use Firefox with the option "allow pages to choose their own fonts" UNselected, but now and again there's a site I'd like to view using their fonts instead of mine... Is it possible to set this option on a per-domain basis? A plugin maybe?

Joril

Posted 2011-05-07T15:41:04.050

Reputation: 1 879

Answers

1

There are two Firefox add-ons that are open-source and can be used to solve the problem in another way than setting "Allow pages to choose their own fonts":

Both add-ons allow to override the CSS styles of websites, and both support @-moz-document rules, which allow regex specifications for overridden websites, including negative look-ahead.

These examples come from the article Applying styles to specific sites:

An example of matching all sites with a certain exception:

@-moz-document regexp('(?!http://www\\.example\\.com).*') {
  /*
      the code in here applies to all URLs except those that start with 
      http://www.example.com
  */
}

An example of matching all except a specific section of a site:

@-moz-document regexp('http://www\\.example\\.com/(?!members).*') {
  /*
      the code in here applies to all URLs on http://www.example.com, except
      those under http://www.example.com/members
  */
}

harrymc

Posted 2011-05-07T15:41:04.050

Reputation: 306 093

3

I've found a bug in the Bugzilla of Mozilla. If you still interested in this problem, you can add a comment with your requests.

https://bugzilla.mozilla.org/show_bug.cgi?id=568794

Rufo El Magufo

Posted 2011-05-07T15:41:04.050

Reputation: 615

3

I had a similar problem and found this plug-in:

https://addons.mozilla.org/en-US/firefox/addon/document-font-toggle/?src=api

It allows to toggle between choosing your own fonts and use the ones set by the site. It also has pre-sets for "always allow" and "always deny" by domain so you don't have to manually toggle.

Hope this is helpful.

dj-4g11e32

Posted 2011-05-07T15:41:04.050

Reputation: 39

How should this be implemented on a per domain level? Looking at the source code it does not look like that there is this functionality. The issue is that browser.display.use_document_fonts is a global setting for all sites. – DreamFlasher – 2018-10-24T01:54:58.113

1The addon has been deleted. – user598527 – 2019-04-22T20:51:27.493

0

It looks like this might be what you're looking for: https://addons.mozilla.org/en-US/firefox/addon/stylish/

Stacey Hanson

Posted 2011-05-07T15:41:04.050

Reputation: 916

Sadly here http://userstyles.org/help/coding it says that "there is no way to select everything except a certain site", so Stylish doesn't fit with my scenario :/

– Joril – 2011-06-19T09:14:16.950