SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#76 2012-05-21 14:39:26

Eren
#! Die Hard
From: Black Mesa
Registered: 2009-07-27
Posts: 801
Website

Re: Luakit

I changed the blocking type of mine. I'm using this host http://someonewhocares.org/hosts/hosts file for blocking many ads. I think this one is a very better and stable way for me. Thanks for re-developing adblock. I'm gonna go with this. smile

Offline

Be excellent to each other!

#77 2012-05-21 15:43:53

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

Doomicide wrote:

I think I can close my fork now, as I don't have time/ambition to dive into lua and I consider my script complete and it will propably be obsolete anyways if you implement subscription management directly smile

For everyone constant luakit user I still guess it'll be mostly preferred to have lists crontabbed (thus updated when it's more comfortable for this individual one), and having an opportunity to add/delete/disable/enable [and so logically to fetch too] lists manually meant to be a solid part of this add-on. But not to follow flamevixen/Cr/etc behaviour where adblock has to update your subscriptions for you on a regular basis.
I'd believe when one has to choose between implementing his own self-crafted cron replacement, it's a good place to obtain your new experience. But what for me, I'd let cron do its work just as before.


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#78 2012-05-21 18:35:54

Doomicide
#! Junkie
From: the Nightosphere
Registered: 2011-06-24
Posts: 434
Website

Re: Luakit

Eren wrote:

I changed the blocking type of mine. I'm using this host http://someonewhocares.org/hosts/hosts file for blocking many ads. I think this one is a very better and stable way for me. Thanks for re-developing adblock. I'm gonna go with this. smile

This might be of interest to you then: hostsblock: cli utility/cronscript to automate hostsfile adblocking


“From each according to his faculties; to each according to his needs”
Look at the code. Look at the silly code!

Offline

#79 2012-05-21 19:32:27

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

Dying in debugging/understanding Lua/having fun with this extremely interesting framework of luakit.
Feels like gonna publish an intermediate stage. Anyone in for testing?

Edit¹: I'm done dealing with it for tonight. Now feel free to pull or fork if you wanna test whatchanged and report whatsbroken back. ;D

Edit²: Giving you a tiny hint. Try to execute :adblock; the bindings can be listed with :<Tab> or found in the end of the file.

Edit³: Who'll be the first to tell me what does it remind him look like?

Last edited by Plaque_FCC (2012-05-21 20:27:57)


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#80 2012-05-21 21:49:49

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

Eren wrote:

I changed the blocking type of mine. I'm using this host http://someonewhocares.org/hosts/hosts file for blocking many ads. I think this one is a very better and stable way for me. Thanks for re-developing adblock. I'm gonna go with this. smile

The URI you listed here contains so many hosts that for some of my fellows look like «must have visited». ;D
No idea why, but they said so.

