The Adblock Project Forum Index The Adblock Project
Pull up a seat ...stay a while.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Edit filterlist in an editor

 
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main
View previous topic :: View next topic  
Author Message
Andreas Borutta



Joined: 11 Jul 2004
Posts: 4

PostPosted: Sun Jul 11, 2004    Post subject: Edit filterlist in an editor Reply with quote

Hi,

I like to edit the filterlist in an editor.
In which file I could find the list?

May I add comments to the filterlist to give it structure?

Thanks.

To the developers: Great tool! Thank you.
_________________
Andreas

German-language:
http://borumat.de/openoffice-writer-tipps
http://borumat.de/firefox-browser-tipps
http://borumat.de/40tude-dialog-newsreader-tipps


Last edited by Andreas Borutta on Sun Jul 11, 2004; edited 1 time in total
Back to top
View user's profile Send private message
kstahl
Support


Joined: 02 Jan 2004
Posts: 1202
Location: Stockholm, Sweden

PostPosted: Sun Jul 11, 2004    Post subject: Reply with quote

You can not edit the filter list directly in an editor.

However, you can export it (the Adblock options menu) and then edit the exported list in a text editor. As far as I know you can't add comments however. And be sure to keep [Adblock] at the top of the file and also make sure that you leave no blank lines, they would be interpreted as "block everything" when you import the list.
_________________
Adblock 0.5.3.042
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.Cool Gecko/20051111 Firefox/1.5
Back to top
View user's profile Send private message
Org



Joined: 23 Oct 2003
Posts: 349

PostPosted: Sun Jul 11, 2004    Post subject: Reply with quote

kstahl told the best way to do it, but if you really want, you can edit the filters directly in an editor: quit your browser and edit the file prefs.js in your profile directory. Look for line starting with

user_pref("adblock.patterns",
Back to top
View user's profile Send private message
Andreas Borutta



Joined: 11 Jul 2004
Posts: 4

PostPosted: Sun Jul 11, 2004    Post subject: Reply with quote

Org wrote:
quit your browser and edit the file prefs.js in your profile directory. Look for line starting with

user_pref("adblock.patterns",


In which subdirectory of my profile please is the appropriate pref.js?

All subdirectories in "~\profiles\~\extensions\" have cryptical names?

May I use the usual initial-characters "//" for comments in this file?
_________________
Andreas

German-language:
http://borumat.de/openoffice-writer-tipps
http://borumat.de/firefox-browser-tipps
http://borumat.de/40tude-dialog-newsreader-tipps
Back to top
View user's profile Send private message
kstahl
Support


Joined: 02 Jan 2004
Posts: 1202
Location: Stockholm, Sweden

PostPosted: Sun Jul 11, 2004    Post subject: Reply with quote

Take care. The reason I didn't mention this file is that it's the preferences file for the browser itself, not just Adblock.

For me, on Windows, it's located at
%APPDATA%\Mozilla\Firefox\Profiles\default.xxx\prejs.js

I don't think this is what you meant when you said you wanted to edit the list in an external editor and add comments, but by all means, check it out.
_________________
Adblock 0.5.3.042
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.Cool Gecko/20051111 Firefox/1.5
Back to top
View user's profile Send private message
Andreas Borutta



Joined: 11 Jul 2004
Posts: 4

PostPosted: Sun Jul 11, 2004    Post subject: Reply with quote

kstahl wrote:
Take care. The reason I didn't mention this file is that it's the preferences file for the browser itself, not just Adblock.

For me, on Windows, it's located at
%APPDATA%\Mozilla\Firefox\Profiles\default.xxx\prejs.js

I don't think this is what you meant when you said you wanted to edit the list in an external editor and add comments, but by all means, check it out.


OK. I expected a file with a filter in each line, that's why I was confused, sorry.

The prefs.js is not usable for the purpose of editing because all the filter-expressions are in one single line.

Sum up - if the developers read this:
Please add the option to open the complete filterlist in an editor. The procedure of exporting and importing is quite fussy.
Additionally I wish to have the possibility to add comments.

Thank you.
Regards.
_________________
Andreas

German-language:
http://borumat.de/openoffice-writer-tipps
http://borumat.de/firefox-browser-tipps
http://borumat.de/40tude-dialog-newsreader-tipps
Back to top
View user's profile Send private message
Org



Joined: 23 Oct 2003
Posts: 349

PostPosted: Sun Jul 11, 2004    Post subject: Reply with quote

Is it really necessary? How often would anyone really need this? The export-edit-import cycle is not that hard, and pressing ctrl-shift-p opens the filter list in fully editable form. Did you notice that you can edit all filters in place? I agree on comments, though. Having comments could be useful in some cases.
Back to top
View user's profile Send private message
Andreas Borutta



Joined: 11 Jul 2004
Posts: 4

PostPosted: Sun Jul 11, 2004    Post subject: Reply with quote

The "fully editable form" allows to edit one single line at a time. One could not select e. g. a couple of lines or other usual steps which a real editor offers.

But please regard my suggestion just as that. :)
_________________
Andreas

German-language:
http://borumat.de/openoffice-writer-tipps
http://borumat.de/firefox-browser-tipps
http://borumat.de/40tude-dialog-newsreader-tipps
Back to top
View user's profile Send private message
Serotonin1



Joined: 24 Oct 2004
Posts: 2
Location: Ditchling, West Sussex, United Kingdom

PostPosted: Sun Oct 24, 2004    Post subject: Reply with quote

Where do you press Ctrl+Shift+P?
_________________
Serotonin X Infinite
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
kstahl
Support


Joined: 02 Jan 2004
Posts: 1202
Location: Stockholm, Sweden

PostPosted: Sun Oct 24, 2004    Post subject: Reply with quote

In the browser. It simply opens up the Adblock Preferences dialog, just like doing the Tools > Adblock > Preferences cha-cha.
_________________
Adblock 0.5.3.042
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.Cool Gecko/20051111 Firefox/1.5
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group