
Loading…
Unable to block fonts #1492
Method 1:
You can use dynamic filtering rules, to block fonts, by blocking the whole domain in My Rules tab -
www.gsmarena.com fonts.gstatic.com * block
or to block this domain from any website, instead of just gsmarena, you can replace
fonts.gstatic.com * block
Method 2:
Alternatively, if you want to block only of type fonts from this domain and not anything else, you can use below rule in My Rules tab.
gsmarena.com http://fonts.gstatic.com font noop
or to block this domain from any website, instead of just gsmarena, you can replace *
* http://fonts.gstatic.com font noop
Note:
I am not sure if Method 2 is supported in uBlock. But it is supported in uBlock Origin version as part of Dynamic URL Filtering..
Tried both
www.gsmarena.com fonts.gstatic.com * block
fonts.gstatic.com * block
and none of them works.
Can you give me the screenshot of the rule?
And the url to test?
Did you check the logs? show us the screenshot of the logger, for the font requests...
Edit: I forgot. For this, you should click "I am an Advanced User". As these are the Dynamic Filtering rules...
Website: www.gsmarena.com
This screenshot in particular: http://www.gsmarena.com/samsung_galaxy_a8_is_now_official_in_china-news-13039.php


by blocking the whole domain in My Rules tab -
You copied to wrong place. It should be in My Rules tab as advised. And remember to check "I am an Advanced User", to have an effect with these Rules.
And delete these rules in My Filters tab.
Note: These are not regular Adblock compatible filters. Rather they are Dynamic Filtering rules. Please read the wiki about it.
OK, I went to My rules, Hit "Edit" under temporary rules, added your both rules.
www.gsmarena.com fonts.gstatic.com * block
was added after "Commit" but
fonts.gstatic.com * block
was silently discarded.
And this first rule still doesn't seem to work.
Did you checked "I am an advanced user" option. Show me your network request logger screen shot
@birdie-github
If you want to use static filtering, you have 2 options :
||fonts.gstatic.com^ -> block all network requests to this domain (the ^ is important ; you can also add $domain=www.gsmarena.com to make it site specific)
|fonts.gstatic.com/s/arimo/ -> block network requests beginning with the url (the single | is important)
If you prefer dynamic filtering rules :
www.gsmarena.com fonts.gstatic.com * block -> same effect as ||fonts.gstatic.com^$domain=www.gsmarena.com
* fonts.gstatic.com * block -> block all network requests to fonts.gstatic.com on all websites
To add the rules :
1. Go to "My Rules" tab in the Dashboard.
2. Click "Edit" and paste the rules (1 rule per line).
3. Click "Save" : rules are temporary. Click "Commit" to make them permanent.
Notes
In uBlock Origin you can use :
the $font filter option
the no-remote-fonts switch but it will block more than Google fonts
dynamic URL filtering using the rule gsmarena.com http://fonts.gstatic.com/s/arimo font block as suggested by harshanvn

The rule
doesn't seem to work at http://www.gsmarena.com/news.php3 Edit: it doesn't work in Adblock+ either.
Also $font is neglected: http://forums.mozillazine.org/viewtopic.php?p=12730559&#p12730559