You are not logged in.
http://www.uzbl.org/wiki/uzbl_tabbed#configuration
set_switch_to_new_tabs = 0
I'm still looking for a way to change my scroll rate. I imagine it would a gtkrc setting, but the gtk documentation page is down atm....
Also, why isn't uzbl on http://trac.webkit.org/wiki/ApplicationsGtk ?
Offline
...I'm still looking for a way to change my scroll rate. I imagine it would a gtkrc setting, but the gtk documentation page is down atm....
# --- Page movement binds ---
set scroll_rate = 20
@cbind j = scroll vertical \@scroll_rate
@cbind k = scroll vertical -\@scroll_rate
@cbind h = scroll horizontal -\@scroll_rate
@cbind l = scroll horizontal \@scroll_rate
Offline
@mason: thanks, but I meant mouse-wheel scroll rate.
I can't find anything relevant in GtkSettings, and GtkAdjustment's step_increment is "used when the mouse is clicked on the arrows at the top and bottom of the scrollbar", ie, not when I use the mouse wheel. The WebKitWebView settings documentation isn't really helpful....
Offline
Some random funny stuff for you...
So lately i found out that when i give uzbl a URI to load, it interprets '@' characters, causing problems.
Real example:
Try to load the URI "http://www.mail-archive.com/ratpoison-devel@nongnu.org/" and it'll turn into ".../ratpoison-devel.org", unless you happen to have a variable named "nongnu" (And that'd be faulty as well, unless the variable happens to hold the value "@nongnu". ).
This kept annoying me when i was copying URIs like that and loading them with a key bound to `sh 'echo "set uri = $(xclip -o)" > $4'`.
I decided i could add a short sed expression into that line, to replace all occurances of '@' with '\@' ... but then came the backslashing massacre.
After some faulty trials, then sitting and thinking, i realized how much of a mesh of backslashes would be needed to get them through several layers of being interpreted. (Multiple layers of uzbl, sed and bash.)
But i thought it'd be funny, and persisted, and finally came up with this working line of uzbl config code:
@cbind p = sh "echo set uri = $(xclip -o | sed '{s/\\\@/\\\\\\\\\\\\\\\\\\\@/}') > $4"
(No joke.)
I hope some of those backslashes don't get lost while this post is being interpreted!
Oh and, the sane way to do this would probably be by spawning a script. Am i right?
``Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.''
~ Albert Einstein
Offline
Can I ask you where is the general uzbl config file?
Offline
Can I ask you where is the general uzbl config file?
less /usr/share/uzbl/docs/README
Offline
Some random funny stuff for you...
So lately i found out that when i give uzbl a URI to load, it interprets '@' characters, causing problems.
Real example:
Try to load the URI "http://www.mail-archive.com/ratpoison-devel@nongnu.org/" and it'll turn into ".../ratpoison-devel.org", unless you happen to have a variable named "nongnu" (And that'd be faulty as well, unless the variable happens to hold the value "@nongnu". ).This kept annoying me when i was copying URIs like that and loading them with a key bound to `sh 'echo "set uri = $(xclip -o)" > $4'`.
I decided i could add a short sed expression into that line, to replace all occurances of '@' with '\@' ... but then came the backslashing massacre.
After some faulty trials, then sitting and thinking, i realized how much of a mesh of backslashes would be needed to get them through several layers of being interpreted. (Multiple layers of uzbl, sed and bash.)
But i thought it'd be funny, and persisted, and finally came up with this working line of uzbl config code:
@cbind p = sh "echo set uri = $(xclip -o | sed '{s/\\\@/\\\\\\\\\\\\\\\\\\\@/}') > $4"
(No joke.)
I hope some of those backslashes don't get lost while this post is being interpreted!
Oh and, the sane way to do this would probably be by spawning a script. Am i right?
I've tried to address this problem here:
http://github.com/Dieterbe/uzbl/commit/ … 838bbc211d
It may have potential downsides however as the URI is actually modified, everything I've thrown at it worked though.
Offline
gtklocker wrote:Can I ask you where is the general uzbl config file?
less /usr/share/uzbl/docs/README
When you start `uzbl-browser` for the first time the example config is automatically copied to `$XDG_CONFIG_HOME/uzbl/config` (Most likely `~/.config/uzbl/config`).
Offline
I've tried to address this problem here:
http://github.com/Dieterbe/uzbl/commit/ … 838bbc211dIt may have potential downsides however as the URI is actually modified, everything I've thrown at it worked though.
Oh... Percent encoding FTW i guess.
Thanks a lot for mentioning that.
``Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.''
~ Albert Einstein
Offline
that fix is now in the latest release btw
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
Just found uzbl and I really like it. Cool browser which seems to able to replace FF.
However I find the whole documentation and the official wiki a little bit confusing for a beginner. Is there a good tutorial which teaches a beginner the basics?
Online
This may have been in the news somewhere but I didn't see it recently so I apologize if it is. I'm having problems with the "dark_input.js" script. It put it in my config at @on_event LOAD_COMMIT spawn @scripts_dir/dark_input.js, but my textboxs are still dark grey with black text. Is there a solution for the dark input on dark backgrounds other than this, or will this script work but I'm doing it wrong? Thanks
Offline
This may have been in the news somewhere but I didn't see it recently so I apologize if it is. I'm having problems with the "dark_input.js" script. It put it in my config at @on_event LOAD_COMMIT spawn @scripts_dir/dark_input.js, but my textboxs are still dark grey with black text. Is there a solution for the dark input on dark backgrounds other than this, or will this script work but I'm doing it wrong? Thanks
I think it's because you need to use the script command (not spawn) to run javascript.
Offline
Does anyone use the whitelist feature of the cookiedaemon? It's apparently only a commandline option, but where is the daemon called? Any info on that would be helpful cause I want to control which site does what.
Online
Ah, my mistake. I knew it would be something simple. Thanks
Offline
@Isildur: I changed it in the /usr/bin/uzbl-cookie-daemon: line 127: 'use_whitelist': False, (changed to True,). and there's a file called "cookie_whitelist" in your uzbl config folder, or you can change the name/location of the cookie_whitelist from your config. That works for me but I'm still figuring out a script to "ask" which cookies I want to use per site. It's trickier than it seems (for me, anyway).
Offline
Thanks. Is there a way to transfer my FF whitelist to uzbl? Maybe an extension which exports it as textfile?
Online
@Isildur: I don't know much about Firefox but I think it's in sqlite format if I'm not mistaken. I would think there'd be an "export cookies" or "export cookie whitelist" add-on somewhere that you could use real quick.
Offline
I've updated the keyword bookmarks script to work with the latest version of uzbl if anybody is interested.
Offline
I created a sort of awesome bar style menu, here are the scripts, http://github.com/Zariel/uzbl-scripts
Offline
I've updated the keyword bookmarks script to work with the latest version of uzbl if anybody is interested.
Where is the diffrence to the normal bookmarks function? Haven't tried it just wondering, cause the normal version supports tags as well.
I'm currently working on a script to easy allow cookies for the current domain from uzbl and check the status of the current site. But somehow it apparently breaks with this script
# -*- coding: utf-8 -*-
import sys
import os
filename = os.path.expanduser("~/.config/uzbl/cookie_whitelist")
def main():
url = sys.argv[6]
fifo = sys.argv[4]
f = open(fifo,"w")
if search(url):
s = "set cookie_color = #008B00" #cookies allowed -> green
else:
s = "set cookie_color = #CD2626" #cookies not allowed -> red
f.write(s)
f.close
def search(url):
f = open(filename,"r")
string = f.read()
url_in_file = string.find(url) #TODO:regex to avoid finding it in substrings
f.close()
if url_in_file == -1:
return False
else:
return True
if __name__ == "__main__":
main()
uzbl freezes error after forced close
(uzbl-core:7784): GLib-CRITICAL **: g_io_channel_write_chars: assertion `(error == NULL) || (*error == NULL)' failed
** (uzbl-core:7784): WARNING **: Error sending event to socket: Broken pipe
Last edited by Isildur (2010-03-18 15:43:44)
Online
Anyone else here use vBulletin forums (and having issues)?
You might say vBulletin is proprietary bloatware and i might agree (although there's some functionality i'm missing, in minimal engines like FluxBB), but it's not me who decides.
First of all, the multi-quote buttons don't work. They get highlighted, but when i go to the posting page, none of the marked posts to quote appear. This is a great annoyance when i want to quote many posts at once.
(This is probably cookie related.)
When i post a quick reply, it takes me to the advanced reply page, telling me i need to wait 30 seconds between posts, although the post gets properly sent.
Clicking on the add reputation button takes me to a full new page with the agree/disagree and comment stuff, instead of displaying the in-page floating popup thingy.
When clicking on the edit button for a post, the post doesn't turn into a textarea and such (without changing the page), but i can click on the edit button once more to go to the full editing page.
In the user control panel, there's a reputation table. This table can be 'collapsed' (minimized) by clicking a button. Normally this gets saved as a cookie and the table remains so until i manually maximize it, but Uzbl doesn't seem to save that cookie.
I don't care much about any but the first one i mentioned, and don't know where exactly the fault is, but i don't have any of these issues with Chromium (which uses WebKit, dunno how 'pure').
``Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.''
~ Albert Einstein
Offline
mason.larobina wrote:I've updated the keyword bookmarks script to work with the latest version of uzbl if anybody is interested.
Where is the diffrence to the normal bookmarks function? Haven't tried it just wondering, cause the normal version supports tags as well.
Yeah if you use the open command it (1) assumes its a uri if it contains a '.' then navigates to it or (2) searches the keyword bookmarks file for a match and if all else fails (3) searches for the string on google. And adding bookmarks is easy.
So its handy.
I'm currently working on a script to easy allow cookies for the current domain from uzbl and check the status of the current site. But somehow it apparently breaks with this script
# -*- coding: utf-8 -*- import sys import os filename = os.path.expanduser("~/.config/uzbl/cookie_whitelist") def main(): url = sys.argv[6] fifo = sys.argv[4] f = open(fifo,"w") if search(url): s = "set cookie_color = #008B00" #cookies allowed -> green else: s = "set cookie_color = #CD2626" #cookies not allowed -> red f.write(s) f.close def search(url): f = open(filename,"r") string = f.read() url_in_file = string.find(url) #TODO:regex to avoid finding it in substrings f.close() if url_in_file == -1: return False else: return True if __name__ == "__main__": main()
uzbl freezes error after forced close
(uzbl-core:7784): GLib-CRITICAL **: g_io_channel_write_chars: assertion `(error == NULL) || (*error == NULL)' failed ** (uzbl-core:7784): WARNING **: Error sending event to socket: Broken pipe
You are missing the newline character at the end of that set command.
Offline
Thank you! That was the damn mistake I looked for.
The script is now working. Actually I wrote 2 scripts. One adds the current domain to the cookie_whitelist and the other one checks whether it is already in the whitelist and provides you with a little "status button" at the bottom.
If anybody is interested I could upload the scripts, just dunno where.
Online
There's a bug with the default config, line 167:
@ebind <Home> = event SET_CURSOR_POS
should be
@ebind <Home> = event SET_CURSOR_POS 0
0 or 1 both work.
Last edited by aeosynth (2010-03-19 12:28:44)
Offline