User:PerfektesChaos/js/localEdit/Firefox

There is an add-on for gecko browsers (mainly Firefox) available.

Configuration

 * On the browser  configuration page for the add-on select “properties”. A dialog window shows up.
 * At least one information is required: URL of your own user page.
 * By copy&paste the entire URL is to take from the address field of the browsers. Special characters are encoded differently and displayed prettier than really present in URL.
 * Fill in the URL. Other configuration is not needed immediately.
 * Check whether the tool bar of the browser is displayed. An icon shall be displayed there now.
 * If the tool bar is not visible, check the “view” menu and look for symbol bars. About three icons with same functionality but different size for various heights of your tool bar should be present in repository.
 * The icon for the tool should be visible while you are editing. It might be moved to any other bar by “adaption”.
 * The icon indicates whether the add-on is listening for events sent by the wiki web page. If it is stroke through the tool is blocked and reacts only on a click which is awakening the listener.
 * If you don’t need the tool for a while you might send it to bed. If you don’t need it for a longer period you might go to the  configuration page and deactivate it (into effect after next restart of the browser).

For experts

 * Actually, the  file is nothing else than a ZIP file. You might rename and unpack it, placing the content into any directory, e.g..
 * You can inspect the programming.
 * You can put  calls or more sophisticated diagnostics into the code wherever you want.
 * After installation, the  file was copied into your browser profile directory. You may exchange this by your debugging modification:
 * Locate your profile folder of the browser application and find your current personal profile (perhaps something like ); see kb.mozillazine.org for assistance.
 * There will be an  subdirectory.
 * Within the  subdirectory there is the file   (after installation).
 * Replace this file by a text file, named:

with one line of content, which is the local file system path to the extraction directory, e.g..
 * Now the application in the extraction directory comes into effect; restart browser and follow the directives.

Access to local files on gecko is supported by the XPCOM subsystem. That requires browser restart after each change.
 * Restartless, or bootstrapped extensions, are not able to use XPCOM and cannot access local files.
 * No other browser/engine is known to deal with the local file system.

Files and structure

 * /WLE (your extraction directory)
 * chrome.manifest
 * install.rdf
 * /chrome
 * /content
 * about.xul
 * config.js
 * config.xul
 * fileIO.js
 * permissions.js
 * prefs.js
 * version.dtd
 * wikilocaledit.js
 * wikilocaledit.xul
 * /locale
 * /locale/de-DE
 * locale.js
 * wikilocaledit.dtd
 * wikilocaledit.properties
 * /locale/en-US
 * locale.js
 * wikilocaledit.dtd
 * wikilocaledit.properties
 * /skin
 * 6 PNG images
 * /classic
 * /defaults
 * /preferences
 * wikilocaledit.js

about:config
After first configuration the following items are expected on the  list:
 * wikilocaledit.dir.
 * string
 * Base directory path


 * wikilocaledit.dir.project.user
 * string
 * Subdirectory path (relative to base directory)


 * wikilocaledit.leading
 * boolean
 * Activate tool at browser start


 * wikilocaledit.userpages
 * string
 * Space separated list with URL of permitted user pages

While testing, these preferences are kept. In productive version they shall be removed on de-installation.

0.2
2012-12-08 2012-12-13
 * chrome.manifest ([//en.wikipedia.org/w/index.php?diff=prev&oldid=527007406 diff])
 * install.rdf ([//en.wikipedia.org/w/index.php?diff=prev&oldid=527007386 diff])
 * permissions.js ([//en.wikipedia.org/w/index.php?diff=prev&oldid=527007360 diff])
 * fileIO.js ([//en.wikipedia.org/w/index.php?diff=prev&oldid=527854256 diff])
 * wikilocaledit.js ([//en.wikipedia.org/w/index.php?diff=prev&oldid=527854396 diff])
 * version.dtd ([//en.wikipedia.org/w/index.php?diff=prev&oldid=527007345 diff])