Thank you for testing and suggesting. Many developers code for others, less — for themselves. I belong to both sides because most of my time I write for others what I['d] use myself.

And I'm glad to hear you've found the proper one you were looking for!


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#81 2012-05-22 10:06:55

Doomicide
#! Junkie
From: the Nightosphere
Registered: 2011-06-24
Posts: 434
Website

Re: Luakit

I just pulled the new version, testing right now. smile


“From each according to his faculties; to each according to his needs”
Look at the code. Look at the silly code!

Offline

#82 2012-05-22 10:25:31

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

Doomicide wrote:

I just pulled the new version, testing right now. smile

Waiting for your experience story. ;D

Edit¹: And yes, yet it disables all filter lists found without subscriptions by default.

Last edited by Plaque_FCC (2012-05-22 10:30:16)


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#83 2012-05-22 10:47:40

Doomicide
#! Junkie
From: the Nightosphere
Registered: 2011-06-24
Posts: 434
Website

Re: Luakit

Starting luakit without editing the adblock file gives me an error then exits:

/home/doom/.config/luakit/adblock.lua:379: attempt to index local 'fh' (a nil value)
E: luakit: main:184: no windows spawned by rc file, exiting

I have to write "easylist.txt" in either filterfiles = {} or subscriptions = {} (or both), then it starts but adblocking doesn't work. If I understood you correctly I need to add easylist to the subscriptions, how  do I do this. Do I have to create  adblock_dir .. "/subscriptions" and easylist.txt to it, if so in which format is the file?


“From each according to his faculties; to each according to his needs”
Look at the code. Look at the silly code!

Offline

#84 2012-05-22 11:11:03

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

Hold a sec.

Edit¹: All you need is to re-pull from git, update adblock.lua, place your easylist.txt into adblock_dir. You'd better remove the adblock_dir .. "/subscriptions" file at all, start luakit and hit gA from keyboard.
Then enable your lists with :able <number_of_the_list>

Edit²: May become offline for a while because of RF noises in the athmosphere; test out and write back if possible: here or in the Issues at github.

Last edited by Plaque_FCC (2012-06-07 09:50:50)


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#85 2012-05-22 12:12:36

Doomicide
#! Junkie
From: the Nightosphere
Registered: 2011-06-24
Posts: 434
Website

Re: Luakit

Works fine after doing adblock-reload. A few small suggestions/questions:
1. Why are the lists indexed 2-
2. What is {title}: {uri}


“From each according to his faculties; to each according to his needs”
Look at the code. Look at the silly code!

Offline

#86 2012-05-22 12:43:10

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

Doomicide wrote:

Works fine after doing adblock-reload. A few small suggestions/questions:
1. Why are the lists indexed 2-
2. What is {title}: {uri}

1. „2-”?? Completely no idea why, dear! (%
2. {title}: {uri} is a template for adblock page chrome where the module routine puts title and URI for each list registered.
URI is shown for each subscription list; title is shown for each list, it's the list name.

Update¹: It works similarily to the Bookmarks page, as its logic was severely ported from luakit/lib/bookmarks.lua just to save time and reuse code.
BUT still sometimes I got no idea how Bookmarks will work next time, so there still can exist some inherited underwater stones. Just a subject to test it out.

Last edited by Plaque_FCC (2012-05-22 12:47:23)


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#87 2012-05-22 12:56:02

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

You now can post your subscriptions file content. I mean, paste it here as is.

Last edited by Plaque_FCC (2012-05-22 13:00:32)


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#88 2012-05-22 13:19:38

Doomicide
#! Junkie
From: the Nightosphere
Registered: 2011-06-24
Posts: 434
Website

Re: Luakit

{title}    {uri}    
easylist.txt        Enabled

and by 2- I meant they start with 2 and then are correctly numbered till the last one, sry that I didn't express myself clearly there wink


“From each according to his faculties; to each according to his needs”
Look at the code. Look at the silly code!

Offline

#89 2012-05-22 13:25:30

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

There'd not be {title}<tab>{uri}<tab> line in the file.
NO IDEA HOW IT GOT THERE!! ;D


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#90 2012-05-22 13:27:42

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

From 2 it starts because there is no 'tags' (now 'opts') listed after {title}<tab>{uri}<tab> in the file.
LOL. Maybe I have something to do with that…

The format of subscriptions file (derived from $XDG_DATA_HOME/luakit/bookmarks:
{list.title}\t{list.uri}\t{list_opts_by_space}
One list entry per line.
Used in adblock.read_subscriptions() && adblock.write_subscriptions().

For list.title being used short filename (e.g. easylist.txt).

Will be supplied URI management and fetching mechanism soon.

Last edited by Plaque_FCC (2012-05-22 13:39:26)


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#91 2012-05-24 20:34:45

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,871
Website

Re: Luakit

Doomicide wrote:
Eren wrote:

I changed the blocking type of mine. I'm using this host http://someonewhocares.org/hosts/hosts file for blocking many ads. I think this one is a very better and stable way for me. Thanks for re-developing adblock. I'm gonna go with this. smile

This might be of interest to you then: hostsblock: cli utility/cronscript to automate hostsfile adblocking

I have no idea how to use or install that hostsblock script...but the host files that eren linked works wonders.


WP | G+ | Bear no grudges for they tax the mind and body.

Offline

#92 2012-05-24 21:38:21

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

sunfizz98 wrote:
Doomicide wrote:
Eren wrote:

I changed the blocking type of mine. I'm using this host http://someonewhocares.org/hosts/hosts file for blocking many ads. I think this one is a very better and stable way for me. Thanks for re-developing adblock. I'm gonna go with this. smile

This might be of interest to you then: hostsblock: cli utility/cronscript to automate hostsfile adblocking

I have no idea how to use or install that hostsblock script...but the host files that eren linked works wonders.

In this file there are listed lines which make aliases to 127.0.0.1 [your localhost] that prevents those names aliased to be DNS-resolved to their actual IPv4 web server addresses. Somehow simply composing your regular /etc/hosts of your [maybe] configured hosts lines and this file results in rock solid blocking of these hosts.

Rather good if updated in time and fits your need in providing a kind of „parental umbrella” to protect children accessing the internet-enabled machine during your absence from visiting a number of sites. Or locking entertainment/ads sites (works for each browser, each TCP/IP-enabled application ever, including Squid for corp. proxy hosts) away.

Pretty nice but make sure you don't run a web server on your 127.0.0.1:80.

Last edited by Plaque_FCC (2012-05-24 21:40:48)


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#93 2012-05-25 04:32:21

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,871
Website

Re: Luakit

I seem to have screwed myself over by using the hosts file provided by Eren since I can only view the very first post per page in the crunchbang forums...


WP | G+ | Bear no grudges for they tax the mind and body.

Offline

#94 2012-05-25 05:39:05

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,271

Re: Luakit

Another thanks for point out ...


While another browser is the LAST thing I need. Doesn't stop me from wanting more of em anyway. wink


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

#95 2012-05-25 08:27:29

Plaque_FCC
#! Member
Registered: 2012-05-13
Posts: 55

Re: Luakit

CBizgreat! wrote:

Another thanks for point out ...


While another browser is the LAST thing I need. Doesn't stop me from wanting more of em anyway. wink

This way I've managed to use luakit 24/7. Now with AdBlock onboard, too.

sunfizz98 wrote:

I seem to have screwed myself over by using the hosts file provided by Eren since I can only view the very first post per page in the crunchbang forums...

Maybe this can help you get back:

$ cat /etc/hosts | sed "s/`hostname`/your_host_name_here/"
127.0.0.1    localhost
127.0.1.1    your_host_name_here

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Last edited by Plaque_FCC (2012-05-25 08:29:01)


Feel free to ask me on anything. At least, a topic to chat for a while, eh?
luakit && awesome && mpd && gdb && bash && python && GTK && gedit && deluged && GSM/xCDMA && git (gc/gh) && LP user.

Offline

#96 2012-05-25 09:27:28

Eren
#! Die Hard
From: Black Mesa
Registered: 2009-07-27
Posts: 801
Website

Re: Luakit

@sunfizz98 mate here's my hosts conf and what I did; http://ubuntuone.com/0V709DH2gDulWpPvpSwDiZ

Last edited by Eren (2012-05-25 09:28:03)

Offline

#97 2012-05-25 09:33:15

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,212
Website

Re: Luakit

valid point,  it would be better to send to 0.0.0.0 rather than 127.0.0.1

the MVPS file is one to consider as /etc/hosts -> http://winhelp2002.mvps.org/hosts.txt

If anyone uses it, change 127.0.0.1 to 0.0.0.0 and remember to add on top:

127.0.0.1    localhost
127.0.0.1    YOUR_HOSTNAME

Start Distrohopping here! -> Break your own... cool  VSIDO  cool LinuxCNC  kiss Frugalware <- It's all just a kernel.

Offline

#98 2012-05-25 09:36:45

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,871
Website

Re: Luakit

For lack of knowledge or pure ignorance, how do I find my hostname? I think I forgot to set it during my installation (was half-asleep).


WP | G+ | Bear no grudges for they tax the mind and body.

Offline

#99 2012-05-25 09:39:27

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,212
Website

Re: Luakit

In your terminal enter hostname.


Start Distrohopping here! -> Break your own... cool  VSIDO  cool LinuxCNC  kiss Frugalware <- It's all just a kernel.

Offline

Be excellent to each other!

#100 2012-05-25 09:41:57

Eren
#! Die Hard
From: Black Mesa
Registered: 2009-07-27
Posts: 801
Website

Re: Luakit

If you forgot, it'll be probably localhost. big_smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo