Using Xulrunner as the gecko engine, it is possible to
build a browser using javascript only, without using c++ .
An interesting example is the Conkeror browser (not to be
mistaken for Konqueror), which works in Linux and in
Windows as well. It is a purely keyboard-oriented browser,
but icons can be enabled in the Linux version already,
and adding macros using javascript should probably
also be possible. Xulrunner 9.0.1 has the current
Firefox gecko and can be updated furthermore.
This could be a possibility to go on developing K-Meleon.
Have a look at the Conkeror website. here :
I have an older version of 7-zip, but I think that
it still opens tar.gz packages.
These files are packed twice.
If you unpack with 7-zip, it first unpacks the tar.gz
to a folder "conkeror-master.tar" .
Inside this folder is the real tar package.
7-zip will unpack this package to a folder "conkeror" .
Copy this folder then to a location where you want it to be.
You can put the unpacked "xulrunner" folder inside
the "conkeror" folder, or also keep these two folders
separate.
It is important to start the application.ini of conkeror
with xulrunner.exe .
The configuration file is named ".conkerorrc" and should
by default be in the user folder where also the profile
of Firefox is.
This is an example, how ".conkerorrc" could look with some added functions.
Adjust the path to your homepage.
interactive("find-url-from-history",
"Find a page from history in the current buffer",
"find-url",
$browser_object = browser_object_history_url);
interactive("find-url-from-history-new-buffer",
"Find a page from history in the current buffer",
"find-url-new-buffer",
$browser_object = browser_object_history_url);
interactive("open-homepage", "open-homepage", "follow",
$browser_object = "file:///PATH TO YOUR HOMEPAGE");
define_key(content_buffer_normal_keymap, "C-up", "open-homepage");
function history_clear () {
var history = Cc["@mozilla.org/browser/nav-history-service;1"]
.getService(Ci.nsIBrowserHistory);
history.removeAllPages();
}
interactive("history-clear",
"Clear the history.",
history_clear);
define_key(content_buffer_normal_keymap, "C-0", "history-clear");
This is very interesting idea Fred. But it removes MFC classes from the browser completely I would guess. Essentially, it is then Firefox without all their "chrome" and we could start over. What is it that makes Kmeleon Kmeleon then? The macro language? The user community? Would it still load quicker than FF ( and their load time seems to have gone down quite a bit these days )?
I am asking these questions for a lot of reasons. One of them being that I am a C++ developer, and a javascript developer, and I am unemployed at the moment. I have thought somewhat about whether to volunteer to take up the development of Kmeleon and what direction I would take it if I did that. In order not to hijack this possibly important thread please see my other posting for my comments on the future of kmeleon.
Thanks for the info. I have it running. Don't think I like it much. I do 99% of my browsing with the mouse. This keys business is driving me nuts. Also it did not use current plugin for some movie/flash. Wanted to load another player. I did not do that. I have no idea how many bookmarks I may have set using b when I needed to use B. It does not use Favorites so far as I can find.
I don't know why this does not work in Windows. I think
the icons are not found in Windows xulrunner.
Conkeror is only a proof of concept, that a browser written
in javascript works with xulrunner.
It seems possible that javascript toolbars can be created as
modules by an experienced javascript programmer.
Existing modules of Conkeror could be used or adapted.
It may be easier to make a browser with javascript modules
than exes.
Macros could be converted to javascript modules.
I think that K-Meleon's biggest advantage is that functions
can be easily added by adding macros. This could be done
by javascript modules as well.
The Conkeror files are the same for Windows and Linux.
The buttons work in Linux, but not in Windows.
I presume, that the buttons are in Xulrunner, which is
different for Linux and Windows.
I have just tried it on Kanotix 64 bit, and it worked
allright.
It seems to work better with Xulrunner 64 bit than 32 bit.
I do not know for sure for other Linux 64 bit distros.
I would install everything into /opt.
This would avoid damaging the system, because simply
deleting the folder would be sufficient, if it should not
work correctly.
The ".conkerorrc" configuration file must be in the home directory.
My given example above should enable the buttons too, and some
easier keyboard shortcuts.
I only had Kanotix as a 64 bit system, but I have downloaded
now Ubuntu-10.4.3-amd64 to try it again.
It works ok for me with xulrunner 64 bit from my link.
The start string you had was wrong. It starts xulrunner twice
with itself. It should only be, for your folders :
As you can see the sysntax is exactly what you said.
I use Ubuntu 11.10 and gnome-shell is installed. The Firefox version is 9.0.1
Yes, I use conkeror from the tarball, and just extract it in a folder.
It seems that there is only a version for all the OS (Windows, and Linux).
To be sure, I have extract again from your link.
I think the problem is due to xulrunner.
Is the version x86_64 compatible with amd64? I have a doubt ? Wouldn't it for Intel 64 bits, instead of amd64 ?
I have also installed xulrunner for Windows, and it works. I just not have found where to put conkerorrc file to use it with Windows xulrunner, as I haven't installed Firefox for Windows.
A+
Mozilla/5.0 (x11; U; Linux x86_64; en-US; rv:1.9.1.17pre) Gecko/20101211 Ubuntu/12.04 (precise) K-Meleon/1.6.0
Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:1.9.2.14pre) Gecko/20101219 Ubuntu/12.04 (precise) K-Meleon/1.7.0
Web: K-Meleon Extension Setup (French) and (English)
Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr
Edited 2 time(s). Last edit at 01/23/2012 11:44PM by JujuLand.
I thought that you have Ubuntu 10.04 .
I have looked in 10.04 64 bit in synaptic now, and it seems
that xulrunner 1.9.2 is already present by default
in the distro.
This is probably also the case in 11.10 64 bit.
This would make it easier to start xulrunner, just type:
Give the folder conkeror all executable rights for the
user ubuntu, or alain in your case.
There is also a conkeror version in synaptic, but here in 10.04
it has only 0.9.1, which has not included the buttons.
The buttons do also not work for me with xulrunner for Windows.
As far as I remember at the moment, the .conkerorrc for wine
must be in /.wine/drive_c/windows/profiles/alain/Application Data,
but outside of the conkeror configuration folder there.
Quote Fred I thought that you have Ubuntu 10.04 .
I have looked in 10.04 64 bit in synaptic now, and it seems
that xulrunner 1.9.2 is already present by default
in the distro.
At home, I use 10.04, but at work, I have a 11.10 installed
My tests were made at work. I haven't tried it under 10.04
Quote Fred This is probably also the case in 11.10 64 bit.
This would make it easier to start xulrunner, just type:
No, xulrunner isn't avalaible for 11.10 (apt-get or Logithèque). When I try to install conkeror 0.9.3 from Synaptic, I have this error message:
conkeror:
Dépend: xulrunner-1.9.2 but it is not installable
Recommande : conkeror-spawn-process-helper mais ne doit pas être installé
Quote Fred There is also a conkeror version in synaptic, but here in 10.04
it has only 0.9.1, which has not included the buttons.
Similary problem under 11.10
The buttons do also not work for me with xulrunner for Windows.
Quote Fred As far as I remember at the moment, the .conkerorrc for wine
must be in /.wine/drive_c/windows/profiles/alain/Application Data,
but outside of the conkeror configuration folder there.
Directly under Application Data ??
A+
Mozilla/5.0 (x11; U; Linux x86_64; en-US; rv:1.9.1.17pre) Gecko/20101211 Ubuntu/12.04 (precise) K-Meleon/1.6.0
Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:1.9.2.14pre) Gecko/20101219 Ubuntu/12.04 (precise) K-Meleon/1.7.0
Web: K-Meleon Extension Setup (French) and (English)
Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr
I have checked again for wine :
The file ".conkerorrc" must be in the folder
/.wine/drive_c/windows/profiles/alain ,
not in the Application Data folder.
May be the Linux version will work in your
Ubuntu 10.04 at home.
Quote Fred I have checked again for wine :
The file ".conkerorrc" must be in the folder
/.wine/drive_c/windows/profiles/alain ,
not in the Application Data folder.
ok, but I presume users, not profile
Quote Fred May be the Linux version will work in your
Ubuntu 10.04 at home.
I'll try it
Thanks
A+
Mozilla/5.0 (x11; U; Linux x86_64; en-US; rv:1.9.1.17pre) Gecko/20101211 Ubuntu/12.04 (precise) K-Meleon/1.6.0
Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:1.9.2.14pre) Gecko/20101219 Ubuntu/12.04 (precise) K-Meleon/1.7.0
Web: K-Meleon Extension Setup (French) and (English)
Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr
Edited 1 time(s). Last edit at 01/24/2012 07:32PM by JujuLand.
I have added F6 to toggle document and forced colors,
and F8 to toggle javascript on/off.
I have enabled tthe scrollbars.
There is a buffer widget showing the number of the
active buffer (tab) in the window.
I have enabled the button bar (up to now, as it seems, only working in Linux).
Added shortcuts for the right Ctrl key :
Ctrl(right)+right arrow for forward ,
Ctrl(right)+Left arrow for back,
Ctrl(right)+Down arrow to close the current buffer.
Ctrl(right)+Up arrow t go to your homepage
(the path must be adapted).
To open an URL from the history, type H and then Tab,
(one after the other !)
To open an URL from the history in new buffer,
type h and then Tab (one after the other !).
To clear the history shortcut Ctrl+0(zero).
I have enabled tabs.
The 9 buttons in Linux can all be replaced by
shortcut combinations :
g opens a new URL,
Ctrl+x and then Ctrl+f opens an URL in a new buffer,
(this could easily be defined for a simpler key),
B page back (or with my defined combination Ctrl(right)+Left arrow),
F page forward (or with my defined combination Ctrl(right)+Right arrow),
r for reload,
q to kill active tab (or with my defined combination Ctrl(right)+Down arrow),
Ctrl+x then Left arrow, for go to previous tab.
Ctrl+x then Right arrow, for go to next tab.
Ctrl+x then i to go to the help page.
All these shortcuts can easily be redefined to other key combinations.
To get an overview of the default key shortcuts,type :
Ctrl+h then b .
Note that Conkeror has been developped for devoted users of
the Linux editor Emacs. That is why it is basically a key driven
text browser, using the basic keyboard commands of Emacs.
The existence of a button bar in the Linux version shows, that it may be
possible for an experienced javascript writer to add many more buttons
with every desired function, which at the moment can only be reached
by keyboard shortcuts. This would mean that a similar functionality
as for conkeror could also be programmed for a K-Meleon with Xulrunner,
using javascript only.