You are not logged in.
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
Do you get any error messages on command line? Is the shell script executable?
Offline
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
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
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
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
Offline
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
Can't test the GIFs yet, but the YouTube layout can be fixed by installing dwb-git from the AUR.
Offline
Merging with the dwb thread...
Offline
is there a way to implement css universally like in firefox for system colors of all sites.
Offline
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
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
The autoquvi extension is currently not compatible with dwb from the repo.
Offline
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
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
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
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
Offline
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
dwb only uses file-sync-interval for history and cookies. The caching behaviour from webkit in ~/.cache/ cannot be configured.
Offline
Ok so you confirm that dwb files for videos like 'dwb-TB48AX' came from webkit.
Offline
dwb only saves files in ~/.config/dwb and ~/.cache/dwb and ~/.cache/dwb is only used for downloads and the external editor.
Offline
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
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