You are not logged in.

#676 2011-11-02 18:36:49

wLee
Member
From: Amsterdam, NL
Registered: 2008-12-06
Posts: 33

Re: luakit browser framework (almost with jQuery!)

It crashes at 'download linked file' or 'save picture as' from the rightclick menu.
Any ideas what causes this?

Offline

#677 2011-11-02 20:28:33

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

Re: luakit browser framework (almost with jQuery!)

Would be helpful if you could provide some output luakit produces when it crashes. Start luakit in a terminal with

luakit -v 2>&1 > ~/.luakit.log

and show us the whole log or the important part at the end.

Offline

#678 2011-11-02 21:22:42

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

Re: luakit browser framework (almost with jQuery!)

So should I file a bug report about being unable to change the colour of my status bar and tab bar background? Is there something else I should be trying?

EDIT: Noticed I was having this problem with dwb as well, so I changed my GTK theme and fixed the problem.

Last edited by hellomynameisphil (2011-11-05 16:23:56)

Offline

#679 2011-11-03 18:22:55

wLee
Member
From: Amsterdam, NL
Registered: 2008-12-06
Posts: 33

Re: luakit browser framework (almost with jQuery!)

Army wrote:

Would be helpful if you could provide some output luakit produces when it crashes. Start luakit in a terminal with

luakit -v 2>&1 > ~/.luakit.log

and show us the whole log or the important part at the end.

Thanks Army, but it works again.
Part of a hide statusbar code was at the end of lua.rc, must have pasted it there by accident.

Offline

#680 2011-11-11 20:41:23

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: luakit browser framework (almost with jQuery!)

arkindal wrote:
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?

I second this question. Trying to find the right image to upload is tedious without thumbnails and random image-names.

Offline

#681 2011-11-15 21:24:20

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

Re: luakit browser framework (almost with jQuery!)

Hi, I just installed Arch 64bit on my brother's old Macbook Pro v3. I compiled luakit-git with luajit2 like I did on my old i686 machine. It worked on the i686 one, but with 64bit luakit doesn't work with luajit2, it works fine with lua. Can anyone confirm this? There's no log etc, it just segfaults.

Offline

#682 2011-11-16 00:12:26

mason.larobina
Member
From: Australia
Registered: 2009-07-02
Posts: 194
Website

Re: luakit browser framework (almost with jQuery!)

Army wrote:

Hi, I just installed Arch 64bit on my brother's old Macbook Pro v3. I compiled luakit-git with luajit2 like I did on my old i686 machine. It worked on the i686 one, but with 64bit luakit doesn't work with luajit2, it works fine with lua. Can anyone confirm this? There's no log etc, it just segfaults.

Can you use gdb to get a backtrace, that should narrow the issue down a bit.

Offline

#683 2011-11-16 06:29:17

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

Re: luakit browser framework (almost with jQuery!)

Ok, the output is short

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff58c3f7f in ?? () from /usr/lib/libluajit-5.1.so.2

Offline

#684 2011-11-16 09:07:54

jwbirdsong
Member
From: Western KS USA
Registered: 2006-11-25
Posts: 173

Re: luakit browser framework (almost with jQuery!)

Army
No (apparent) issues here with luajit2 and luakit-git on x86_64


PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.

Offline

#685 2011-11-16 14:26:59

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

Re: luakit browser framework (almost with jQuery!)

Ok, I found out what caused this. I changed the CFLAGS in /etc/makepkg.conf to (among others) -O3. I've been compiling stuff with -O3 on i686 for a couple of months now without any problems, but on x86_64 this seems to be different. Changed it back to -O2 and everything's fine.

Offline

#686 2011-11-17 21:37:37

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

Re: luakit browser framework (almost with jQuery!)

what's the benefit of using luajit2

Offline

#687 2011-11-24 20:50:38

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

Re: luakit browser framework (almost with jQuery!)

HI men, i've created a black theme but i have problems on luakit: the input forms are completely black and i cannot see what i write...is there a way to fix this? For firefox i've found this how-to: http://ubuntuforums.org/showthread.php?t=1715031

Offline

#688 2011-11-25 09:05:12

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: luakit browser framework (almost with jQuery!)

TheImmortalPhoenix wrote:

