Page 1 of 2

How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 2:37 pm
by kukla
For an already whitelisted site? Big PITA to have to go through this each time I open a particular site.

And is there a way to permanently allow only a single blocked object, or a selection of blocked objects (but not all) for an already whitelisted site?

Why is the only option to temporarily allow a blocked object? Why isn't there an option to permanently allow?

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 2:40 pm
by barbaz
about:config > noscript.allowedMimeRegExp

If you want to allow only specific objects from those sites, or allow the objects on a per-site basis, you'd have to combine that with ABE rules.

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 2:55 pm
by kukla
barbaz wrote:about:config > noscript.allowedMimeRegExp

If you want to allow only specific objects from those sites, or allow the objects on a per-site basis, you'd have to combine that with ABE rules.
Thanks. First, have zero ability with reg ex, so that one is out. Second, I would need some help to do this in ABE. In order to learn how to do this, can you tell me what I would enter there with these two selected (arrows) blocked objects, and what I would enter in ABE in order to allow all.

Also, perhaps for Giorgio, can we have an option to permanently allow, not just temporarily allow a blocked object? Why do all of these have to be temporarily allow? We have permanently allow for a script.

Image

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 3:08 pm
by barbaz
For the first arrow, you'd type that as-is replacing the '.' with '\.'

Code: Select all

FONT@https://discussions\.apple\.com
The second arrow I don't know to enter it into allowedMimeRegExp. You might try this:

Code: Select all

.*@https://www\.apple\.com
or this

Code: Select all

*@https://www\.apple\.com
re: ABE rule, that would only be useful for if you want to block these objects on other than the specific site you want them Allowed. Can't help you there without more specifics as to what site you're looking at and what other sites you'd want the objects Allowed on, sorry.

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 3:18 pm
by barbaz
kukla wrote:Also, perhaps for Giorgio, can we have an option to permanently allow, not just temporarily allow a blocked object? Why do all of these have to be temporarily allow? We have permanently allow for a script.
If you mean in the NS menu, viewtopic.php?f=10&t=20514

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 4:13 pm
by kukla
barbaz wrote:
kukla wrote:Also, perhaps for Giorgio, can we have an option to permanently allow, not just temporarily allow a blocked object? Why do all of these have to be temporarily allow? We have permanently allow for a script.
If you mean in the NS menu, viewtopic.php?f=10&t=20514
Think that's what I was asking for, but looks like it never got done, or even got any real attention. Just don't understand why the only option for allowing a blocked object (with "Apply these restrictions to whitelisted....") is Temporarily allow.

And thanks for the reg ex. I entered both of those comma separated and it looks like at least one of those did the job.

.*@https://www\.apple\.com, *@https://www\.apple\.com

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 4:18 pm
by barbaz
You're welcome. Image

(allowedMimeRegExp entries should be space-separated not comma-separated)

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 4:49 pm
by kukla
barbaz wrote:You're welcome. Image

(allowedMimeRegExp entries should be space-separated not comma-separated)
Changed to space separated, but seems it worked either way. Maybe it just ignored the second one after the comma, which wasn't needed anyway, and just used the first. But even if I knew reg ex, this is definitely a big PITA to have to do this for regularly visited whitelisted sites. I have to have "Apply these restrictions...." checked in order to have a placeholder show for all Flash content.

Giorgio, how about doing something about this?

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 5:04 pm
by barbaz
kukla wrote:Changed to space separated, but seems it worked either way. Maybe it just ignored the second one after the comma, which wasn't needed anyway, and just used the first.
I think it would have discarded the one with the comma because that matches literally the site "https://www.apple.com,", which doesn't exist. So the second entry is the correct one.
kukla wrote:Giorgio, how about doing something about this?
(atm he's pretty busy designing WebExtensions API... anyway, you might have better luck getting his attention by bumping the other thread. idk.)

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 5:24 pm
by kukla
OK, will bump that thread and hope for the best. I understand how that new Web Extensions API will be keeping him busy. Shame how it's going to destroy many addons.

And yes, seeing how it would take that string literally as the URL with the comma included.

But now something quite strange, as a possible side effect of entering that, or anything, in noscript.allowedMimeRegExp.

With that entered (.*@https://www\.apple\.com *@https://www\.apple\.com), not getting any placeholders for Flash content. Removed and tested and the placeholders were back.


Why would that be happening? And not only that, but not entirely sure of this, since I didn't look everywhere, was no longer getting any blocked objects for any sites I visited after entering that string.

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 5:38 pm
by kukla
Just tested on speedtest.net. Double, triple checked. Adding that entry to noscript.allowedMimeRegExp definitely removes the Flash Player placeholder where it normally would appear, as well as removing any Blocked Objects, not just for the Apple site, but as far as I can tell, any site. Very weird.

Will have to live with temporarily allowing those Blocked Objects at Apple, since having a placeholder for possibly dangerous Flash Player content is much more important.

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 6:02 pm
by barbaz
Yeah that is odd, maybe allowedMimeRegExp doesn't support wildcard MIME type? Probably another bug...

The specific *@https://www.apple.com in your screenshot only looks to apply to a FONT object, so you could try adding this instead of all the other suggested entries?

Code: Select all

FONT@https://(?:discussions|www)\.apple\.com

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 6:16 pm
by kukla
Yeah, that seems to have done the job. Getting placeholder for Flash and Blocked Objects menu now for other sites. Many thanks for the help.

Also added to that feature request thread

viewtopic.php?f=10&t=20514&p=83232#p83232

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 6:17 pm
by barbaz
You're welcome!

Re: How to permanently allow blocked objects?

Posted: Thu Jun 09, 2016 11:18 pm
by kukla
And a little late, but one more thing: I have never really understood what "objects" are. I know the Blocked Objects sub-menu wasn't there years ago, when I first started using NS. Perhaps you can direct me to something to read about this (not finding anything), or offer a quick explanation. In addition, referring to my screenshot, above, can you explain why there are so many different versions of what appear to be the same FONT object.

And sometimes, even if I allow a particular object, when the page reloads the exact same one will reappear, as if it had never been allowed.