You are not logged in.

#1976 2014-02-18 09:54:17

mentat
Member
From: France
Registered: 2009-01-13
Posts: 138
Website

Re: dwb - a webkit web browser

Thanks for answer and explanations. It's complete my understanding.

I have already prerequisites to launch the script: userscripts and greasemonkey directory.
I'll try to force all 'video' tags in all page to stop preloading so here the script:

var videos = document.getElementsByTagName("video");
for (var i=videos.length-1; i>=0; --i) {
            videos[i].preload = "none";
}

The test's working well:

http://www.w3.org/2010/05/video/mediaevents.html

I can switch 'auto' 'none' as will.

But sadly it doesn't stop webkit to download video in cache to save bandwith.
Maybe someone have a solution.

Offline

#1977 2014-02-22 10:02:26

Lala0KjOA
Member
Registered: 2011-12-23
Posts: 123
Website

Re: dwb - a webkit web browser

Sorry for the dumb question, but how do I change dwb icon? I tried to change the .png in pixmaps and the icon in the .desktop file, but it had no effect.

Offline

#1978 2014-02-22 10:32:56

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

Re: dwb - a webkit web browser

The window icon is compiled into dwb, it cannot be changed without recompiling. If you want to change it you have to replace src/icon.xpm.

Offline

#1979 2014-02-23 22:25:00

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: dwb - a webkit web browser

Hey, not sure if this was asked before but is there a scroll_right / scroll_left 100% or 100 or something like that?  Kind of like scroll_top or scroll_bottom does for vertical scrolling?  I tried scroll_right VALUE but it still just scrolls over by the predetermined factor in dwb, I guess.

Offline

#1980 2014-02-23 22:39:37

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

Re: dwb - a webkit web browser

No, there isn't such a shortcut. I'm not sure if i'll create one, however till i have decided you can use a simple script for it:

//!javascript

bind("^", function() {
    var adjustment = tabs.current.scrolledWindow.hadjustment;
    adjustment.value = adjustment.lower;
});
bind("$", function() {
    var adjustment = tabs.current.scrolledWindow.hadjustment;
    adjustment.value = adjustment.upper - adjustment.pageSize;
});

Last edited by portix (2014-02-23 23:47:08)

Offline

#1981 2014-02-24 00:37:30

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: dwb - a webkit web browser

@portix:  That works just how I need it to.  No need to build in dwb if you don't want since userscripts like this can enable such behavior; I'm just no good with javascript!  smile  Thanks for the quick & helpful reply, as always.

Offline

#1982 2014-02-28 22:17:50

moist
Member
Registered: 2013-04-21
Posts: 12

Re: dwb - a webkit web browser

I noticed a minor esthetic (autistic?) "issue". The bottom bar changes height temporarily when the loading/progress bar pops up.
It doesn't happen with all fonts; Terminus 12px and Fira Mono 9 don't have the issue, Tamzen and Tamsyn do (to give a few examples).

Offline

#1983 2014-03-01 20:55:26

regulament
Member
Registered: 2014-02-15
Posts: 67

Re: dwb - a webkit web browser

Any idea how I can set dwb for use with a Retina MacBook pro?

EDIT: Solved. Set default zoom to 2.00, full-content-zoom( otherwise images will still be small and text huge) and the font for ui to monospace 16 or something like that.

Last edited by regulament (2014-03-02 09:37:14)

Offline

#1984 2014-03-02 13:34:01

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

Re: dwb - a webkit web browser

@moist: are you using the gtk3-version?

Offline

#1985 2014-03-02 14:26:56

moist
Member
Registered: 2013-04-21
Posts: 12

Re: dwb - a webkit web browser

I'm using dwb-git, happens in dwb-gtk3-git as well for me.

Last edited by moist (2014-03-02 14:29:14)

Offline

#1986 2014-03-02 22:50:49

cris9288
Member
Registered: 2013-01-07
Posts: 347

Re: dwb - a webkit web browser

