You are not logged in.

#1126 2012-10-04 20:17:52

portix
Member
Registered: 2009-01-13
Posts: 755

Re: dwb - a webkit web browser

rix wrote:

Already tried. Don't work here.

That was a fail paste, there is the closing bracket missing.

Offline

#1127 2012-10-04 20:20:08

rix
Member
Registered: 2012-07-25
Posts: 221

Re: dwb - a webkit web browser

I edit my previous post. wink


---
Edit:
referring to my previous post, I'd try with a Bash "if... else" conditional statement in the "spawnSync" function. Or not?

Escaping work.
"Else... if" in "spawnSync" don't.

Last edited by rix (2012-10-04 20:32:42)

Online

#1128 2012-10-04 20:42:12

portix
Member
Registered: 2009-01-13
Posts: 755

Re: dwb - a webkit web browser

I will not turn this thread into a javascript tutorial, you could parse stdout directly in javascript but if you want to do it in bash i would recommend to write a bash script and call that script with spawnSync, if you need some more hints, there is also an irc channel on freenode.

Offline

#1129 2012-10-04 20:48:01

rix
Member
Registered: 2012-07-25
Posts: 221

Re: dwb - a webkit web browser

@ portix:
that wasn't my intention.
Thanks for your precious suggestions.

Online

#1130 2012-10-04 21:19:29

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: dwb - a webkit web browser

rix wrote:

@ portix:

portix wrote:

[...] I don't understand why you want this information in the statusbar of a webbrowser. [...]

Because I want a minimal system (also for the lack of memory).

For me, a minimal system also includes the idea of keeping it simple to configure and not patching up a program with hundreds of JS scripts just to show the time. That means a tmux statusbar is probably enough and when you've got another window open, just Ctrl+Tab¹ and you see today's date. Or you try tint2, a very good-looking and tiny panel. Integrates wonderfully with my tmux statusbar (and yes, it doubles some feature, but it saves me a lot of other trouble…)

Army: I tried bandcamp with cookies allowed for it… no avail. But as I said, this is probably just a codec/package issue then

edit:

¹ I meant Alt+Tab, sorry

Last edited by jakob (2012-10-04 22:24:05)

Offline

#1131 2012-10-04 21:27:46

rix
Member
Registered: 2012-07-25
Posts: 221

Re: dwb - a webkit web browser

@ jakob:
you're quite right for me. "Quite" because in this case the patching wasn't so hard (thanks to portix) and everything here are working fine. And then it was just one Js for the entire status bar.
Also I don't get the "Ctrl+Tab" thing.

But we're already enough OT.
Thanks for your suggestions.


@ portix:
one Dwb related thing (not Js).
Is it possible some way to have a function that will make a search of the hilighted word in a search engine? In FireFox I used to select the word, right click for the menu, and do "Search with Google for [word]".
Thanks

Last edited by rix (2012-10-04 21:34:29)

Online

#1132 2012-10-04 22:02:58

portix
Member
Registered: 2009-01-13
Posts: 755

Re: dwb - a webkit web browser

If you select text you can press pP, that will search for the text with your default searchengine. Or you can after selecting text with the left mouse button keep the left mouse button pressed and press the right mouse button, that will also search with your default searchengine.
Control+Tab just switches between the current and the last focused tab.

Offline

#1133 2012-10-04 22:51:30

avx
Member
Registered: 2011-07-05
Posts: 71

Re: dwb - a webkit web browser

Can someone verify/help with link following on 4fuckr.com (imageboard, sometimes NSFW)? Pressing 'f' and then XY just reloads the page. ';i' doesn't help either, since they're using some "funky" JS trying to hide stuff.

Other than that, I must say I'm pretty much impressed, tried it yesterday (coming from luakit) and pretty much everything works ootb - except for the tiling, which unfortunately has been removed(I'm sometimes forced to use a webchat, thus having a small window always visible would have been nice).

Offline

#1134 2012-10-05 02:33:14

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: dwb - a webkit web browser

Shinryuu wrote:

Check your widget packing too.

Ah, that did it. Changing from Twds to twds produces the desired behaviour. Tanks.

Offline

#1135 2012-10-05 09:10:20

rix
Member
Registered: 2012-07-25
Posts: 221

Re: dwb - a webkit web browser

@ portix:
thank so much.

About <^Tab> I think jakob was referring to Tmux.

Online

#1136 2012-10-05 10:15:28

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: dwb - a webkit web browser

I have been getting lots of failed SSL handshakes on https websites. Any idea what is causing this?

Offline

#1137 2012-10-05 12:14:06

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: dwb - a webkit web browser

rix wrote:

About <^Tab> I think jakob was referring to Tmux.

I wasn't exactly referring to tmux rather to your wm that probably has alt+tab functionality, but I mistyped it. Corrected my post.

Offline

