You are not logged in.

#1951 2014-01-24 09:55:56

cutuchiqueno
Member
Registered: 2013-07-06
Posts: 70

Re: dwb - a webkit web browser

I try to use a Shellscript in DWB. Before writing my own I tested the wget example from the documentation (Copied the example code into a file downloader.sh which is located in $HOME/.config/dwb/userscripts as written in the documentation page). Still, when I push Control +w nothing is happening at, no page download at all. 'eu' says 'no userscripts available'. Did I miss a neccessary option/configuration?

Offline

#1952 2014-01-24 13:14:58

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

Re: dwb - a webkit web browser

Do you get any error messages on command line? Is the shell script executable?

Offline

#1953 2014-01-26 07:10:51

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: dwb - a webkit web browser

ibrunton wrote:
portix wrote:

user-stylesheet-uri is a webkitsetting, you can create a stylesheet file for facebook and set user-stylesheet-uri with perdomainsettings.

For some reason I can't get this to work.  In the settings for perdomainsettings I have this:

uris : {
     "http://bbs.archlinux.org/" : { user-stylesheet-uri : "file:///home/ian/.local/share/styles/arch_dark.css" },
},

and it does nothing.  I've tried putting user-stylesheet-uri in quotation marks, and using underscores instead of hyphens, and still nothing.  The same style sheet works fine in luakit, so I'm stumped.

Could you share that arch_dark.css?  Would like to stop being blinded at night -_- lol.

Offline

#1954 2014-01-31 10:43:09

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

Re: dwb - a webkit web browser

I'm trying to establish duden.de as a searchengine via gs  but it doesn't work. It puts the link into .config/dwb/searchengines but I'm not able to search anything on that site. Is there anything I can do about that?

Offline

#1955 2014-01-31 10:50:02

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

Re: dwb - a webkit web browser

If dwb fails you can edit ~/.config/dwb/searchengines manually, e.g. if you want to use the keyword duden you could append

duden http://www.duden.de/suchen/dudenonline/_dwb_search_submit_

Offline

#1956 2014-02-01 00:57:08

2mac
Member
Registered: 2013-11-09
Posts: 95

Re: dwb - a webkit web browser

In the spirit of the Arch way, I recently decided to make a switch to dwb as my primary browser, and I've found three things that are preventing me from being totally comfortable with my decision.

1. Certain GIFs are currupted. The animation will run fine for a short portion, then it will do something completely unexpected (it's hard to describe), and it will return to normal at the next playback (until it gets corrupted again at the same spot). It's consistent, but annoying.

2. YouTube's layout is different and cumbersome to use. There's a lot more spacing between the side bar and the main YouTube content in dwb (compared to Firefox), and certain features (such as scrolling through subscriptions on the side bar) are completely gone. Is this an incompatibility, or is Google sending me different information because it doesn't recognize the browser?

3. I can't (figure out how to, if I can) duplicate tabs. Tab duplication is a feature of Firefox and Chromium that I've grown used to and developed a dependency for at work. Has this yet to be added, or is there a key combination I can use to do this?

Offline

#1957 2014-02-01 01:08:28

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

Re: dwb - a webkit web browser

1. and 2. I have the same problem. But i think it's webkit fault? (i'm using the gtk3 git version of dwb)
for 3. you can use the keybinding "gO" capital O > open current address in a new tab.

Last edited by tonk (2014-02-01 01:10:23)

Offline

#1958 2014-02-01 01:15:50

2mac
Member
Registered: 2013-11-09
Posts: 95

Re: dwb - a webkit web browser

Thanks for the tip.

I'm not sure which GUI mine is. I'm assuming GTK, but I'm using the one from the official repos.

Offline

#1959 2014-02-01 01:35:38

2mac
Member
Registered: 2013-11-09
Posts: 95

Re: dwb - a webkit web browser

Can't test the GIFs yet, but the YouTube layout can be fixed by installing dwb-git from the AUR.

Offline

#1960 2014-02-01 04:12:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: dwb - a webkit web browser

Merging with the dwb thread...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#1961 2014-02-01 06:57:28

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: dwb - a webkit web browser

is there a way to implement css universally like in firefox for system colors of all sites.

Offline

#1962 2014-02-01 13:34:08

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

Re: dwb - a webkit web browser

bleach wrote:

is there a way to implement css universally like in firefox for system colors of all sites.

like this? wiki Dwb#Stylesheet

my stylesheet. The input,select... inherit is nice if you use e.g. a bitmap font for the UI.

body:empty {
    background: #808080;
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
}

.dwb_hint {
    font-size: 12px !important;
    padding: 2px 4px !important;
    -webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

#dwb_hint_notifier,
#dwb_hover_element {
    display: none !important;
}

Offline

#1963 2014-02-05 17:24:12

botika
Member
Registered: 2013-07-12
Posts: 34

Re: dwb - a webkit web browser

Hi,
dwb stable of community repo return this

DWB EXTENSION ERROR: extension autoquvi: Initialization failed: DWB EXCEPTION : spawning quvi --version failed.
STACK: [value] [anonymous] [[native code]]
DWB EXTENSION ERROR: extension refcontrol: Initialization failed: ReferenceError: Can't find variable: version
STACK: [value] [anonymous] [[native code]]

to the default setting of these extensions.
I have reinstalled and have looked at the version in xdg data, but I have not found anything. Any idea? I love this browser, you've done a great job. Thanks

Regards

Offline

#1964 2014-02-05 17:26:27

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

Re: dwb - a webkit web browser

The autoquvi extension is currently not compatible with dwb from the repo.

Offline

#1965 2014-02-05 20:01:29

botika
Member
Registered: 2013-07-12
Posts: 34

Re: dwb - a webkit web browser

For the version of git, autoquvi returns the same, RefControl is fixed.

DWB EXTENSION ERROR: extension userscripts: No scripts found, place scripts in $XDG_CONFIG_HOME/.config/dwb/greasemonkey

  $XDG_CONFIG_HOME/.config/dwb/greasemonkey often exists.

All settings are the default, and reinstall all extensions. Again thank you for your work.
By the way anyone would have a dark css that works well in most of the web? Thanks in advance

Regards

Offline

#1966 2014-02-06 08:32:49

zoqaeski
Member
From: /earth/australia/.
Registered: 2009-09-30
Posts: 132

Re: dwb - a webkit web browser

Neat. I've recently started using dwb over luakit, as the latter is heading towards becoming abandonware. So far, I'm impressed, though there are a few things that I like more in luakit. The bookmarks in luakit are stored in a SQLite database (as are possibly other things), which adds a few useful features like sorting and tagging. Are there any plans to add that kind of functionality?

I don't know enough C to write it myself, though from glancing at the source I don't think it would be terribly difficult, and I'm definitely willing to have a go at it if anyone else thinks this would be a good idea.

Offline

#1967 2014-02-09 19:48:20

Asmir
Member
From: BiH
Registered: 2011-10-06
Posts: 67

Re: dwb - a webkit web browser

If I understod it right: With a new release WebKitGTK got a feature to run browser tabs in different threads. So can we expect  a dwb release with this feature implemented? For me personaly it would be great because of mine Intel Atom processor which makes dwb freeze when loading multiple tabs simultaniously.

PS: Link to release notes.

Last edited by Asmir (2014-02-09 19:50:31)

Offline

#1968 2014-02-10 09:21:15

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

Re: dwb - a webkit web browser

Asmir wrote:

If I understod it right: With a new release WebKitGTK got a feature to run browser tabs in different threads. So can we expect  a dwb release with this feature implemented? For me personaly it would be great because of mine Intel Atom processor which makes dwb freeze when loading multiple tabs simultaniously.

PS: Link to release notes.

To have different threads for tabs the browser must use webkit2 but dwb cannot be compiled against webkit2. I'm currently not sure if i'll port dwb to webkit2.

Edit: You can enable load-on-focus, that will prevent dwb from loading multiple tabs.

Last edited by portix (2014-02-10 09:28:48)

Offline

#1969 2014-02-10 10:18:02

Asmir
Member
From: BiH
Registered: 2011-10-06
Posts: 67

Re: dwb - a webkit web browser

I see, I didn't know for the difference. Thanks.

Offline

#1970 2014-02-12 16:12:48

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

Re: dwb - a webkit web browser

Hi Portix

How can I avoid video buffering download if I want to restrict writing at minimum ?

Here my setting:

sync-files=all
file-sync-interval=200
enable-plugins=false
plugin-blocker=true

`Plugins` Flash is not activate.

But whe a page with some html5 video is loading, there is `dwb-TB48AX` like files downloaded in:

~/.cache/

I don't understand because my cache setting is:

enable-page-cache=false
cache-model=webbrowser
enable-offline-web-application-cache=false
enable-html5-local-storage=false

My laptop as an SSD hard drive so I need your advice about cache and best config.
I know you already answer about `profile-sync-daemon` and sync-files process. It do the job for dwb side but what about Webkit cache system ?

To use 'Anything-sync-daemon' as an alternative what are the folders to sync (can't find Webkit informations).
Two folders seems to report cache activities (but the size looks small).

~/.local/share/webkit
~/.cache/fontconfig

--
Thanks again for your great browser.

Offline

#1971 2014-02-12 16:16:10

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

Re: dwb - a webkit web browser

dwb only uses file-sync-interval for history and cookies. The caching behaviour from webkit in ~/.cache/ cannot be configured.

Offline

#1972 2014-02-12 16:32:52

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

Re: dwb - a webkit web browser

Ok so you confirm that dwb files for videos like 'dwb-TB48AX' came from webkit.

Offline

#1973 2014-02-12 16:40:01

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

Re: dwb - a webkit web browser

dwb only saves files in ~/.config/dwb and ~/.cache/dwb and ~/.cache/dwb is only used for downloads and the external editor.

Offline

#1974 2014-02-17 12:03:51

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

Re: dwb - a webkit web browser

Thanks for reply portix.

I've read somewhere that webkit implement `preload` but no `autobuffer` attribute.
So I try to solve the "issue" by a userscprit but I'm lame on javascript and my first try doesn't work at all.

// @include     http://*
// @include     https://*


(function() {
    var video = document.getElementsByTagName('video');
    if(video) {
        video.setAttribute("preload", "none");
    }
})();

Offline

#1975 2014-02-17 12:30:36

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

Re: dwb - a webkit web browser

mentat wrote:

Thanks for reply portix.

I've read somewhere that webkit implement `preload` but no `autobuffer` attribute.
So I try to solve the "issue" by a userscprit but I'm lame on javascript and my first try doesn't work at all.

// @include     http://*
// @include     https://*


(function() {
    var video = document.getElementsByTagName('video');
    if(video) {
        video.setAttribute("preload", "none");
    }
})();

You don't need include rules if the script should be injected into all websites, they are ignored anyway unless you are using greasemonkey's meta tags ==UserScript== ... ==/UserScript==. You also don't need to wrap the script inside a function, dwb will do it anyway. And document.getElementsByTagName doesn't return a single dom node but a node collection. You might try the following script:

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

Make sure that userscripts is installed (dwbem -i userscripts) and that you put the script into ~/.config/dwb/greasemonkey.

Offline

Board footer

Powered by FluxBB