You are not logged in.

#976 2012-08-16 08:58:15

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

Re: dwb - a webkit web browser

I never had the problem that i couldn't leave fullscreen, the only issue i have
is that sometimes i only have audio but no video in fullscreen mode using dwm
and nvidia.

Offline

#977 2012-08-16 10:12:15

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

Re: dwb - a webkit web browser

jakob wrote:

Yes, had the same issue: when clicking <Esc> or the button to end fullscreen, the video played on for another 10-30 seconds and I also thought about killing dwb, but then suddenly, it was back to normal size again and I could simply close the tab and continue using dwb…

Thanks jakob! Next time I'll be a bit more patient smile

Offline

#978 2012-08-16 10:15:08

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

Re: dwb - a webkit web browser

Do you have this fullscreen issue with all html5 videos or only with the ones created by the script?

Offline

#979 2012-08-16 10:54:27

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

Re: dwb - a webkit web browser

portix wrote:

Do you have this fullscreen issue with all html5 videos or only with the ones created by the script?

Could you give us a link to try another html5 video with dwb? I'm not too much into online streaming sites, so I don't know which providers offer html5 straight away…

Offline

#980 2012-08-16 11:00:30

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

Re: dwb - a webkit web browser

I think most or even all videos on vimeo are html5 videos, at least with disabled plugins. The fullscreen button in the right corner is no real fullscreen, you have to use the right click context menu.

Offline

#981 2012-08-16 11:05:49

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

Re: dwb - a webkit web browser

@portix, this happens with all html5 videos. edit: To be more precise, it definitely happens if the built-in webkit video player is being used. If it also happens on e.g. vimeo with its own html5 player, I'll check it right away.
@jakob, basically you can open a youtube video with the youtube html5 script and click on the link of your preferred resolution in this bar created by the script. This doesn't download the video, but opens it.

Last edited by Army (2012-08-16 11:09:37)

Offline

#982 2012-08-16 11:17:59

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

Re: dwb - a webkit web browser

portix wrote:

I think most or even all videos on vimeo are html5 videos, at least with disabled plugins.

This was the reason why I voted for removing the plugin blocker and making 'ph' to enable plugins for specific urls. But the plugin blocker is quite handy as well... Difficult!

portix wrote:

The fullscreen button in the right corner is no real fullscreen, you have to use the right click context menu.

Actually the fullscreen button provides real fullscreen for me, the context menu doesn't provide a fullscreen switch.

Offline

#983 2012-08-16 11:24:26

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

Re: dwb - a webkit web browser

Army wrote:

@portix, this happens with all html5 videos. edit: To be more precise, it definitely happens if the built-in webkit video player is being used. If it also happens on e.g. vimeo with its own html5 player, I'll check it right away.

I can't get vimeo play html5 videos: Installed flashblock in firefox but all I get is a black frame w/ no alternative video playing. Same in chromium: Disabling flash and visiting vimeo still gives me flash vids… but as I don't watch too many videos an yt anyway, the fullscreen thing isn't a real issue here…

@jakob, basically you can open a youtube video with the youtube html5 script and click on the link of your preferred resolution in this bar created by the script. This doesn't download the video, but opens it.

Army: got that, thx!

Offline

#984 2012-08-16 13:43:31

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

Re: dwb - a webkit web browser

Army wrote:

This was the reason why I voted for removing the plugin blocker and making 'ph' to enable plugins for specific urls. But the plugin blocker is quite handy as well... Difficult!

I might add a native shortcut for toggling plugins, but i like the clickable plugin blocker. Here is just a quick script that implements toggling enable-plugins on the fly and that uses a whitelist.

#!javascript

const NEVER = 0; 
const ENABLE = 1; 
const DISABLE = 2; 
const ALWAYS = 3; 

// shortcut
var toggle = "@F6@";
// whether to automatically reload if shortcut is pressed
var autoreload = ENABLE;
// path to the whitelist
var whitelist = data.configDir + "/" + data.profile + "/enable_plugins.whitelist";

var wl = JSON.parse(io.read(whitelist)) || [];