Dwb fails to go into insert mode automatically after pages (google.com for example) load. This used to work correctly...has this feature been removed?

Offline

#1987 2014-03-03 08:10:48

sekret
Member
Registered: 2013-07-22
Posts: 203

Re: dwb - a webkit web browser

Do you have javascript enabled for google.com?

Offline

#1988 2014-03-03 09:06:32

tonk
Member
Registered: 2013-05-15
Posts: 38

Re: dwb - a webkit web browser

moist wrote:

I noticed a minor esthetic (autistic?) "issue". The bottom bar changes height temporarily when the loading/progress bar pops up.
It doesn't happen with all fonts; Terminus 12px and Fira Mono 9 don't have the issue, Tamzen and Tamsyn do (to give a few examples).

Same here (gtk3-git). But only if i change the default gtk-theme (Raleigh).
And some other minor thing i've noticed: with hidden statusbar "max-visible-completions" is ignored for the bookmark-menu.

Last edited by tonk (2014-03-03 09:08:34)

Offline

#1989 2014-03-04 10:02:20

Mr_Kartoffelsalat
Member
Registered: 2012-04-17
Posts: 29

Re: dwb - a webkit web browser

portix wrote:

I removed webkit's default auth-dialog in git, dwb now prompts for the username and password without using a dialog.

Miraculously after updating to webkitgtk2 2.2.5-2 I now have both - the default auth-dialog and the dwb prompt which pretty much prevents me from entering my router-configuration. It only works if I ignore the default auth-dialog and use the dwb prompt (which I prefer anyway). Took me a while to figure that out. Is there a way to deactivate the auth-dialog again? I'm using dwb-git 2014.03.03.g62da639-1 .

Last edited by Mr_Kartoffelsalat (2014-03-04 10:03:40)

Offline

#1990 2014-03-06 00:39:59

sw2wolf
Member
From: China
Registered: 2009-06-08
Posts: 99
Website

Re: dwb - a webkit web browser

After removing "-Werror" from Makefile, dwb is successfully built on FreeBSD 9.1.
dwb $ gmake PREFIX=~/dwb install GTK=3

$~/dwb/bin/dwb -V
    This is : dwb-git
    Version : commit 2014-03-15 c51aa9c
      Built : Mar 17 2014 14:07:20
  Copyright : (C) 2010-2014 Stefan Bolte
    License : GNU General Public License, version 3 or later
       GTK+ : 3.8.8
WebKitGTK+ : 1.8.3
    LibSoup : <2.42
      cairo : 1.10.2

With ~/.config/dwb/settings setup correctly, dwb works now!

BTW, Are there any difference between `dwb` and `dwb --fifo` ?

Last edited by sw2wolf (2014-03-17 09:30:25)


e^(π⋅i) + 1 = 0

Offline

#1991 2014-03-06 00:50:45

HalosGhost
Member
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 1,486
Website

Re: dwb - a webkit web browser

sw2wolf wrote:

snip

Please use code tags when posting any code snippets or terminal output. Thank you!

All the best,

-HG


"All errors are ᴘᴇʙᴋᴀᴄ errors—It's just a matter of narrowing down which keyboard and chair." -Trilby
\ldots

Offline

#1992 2014-03-06 09:08:07

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

Re: dwb - a webkit web browser

@sw2wolf: Do you use glibc or a different libc?

Offline

#1993 2014-03-07 02:20:51

sw2wolf
Member
From: China
Registered: 2009-06-08
Posts: 99
Website

Re: dwb - a webkit web browser

portix wrote:

@sw2wolf: Do you use glibc or a different libc?

By removing -Werror from Makefiles, dwb builds successful now!


e^(π⋅i) + 1 = 0

Offline

#1994 2014-03-07 15:20:10

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 121
Website

Re: dwb - a webkit web browser

sw2wolf wrote:
portix wrote:

@sw2wolf: Do you use glibc or a different libc?

