Posledné odpovede k PDF Viewer Toolbar Togglehttps://support.mozilla.org/sk/questions/13198042021-02-26T05:29:23-08:00Hi David, now I'm not sure whether the original code was working for you. Was it?
This thread doesn'2021-02-26T05:29:23-08:00jscher2000https://support.mozilla.org/sk/questions/1319804#answer-1395000<p>Hi David, now I'm not sure whether the original code was working for you. Was it?
</p><p>This thread doesn't have all the details on setting up a <strong>userContent.css</strong> file to modify built-in pages. Here's another thread with an example of that:
</p><p><a href="https://support.mozilla.org/questions/1305573" rel="nofollow">https://support.mozilla.org/questions/1305573</a>
</p><p>Instead of the style rules listed under (A) in that thread, use the rule(s) from this thread.
</p>Hi again jscher2000.
Unfortunatelly I had not success. It seems the CSS inserted by Firefox is overr2021-02-26T03:41:00-08:00dvalencia1970https://support.mozilla.org/sk/questions/1319804#answer-1394969<p>Hi again jscher2000.
Unfortunatelly I had not success. It seems the CSS inserted by Firefox is overriding the rule "display: none".&nbsp;:(
</p>Thank you so much. I'm gonna try it.
2021-02-26T03:13:50-08:00dvalencia1970https://support.mozilla.org/sk/questions/1319804#answer-1394956<p>Thank you so much. I'm gonna try it.
</p>dvalencia1970 said
How could you disable the entire PDF viewer toolbar? I guess it was thru CSS but 2021-02-26T03:01:09-08:00jscher2000https://support.mozilla.org/sk/questions/1319804#answer-1394955<em><p>dvalencia1970 <a href="#answer-1394953" rel="nofollow">said</a></p></em>
<blockquote>How could you disable the entire PDF viewer toolbar? I guess it was thru CSS but I'm stuck in it.
I appreciate your assistance.
</blockquote>
<p>Hi David, you never want to use the toolbar? I have not tested, but you could try removing all the other rules that contain .toolbar and just use this:
</p><p>[mozdisallowselectionprint] #mainContainer .toolbar { display: none&nbsp;!important; }
</p>Hello jscher2000. Sorry for asking, maybe this silly question, I'm newbie in firefox developing.
How2021-02-26T02:51:46-08:00dvalencia1970https://support.mozilla.org/sk/questions/1319804#answer-1394953<p>Hello jscher2000. Sorry for asking, maybe this silly question, I'm newbie in firefox developing.
How could you disable the entire PDF viewer toolbar? I guess it was thru CSS but I'm stuck in it.
I appreciate your assistance.
David Valencia
</p>Oh, Hello. :-)
2020-12-30T03:39:42-08:00jscher2000https://support.mozilla.org/sk/questions/1319804#answer-1379969<p>Oh, Hello.&nbsp;:-)
</p>Found a solution on Reddit. Works incredibly well!
This is rough, but you could experiment with it. 2020-12-30T03:08:36-08:00hithu.chavanhttps://support.mozilla.org/sk/questions/1319804#answer-1379964<p>Found a solution on Reddit. Works incredibly well!
</p><p>This is rough, but you could experiment with it. The idea is to reduce the toolbar to a single icon and expand when you hover it:
</p><p>[mozdisallowselectionprint] #sidebarContainer,
[mozdisallowselectionprint] #viewerContainer {
</p><pre> top: 0&nbsp;!important;
</pre>
<p>}
</p><p>[mozdisallowselectionprint] #mainContainer .toolbar {
</p><pre> position: absolute&nbsp;!important;
left: auto&nbsp;!important;
right: 22px&nbsp;!important;
width: auto&nbsp;!important;
min-width: 640px&nbsp;!important;
</pre>
<p>}
</p><p>[mozdisallowselectionprint] #mainContainer .toolbar:not(:hover) {
</p><pre> width: 32px&nbsp;!important;
min-width: 0&nbsp;!important;
height: 36px&nbsp;!important;
overflow: hidden&nbsp;!important;
</pre>
<p>}
</p><p>[mozdisallowselectionprint] #secondaryToolbar {
</p><pre> right: 26px&nbsp;!important;
</pre>
<p>}
</p><p>To test, open a PDF, open the Style Editor (F7), create a new sheet using the + button above the list of style sheets, paste the code, then try variations.
</p><p>Credits: u/jscher2000
</p>