You are not logged in.
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. 
Offline
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
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
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.
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
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
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.
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
I just pulled the new version, testing right now. 
“From each according to his faculties; to each according to his needs”
Look at the code. Look at the silly code!
Offline
I just pulled the new version, testing right now.
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
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, exitingI 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
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
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
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
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
{title} {uri}
easylist.txt Enabledand 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 
“From each according to his faculties; to each according to his needs”
Look at the code. Look at the silly code!
Offline
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
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
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.
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.
Offline
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.
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
Offline
Another thanks for point out ...
While another browser is the LAST thing I need. Doesn't stop me from wanting more of em anyway. 
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 !) 
Offline
Another thanks for point out ...
While another browser is the LAST thing I need. Doesn't stop me from wanting more of em anyway.
This way I've managed to use luakit 24/7. Now with AdBlock onboard, too.
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-allroutersLast 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
@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
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_HOSTNAMEStart Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
Offline
In your terminal enter hostname.
Start Distrohopping here! -> Break your own...
VSIDO
LinuxCNC
Frugalware <- It's all just a kernel.
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.