bind(toggle, function() {
  var wv = tabs.current;
  var domain = wv.mainFrame.domain;
  var idx = wl.indexOf(domain);
  if (idx == -1) {
    wl.push(domain);
    io.notify("Plugins enabled");
    if (autoreload & ENABLE) {
      wv.reload();
    }
  }
  else {
    wl.splice(idx, 1);
    io.notify("Plugins disabled");
    if (autoreload & DISABLE)
      wv.reload();
  }
  io.write(whitelist, "w", JSON.stringify(wl));
});

signals.connect("navigation", function(wv, frame, request) {
  if (frame === wv.mainFrame)
    wv.settings.enablePlugins = wl.indexOf(util.domainFromHost(request.message.uri.host)) != -1;
  return false;
});
// vim: set ft=javascript:

There is also a perdomainsettings plugin that can be used to enable/disable plugins for certain domains.

Last edited by portix (2012-08-16 14:06:27)

Offline

#985 2012-08-17 10:19:45

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

Re: dwb - a webkit web browser

Nice script! I've been using it for a day now and it's great. One thing is weird though: With disabled plugins, youtube will automatically switch to its html5 video player. If you then also use the youtube_html5 script, these two html5 video players fight against each other. Enabling plugins for youtube solves it. It's still kinda weird big_smile

Here's a small suggestion, maybe you want to implement it.

Offline

#986 2012-08-18 22:38:01

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: dwb - a webkit web browser

Is the mouse scroll with middle click working for you guys? (mouse.js script)

Offline

#987 2012-08-18 22:57:26

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

Re: dwb - a webkit web browser

I don't even know if mouse.js is still working with the latest revision but
userscripts only work with the the userscripts extension.
I don't use any userscripts so there is no longer a native support for
userscripts.
In the latest revision scripts in ~/.conifg/dwb/scripts are no longer loaded
automatically, but they can be loaded by the extension that also handles
greasemonkey or scriptish rules, you can load the extension with

extensions.load('userscripts'); 

The extension first looks for scripts in ~/.config/dwb/scripts but you can also
pass an array of paths to scripts that should be loaded by the extension, e.g.

extensions.load("userscripts", [ "/path/to/script1", "/path/to/script2" ]); 

Offline

#988 2012-08-18 23:22:13

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: dwb - a webkit web browser

Ah, OK, I didn't think it depended on the userscripts extension. Mouse gestures are OK, but autoscroll is a no-go. Thanks smile

Offline

#989 2012-08-18 23:25:24

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

Re: dwb - a webkit web browser

Ok, i think i'll write a new script for autoscroll, mouse.js was just a quick hack anyway.

Offline

#990 2012-08-20 09:07:27

beatle
Member
Registered: 2011-08-09
Posts: 16

Re: dwb - a webkit web browser

I am looking for an alternative to firefox+vimperator, and am testing dwb right now, but I have encountered a problem with it that seams to affect also luakit, uzbl, vimprobable2 and jumanji, namely, on some web pages random lines of text have all but the first couple of words invisible. Everything shows up when I highlight the text with mouse. Possible pattern might be that wordpres sites are affected. For example this one for me is broken: http://up-ship.com/blog/

Offline

#991 2012-08-20 09:32:26

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

Re: dwb - a webkit web browser

Could you provide two screenshots? I don't have firefox installed and don't intend to right now (slow inet connection).

Btw, this seems to be a webkit bug (all other browsers you mentioned use the same webkit as well), so not dwb's fault.

Last edited by Army (2012-08-20 09:33:23)

Offline

#992 2012-08-20 10:29:38

beatle
Member
Registered: 2011-08-09
Posts: 16

Re: dwb - a webkit web browser

Army wrote:

Could you provide two screenshots? I don't have firefox installed and don't intend to right now (slow inet connection).

Btw, this seems to be a webkit bug (all other browsers you mentioned use the same webkit as well), so not dwb's fault.

Sure!
Here is with firefox:
tZjYxcw

And here with dwb:
tZjYxcA

I also suspected that the fault lies with the webkit, but didn't want to start a new thread for it in case it is a known thing for dwb users.

