Showing posts with label extension. Show all posts
Showing posts with label extension. Show all posts

Friday, July 20, 2012

Firefox SRKiosk add-on Q&A

Where is my profile folder?

Help > Troubleshooting Information
In the new tab click the Show Folder button, or Open Directory.

How to remove Close button

To remove the X close button, delete these lines from content/srkioskbrowser.xul

<toolbarpalette id="BrowserToolbarPalette">
   <toolbarbutton id="closebutton" 

      label="Close browser"
      tooltiptext="Close browser"
      oncommand="closeButton()"
      class="toolbarbutton-1 chromeclass-toolbar-additional closebutton"
   />  
</toolbarpalette>



How to add a link in the top bar

To add a link button in the custom toolbar, edit the content/srkioskbrowser.xul file, put something like this code inside the <toolbox id="navigator-toolbox"> and <toolbar id="KioskLinks-Toolbar"> elements.

The vbox id="Kiosk-ResizeBar" is a vertical line to divide buttons

<toolbox id="navigator-toolbox"> 
   <toolbar id="KioskLinks-Toolbar" toolbarname="Kiosk Links Toolbar" 
      class="chromeclass-toolbar" context="toolbar-context-menu"
      hidden="false" persist="hidden">
 

      <toolbarbutton label="Button link text" 
         tooltiptext="Tooltip on mouse over"
         oncommand="objToolbar.LoadURL('http://link.to.a.site')" />
 

         <vbox id="Kiosk-ResizeBar" />

      ...

   </toolbar>
</toolbox>


How to change home page

Edit the content/variables.js file and set var v_homepage. This will be the home page on browser startup and it is the link associated with the home button.

var v_homepage = "www.yourhome.page";

Note. Such homepage will not be effective the first time you launch Firefox after the change: you must close the browser and reopen it.

Such variable is used in the content/srkioskbrowser.js file

pref.setCharPref("browser.startup.homepage",v_homepage);

How to uninstall the Firekiosk plugin

Easy: start Firefox from command line using the -safe-mode option. Then Tools->Addon->Extensions and remove.

Firefox SRKiosk add-on

A full screen locked kiosk mode for Firefox.

Download

Download from https://addons.mozilla.org/en-US/firefox/addon/srkiosk

Documentation

FIXME

Features

Many things can be changed editing the extension files, see below.
  • Forced full screen
  • All keyboard shortcuts disabled
  • Mouse right-click disabled
  • Menu bar, Add-on bar, Bookmarks toolbar, Navigation toolbar all disabled (hidden?)
  • Hidden address bar
  • Hidden search bar
  • Eventually, “about:”, “file:”, “chrome:” and “resource:” URLs are forbidden
  • You can place “link buttons” as if they are bookmars
  • Print button and Zoom button are available
You must edit files by hand.


Description

I'm not a programmer. I don't know very well Firefox add-ons. So, you can use this extension at your own risk. :-)

To configure and customize this extension, it is supposed:
  • you know where Firefox extensions are installed on your system i.e. /home/user/.mozilla/firefox/muwypw2y.default/extensions on Linux and Solaris or C:\Document and settings\user\Application data\Mozilla\Firefox\Profiles\fj5drt33.default\extensions\ under Windows

  • you are able to edit files (using vi, gedit, wordpad, notepad or what you like)

How to disable the extension

To disable the extension, you must start Firefox in safe mode, then disable or uninstall it:

firefox -safe-mode

Questions and Answers

http://blogoless.blogspot.it/2012/07/firefox-srkiosk-add-on-q.html