Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Need some help with @-moz-document url-prefix("about:") {*{display:none !important}},

403 views
Skip to first unread message

EE

unread,
Sep 18, 2015, 2:43:31 PM9/18/15
to mozilla-sup...@lists.mozilla.org
Thee Chicago Wolf [MVP] wrote:
> So I have a small problem. Currently, my userContent.css uses
> @-moz-document url-prefix("about:") {*{display:none !important}} to
> prevent my users from getting into about:config, about:support,
> about:plugins, etc. However, it also blocks the window where if a user
> goes to a site with an Untrusted or Self-Signed Cert, it will just
> show a blank white screen rather than the Confirm Security Exception
> Screen.
>
> The ideal situation would be to visit the site, Confirm the security
> exception and have it display the page after said confirmation and
> keep @-moz-document url-prefix("about:") {*{display:none !important}}
> in userContant.css. However, Firefox does not save the confirmed
> exception.
>
> So, failing that, is there 1) something I could use to block *all*
> about: pages but still keep the Confirm Security Exception page or
> perhaps 2) force FF to remember that page? Already tried to import the
> security cert with no luck.
>
> - Thee Chicago Wolf [MVP]
>
Why not just block the ones you think are going to cause problems and
ignore the rest? Most of them are pretty benign anyway.

»Q«

unread,
Sep 18, 2015, 10:24:32 PM9/18/15
to mozilla-sup...@lists.mozilla.org
In
<news:mailman.1322.144260463...@lists.mozilla.org>,
"Thee Chicago Wolf [MVP]" <"."@.> wrote:
> I've already tried @-moz-document url-prefix("about:config") and
> similar ones but it has no effect.

I'm using Stylish rather than user*.css files, and just
using url (no -prefix) WFM, e.g., @-moz-document url("about:home")



»Q«

unread,
Sep 21, 2015, 7:56:12 PM9/21/15
to mozilla-sup...@lists.mozilla.org
In
<news:mailman.1414.144269828...@lists.mozilla.org>,
"Thee Chicago Wolf (MVP)" <"."@.> wrote:

> On Fri, 18 Sep 2015 21:22:45 -0500, »Q« <box...@gmx.net> wrote:
>
> >In
> ><news:mailman.1322.144260463...@lists.mozilla.org>,
> >"Thee Chicago Wolf [MVP]" <"."@.> wrote:
> >
> >> On Fri, 18 Sep 2015 11:42:53 -0700, EE <nu...@bees.wax> wrote:
> >>
> >> >Thee Chicago Wolf [MVP] wrote:
> >> >> So I have a small problem. Currently, my userContent.css uses
> >> >> @-moz-document url-prefix("about:")
> >> >> {*{display:none !important}} to prevent my users from getting
> >> >> into about:config, about:support, about:plugins, etc. However,
> >> >> it also blocks the window where if a user goes to a site with
> >> >> an Untrusted or Self-Signed Cert, it will just show a blank
> >> >> white screen rather than the Confirm Security Exception Screen.

> >> >Why not just block the ones you think are going to cause problems
> >> >and ignore the rest? Most of them are pretty benign anyway.
> >>
> >> I've already tried @-moz-document url-prefix("about:config") and
> >> similar ones but it has no effect.
> >
> >I'm using Stylish rather than user*.css files, and just
> >using url (no -prefix) WFM, e.g., @-moz-document url("about:home")
>
> Odd. I also tried url(no -prefix") and it didn't work. I'll go back
> and try again. I'll give stylish a shot too.

Oops, apparently hit send before finishing typing. I meant to mention
that I'm not using { display : none } -- I'm just restyling the
about:home page.

> Does it show the element?

I'm not sure what you're asking about.

»Q«

unread,
Oct 1, 2015, 9:08:13 PM10/1/15
to mozilla-sup...@lists.mozilla.org
In
<news:mailman.2808.144371749...@lists.mozilla.org>,
"Thee Chicago Wolf [MVP]" <"."@.> wrote:

> I was hoping Stylish would show the element ID of about:config,
> about:support, etc. but I don't think they do have elements per se.

You're right, they don't. To hide the whole page, you could use the
selector * (as I see you're doing below) or body or html.

> Still, according to
> https://github.com/JasonBarnabe/stylish/wiki/Valid-@-moz-document-rules
>
> "URL prefix rules should contain the start of URLs you want to affect,
> including protocol. Wildcards are not permitted."
>
> Valid:
>
> @-moz-document url-prefix(http://www.example.com/)
> @-moz-document url-prefix(http://www.example.)
> @-moz-document url-prefix(http:)
>
> I should be able to do @-moz-document url-prefix(about:)
> {display:none !important} rather than {*{display:none !important}} and
> it should hide any about: typed into the URL bar. Yet, it doesn't.

AFAICS, without a selector it shouldn't work. It's got to be

@-moz-document url-prefix(about:) {
[selector(s)] { [stylerules] }
}

> With {*{display:none !important}} added, it breaks a feature on
> livetext.com.

What feature?


»Q«

unread,
Oct 1, 2015, 9:16:31 PM10/1/15
to mozilla-sup...@lists.mozilla.org
In
<news:mailman.2846.144374808...@lists.mozilla.org>,
»Q« <box...@gmx.net> wrote:

> > With {*{display:none !important}} added, it breaks a feature on
> > livetext.com.
>
> What feature?

I see from the other thread, it's editing tables. It looks like that
functionality is behind a login, so I can't look at it. So,
unfortunately, I can't guess why hiding everything on about: pages
breaks it.


0 new messages