HI men, i've created a black theme but i have problems on luakit: the input forms are completely black and i cannot see what i write...is there a way to fix this? For firefox i've found this how-to: http://ubuntuforums.org/showthread.php?t=1715031

Same issue here.

Offline

#689 2011-11-26 11:08:51

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

Re: luakit browser framework (almost with jQuery!)

luakit supports custom css files via the domain_props in the globals.lua. So you could try to apply the css file from the linked thread in the "all" domains section in the domain_props. There should be an example entry in the default globals.lua. If you use the domain_props for the first time, make sure to uncomment it by removing the first --[[ and the last ]]

Offline

#690 2011-11-28 00:31:53

sablabra
Member
Registered: 2008-07-21
Posts: 32

Re: luakit browser framework (almost with jQuery!)

I've just recently started using luakit and I have some questions:

1) What is preferred way to block ads? Right now I'm using privoxy which works ok, but what options do I have?
2) Is it possible to make history start appearing right away when typing an url, rather than having to use <Tab> for it to appear?
3) Is there a scrollbar to enable?
4) Is there a buffer script available? (buffer of open tabs)
5) Follow link hints seem a bit slow when there are many links. Is this normal? I'd compare it's speed with pentadactyl, while with uzbl it happens in an instant.
6) Can I have the tab bar visible even when there's only one tab open?

I'm sure I had a few more questions which I might remember later smile

Last edited by sablabra (2011-11-28 00:59:18)

Offline

#691 2011-11-28 02:40:47

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: luakit browser framework (almost with jQuery!)

luakit doesn't seem to respect my XDG settings, aka; my download directory.  I have XDG_DOWNLOAD_DIR=/howl/down in my .zshrc and in ~/user-dirs.dirs  It keeps defaulting to my ~/ dir.   I tried setting download.default_dir = /howl/down in my rc.lua  after require "downloads".. but it didn't change anything either.  Any ideas?  Using luakit-develop-git (luakit 2011.07.22-r1-158-ga73e95e)

Offline

#692 2011-11-28 05:36:55

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

Re: luakit browser framework (almost with jQuery!)

milomouse wrote:

I tried setting download.default_dir = /howl/down in my rc.lua  after require "downloads".. but it didn't change anything either.

That was almost right. You have to set it to

downloads.default_dir = /howl/down

Offline

#693 2011-11-28 16:29:08

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: luakit browser framework (almost with jQuery!)

Army wrote:
milomouse wrote:

I tried setting download.default_dir = /howl/down in my rc.lua  after require "downloads".. but it didn't change anything either.

That was almost right. You have to set it to

downloads.default_dir = /howl/down

Ahhh, thanks, Army!  I knew it would be too simple. smile  I still thought it was supposed to do XDG dirs but maybe I'm wrong.

Last edited by milomouse (2011-11-28 16:29:46)

Offline

#694 2011-11-29 18:35:29

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

Re: luakit browser framework (almost with jQuery!)

Just in case anyone's interested: On the mailing list there are some nice things going on. I asked for a possiblity to add something to the url for specific domains, e.g. add "&html5=1" to youtube urls. I want to use html5 on youtube without the need of enabling cookies.
This can be done with

webview.init_funcs.youtube_appender = function (view, w)
    view:add_signal("navigation-request", function (v, uri)
        if string.match(uri, "youtube%.com/watch%?v=") and not string.match(uri, "&html5=1") then
            v.uri = uri .. "&html5=1"
            return false
        end
    end)
end

Then I thought, something like this might be required to force https for specific sites (like the AUR)

webview.init_funcs.https_enforcer = function (view, w)
    view:add_signal("navigation-request", function (v, uri)
        if string.match(uri, "aur.archlinux.org") and not string.match(uri, "^https://") then
            v.uri = string.gsub(uri, "^http", "https")
            return false
        end
    end)
end

Thanks to Karottenreibe for coding this! I can only provide ideas, looks like some of them are good ones smile

Then another user used this to create a mailto hook for mutt with urxvtc (adjust it to what you use)

webview.init_funcs.mailto_hook = function (view, w)
    view:add_signal("navigation-request", function (v, uri)
        if string.match(uri, "^mailto:") then
            local cmd = string.format("%s %q", "urxvtc -title mutt -e mutt", uri)
            luakit.spawn(cmd)
            return false
        end
    end)
end