#1138 2012-10-05 12:15:15

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 664

Re: dwb - a webkit web browser

Disable ssl-strict...

Offline

#1139 2012-10-05 12:21:26

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: dwb - a webkit web browser

Thanks.

Offline

#1140 2012-10-05 13:06:44

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 664

Re: dwb - a webkit web browser

avx wrote:

[...]
Other than that, I must say I'm pretty much impressed, tried it yesterday (coming from luakit) and pretty much everything works ootb - except for the tiling, which unfortunately has been removed(I'm sometimes forced to use a webchat, thus having a small window always visible would have been nice).

There's still some left, though; use xv to toggle visibility of a tab... Other than that, then just use two instances...

Offline

#1141 2012-10-05 20:01:06

rix
Member
Registered: 2012-07-25
Posts: 221

Re: dwb - a webkit web browser

@ portix:
is it possible text selecting through keyboard?
Thanks.

Online

#1142 2012-10-05 20:11:41

portix
Member
Registered: 2009-01-13
Posts: 755

Re: dwb - a webkit web browser

It's only possible with the webkit builtin caret-browsing.

Offline

#1143 2012-10-05 20:24:06

rix
Member
Registered: 2012-07-25
Posts: 221

Re: dwb - a webkit web browser

@ portix:
I've missed the option. Sorry.
Now I've found and enable it but I don't understand how does it work.

Online

#1144 2012-10-05 20:28:05

portix
Member
Registered: 2009-01-13
Posts: 755

Re: dwb - a webkit web browser

If you enable it you have a cursor on the web page, you can then navigate with cursor keys and mark text with shift. You don't have vi-like keybindings because it's a webkit builtin setting.

Offline

#1145 2012-10-05 20:36:54

rix
Member
Registered: 2012-07-25
Posts: 221

Re: dwb - a webkit web browser

@ portix:
but I must do a click on the page first. Or am I wrong?
So it is click for start selecting text and Esc for start using vi-like keybindings again?

Last edited by rix (2012-10-05 20:37:32)

Online

#1146 2012-10-06 18:12:46

Ratfink
Member
From: North Carolina
Registered: 2012-10-06
Posts: 1
Website

Re: dwb - a webkit web browser

I don't know if anyone has reported this yet or not, but hint mode doesn't support voting on comments on Reddit.  The arrows get hints, but typing the hints results in nothing happening.

Offline

#1147 2012-10-06 21:12:22

rix
Member
Registered: 2012-07-25
Posts: 221

Re: dwb - a webkit web browser

rix wrote:

@ portix:
but I must do a click on the page first. Or am I wrong?
So it is click for start selecting text and Esc for start using vi-like keybindings again?

I've also noticed that often Dwb crashes while browsing. If you need more infos (such is sure) let me know.


---
Edit:
this isn't directly inherent to the thread but I've noticed that the "X: maximum number clients reached" issue is still there. Even with Dwb and without Firefox.

Last edited by rix (2012-10-08 20:14:12)

Online

#1148 2012-10-09 17:06:29

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: dwb - a webkit web browser

I was currently editing my band's homepage via CMS, when dwb crashed. Tried it again, dwb crashed again. Then I started dwb from a terminal. Here's the interesting lines

STACK: [value] [anonymous] [[native code]]
Received SIGSEGV, trying to clean up.

Last 6 stack frames: 

  6: dwb() [0x40d050]
  5: dwb() [0x41fb05]
  4: /usr/lib/libc.so.6(+0x35020) [0x7f901044f020]
  3: /usr/lib/libjavascriptcoregtk-1.0.so.0(_ZNK3JSC7JSValue3getEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE+0x31) [0x7f9010c3ed41]
  2: /usr/lib/libjavascriptcoregtk-1.0.so.0(cti_op_get_by_id+0x5f) [0x7f9010c6d7af]
  1: [0x7f8fc4ba7148]
[1]    5501 segmentation fault (core dumped)  dwb

Maybe this helps. In the last few days dwb seemed to crash more often. Might be because right now I'm searching on sites which are crap, but maybe it's caused by something else.

edit: What I forgot to say: I didn't test it with other webkit browsers, so it might be (and I suspect it is) a pure webkit problem.

Last edited by Army (2012-10-09 17:07:20)

Offline

#1149 2012-10-09 18:50:54

portix
Member
Registered: 2009-01-13
Posts: 755

Re: dwb - a webkit web browser

That seems to be a bug in the script-code, to confirm this you could disable all scripts and see if it still crashes. A backtrace would also be helpful.

Offline

#1150 2012-10-09 20:20:13

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: dwb - a webkit web browser

I suspected that this is the case here. But is a bug in a javascript code supposed to be able to crash a browser? I really don't know much about such stuff, but that doesn't look good to me!

Offline

Board footer

Powered by FluxBB