By removing -Werror from Makefiles, dwb builds successful now!

That doesn't fix the problem, it just sweeps it under the rug.


Fear me! I have root! Sometimes...

Offline

#1995 2014-03-07 15:23:27

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

Re: dwb - a webkit web browser

Indeed, it would be nice if you could provide some more information. Are you using some *BSD? If so this is not the right place to ask but you can always ask on the irc channel on freenode.

Offline

#1996 2014-03-07 20:45:57

jenerated
Member
Registered: 2014-02-05
Posts: 5

Re: dwb - a webkit web browser

Mr_Kartoffelsalat wrote:
portix wrote:

I removed webkit's default auth-dialog in git, dwb now prompts for the username and password without using a dialog.

Miraculously after updating to webkitgtk2 2.2.5-2 I now have both - the default auth-dialog and the dwb prompt which pretty much prevents me from entering my router-configuration. It only works if I ignore the default auth-dialog and use the dwb prompt (which I prefer anyway). Took me a while to figure that out. Is there a way to deactivate the auth-dialog again? I'm using dwb-git 2014.03.03.g62da639-1 .

This is a bug that's showing up in midori, uzbl and luakit as well. There's been a bug report filed, but it's looking like the fix might end up being "port your application to the webkit2 API".

https://bugs.webkit.org/show_bug.cgi?id=129899

Offline

#1997 2014-03-10 11:04:13

spupy
Member
Registered: 2009-08-12
Posts: 218

Re: dwb - a webkit web browser

I'm having some stability problems with DWB lately, it's crashing randomly. It's rare but still annoying when it happens.
Is running it from a terminal and observing the output the best way to find the source of the problems?


There are two types of people in this world - those who can count to 10 by using their fingers, and those who can count to 1023.

Offline

#1998 2014-03-10 11:39:24

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

Re: dwb - a webkit web browser

Are you using dwb-git or dwb from the repos? I introduced several bugs the last days in dwb-git which caused dwb to crash because i merged a branch a bit too early but they all should be fixed now. To find the source you could create a backtrace and create a ticket on the bugtracker. There is  a script in the repo that builds dwb with debugging symbols and runs it in gdb. You'll find the source here.

Offline

#1999 2014-03-10 23:52:05

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 969
Website

Re: dwb - a webkit web browser

Hello Portix and friends.  Trying to get a decent mouse wheel scroll rate.  Unfortunately mouse wheel up/down registers "scroll_{up,down}".  scroll{up,down} seems to scroll by 2 lines.  Is there a way to change this value to something else like 4 or 5?  Or change mouse wheel up/down to register "scroll_halfpage_{up,down}"?

Normally I navigate with scroll_halfpage_{up,down} but that is binded to D and U and so when I am relaxing in my chair, I like to hold the mouse and just scroll with one hand and read.

I tried to use the help you gave on page 72 but here is what I came up with (but doesn't work):

   Signal.connect("scroll", function(w, e) {                                                                                                                
           if (e.direction == "up") {
               execute("scroll_halfpage_up");
           }
               else if (e.direction == "down")
           {
               execute("scroll_halfpage_down");
           }
   });

github       bible       blog

Offline

#2000 2014-03-11 00:06:53

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

Re: dwb - a webkit web browser

You can override the default scrolling behaviour in the script:

//!javascript

Signal.connect("scroll", function(w, e) {
    var adj = w.scrolledWindow.vadjustment;
    if (e.direction == "up") {
        adj.value = Math.max(adj.lower, adj.value - 0.5 * adj.pageSize);
        return true;
    }
    else if (e.direction == "down") {
        adj.value = Math.min(adj.upper-adj.pageSize, adj.value + 0.5 * adj.pageSize);
        return true;
    }
});

That script will cause the mouse to scroll a half page down/up. You can change the scrollstep by changing adj.value - 0.5 * adj.pageSize/adj.value + 0.5 * adj.pageSize to your liking.

Offline

Board footer

Powered by FluxBB