Offline

#993 2012-08-20 12:50:11

kismet010
Member
Registered: 2009-09-02
Posts: 137

Re: dwb - a webkit web browser

# Feature Request:
Hint mode for "mouse over", useful for CSS menu, buttons, etc. where you don't want to click but displace its options (or show a tooltip). There's a lot of them for example in Google sites and for now it's only possible using a mouse.
Thanks!

Offline

#994 2012-08-20 13:05:12

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

Re: dwb - a webkit web browser

@beatle, oh crap this looks horrible!!! This should definitely be reported to the webkit bug tracker.

Offline

#995 2012-08-20 13:50:53

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

Re: dwb - a webkit web browser

kismet010 wrote:

# Feature Request:
Hint mode for "mouse over", useful for CSS menu, buttons, etc. where you don't want to click but displace its options (or show a tooltip). There's a lot of them for example in Google sites and for now it's only possible using a mouse.
Thanks!

There is already a ticket on the bug-tracker. The problem implementing this is iirc, that some tooltips are constructed using the css hover attribute and there is no way faking hovering over that element without user interaction besides warping the mouse-pointer to that element, but warping the mousepointer is no acceptable solution.

Offline

#996 2012-08-21 20:38:16

Reded
Member
From: Manchester, England
Registered: 2012-02-21
Posts: 242

Re: dwb - a webkit web browser

EDIT:

Stupid mistake on my part, the userscript file started with #! javascript *Notice the space* big_smile All fixed.

Last edited by Reded (2012-08-21 20:40:44)


"Some humans would do anything to see if it was possible to do it. If you put a large switch in some cave somewhere, with a sign on it saying "End-of-the-World Switch. PLEASE DO NOT TOUCH", the paint wouldn't even have time to dry."

Offline

#997 2012-08-22 00:56:28

kismet010
Member
Registered: 2009-09-02
Posts: 137

Re: dwb - a webkit web browser

Thanks for the quickly response!

# Bug
Some times 'normal' mouse cursor disappears, just reappear on text zones with classic "over text icon" or buttons, again, with its corresponding icon.
I can't reproduce it so I don't know why it happens but occurs also on both top and bottom bars,
No scripts, just the one you make for changing stylesheet (again, thanks for it). Using last hg gtk2 version on AUR

Offline

#998 2012-08-22 01:11:47

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

Re: dwb - a webkit web browser

kismet010 wrote:

# Bug
Some times 'normal' mouse cursor disappears, just reappear on text zones with classic "over text icon" or buttons, again, with its corresponding icon.
I can't reproduce it so I don't know why it happens but occurs also on both top and bottom bars,
No scripts, just the one you make for changing stylesheet (again, thanks for it). Using last hg gtk2 version on AUR

Can you create a ticket on the bitbucket-bugtracker?
Thanks.

Offline

#999 2012-08-22 13:16:32

beatle
Member
Registered: 2011-08-09
Posts: 16

Re: dwb - a webkit web browser

kismet010 wrote:

Thanks for the quickly response!

# Bug
Some times 'normal' mouse cursor disappears, just reappear on text zones with classic "over text icon" or buttons, again, with its corresponding icon.
I can't reproduce it so I don't know why it happens but occurs also on both top and bottom bars,
No scripts, just the one you make for changing stylesheet (again, thanks for it). Using last hg gtk2 version on AUR

I can confirm it. For me it happened a couple of times after the mouse was captured by these pesky interactive ad banners (like, "draw your signature with mouse to win a gazillion $" etc.) so it might have something to do with it.

Offline

#1000 2012-08-24 22:59:34

chneukirchen
Member
Registered: 2010-02-11
Posts: 100

Re: dwb - a webkit web browser

Wow, dwb has really changed since I last tried it. I like it. smile

Is it possible to bind Backspace to something? @Delete@ works e.g., but neither @Backspace@ nor @BackSpace@ do.

Also, I've managed to crash it by typing sk and then just return, acidentally (try it a few times).

Last edited by chneukirchen (2012-08-24 23:00:08)

Offline

Board footer

Powered by FluxBB