You are not logged in.

#451 2010-08-08 01:59:19

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: jumanji - a web browser

As a matter or curiosity, how could one set up a second jumanji browsers for use on a second desktop selection?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#452 2010-08-10 19:12:32

g33k
Member
Registered: 2007-09-11
Posts: 16

Re: jumanji - a web browser

Try

set single_instance 0

in ~/.config/jumanji/jumanjirc.


arch x86_64 / ratpoison,musca / urxvt / screen / mpd+ncmpcpp / opera,jumanji

Keep Smiling !

Offline

#453 2010-08-11 12:31:23

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: jumanji - a web browser

A step further: There is JumNav version 0.3. Note that this requires to re-patch jumanji.c from jumanji-git of 20100809. The patch is here.

/*****************
 *** Changelog ***
 *****************/
/*
 * Version 0.3
 * - Bug fixed: Handles most links properly now, esp. javascript calls 
 *              on the page
 * - Navigation mode implemented: allows to navigate back and forth the
 *              clickable elements hierarchy on the page instead of 
 *              following hinting labels.
 *              Also allows for some interaction (display mode changes).
 *              Defaults:
 *              #   toggle navigation/hinting mode
 *              n   go to next node in the hierarchy
 *              p   go to previous node in the hierarchy
 *              s   select ("click") the current node
 *              +   toggle display colors
 *              -   toggle a "raw" position mode in order to properly
 *                  align the hinting labels/node rectangles on some pages

Most settings are configurable as before. See the "user configuration section" in the script.

Bear with me. There is still more to come. smile


To know or not to know ...
... the questions remain forever.

Offline

#454 2010-08-12 00:51:18

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: jumanji - a web browser

I am seeing segfaults on a few links now.

Aug 11 20:47:25 wolfdale kernel: jumanji[18133]: segfault at 0 ip (null) sp 00007fff68649818 error 14 in jumanji[400000+11000]
Aug 11 20:48:02 wolfdale kernel: jumanji[18516]: segfault at 0 ip (null) sp 00007fff240f3918 error 14 in jumanji[400000+11000]

This was on a link on si.com, which forwards to fanhouse.com

http://nfl.fanhouse.com/2010/08/11/rex- … -green-fo/


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#455 2010-08-12 01:00:00

Nichollan
Member
From: Stavanger, Norway
Registered: 2010-05-18
Posts: 110

Re: jumanji - a web browser

Well, it does keep me away from Encyclopædia Dramatica.

Do "forward" work for any others?

Last edited by Nichollan (2010-08-12 01:02:21)

Offline

#456 2010-08-12 04:20:35

g33k
Member
Registered: 2007-09-11
Posts: 16

Re: jumanji - a web browser

Inxsible wrote:

I am seeing segfaults on a few links now.

Aug 11 20:47:25 wolfdale kernel: jumanji[18133]: segfault at 0 ip (null) sp 00007fff68649818 error 14 in jumanji[400000+11000]
Aug 11 20:48:02 wolfdale kernel: jumanji[18516]: segfault at 0 ip (null) sp 00007fff240f3918 error 14 in jumanji[400000+11000]

This was on a link on si.com, which forwards to fanhouse.com

http://nfl.fanhouse.com/2010/08/11/rex- … -green-fo/

This segfaults for me as well. The backtrace is same as the one for http://www.hallikainen.org/windoze/winrg.swf, and crash seems to be in libwebkit. Haven't checked if there's already an upstream bug for this.


arch x86_64 / ratpoison,musca / urxvt / screen / mpd+ncmpcpp / opera,jumanji

Keep Smiling !

Offline

#457 2010-08-12 08:50:01

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: jumanji - a web browser

g33k wrote:

This segfaults for me as well. The backtrace is same as the one for http://www.hallikainen.org/windoze/winrg.swf, and crash seems to be in libwebkit. Haven't checked if there's already an upstream bug for this.

yes, but the same link works in chromium. So I am not sure if its only webkit.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#458 2010-08-12 09:44:09

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: jumanji - a web browser

Inxsible wrote:
g33k wrote:

This segfaults for me as well. The backtrace is same as the one for http://www.hallikainen.org/windoze/winrg.swf, and crash seems to be in libwebkit. Haven't checked if there's already an upstream bug for this.

yes, but the same link works in chromium. So I am not sure if its only webkit.

The link segfaults in jumanji here as well but works in midori. Hence probably this is not a webkit only problem.


To know or not to know ...
... the questions remain forever.

Offline

#459 2010-08-15 08:11:13

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: jumanji - a web browser

It would be nice if the hints worked out of the box. I like the defaults just fine, so creating a config every time just to make the hints work gets old.

Offline

#460 2010-08-15 08:19:53

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: jumanji - a web browser

JohannesSM64 wrote:

It would be nice if the hints worked out of the box. I like the defaults just fine, so creating a config every time just to make the hints work gets old.

I think this will be the case as soon as the hinting branch is ready for release. Unfortunately this will take some more time, see neldoreth's comment.


To know or not to know ...
... the questions remain forever.

Offline

#461 2010-08-16 15:01:26

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: jumanji - a web browser

Here's a barebones .desktop entry for jumanji:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Jumanji
GenericName=Web Browser
GenericName[de]=Web-Browser
Exec=jumanji %U
Terminal=false
Categories=Network;WebBrowser;
MimeType=text/html;

Also needs an icon, some translations, and probably a lot of other stuff, just like the zathura one.

Offline

#462 2010-08-16 20:10:34

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: jumanji - a web browser

You have a typo there in config.def.h on line 31:

char* spawn_editor = "xterm -e -sh -c \"vim %s\"";

It's sh without the -


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#463 2010-08-16 20:54:35

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: jumanji - a web browser

Ignore - misunderstood

Last edited by bernarcher (2010-08-16 20:55:39)


To know or not to know ...
... the questions remain forever.

Offline

#464 2010-08-17 00:30:00

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: jumanji - a web browser

I'm experiencing strange performance problems with using the mouse in jumanji. It suffices to simply move around the mouse (inside the webkit view) to cause jumanji and X to use 100% of the CPU.
This seems to be independent of the window manager, of my jumanji configuration, of the operating system, nor does it seem to have anything to do with webkit, since it doesn't happen with uzbl (and uzbl uses webkit too iirc).

Luckily, browsing with the keyboard doesn't seem to be affected. tongue

Am I the first to notice this? Can this be looked into?


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#465 2010-08-17 16:02:58

tlvince
Member
Registered: 2010-07-06
Posts: 68
Website

Re: jumanji - a web browser

Is there a way of adding form spellchecking, perhaps with an external script? Though IIRC Uzbl had this built in so it can be built on top of libwebkit?

Offline

#466 2010-08-18 15:12:23

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: jumanji - a web browser

are you guys able to play anything on dailymotion? I always get the "Error Stream not found" message. it works with firefox+chromium.

Offline

#467 2010-08-18 15:45:04

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: jumanji - a web browser

I get the same message in midori. A webkit problem perhaps?


To know or not to know ...
... the questions remain forever.

Offline

#468 2010-08-18 15:52:44

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: jumanji - a web browser

very likely, same thing with surf, just tried...

Offline

#469 2010-08-18 19:04:55

akira86
Member
Registered: 2009-01-16
Posts: 119

Re: jumanji - a web browser

Hello I am trying jumanji
2 question :
Is there a way to get "follow link" work ? I tried JumNav 0.3 but the necessary http://pastebin.com/6qPGTk6P doesn't work.

Is there a jumanji equivalent to uzbl "formfiller" ?

Thanks in advance

Offline

#470 2010-08-18 19:05:59

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: jumanji - a web browser

I use portix's script from a few pages back and follow link works like a charm.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#471 2010-08-18 19:26:13

akira86
Member
Registered: 2009-01-16
Posts: 119

Re: jumanji - a web browser

I download it (dwb2_hints.js) in ~/.config/jumanji/scripts and put the line

script ~/.config/jumanji/scripts/dwb2_hints

in my ~/.config/jumanji/jumanjirc but then when I press "f" key I just get :
"Follow hint" at the page bottom but nothing appear inside the page.

EDIT : too quick ... it work ... I forget the ".js" at the end of the script nam

Thanks :-)

Last edited by akira86 (2010-08-18 19:29:05)

Offline

#472 2010-08-18 19:27:47

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: jumanji - a web browser

Maybe because you are missing the .js at the end of that command !!

If that doesn't work try

 script file:///home/yourUserName/.config/jumanji/scripts/dwb2_hints.js

Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#473 2010-08-18 20:46:30

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: jumanji - a web browser

Inxsible wrote:

I use portix's script from a few pages back and follow link works like a charm.

Could you do me a favor and link/pastebin the exact script you're using? 

I've tried so many versions of so many scripts and i haven't had working link following since the first version of follow_hints.js was supported.

Offline

#474 2010-08-18 20:49:27

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: jumanji - a web browser

not on my arch box right now. But will soon be. Work time ends in 11 mins wink

Will post it once I get back home.


EDIT: meh...I got bored. I am leaving now. big_smile

Last edited by Inxsible (2010-08-18 20:50:19)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#475 2010-08-18 20:51:09

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: jumanji - a web browser

akira86 wrote:

Hello I am trying jumanji
2 question :
Is there a way to get "follow link" work ? I tried JumNav 0.3 but the necessary http://pastebin.com/6qPGTk6P doesn't work.

Somehow the diff got corrupted in the copying. Could somebody please try this one and report back whether it works:

--- jumanji.c    2010-08-18 20:40:32.000000000 +0000
+++ jumanji.c.new    2010-08-18 20:41:43.000000000 +0000
@@ -1619,6 +1619,14 @@
       Jumanji.Global.buffer = temp;
       gtk_label_set_markup((GtkLabel*) Jumanji.Statusbar.buffer, Jumanji.Global.buffer->str);
     }
+    /* Make sure the follower script gets known of the buffer change */
+    if(Jumanji.Global.mode == FOLLOW)
+    {
+       /* not sure if there will be side effects by the NULL value 
+    * but it will not be used in this case after all */
+      Argument argument = {0, NULL};
+      sc_follow_link(&argument);
+    }
   }
 }
 
