You are not logged in.

#226 2011-03-10 23:13:08

cbrunos
Member
Registered: 2010-07-22
Posts: 55

Re: dwb - a webkit web browser

portix, I don't know if this was already asked, but is there a way to make animated gifs work in dwb?


Xmonad gets sh*t done. Fast.

Offline

#227 2011-03-10 23:34:09

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

Re: dwb - a webkit web browser

Animated gifs will not work correctly with the webkit version from the repos, but you can install a development version of libwebkit and build dwb against this newer version. I just tested it with libwebkit-nightly-72146 from AUR and  it seems to work fine. I think the animated-gifs support got broken with version 1.2.7-1 of libwebkit, so any older version also should do the trick.

Offline

#228 2011-03-11 00:19:38

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

Hey portix, it seems that FTP sites like this are not able to be viewed. Is that a webkit (I'm using a recent nightly, not the repo version) issue, or dwb? I'll add it to the bugtracker if it's not a webkit issue.

Thanks!
Scott

Offline

#229 2011-03-11 08:30:25

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

Re: dwb - a webkit web browser

Ftp is not supported by webkit. I currently don't have enough spare time to implement ftp support but i could add a property "ftp-client" to spawn an external ftp-client.

Offline

#230 2011-03-11 18:37:21

cbrunos
Member
Registered: 2010-07-22
Posts: 55

Re: dwb - a webkit web browser

portix wrote:

Animated gifs will not work correctly with the webkit version from the repos, but you can install a development version of libwebkit and build dwb against this newer version. I just tested it with libwebkit-nightly-72146 from AUR and  it seems to work fine. I think the animated-gifs support got broken with version 1.2.7-1 of libwebkit, so any older version also should do the trick.

Ok, in this case I'll wait until they correct libwebkit.


Xmonad gets sh*t done. Fast.

Offline

#231 2011-03-11 20:31:06

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

portix wrote:

Ftp is not supported by webkit. I currently don't have enough spare time to implement ftp support but i could add a property "ftp-client" to spawn an external ftp-client.

That would be a very Unix-y solution smile Thanks! I think spawning a terminal with lftp or something would be quite cool.

Scott

Offline

#232 2011-03-12 01:37:50

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

Re: dwb - a webkit web browser

In  the latest revision there is a new setting "ftp-client", i also renamed the "mail-program" setting to "mail-client" and added a script in src/userscripts called youtube-remote that controls the youtube-videoplayer from dwb-commandline or pauses the video and plays the video with mplayer instead.

Offline

#233 2011-03-14 13:23:38

Psyce
Member
Registered: 2008-05-06
Posts: 51

Re: dwb - a webkit web browser

Hey portix,

is this http://floppymoose.com possible with dwb too?

Offline

#234 2011-03-14 17:25:51

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

Re: dwb - a webkit web browser

This will also work with dwb, except for the flashblocking thing. You can use "user-stylesheet-uri" for setting a path to the stylesheet file.

Offline

#235 2011-03-15 06:27:10

xwhatsit
Member
Registered: 2011-03-15
Posts: 13

Re: dwb - a webkit web browser

Hello,

Just discovered dwb and I'm amazed. Would love to donate some money for the time and effort you've put into this, portix. This is almost my perfect browser.

I have one question at this stage; I'm trying to enable cookies always, for every site. I've set "cookies=true" in the settings file; however this had no effect. However if I add a site to allow.cookies by pressing CC on a site, then it works. Is this expected behaviour? Is there a way to make it enable all cookies by default?

I should qualify this by saying that I'm running a slightly out-of-date dwb; the stable snapshot from the AUR (2011.02.20-1), rather than the dwb-hg package. I'll check this behaviour tomorrow when I'm at work and have the ability to.

Many thanks for your great work. I can see this becoming my main browser very quickly.

Offline

#236 2011-03-15 08:18:49

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

Re: dwb - a webkit web browser

xwhatsit wrote:

I have one question at this stage; I'm trying to enable cookies always, for every site. I've set "cookies=true" in the settings file; however this had no effect. However if I add a site to allow.cookies by pressing CC on a site, then it works. Is this expected behaviour? Is there a way to make it enable all cookies by default?

No, this is not the expected behaviour. I have just fixed it, so if you use the -hg version, it should work. Maybe i will also create a new snapshot today.

Offline

#237 2011-03-15 21:42:21

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

Re: dwb - a webkit web browser

Is there a setting to change the default scroll step size?


transcend to the fifth abode

Offline

#238 2011-03-15 22:21:49

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

Re: dwb - a webkit web browser

ntness wrote:

Is there a setting to change the default scroll step size?

No there wasn't a setting yet, so i created one, check the latest revision.
Edit: it's called "scroll-step".

Last edited by portix (2011-03-15 22:26:17)

Offline

#239 2011-03-15 22:30:16

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

Re: dwb - a webkit web browser

portix wrote:
ntness wrote:

Is there a setting to change the default scroll step size?

No there wasn't a setting yet, so i created one, check the latest revision.
Edit: it's called "scroll-step".

Great! smile
This browser is really shaping up nicely--thanks for all your work.


transcend to the fifth abode

Offline

#240 2011-03-16 06:02:29

xwhatsit
Member
Registered: 2011-03-15
Posts: 13

Re: dwb - a webkit web browser

portix wrote:
xwhatsit wrote:

I have one question at this stage; I'm trying to enable cookies always, for every site. I've set "cookies=true" in the settings file; however this had no effect. However if I add a site to allow.cookies by pressing CC on a site, then it works. Is this expected behaviour? Is there a way to make it enable all cookies by default?

No, this is not the expected behaviour. I have just fixed it, so if you use the -hg version, it should work. Maybe i will also create a new snapshot today.

Marvellous. Works perfectly now. Thank-you very much!

Offline

#241 2011-03-17 09:08:54

xwhatsit
Member
Registered: 2011-03-15
Posts: 13

Re: dwb - a webkit web browser

I used to use Vimperator (although it's simply too slow for my ancient laptop), and I used a vim-style feature quite a lot when scouring HTML API docs (quite handy with Qt's docs); Ctrl-A, which increments the last number in a URL, and Ctrl-X, which decrements the last number in a URL.

Here are a couple of quick-and-dirty Perl userscripts to do the same thing. Apologies that the decrement script is longer; in Perl, I found out, the decrement operator is not `magic' like the increment operator (in terms of preserving leading zeroes).

#!/usr/bin/perl
# dwb: Control x

$URL = $ARGV[0];
$URL =~ /(.*?)(\d+)(\D*)$/;

$number=$2;
$length=length($number);
$number--;
$format="open %s%0" . $length . "d%s\n";
printf($format, $1, $number, $3);
#!/usr/bin/perl
# dwb: Control a

$URL = $ARGV[0];
$URL =~ /(.*?)(\d+)(\D*)$/;

$number=$2;
$number++;

print "open $1$number$3\n"

Offline

#242 2011-03-18 18:29:22

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

Re: dwb - a webkit web browser

Youtube-remote only works with enable-plugins set to true. Is there a way to disable plugins and still have mplayer called when visiting a youtube page?


transcend to the fifth abode

Offline

#243 2011-03-19 14:18:46

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

Re: dwb - a webkit web browser

No, this is not possible because the video is not downloaded if plugins are disabled. But of course you can use youtube-dl or cclive in a script to download the video and play it with mplayer.
I mainly wrote the script to watch youtube-videos fullscreen because pausing the video and playing it in mplayer instead uses less cpu.

Last edited by portix (2011-03-19 14:21:40)

Offline

#244 2011-03-20 21:10:09

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: dwb - a webkit web browser

keep up the awesome work man big_smile. love dwb.

on a side note- any idea why cpu usage shoots up to 100% when viewing pages such as http://darcsden.com/alex/darcsden/browse/LICENSE ?

Last edited by chris-kun (2011-03-20 21:11:28)


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#245 2011-03-20 23:55:49

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

Re: dwb - a webkit web browser

chris-kun wrote:

on a side note- any idea why cpu usage shoots up to 100% when viewing pages such as http://darcsden.com/alex/darcsden/browse/LICENSE ?

This is a webkit-problem, it happens with all webkit-browsers that use libwebkit from the repos. Building dwb against a development version of libwebkit (libwebkit-git or libwebkit-nightly) should fix this.

Offline

#246 2011-03-22 15:48:50

Psyce
Member
Registered: 2008-05-06
Posts: 51

Re: dwb - a webkit web browser

Hey portix,

for my understanding. Where is the problem to block flash? Chrome got flashblock (https://chrome.google.com/extensions/de … abnl?hl=de) plugin so webkit should have a definition for flash. Is this a lib problem?

Your browser is really nice can't find anything that is similar in look&feel but I have the issues with flash and a little fight with the blocklist. Thats prevents me from using dwb as main browser.

Offline

#247 2011-03-22 19:30:43

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

Re: dwb - a webkit web browser

It is possible to block flash and replace it with a clickable widget but there is a bug in webkitgtk's implementation, the widget will only show up, after scrolling the webpage, but i think i found a solution for this, but it needs some testing. I will commit it in the next days. I will not implement a whitelist or blacklist for now since i have some exams at university the next weeks. so i have not much spare time.

Offline

#248 2011-03-23 13:12:01

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

Re: dwb - a webkit web browser

I already commited a plugin-blocker today. Just enable 'plugin-blocker' to get it work. Currently the plugin-blocker needs javascript enabled on the site, the plugin is blocked, but since most sites  with flash-content need javascript anyway, this shouldn't be a big disadvantage but I will change this in future revisions.

Edit: It also works now with disabled javascript.

Last edited by portix (2011-03-23 23:22:27)

Offline

#249 2011-03-24 09:20:58

xwhatsit
Member
Registered: 2011-03-15
Posts: 13

Re: dwb - a webkit web browser

Hi portix, like that the plugin blocker is back again. Speeds things up immensely!

However it does seem a little flaky right now. I'm using the latest hg pull (yaourt says 341-1), and when I go to this site: http://benkrasnow.blogspot.com/2011/03/ … scope.html with the plugin blocker enabled, I just get a grey square, no click-to-enable widget like I get when I go to Youtube etc. Oddly enough, if I then type `yy' to yank the URL on that page, dwb segfaults.

Offline

#250 2011-03-24 11:14:29

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

Re: dwb - a webkit web browser

I see, there is a problem when the plugin comes from a redirected site in an iframe. The plugin-blocker blocks the plugin and replaces it with a link at the same position, but i currently see no way to get the correct iframe when there is more than one iframe on that site, because accessing iframes from javascript is not possible and webkitgtk doesn't support direct access to the document, but i will have a look into it the next days.
One possible solution could be to create links at the top or bottom of the page to all plugins inside iframes but i'm not sure how practicable this would be.

Edit: The plugin-blocker should also work now with plugins embedded in iframes.

Last edited by portix (2011-03-24 23:02:35)

Offline

Board footer

Powered by FluxBB