You are not logged in.
I can only reproduce it if ajax.googleapis.com is blocked by requestpolicy, otherwise it works fine.
Offline
I discovered, that with dwb there's a problem with downloads from my mydrive.ch account.
If I want to download one file, it works fine. But if I select multiple files and click "Download", mydrive creates a zip archive, which contains all selected files and then the browser should download that zip file. It works with firefox, but with dwb it fails. It's the first time I get this kind of download problem with dwb.
Could somebody who also has a mydrive.ch account try to confirm it, please?
Last edited by Army (2013-06-22 15:48:25)
Offline
Hey portix,
I have a couple of questions regarding download functionality and sorry if some features I am asking about are already implemented, but I just cannot see how to set what I am looking for in ~/.config/settings.
First of, is there a way to compress the download tabs? I am often downloading 4 or 5 or more things at once and depending on the name of the file (how long or short) I can generally only ever see the first 2 or 3 tabs.
Which brings me to my next question. The only way I can tell if a download fails is on the tab, and if the tab is not visible I am left uncertain. How difficult would it be to re-direct download failure messages to notify-send or something similar (an external pop-up notification)? And maybe even better would be some sort of function to retry a failed download?
Finally, is there a way, or does DWB keep a running list of recent download locations? Again because I tend to download so much (p0rn? maybe), and being a generally lazy S0B I hate typing in or even copying and pasting different location multiple times. If there is no such feature, then how much of a PITA would it be to implement? Because a tab-enabled menu that I could easily select from a list of recent locations that would make life using dwb a lot slicker.
cheers
Last edited by naphelge (2013-06-22 20:34:07)
Offline
@Army: i have no account on mydrive.ch, maybe i will try it if i have some spare time, have you tried it with other webkit-based browsers?
@naphelge: Your first point is a bug, i always wanted to add additional downloadtab rows, but i rarely download more than two files at once, so i have fogotten about it. The second point could be achieved with a userscript:
//!javascript
Signal.connect("downloadStatus", function(download) {
if (download.status == -1)
{
system.spawn("notify-send 'Downloading " + download.destinationUri + " failed'");
}
});
dwb doesn't save a list of download locations, it only saves the last location but it would be easy to implement. I currently don't have enough spare time to work on dwb, hopefully i can work on dwb next month, so if you want this feature the best would be to create a ticket on the bugtracker, that's no guarantee that it will be implemented soon, but i will forget about it when it's only mentioned on the bbs for sure.
Offline
@naphelge: You could also prompt after a download failure and start a new download:
//!javascript
Signal.connect("downloadStatus", function(download) {
if (download.status == -1)
{
var response = io.prompt("Downloading " + download.destinationUri + " failed, retry?");
if (/[yY]/.test(response))
{
tabs.current.loadUri(download.destinationUri);
}
}
});
Last edited by portix (2013-06-23 01:28:07)
Offline
@Army: Yes it fails and neither download with the flash or the java option does work. It never did.
Offline
@Army: i have no account on mydrive.ch, maybe i will try it if i have some spare time, have you tried it with other webkit-based browsers?
Sorry, yes it works with midori. On the terminal there's this output
** (midori4:21444): CRITICAL **: void webkit_download_start(WebKitDownload*): assertion `priv->timer == NULL' failed
other than that it works without flaws.
I'll file a bug report, so it doesn't get lost.
Offline
Hi,
I'm trying to implement some primitive "read it later" feature, as a bash userscript which closes the current tab and stores its url in a file.
Everything works fine, but one thing bothers me.
I use this simple script to restore all tabs:
if [ -e $RIL ]
then
for url in $(cat $RIL)
do
echo "tabopen $url" > ${DWB_FIFO}
done
fi
...which opens them in the current window. Nevertheless, I can't find a way to open all tab in an unique new window.
Any ideas?...
Thanks.
Offline
Hey Portix, if webkitgtk finishes their webrtc implementation, do you have any plans to support it as well? Thanks.
Offline
@ap_m
You could go with
dwb -n $url1 $url2 $url3
This opens them all in a new window.
I used to use a similar approach, but read the urls one by one, like this:
#!/bin/bash
# dwb: Control k
url=$(tail -n 1 docs/gtd/readlater.txt)
head -n -1 docs/gtd/readlater.txt > docs/gtd/buf.txt
mv docs/gtd/buf.txt docs/gtd/readlater.txt
echo "tabopen $url" > ${DWB_FIFO}
Offline
@ap_m: You can open all urls in a new window with
dwb -n $(< "$RIL")
Edit: ups, haven't seen mwgkgk's post.
@gothmog123: yes, if it isn't webkitgtk2 only.
Last edited by portix (2013-06-27 07:45:59)
Offline
@mwgkgk @portix: Thanks for the tip!
Offline
Wherever I try to do "make GTK=3", I get
config.mk:87: *** Cannot find gtk2-libs or gtk3-libs. Stop.
I have both gtk2 and gtk3 installed. Using dwb from git.
Offline
Do you have webkitgtk or webkitgtk2 installed? And are you running archlinux?
Offline
Do you have webkitgtk or webkitgtk2 installed? And are you running archlinux?
webkitgtk
Yes, running Arch (wouldn't have posted here otherwise). But I built webkitgtk myself with a bit crippled set of features.
Offline
I'm coming back to dwb after using luakit for a while and dwb is better than I remember. There's one thing I could do with luakit - though - that I'd like help replicating with dwb: float dialog windows in a tilingWM.
While dwb doesn't seem to use file download dialogs (which is good) I still get dialog boxes for loging in to secure websites ("secure" via .htaccess password). With luakit the WM_CLASS name for the browser window is "luakit" but for these dialogs it is "Luakit" with a capital L. This was an odd pattern, but easily useable in a tiling WM to specify a float rule for the dialog window.
In dwb the WM_CLASS strings ("dwb","Dwb") are the same for both the browser itself and the dialog window.
Is there some other mechanism to recognize the dialog (I'd happily modify the WM on my end), or could the WM_CLASS strings be changed to allow for such differentiation?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I removed webkit's default auth-dialog in git, dwb now prompts for the username and password without using a dialog.
Last edited by portix (2013-06-28 17:08:05)
Offline
Even better, thanks - it works perfectly.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
What would be easiest way to execute bookmarklet?
I'm trying to run this code for adding page to Pocket read it later service, but I can't make much sense out of dwb javascript API documentation.
javascript:(function(){var e=function(t,n,r,i,s){var o=[2852856,4057549,6490418,1766148,1041531,6343055,2297019,6428449,4712453,3442268];var i=i||0,u=0,n=n||[],r=r||0,s=s||0;var a={'a':97,'b':98,'c':99,'d':100,'e':101,'f':102,'g':103,'h':104,'i':105,'j':106,'k':107,'l':108,'m':109,'n':110,'o':111,'p':112,'q':113,'r':114,'s':115,'t':116,'u':117,'v':118,'w':119,'x':120,'y':121,'z':122,'A':65,'B':66,'C':67,'D':68,'E':69,'F':70,'G':71,'H':72,'I':73,'J':74,'K':75,'L':76,'M':77,'N':78,'O':79,'P':80,'Q':81,'R':82,'S':83,'T':84,'U':85,'V':86,'W':87,'X':88,'Y':89,'Z':90,'0':48,'1':49,'2':50,'3':51,'4':52,'5':53,'6':54,'7':55,'8':56,'9':57,'\/':47,':':58,'?':63,'=':61,'-':45,'_':95,'&':38,'$':36,'!':33,'.':46};if(!s||s==0){t=o[0]+t}for(var%20f=0;f%3Ct.length;f++){var%20l=function(e,t){return%20a[e[t]]?a[e[t]]:e.charCodeAt(t)}(t,f);if(!l*1)l=3;var%20c=l*(o[i]+l*o[u%o.length]);n[r]=(n[r]?n[r]+c:c)+s+u;var%20p=c%(50*1);if(n[p]){var%20d=n[r];n[r]=n[p];n[p]=d}u+=c;r=r==50?0:r+1;i=i==o.length-1?0:i+1}if(s==211){var%20v='';for(var%20f=0;f%3Cn.length;f++){v+=String.fromCharCode(n[f]%(25*1)+97)}o=function(){};return%20v+'9ab9c5abea'}else{return%20e(u+'',n,r,i,s+1)}};var%20t=document,n=t.location.href,r=t.title;var%20i=e(n);var%20s=t.createElement('script');s.type='text/javascript';s.src='https://getpocket.com/b/r4.js?h='+i+'&u='+encodeURIComponent(n)+'&t='+encodeURIComponent(r);e=i=function(){};var%20o=t.getElementsByTagName('head')[0]||t.documentElement;o.appendChild(s)})()
Thanks.
Offline
What with wrong ?, Mega.co.nz said download with modern browser opera, safari and chrome large file >100Mb . What browser agent work
the download will be started about fifteen percent , download is stopped and doesn't continuous. also try luakit and worked perfect, my dwb user agent :
user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.24 (KHTML, like Gecko) Safari/535.24
i try with chrome agent and without , nothing different for work,
Offline
I'm not sure if I should open a new thread for this.. Decided to ask here:
Due to recent events I finally made the step and decided to start browsing with Tor. It works very reliable, I'm pretty happy with it so far. But for some website I'd like to NOT use it, e.g. for sites which require my login, but don't provide a secure connection via https://...
Right now I launch dwb with
torify dwb
which works very well. BUT this doesn't allow me to browse websites directly if I want to.
So my question is: Is dwb (or any webkit browser) able to communicate with Tor without using this wrapper torify? I tried to get this information by myself, but didn't succeed. There is a webkit based Tor-browser called torbrowser, maybe that's an indicator, that this is possible.
If so, what would be very cool is to make dwb use a whitelist for sites, which should NOT called through the Tor network.
Is something like this possible?
Offline
@Army: In general this would be possible but currently it isn't possible. tor can also be used together with privoxy and i think libsoup also has support for socks proxies since 2.40, i haven't tested it though. One problem is, dwb uses libsoups default proxy resolver which doesn't have support for whitelists so i would have to implement a proxy resolver with whitelisting support. I think there is already a ticket on the bugtracker, maybe i'll implement a proxy resolver after the next release which will hopefully be next month. In the next weeks i will only fix bugs (i haven't forgotten about the download bug on mydrive.ch).
@all: There will be a change in userscript handling after this weekend in dwb-git. There will be a new tool called dwbremote and the fifo which is accessible via $DWB_FIFO in scripts will no longer be supported, instead dwbremote can be used to send commands to dwb or retrieve information from dwb. Scripts that use something like
echo <command> > $DWB_FIFO
must use dwbremote instead:
dwbremote execute <command>
dwbremote cannot only be used in scripts but also from commandline.
Offline
Hmmm? Threads on Google Groups are no longer visible with dwb either gtk-{2,3} for me. gtk3 works with midori, so that's why I tried the gtk3 build. I tried disabling privoxy as some sites don't work with it at all, but that didn't help. Would someone please just look to see if there are threads here:
https://groups.google.com/forum/#!forum/clojure
If not, all you'll see is a big blank area under the 'Groups' link.
Offline
This works fine for me skottish...
Edit: Oh yeah, dwb-git 2013.07.19.g5713637-1
Last edited by WonderWoofy (2013-07-20 01:11:09)
Offline
This works fine for me skottish...
Edit: Oh yeah, dwb-git 2013.07.19.g5713637-1
Thanks WW. I've got a mystery on my hands then. I fired up my laptop and it has exactly the same problem. I've got something that f'ing things up.
*** EDIT ***
This one may need some more love. If I can't pin this down fairly quickly, then a new thread will be born...
*** EDIT2 ***
The problem is that Google Groups requires enable-html5-local-storage to be true to work now. Yay, yet another way to be tracked!
Last edited by skottish (2013-07-20 16:26:40)
Offline