@@ -1713,20 +1721,62 @@
     else
       cmd = g_strdup("focus_next()");
   }
-  else if(Jumanji.Global.buffer && Jumanji.Global.buffer->len > 0)
-    cmd = g_strconcat("update_hints(\"", Jumanji.Global.buffer->str, "\")", NULL);
+  else if(Jumanji.Global.buffer)
+  {
+    if(Jumanji.Global.buffer->len > 0)
+    {
+      cmd = g_strconcat("update_hints(\"", Jumanji.Global.buffer->str, "\")", NULL);
+    }
+    else if(Jumanji.Global.buffer->len == 0)
+    {
+      /* probably not needed actually (see below), just for being sure */
+      cmd = g_strconcat("update_hints(\"", "", "\")", NULL);
+    }
+  }
+  else
+  {
+    /* jumanji removes the buffer if it gets cleared on a delete operation
+     * (hopefully there are no nasty side effects) */
+    cmd = g_strconcat("update_hints(\"", "", "\")", NULL);
+  }
 
   run_script(cmd, &value, NULL);
   g_free(cmd);
 
   if(value && strcmp(value, "undefined"))
   {
-    if(open_mode == -1)
-      open_uri(GET_CURRENT_TAB(), value);
+    /* Was there a buffer reset special command returned? */
+    if(value[0] == '\\')
+    {
+      /* Clear and remove the global buffer if it exists. */
+      if(Jumanji.Global.buffer)
+      {
+    g_string_free(Jumanji.Global.buffer, TRUE);
+    Jumanji.Global.buffer = NULL;
+    gtk_label_set_markup((GtkLabel*) Jumanji.Statusbar.buffer, "");
+      }
+      if(strlen(value) > 1)
+      {
+    /* Moreover: was there a mode change command returned? */
+    if(value[1] == '\\')
+    {
+      /* clear modes */
+      change_mode(NORMAL);
+      gtk_widget_hide(GTK_WIDGET(Jumanji.UI.inputbar));
+      webkit_web_view_unmark_text_matches(GET_CURRENT_TAB());
+    }
+      }
+    }
     else
-      create_tab(value, TRUE);
+    {
+      /* There has been an address returned. Go there. */
+      if(open_mode == -1)
+    open_uri(GET_CURRENT_TAB(), value);
+      else
+    create_tab(value, TRUE);
 
-    sc_abort(NULL);
+      sc_abort(NULL);
+    }
   }
 }
 

Last edited by bernarcher (2010-08-18 20:52:21)


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB