You are not logged in.

#651 2011-10-08 03:39:01

r6
Member
From: Melbourne
Registered: 2008-07-02
Posts: 156

Re: luakit browser framework (almost with jQuery!)

I was also getting the "GLib-GObject" crashes..... the answer for me was to install glib2 and remove glib2-git.

Offline

#652 2011-10-09 16:11:42

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

Is it possible to make luakit write its verbose output to a log file even if it's started simply by "luakit"

What I'd like to have is a log file which contains informations about the adblock plugin, which pages are blocked, which pages are not etc and then monitor that file with "tail -f /log/file". I used that a lot with privoxy, sometimes it's nice to see if all crap is being blocked, if too much is blocked etc. I use vain's adblock plugin, which is REALLY good (I vote for adding this upstream).

I could also use something like "luakit -v | grep adblock > ~/.luakit.log" but it'd be nicer if this could be configured in luakit itself to be able to e.g. execute luakit with dmenu without this long command.

edit: An alternative would be of course if the plugin itself writes its output to a file. But me no lua coder, so Vain, maybe some help here *politely smile*?

Last edited by Army (2011-10-09 16:17:46)

Offline

#653 2011-10-09 23:03:02

r6
Member
From: Melbourne
Registered: 2008-07-02
Posts: 156

Re: luakit browser framework (almost with jQuery!)

Army, I find it's better to log all output and then use eg. tail -f /tmp/luakit.log |grep adblock

Offline

#654 2011-10-18 18:45:22

kyla
Member
From: Arlington, VA
Registered: 2011-03-12
Posts: 112
Website

Re: luakit browser framework (almost with jQuery!)

<noob question> Could someone tell me how to get tor working with luakit? I'm not sure what to enter/how to format the proxy address.

Offline

#655 2011-10-18 19:54:20

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

It works quite nice together with privoxy. To find out how to configure privoxy to connect through tor, there's plenty of stuff on the web and in privoxy's config file. Then simply connect luakit with privoxy. Simply type

:proxy $NAME 127.0.0.1:8118

(chose a name you like, e.g. hidemyass). Then you have to select that proxy, for that type :proxy , <tab> and select it. Luakit might crash then, but after a restart it should work.

Offline

#656 2011-10-18 21:26:02

kyla
Member
From: Arlington, VA
Registered: 2011-03-12
Posts: 112
Website

Re: luakit browser framework (almost with jQuery!)

Thanks, everything is working now smile

Offline

#657 2011-10-21 09:57:18

bratmaxe
Member
From: Germany
Registered: 2010-11-07
Posts: 71

Re: luakit browser framework (almost with jQuery!)

I have got a feature request regarding the noscript plugin. At the moment it is not possible to whitelist pages like ebay or deviantart, as they consist of hundreds of subdomains. In my oppinion it would be much more convenient to either handle it like the original noscript from firefox and whitelist the entire domain by default or, like it's done by chromiums buildin scriptblocker, allow wildcard matching like [*.]ebay.com, which would match ebay.com, login.ebay.com, shops.ebay.com, etc.

Offline

#658 2011-10-21 13:35:15

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: luakit browser framework (almost with jQuery!)

Standard notation for this would be ".domain.com". Note the initial dot. I'm not sure whether the noscript implementation would understand this, but the per-domain settings do, so might as well give it a shot.


Fear me! I have root! Sometimes...

Offline

#659 2011-10-21 14:04:51

bratmaxe
Member
From: Germany
Registered: 2010-11-07
Posts: 71

Re: luakit browser framework (almost with jQuery!)

Thank you very much mkaito! At least with the per-domain settings I'm now able to whitelist entire domains, I didn't know that this is possible. Unfortunatly the ".domain.com" trick seems not to work with the noscript module, at least not out of the box. I will have to look at the functions in noscript.lua a bit more, maybe I can figure it out. But however, thanks once again, per-domain settings work very well with your hint now.

Offline

#660 2011-10-21 23:03:12

arkindal
Member
From: 127.0.0.1
Registered: 2009-09-01
Posts: 37

Re: luakit browser framework (almost with jQuery!)

Greetings, I am looking for a browser I can use for something specific that I can't achieve on firefox and a user of the italian forum told me he achieved it without configuring anything, out of the box.
For some reason I didnt had the same luck.
What I am trying to do is to have a pcmanfm (or thinar or whatever file manager of my choice)  window open when I click on the "browse" buttons on some website, for example when I go to imageshack and click browse to pick an image to upload. The user on the italian forum told me he get a pcmanfm window when he click that kind of buttons, but as I said I dont, how to I achieve that? I opened every configuration file with heany and checked for anything that look like a file manager but found nothing.
Thanks for your attention.

Offline

#661 2011-10-22 08:30:00

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: luakit browser framework (almost with jQuery!)

Is pcmanfm/thunar your ONLY file-manager? All the browsers do what you want here with pcmanfm. Just make sure you have only one file-manager installed so that it becomes the xdg predefined file-manager.

Offline

#662 2011-10-22 10:01:28

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: luakit browser framework (almost with jQuery!)

Sorry for delay. Now I find time to try to get the mimetype file opener done. I seem to do it wrong.

I have in my ~/.config/luakit/rc.lua

-- Add download support
require "downloads"
require "downloads_chrome"

--downloads.default_dir = os.getenv("HOME") .. "/downloads" 
downloads.default_dir = "/tmp" 

and in my ~/.config/luakit/globals.lua

downloads.add_signal("open-file", function(destination, mime_type, w) 
   if mime_type == "application/pdf" then 
      luakit.spawn("epdfview " .. destination)
      return true 
   end 
end) 

I get this:
[andyrtr@workstation64 ~]$ luakit
/home/andyrtr/.config/luakit/globals.lua:220: attempt to index global 'downloads' (a nil value)
E: luakit: main:185: no windows spawned by rc file, exiting

Can you help me?

Offline

#663 2011-10-22 11:37:23

arkindal
Member
From: 127.0.0.1
Registered: 2009-09-01
Posts: 37

Re: luakit browser framework (almost with jQuery!)

el mariachi wrote:

Is pcmanfm/thunar your ONLY file-manager? All the browsers do what you want here with pcmanfm. Just make sure you have only one file-manager installed so that it becomes the xdg predefined file-manager.

Ok I had both, thunar and pcmanfm, so I removed thunar but it still open the same window that firefox (or ahy gtk application open).
Is there a way to force it in opening something I want?

Offline

#664 2011-10-22 11:44:41

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

AndyRTR wrote:

Sorry for delay. Now I find time to try to get the mimetype file opener done. I seem to do it wrong.

I have in my ~/.config/luakit/rc.lua

-- Add download support
require "downloads"
require "downloads_chrome"

--downloads.default_dir = os.getenv("HOME") .. "/downloads" 
downloads.default_dir = "/tmp" 

and in my ~/.config/luakit/globals.lua

downloads.add_signal("open-file", function(destination, mime_type, w) 
   if mime_type == "application/pdf" then 
      luakit.spawn("epdfview " .. destination)
      return true 
   end 
end) 

I get this:
[andyrtr@workstation64 ~]$ luakit
/home/andyrtr/.config/luakit/globals.lua:220: attempt to index global 'downloads' (a nil value)
E: luakit: main:185: no windows spawned by rc file, exiting

Can you help me?

I have all this stuff in the rc.lua and it works.

Offline

#665 2011-10-22 12:16:44

bratmaxe
Member
From: Germany
Registered: 2010-11-07
Posts: 71

Re: luakit browser framework (almost with jQuery!)

AndyRTR: The settings you did in the globals.lua belong into the rc.lua, below the require "downloads_chrome" line. Otherwise they are loaded to early, since the globals.lua is loaded before the downloads modules.

Offline

#666 2011-10-22 12:21:02

TheImmortalPhoenix
Member
From: 127.0.0.1
Registered: 2011-08-13
Posts: 436

Re: luakit browser framework (almost with jQuery!)

Army wrote:
AndyRTR wrote:

Sorry for delay. Now I find time to try to get the mimetype file opener done. I seem to do it wrong.

I have in my ~/.config/luakit/rc.lua

-- Add download support
require "downloads"
require "downloads_chrome"

--downloads.default_dir = os.getenv("HOME") .. "/downloads" 
downloads.default_dir = "/tmp" 

and in my ~/.config/luakit/globals.lua

downloads.add_signal("open-file", function(destination, mime_type, w) 
   if mime_type == "application/pdf" then 
      luakit.spawn("epdfview " .. destination)
      return true 
   end 
end) 

I get this:
[andyrtr@workstation64 ~]$ luakit
/home/andyrtr/.config/luakit/globals.lua:220: attempt to index global 'downloads' (a nil value)
E: luakit: main:185: no windows spawned by rc file, exiting

Can you help me?

I have all this stuff in the rc.lua and it works.

Delete cookies.db anh history.db in you .local/share/luakit smile

I have a question: when i right-click on a link and choose the option "open in new window" it opens in a new tab and focus to it...it there a way to open the new tab in background without focus to it? i'd want to remain in the same page and not to be directed to the new page

Offline

#667 2011-10-22 12:40:03

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: luakit browser framework (almost with jQuery!)

Putting the settings into rc.lua seems to do the trick. But I only get the gtk file save dialog and it stores the pdf file to my /tmp dir. Shouldn't it open epdfview automatically?

Offline

#668 2011-10-23 00:55:08

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

AndyRTR wrote:

Shouldn't it open epdfview automatically?

You could do that as well, but the way you configured it you only tell luakit which filetype should be opened with what application. Check out the download window (accessable with gd in the current tab or gD in a new tab) and then click 'open', or type :downloads, select the file and press o, it's the same. Then luakit opens the file in the configured application.

Offline

#669 2011-10-23 08:04:16

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: luakit browser framework (almost with jQuery!)

I didn't know the gd command so far. Thanks. Not I see my completed download but cannot open it. Nothing happens on any click. It seems LuaKit needs JavaScript for this. I have JS globally disabled in domain_props and can't find a way to allow this for itself. Can you help me once more?

Offline

#670 2011-10-23 09:08:45

bratmaxe
Member
From: Germany
Registered: 2010-11-07
Posts: 71

Re: luakit browser framework (almost with jQuery!)

You can always just press : and then type "downloads" which opens a menu with the last downloads and the option to select and open them.

But to enable javascript on the downloads page, place this in your domain_props

    ["downloads"] = {
        enable_scripts = true,
    }, 

Offline

#671 2011-10-23 09:16:59

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: luakit browser framework (almost with jQuery!)

Thanks. That did the trick.

Offline

#672 2011-10-28 11:11:24

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: luakit browser framework (almost with jQuery!)

My tab bar and status bar background are light gray in defiance of my theme.

--------------------------
-- Default luakit theme --
--------------------------

local theme = {}

-- Default settings
theme.font = "droid sans normal 9"
theme.fg   = "#fff"
theme.bg   = "#000"

-- Genaral colours
theme.success_fg = "#0f0"
theme.loaded_fg  = "#33AADD"
theme.error_fg = "#FFF"
theme.error_bg = "#F00"

-- Warning colours
theme.warning_fg = "#F00"
theme.warning_bg = "#FFF"

-- Notification colours
theme.notif_fg = "#444"
theme.notif_bg = "#FFF"

-- Menu colours
theme.menu_fg                   = "#000"
theme.menu_bg                   = "#fff"
theme.menu_selected_fg          = "#000"
theme.menu_selected_bg          = "#FF0"
theme.menu_title_bg             = "#fff"
theme.menu_primary_title_fg     = "#f00"
theme.menu_secondary_title_fg   = "#666"

-- Proxy manager
theme.proxy_active_menu_fg      = '#000'
theme.proxy_active_menu_bg      = '#FFF'
theme.proxy_inactive_menu_fg    = '#888'
theme.proxy_inactive_menu_bg    = '#FFF'

-- Statusbar specific
theme.sbar_fg         = "#fff"
theme.sbar_bg         = "#000"

-- Downloadbar specific
theme.dbar_fg         = "#fff"
theme.dbar_bg         = "#000"
theme.dbar_error_fg   = "#F00"

-- Input bar specific
theme.ibar_fg           = "#000"
theme.ibar_bg           = "#fff"

-- Tab label
theme.tab_fg            = "#888"
theme.tab_bg            = "#222"
theme.tab_ntheme        = "#ddd"
theme.selected_fg       = "#fff"
theme.selected_bg       = "#000"
theme.selected_ntheme   = "#ddd"
theme.loading_fg        = "#33AADD"
theme.loading_bg        = "#000"

-- Trusted/untrusted ssl colours
theme.trust_fg          = "#0F0"
theme.notrust_fg        = "#F00"

return theme
-- vim: et:sw=4:ts=8:sts=4:tw=80

Any ideas why this might be?

EDIT: This happened when I had a dunst* notification up that had a background that was about the same colour as my tab bar and status bar are now. I have tried uninstalling and re-installing luakit from abs and installing the git version. One of these (don''t remember which) fixed the background colour briefly, but then it switched back.

I have no idea whether or not the notification caused the problem. I just thought I'd mention it in the seemingly unlikely case it might be related.

* notification-daemon replacement which uses code from dmenu for the drawing algorithms.

EDIT: Switching my GTK theme fixed the problem. Seems like it's a bug in GTK or webkit.

Last edited by hellomynameisphil (2011-11-05 16:25:46)

Offline

#673 2011-10-31 20:17:26

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

I'm having some issues lately:

When I open a site with e.g. :open luakit.org, then quickly open a new tab with e.g. :tabopen bbs.archlinux.org (while luakit.org still loads) and then try to scroll the archlinux forum hitting "j", it doesn't work, although that tab is in front. Instead the first site is being scrolled. This behavior can be corrected to quickly change between tabs, e.g. gt gT (so I'm back on bbs.archlinux.org again).

Did this ever happen to somebody else?

Last edited by Army (2011-10-31 20:18:18)

Offline

#674 2011-11-02 04:40:58

sinplomo
Member
Registered: 2011-09-19
Posts: 4

Re: luakit browser framework (almost with jQuery!)

Army wrote:

I'm having some issues lately:

When I open a site with e.g. :open luakit.org, then quickly open a new tab with e.g. :tabopen bbs.archlinux.org (while luakit.org still loads) and then try to scroll the archlinux forum hitting "j", it doesn't work, although that tab is in front. Instead the first site is being scrolled. This behavior can be corrected to quickly change between tabs, e.g. gt gT (so I'm back on bbs.archlinux.org again).

Did this ever happen to somebody else?

It happens to me too, and it's one of the reasons that luakit crashes (when i try to close the current tab but luakit thinks its another tab and it crashes)
you can check if you are on the "right tab" look at the URL at bottom

And i am having some issues viewing some websites (like twitter) with the last webkit + luakit update

Offline

#675 2011-11-02 08:05:01

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: luakit browser framework (almost with jQuery!)

Issues with websites are 100% webkit's fault as far as I can see, the latest release is just horribly slow and unstable sad

Offline

Board footer

Powered by FluxBB