You are not logged in.

#526 2011-08-27 10:53:40

Gooru
Member
From: Poland
Registered: 2010-08-25
Posts: 53

Re: luakit browser framework (almost with jQuery!)

Great browser, but I am experiencing slow website loading, don't know why pages sometimes stop at 10% for a moment, or at 60%, but sometimes they load in a normal time. It's usual when I open luakit first time after reboot. Do you guys have any idea what can cause this strange behaviour?

Offline

#527 2011-08-27 11:29:22

nXqd
Member
Registered: 2010-07-01
Posts: 173

Re: luakit browser framework (almost with jQuery!)

I have some questions :

  • How to enable developer tool in luakit

  • Can I have the feature : open the last opened tab like the other browser

  • Where do I find doc for "component" like form filler ?

  • I'm not familiar with lua. I try to change the user_agent in globals.lua to make calendar.google.com display fine with Firefox useragent but it doesn't work. This is my try

    globals.useragent = "Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox    /6.0"globals.useragent = "Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0"

Thanks for reading this, and luakit is very fast indeed smile

Last edited by nXqd (2011-08-27 11:37:40)


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#528 2011-08-27 12:13:45

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

Re: luakit browser framework (almost with jQuery!)

nXqd wrote:

Can I have the feature : open the last opened tab like the other browser

pressing "u" opens the last closed tabs

nXqd wrote:

I'm not familiar with lua. I try to change the user_agent in globals.lua to make calendar.google.com display fine with Firefox useragent but it doesn't work. This is my try

globals.useragent = "Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox    /6.0"globals.useragent = "Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0"

Try this:

globals.useragent = string.format("Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0")

Edit:

nXqd wrote:

How to enable developer tool in luakit

That's not implemented. you can only view the sourcecode with :viewsource

Last edited by bratmaxe (2011-08-27 12:28:10)

Offline

#529 2011-08-27 13:25:31

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

Re: luakit browser framework (almost with jQuery!)

bratmaxe wrote:

Try this:

globals.useragent = string.format("Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0")

Just to be sure he understands it, this line must go into the globals.lua. Just take a quick look into this file, you'll see another user agent already in this file. Comment this (in lua this is done with a -- at the beginning of the line) and put the above line in there instead.

Offline

#530 2011-08-27 13:34:23

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

Re: luakit browser framework (almost with jQuery!)

nXqd wrote:

Just switch from jumanji to luakit. I hope this will be better. Figuring out how to open developer tool in luakit wink

I think it's not quite implemented yet. I found some work on it by Fabian Streitel, but I'm not sure how far that has gotten.


Fear me! I have root! Sometimes...

Offline

#531 2011-08-27 13:38:08

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

Re: luakit browser framework (almost with jQuery!)

Gooru wrote:

Great browser, but I am experiencing slow website loading, don't know why pages sometimes stop at 10% for a moment, or at 60%, but sometimes they load in a normal time. It's usual when I open luakit first time after reboot. Do you guys have any idea what can cause this strange behaviour?

I've had some strange connection behavior with luakit of late, going as far as killing my router sometimes. But while I think connections are handled internally by libwebkit, this only happens when I'm using luakit. Strange.


Fear me! I have root! Sometimes...

Offline

#532 2011-08-27 15:37:36

nXqd
Member
Registered: 2010-07-01
Posts: 173

Re: luakit browser framework (almost with jQuery!)

bratmaxe wrote:

pressing "u" opens the last closed tabs

I mean the whole tabs which I opened. Then other time, I open luakit and it will appear smile
Thanks for your answer wink


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#533 2011-08-27 15:59:07

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

Re: luakit browser framework (almost with jQuery!)

Ah ok, then press "ZZ" to close luakit. This will save your session and open it next time. If you want this to happen automatically every time you close luakit, take a look at this post:  https://bbs.archlinux.org/viewtopic.php … 55#p916355

Offline

#534 2011-08-28 09:34:49

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: luakit browser framework (almost with jQuery!)

I read a lot of news via google news. A new tab opens when I click a link. After reading I would press "d" to close the tab. The problem is that luakit defaults to the next tab (on the right) whereas I would prefer it to return to the previous tab I was at, wherever that may be; in this case, the one where google news is. Actually this behaviour makes more sense. Is this possible? If not at least return to the "parent" if there is one, or the previous tab (to the left). I thought I could achieve this by making tabs open adjacent to the "parent" but when the child is closed it still defaults to the next tab. Right now my only solution is to make sure google news is the last tab.

