TazWeb is a wonderful lightweight web browser for SliTaz. It is fast and small and it supports well advanced W3C standards for the World Wide Web.
Some (many ?) of you would be tempted to make their default browser of it, but it lacks something obvious: a management of bookmarks.
It all started from a post in Packages french section of officiel support bulletin board and I was just curious to see how far I could go to create a very small external management software for TazWeb bookmarks.
The story of twbm starts here: it is a -very very- small shell script written for Busybox, the SliTaz default shell command interpreter.
It allows to add or remove bookmarks with categories, using Javascript and CSS to display them in TazWeb, within its native home page. A small search function is proposed. I have to let you know that it supports regular expressions as implemented in Javascript (and so, in Perl POSIX regexp ;-}).
You need to download and manually install three files:
- twbm.sh in a path directory with rights for execution
- twbm.js in TazWeb user configuration directory ($HOME/.config/tazweb)
- twbm-style.css in the same folder than above
And then you need to manually modify once the HTML source code of the home page ($HOME/.config/tazweb/home.html), by inserting the following three lines in the <head> ... </head>
section:
<script type="text/javascript" src="twbm-bookmarks.js"></script>
<script type="text/javascript" src="twbm.js"></script>
<link rel="stylesheet" type="text/css" href="twbm-style.css"/>
Make sure, if copy/pasting this chunk of HTML code, that double-quotes are plain double-quotes and not litteral ones (modified because of SliTaz community message system formatting).
Run twbm.sh build_script
once and the refresh your home page: it is ready.
Use twbm.sh again to add/remove some bookmarks and refresh your home page to see the changes.
Source files: http://people.slitaz.org/~babaorum/source/twbm/