You are not logged in.
portix, it's still happening to me and the only way to regain access is to clear the cookies file. This morning I couldn't even access the site, backed up the cookies file and threw in a clean one - bang: instant access. Tried using the cookies file again and the site didn't load up.
I will look into it but currently i don't have much time, if you file a bugreport on bitbucket i won't forget it.
Offline
Just did, kind sir Thank you for keeping an eye out here, though. I don't have the habit of filing bug reports - which I'm very ashamed of - but I'll do my best. Most of the times, someone catches 'em first, but I didn't see this one reported.
Offline
is it just me, or does 'background-tabs' not work anymore? new tabs are always focussed.
Offline
The only thing that has changed is: tabhints (mapped to 'F') always opens tabs in foreground, the new hint mode backhints (mapped to ;b) always opens hints in background.
Offline
and as always it turns out, dwb has evolved even more thanks.
great job man! dwb has become my standard browser for months now.
Offline
Hi, for the past couple of days downloading things with dwb hasn't gotten anywhere. I click the download, type in my download path, and the download bar appears, but just has (name of file) ???
Seems to happen with anything I download through browser! I'm fairly sure I haven't messed with any setup files I shouldn't have, so I'm not sure what else to do.
.....
I've been experiencing this as well, everything I download results in an empty file created in my download directory. Using dwb-hg 1225-1 and libwebkit 1.8.1-1.
On a sidenote, background tabs with ;b is convenient, thanks! Also using dwb as my standard browser here, so hooray to you sir!
Offline
I've been experiencing this as well, everything I download results in an empty file created in my download directory. Using dwb-hg 1225-1 and libwebkit 1.8.1-1.
This issue was fixed with revision 1227, so you probably should update to tip.
Offline
How do I get flash (Youtube) working ..
Using Google-chrome as default browser, uzbl and surf for fun .. flash (Youtube) works 'out of the box"
Love dwb .. but .. flash (Youtube) doesn't work (result: little blue 'lego' block with questionmarks)
Debian testing, dwb 0.1.0 (just apt-get install dwb), flashplugin-non free 1:2.8.3 installed) .. but no flash (You tube) ..
Must be something simple .. but
Help please ..
there's no business like .. your own business
Offline
The package in debian is linked against libwebkit3 and libwebkit3 has no native flash-support. Using libwebkit3 flash only works using nspluginwrapper.
Offline
OMG .. can't install nspluginwrapper (apt-get install nspluginwrapper doesn't work .. and dpgk -i the downloaded nspluginwrapper.deb from alternative source doesn't work as well) .. so no flash (youtube) for now then ..
Love dwb, so will be using / learning .. waiting for update in the debian-package so flash will work ..
Keep up the good work .. I'm in love with this browser ..
there's no business like .. your own business
Offline
I want to try dwb heavily now, because luakit is just too buggy imo. The key combinations in dwb are strange for me, because I'm used to luakit's and pentadactyl's, but I'll either learn dwb's or change them. For now I'll leave them.
What I'd like to implement is to execute a command if the url matches something, e.g. I want to run "transmission-remote-cli $URL" if the url starts with "magnet:" or ends with ".torrent". Is this possible with dwb, if so, how?
Offline
Currently there is only a setting 'scheme-handler' that executes the argument for unsupported url-schemes like 'magnet:'. For now dwb doesn't have the possibility to execute commands based on the url.
But this is possible in the scripts branch which will be merged into the default branch after some testing in a few weeks. If you want to try the scripts branch you can achieve it with the following script in ~/.config/dwb/userscripts
#!javascript
signals.connect("navigation", function(wv, frame, request) {
if (/^magnet:.*|.*\.torrent$/.test(request.uri)) {
system.spawn("transmission-remote-cli " + request.uri);
return true;
}
});
There is also a api documentation which possibly is not the final api since the scripts branch is under development.
Edit: the function should return true if the signal is handled.
Last edited by portix (2012-05-05 17:08:12)
Offline
I tried using the Reddit Enhancement Suite userscript in luakit today (just to see if it was possible in a non-Chrome, Firefox, Opera, or Safari browser). It works fine. I tried putting the same script (reddit_enhancement_suite.user.js from userscripts.org) in /scripts and /userscripts for dwb; no dice. Does anyone happen to have gotten RES working in dwb?
Offline
Most scripts from userscripts.org must be injected when the site is completely loaded but dwb's default is to inject script before the site is loaded. If you put the script in ~/.config/dwb/scripts with filename extension .onload.js the script will be injected when the site has loaded. However, dwb currently does not support greasemonkey rules so scripts will be injected into every site.
And ~/.config/dwb/scripts will be ignored after the scripts branched has merged into the default branch, scripts can then be loaded using a userscripts extension that also supports greasemonkey rules.
Offline
I cloned the scripts branch...and I'm feeling rather silly, since I can't quite figure out how to load a script using a userscript extension. Oh, well. Thanks for the info, and I can just wait for the merge.
Offline
I started writing the userscript extension on thursday and it isn't in the repository since it is not done yet. Loading extensions basically can be done through a userscript
#!javascript
extensions.load("name")
but there are only 2 working extensions yet, autoquvi which automatically plays flash videos in an external player and perdomainsettings.
Offline
Oh, ok, great! Thanks for all your development on dwb.
Offline
Ok, other questions (I'll look at the scripts branch soon)
- How can I make dwb focus the tab _right_ of the current one after I close the corrent one with 'd'? The default behavior seems to be to focus the tab _left_ of the current one, which I don't like.
- Is it possible to open e.g. a downloaded pdf file in e.g. mupdf after the download is finished? Can this be done with the scripts branch? If so, a simple example would be very appreciated!
Offline
- How can I make dwb focus the tab _right_ of the current one after I close the corrent one with 'd'? The default behavior seems to be to focus the tab _left_ of the current one, which I don't like.
I think there was a feature request for that behavior with a patch attached on the bugtracker, i will see if this could be easily applied.
- Is it possible to open e.g. a downloaded pdf file in e.g. mupdf after the download is finished? Can this be done with the scripts branch? If so, a simple example would be very appreciated!
This is possible with the scripts branch but it is also builtin, before a download starts you will be prompted for a path, if you press Control-x you can choose an applictation that will open the file, you can also use tab-completion for applications in the default searchpath. dwb then saves your last choice for the next time.
Offline
I created a new option 'close-tab-focus-policy' with possible values left, right, leftmost and rightmost.
Offline
I am trying to use the new extension perdomainsettings, I have it loading and I created ~/.config/dwb/extensionrc with the example in perdomainsettings extension.
However when I start dwb, I get the following.
DWB EXTENSION ERROR: extension perdomainsettings: loading config failed : SyntaxError: Unexpected token ':'
DWB EXTENSION ERROR: extension perdomainsettings: Missing config
DWB EXTENSION ERROR: extension perdomainsettings: Initialization failed.
Offline
The example config may be a bit misleading, the extensionsrc is a javascript file and must follow the format
return {
nameofextension1 : {
option1 : value1,
option2 : value2
},
nameofextension2 : {
option1 : value1
}
}
so it basically only returns a json-object. I now also added the option to load the config with the the load function
extensions.load("perdomainsettings", {
domains {
"example.com" : { "enablePlugins" : true },
"example.co.uk" : { "enableScripts" : true }
}
defaults : {
"enablePlugins" : false
"enableScripts" : false
}
});
Offline
Army wrote:- Is it possible to open e.g. a downloaded pdf file in e.g. mupdf after the download is finished? Can this be done with the scripts branch? If so, a simple example would be very appreciated!
This is possible with the scripts branch but it is also builtin, before a download starts you will be prompted for a path, if you press Control-x you can choose an applictation that will open the file, you can also use tab-completion for applications in the default searchpath. dwb then saves your last choice for the next time.
Ok, I configured dwb to download files into /tmp automatically
download-directory=/tmp
download-no-confirm=true
(from ~/.config/dwb/settings)
Is it still possible then?
Offline
This will only work in the scripts branch:
signals.connect("downloadStatus", function (d) {
if (d.status == DownloadStatus.finished && (/.*\.pdf$/.test(d.destinationUri)) ) {
system.spawn("mupdf " + d.destinationUri.substring(7));
}
});
You also need the latest revision because the internal downloader was broken in the scripts branch with webkit-1.8 but it was fixed in the default branch, i just merged the fix into the scripts branch. If you wait for 1 or 2 weeks the scripts branch will be merged into the default branch.
Offline
Thanks a lot portix, also because of close-tab-focus-policy. I'll wait for the scripts branch, right now I'm pretty happy with dwb. I already removed luakit from my system With the possibilities the scripts branch will offer, there won't be much left to complain about. And thanks for the examples, without those the ability to handle scripts would be useless for me
edit: Found a little bug, I hope it's ok if I provide this little patch here
diff -paur dwb/src/config.h dwb.new/src/config.h
--- dwb/src/config.h 2012-05-07 11:37:10.890629391 +0200
+++ dwb.new/src/config.h 2012-05-07 13:10:05.304427307 +0200
@@ -595,7 +595,7 @@ static FunctionMap FMAP [] = {
(Func)commands_show, NULL, ALWAYS_SM,
{ .p = "dwb:quickmarks", .ro = true }, EP_NONE, { "squickmarks", NULL }, },
- { { "show_history", "Show quickmarks", }, CP_COMMANDLINE,
+ { { "show_history", "Show history", }, CP_COMMANDLINE,
(Func)commands_show, NULL, ALWAYS_SM,
{ .p = "dwb:history", .ro = true }, EP_NONE, { "shistory", NULL }, },
(current hg snapshot 1266)
Last edited by Army (2012-05-07 11:13:48)
Offline