Last edited by stryder (2011-08-28 09:46:13)

Offline

#535 2011-08-28 11:30:40

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

Re: luakit browser framework (almost with jQuery!)

I was thinking of this as well, maybe it's best to file this in the bugtracker as a feature request.

Offline

#536 2011-08-28 14:35:31

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

Re: luakit browser framework (almost with jQuery!)

I use luakit fullscreen so I don't have a clock. Is it possible to have a clock at the bottom left? (next to the page scrolled percentage?)

Offline

#537 2011-08-28 17:19:38

nXqd
Member
Registered: 2010-07-01
Posts: 173

Re: luakit browser framework (almost with jQuery!)

el mariachi wrote:

I use luakit fullscreen so I don't have a clock. Is it possible to have a clock at the bottom left? (next to the page scrolled percentage?)

just curiousity, where is that clock actually in luakit ?


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#538 2011-08-28 17:57:07

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

Re: luakit browser framework (almost with jQuery!)

There isn't a clock in luakit, I was just asking if there was a way to add one. I don't know Lua, that's why I'm asking. Please don't see this as a feature request (it's a stupid feature) -- if it can be done by me pasting some lines into a file cool, if it's troublesome just forget I asked for this tongue

actually.. just forget about it, I found a way to solve this little inconvienience in my actual desktop wink

Last edited by el mariachi (2011-08-28 17:59:20)

Offline

#539 2011-08-28 20:40:04

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: luakit browser framework (almost with jQuery!)

el mariachi wrote:

actually.. just forget about it, I found a way to solve this little inconvienience in my actual desktop wink

Dare to tell us what you did?


To know or not to know ...
... the questions remain forever.

Offline

#540 2011-08-28 21:26:12

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

Re: luakit browser framework (almost with jQuery!)

TWMN smile
I haven't done it yet (no time now to fiddle with code by myself), but it seems a good way to check the time/date. just create a key combination to make it popup (or slide) and ta-daah
Maybe it's overkill for a stupid clock, but i want 100% of my screen real estate.

Offline

#541 2011-08-29 01:38:16

phynix
Member
Registered: 2008-09-21
Posts: 28

Re: luakit browser framework (almost with jQuery!)

domain_props = { --[[
    ["all"] = {
        ["enable-scripts"]          = false,
        ["enable-plugins"]          = false,
        ["enable-private-browsing"] = false,
        ["user-stylesheet-uri"]     = "",
    },
    ["youtube.com"] = {
        ["enable-scripts"] = true,
        ["enable-plugins"] = true,
    },
    ["bbs.archlinux.org"] = {
        ["user-stylesheet-uri"]     = "file://" .. luakit.data_dir .. "/styles/dark.css",
        ["enable-private-browsing"] = true,
    }, ]]

    ["http://useragentstring.com/"] = {
        ["user-agent"]               = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.7 Safari/535.1",
    },
}

Is there something wrong with this that I don't see? I mean most of it is commented. I really only care about the last 3 or 4 lines.

Last edited by phynix (2011-08-29 01:39:07)

Offline

#542 2011-08-29 08:47:22

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

Re: luakit browser framework (almost with jQuery!)

@phynix, are you sure that this actually works? I mean setting the user-agent for specific domains. I'll have to try this!

Last edited by Army (2011-08-29 08:55:17)

Offline

#543 2011-08-29 09:01:39

Vain
Member
Registered: 2008-10-19
Posts: 179
Website

Re: luakit browser framework (almost with jQuery!)

Haven’t checked the sources, but I bet you have to take “domain” literally. That is, use “useragentstring.com” instead of “http://useragentstring.com/”.

Offline

#544 2011-08-29 22:53:00

phynix
Member
Registered: 2008-09-21
Posts: 28

Re: luakit browser framework (almost with jQuery!)

@Army I just assumed. I followed this http://webkitgtk.org/reference/WebKitWebSettings.html in globals.lua. Note: original link in the file is wrong (404) though. As you can see though something I am doing isn't right. Most sites don't even need it, but the two I have found are plus.google.com and grooveshark.com. The latter just posts an annoying "your browser is outdated" message. 

@Vain Changed => same results sadly.

Last edited by phynix (2011-08-29 22:56:57)

Offline

#545 2011-08-30 09:25:04

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

Re: luakit browser framework (almost with jQuery!)

el mariachi wrote:

I use luakit fullscreen so I don't have a clock. Is it possible to have a clock at the bottom left? (next to the page scrolled percentage?)

Sorry for the late reply but adding a clock to the statusbar is really simple. You can use this if you're not already happy with your WM solution:

https://gist.github.com/1180520

Last edited by mason.larobina (2011-08-30 09:45:28)

Offline

#546 2011-08-30 12:17:18

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: luakit browser framework (almost with jQuery!)

I'm using the "big" browsers currently (Firefox, sometimes Chromium). But I also had a look at luakit. In a way I find it very nice. But for me to switch to luakit full-time, I'm afraid I'll flood you with feature requests smile. Though I suppose I can mention a few, see what comes of it.

To start, the possibility to delete specific items from the history. Preferably from the menu. Like say, I do :tabopen blah<tab> and results show up. Now instead of just moving through the results and opening one, it would also be possible to delete one. And no, this isn't about hiding porn smile. It's about having it so that the most relevant results quickly pop up.

Second, when it comes to browsing, I'm still much of a mouse guy, so I'd like at least two things. One is that using the mouse wheel above the tabbar would switch between tabs. I see it was mentioned earlier in this thread, but there are some technical difficulties, is it still not possible?
The other thing is autoscroll. I use that a lot. Someone posted a script for dwb, any takers adapting that to luakit? I found a script that activates autoscroll with a keyboard shortcut and then one controls the speed of scrolling via keys. That is cool, but I'd still prefer mouse autoscroll.

Then we come to bookmarks. I'd like that bookmarks would store not just the url, but also the page title. I suppose storing bookmarks in a database (like history is) instead of just a simple text file would be in order? Then I'd like a nicer presentation in luakit://bookmarks, though possibly I could easily adjust some file that determines the look of that page? Basically, I'd like bookmarks to be a lot more like history is currently.

Hmm, would a request for storing and showing favicons in history/bookmarks (and maybe even on tabs) be taking it too far, considering luakit is meant to be a minimalist browser? There's a script to show the favicon as the application icon, it's quite cool.

Finally, spell-checking. Is luakit capable of it? It's a feature if webkit, luakit would just need to hook into it and provide a frontend.


That's it for now. Feel free to ignore smile. It's just that the big problem is, figuring out how to code some of the stuff myself would take a looooong time, with no guarantee I would ever gain enough knowledge to do it. I dabble in simple modifications of existing stuff, I've never before created something really new from scratch.

Offline

#547 2011-08-30 13:36:47

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

Re: luakit browser framework (almost with jQuery!)

About the bookmarks, maybe some people don't know this, but it's possible to group them. If you type "B" and then after a link add a word, e.g.

:bookmark https://bbs.archlinux.org/viewtopic.php?pid=983863 Archlinux
:bookmark https://bbs.archlinux.org/viewtopic.php?id=125310 Archlinux

These two links will be grouped. Check it out, you'll see how it works. I really like this feature! But I guess you are right about the title. What about not actually putting the link into the bookmarks page, but the title as a hyperlink. That way it still looks clean and the above feature remains.

Offline

#548 2011-08-30 17:12:22

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: luakit browser framework (almost with jQuery!)

I'm playing with dwb right now. Wow, that thing has a lot: favicons in tabs, a gui to set options, spell-checking, bookmarks that work as Army describes - a clickable page title... who knows what else I'll discover. Oooh, I see a flash blocker. Hmm, maybe dwb will be the thing for me.

Offline

#549 2011-08-31 03:22:35

phynix
Member
Registered: 2008-09-21
Posts: 28

Re: luakit browser framework (almost with jQuery!)

@Army Did you figure it out?

Offline

#550 2011-08-31 07:26:49

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

Re: luakit browser framework (almost with jQuery!)

This user-agent thing in domain_props doesn't seem to work here...

Offline

Board footer

Powered by FluxBB