Problem with allowedMimeRegExp

Ask for help about NoScript, no registration needed to post
David44

Problem with allowedMimeRegExp

Post by David44 »

After I tried many times without success I hope you can help.
I want to block Java and Flash except on 2 sites but always allow Font, PDF, Audio on all whitelisted sites. I think, allowedMimeRegExp should do that. Therefore I set:

Code: Select all

user_pref("noscript.allowedMimeRegExp", "Font audio/x-aiff audio/mpeg audio/mid audio/wav video/avi video/mpeg video/webm application/pdf application/x-shockwave-flash@https?://.*(site1|site2)\\.(com|de) application/x-java-vm@https?://[^/]+\\.(site1.com|site2.de)");
But Font must ALWAYS manually allowed with the Noscript-menu. It seems, that the setting has no function. I also tried FONT@* and others.
Opera/9.52 (X11; Linux i686; de)
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Problem with allowedMimeRegExp

Post by Thrawn »

Did you try

Code: Select all

Font@https?://.*
?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0
Guest

Re: Problem with allowedMimeRegExp

Post by Guest »

Thrawn wrote:Did you try

Code: Select all

Font@https?://.*
Yes (doesn't work), and you?
Opera/9.52 (X11; Linux i686; de)
David44

Re: Problem with allowedMimeRegExp

Post by David44 »

Am I the only one who has the problem with "Font"? What could be the reason - is there another setting which I could have overlooked? The other parts of allowedMimeRegExp are doing their job well (Java, Flash). There is no other add-on.
Opera/9.52 (X11; Linux i686; de)
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Problem with allowedMimeRegExp

Post by Giorgio Maone »

It's FONT (case sensitive).
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
Post Reply