Guys, this browser is SO great and I really really love it! Thanks so much Mason for creating it and Karottenreibe for your great support!!!

Last edited by Army (2011-11-29 18:37:06)

Offline

#695 2011-11-30 21:54:48

avx
Member
Registered: 2011-07-05
Posts: 71

Re: luakit browser framework (almost with jQuery!)

Army wrote:

Just in case anyone's interested: On the mailing list there are some nice things going on. I asked for a possiblity to add something to the url for specific domains, e.g. add "&html5=1" to youtube urls. I want to use html5 on youtube without the need of enabling cookies.
This can be done with

webview.init_funcs.youtube_appender = function (view, w)
    view:add_signal("navigation-request", function (v, uri)
        if string.match(uri, "youtube%.com/watch%?v=") and not string.match(uri, "&html5=1") then
            v.uri = uri .. "&html5=1"
            return false
        end
    end)
end

[...]

Nice idea, though having it as a "modify_url"-module would be better, ie something like

#mode regex string
pre somesite.org https
aft foobar.baz ?foo=bar

Offline

#696 2011-12-01 19:09:16

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

Re: luakit browser framework (almost with jQuery!)

Could you translate that into lua?

Offline

#697 2011-12-02 03:31:10

avx
Member
Registered: 2011-07-05
Posts: 71

Re: luakit browser framework (almost with jQuery!)

Army wrote:

Could you translate that into lua?

//Wie meinen?

If I could write that down as actual code? Well, I'm not that "fit" in Lua, yet, so I'll try a mix of Lua and pseudo-code.

urls_to_change = { youtube.com = { "after", "&html5=1 }, domain.tld = { "pre", "https://" } }

if current_uri in urls_to_change
then
  if urls_to_change[current_uri][1] == "after"
  then
    return current_uri .. urls_to_change[current_uri][2]
  elseif urls_to_change[current_uri][1] == "pre"
    return urls_to_change[current_uri][2] .. current_uri
end

So, your snippet was specifically for one task/url, I'd like it to be more generic, getting the values/settings for different URIs from a table or a plain text file, so there's no need to write so much code over and over again.

Offline

#698 2011-12-07 13:34:04

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

Re: luakit browser framework (almost with jQuery!)

On youtube with html5 enabled, there's no playback control with webkit based browsers. I only see the video screen, I can toggle playback by clicking on the video, but that's it. With firefox everything looks normal, it looks like the flash player.

Is this the same on your side?

Offline

#699 2011-12-07 20:38:27

alius.miles
Member
Registered: 2011-12-07
Posts: 3

Re: luakit browser framework (almost with jQuery!)

Wich method of ad blocking is best working now?
With privoxy I've got just blank pages, long adblock.lua filter everything by "http://*" and I have no idea, how to convert easylist to adblock.blacklist.
Any recommendation? Or maybe some help with user.action or regexp for manual convert of easylist? I would convert easylist to adblock.blacklist, but need some hint about necessary changes.

Offline

#700 2011-12-07 20:48:01

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

Re: luakit browser framework (almost with jQuery!)

I use https://gist.github.com/1073680 and then use a VERY ugly script, because I'm really a noob when it comes to programming. I'll share anyway

#!/bin/bash

cd /home/$HOME/.config/luakit
mv adblock.blacklist adblock.blacklist.old
wget http://winhelp2002.mvps.org/hosts.txt
tail -n +30 hosts.txt > adblock.blacklist
rm hosts.txt
cat adblock.blacklist|cut -d \# -f 1 > hosts
mv hosts adblock.blacklist
sed 's/127.0.0.1//g' -i adblock.blacklist
sed 's/ //g' -i adblock.blacklist
sed '/^$/d' -i adblock.blacklist
cat adblock.blacklist.custom >> adblock.blacklist
sed 's/\./%\./g' -i adblock.blacklist
#sed 's/\*/%\*/g' -i adblock.blacklist
dos2unix adblock.blacklist

I know this will hurt some of you in the eyes, but it works, that's all I want wink

The adblock.blacklist.custom is for sites that aren't in this host file.

Using such a host file of course isn't the best way, because host files are REALLY a mess for adblocking. I'd love to know a better way to get a good list. Converting adblock-plus lists to lua compatible syntax would be the best I guess, but that's beyond my capabilities!

Offline

Board footer

Powered by FluxBB