X
Tap here to go to the mobile version of the site.

Support Forum

shortcut-option for open firefox with no navigation-bar

Posted

I'm using firefox in my linux-distro (slackware), and using it as default pdf viewer. So i'm finding a way to open my pdf file by firefox with no navigation-toolbar.

As i known, application have options when run it, so is there a run option like `firefox -nonagigation` for firefox ?

I'm using firefox in my linux-distro (slackware), and using it as default pdf viewer. So i'm finding a way to open my pdf file by firefox with no navigation-toolbar. As i known, application have options when run it, so is there a run option like `firefox -nonagigation` for firefox ?

Chosen solution

There's no such command line option.

Use one of the following styles in Stylish (but not both).

The first one hides the navigation toolbar when viewing local PDFs only, while the second does the same for all PDFs.


@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

#main-window[stylish-url^="file:///"][stylish-domain="pdf.js"] #nav-bar {
  visibility: collapse !important;
}

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

#main-window[stylish-url$=".pdf"] #nav-bar {
  visibility: collapse !important;
}

Read this answer in context 1

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.2 r202

Application

  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0

More Information

Gingerbread Man 403 solutions 1537 answers

Chosen Solution

There's no such command line option.

Use one of the following styles in Stylish (but not both).

The first one hides the navigation toolbar when viewing local PDFs only, while the second does the same for all PDFs.


@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

#main-window[stylish-url^="file:///"][stylish-domain="pdf.js"] #nav-bar {
  visibility: collapse !important;
}

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

#main-window[stylish-url$=".pdf"] #nav-bar {
  visibility: collapse !important;
}

There's no such [https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options command line option]. Use one of the following styles in Stylish (but not both). * https://addons.mozilla.org/firefox/addon/stylish/ The first one hides the navigation toolbar when viewing local PDFs only, while the second does the same for all PDFs. ---- <pre><nowiki>@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); #main-window[stylish-url^="file:///"][stylish-domain="pdf.js"] #nav-bar { visibility: collapse !important; }</nowiki></pre> ---- <pre><nowiki>@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); #main-window[stylish-url$=".pdf"] #nav-bar { visibility: collapse !important; }</nowiki></pre> ----

Question owner

many thanks @Gingerbread Man, your approach very helpfull for me.

many thanks @Gingerbread Man, your approach very helpfull for me.