The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniWeb > OmniWeb General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Creating and Editing Ad Filters - Tutorial Thread Tools Search this Thread Display Modes
OK, like many others here I'd like to see some improvements in adding and managing adblocking filters. I like the UI of AdBlock Plus, myself. but in the meantime, there's a fairly simple way to access the rules in OW and edit them in your favorite coding text editor (I use TextMate).
  1. Open Terminal, and quit Omniweb
  2. Copy your prefs file to your Desktop:
    Code:
    cp ~/Library/Preferences/com.omnigroup.OmniWeb5.plist ~/Desktop/
  3. Convert the format of the file from Binary to XML:
    Code:
    plutil -convert xml1 ~/Desktop/com.omnigroup.OmniWeb5.plist
  4. Open the file in your text editor and look for the key <key>OWAddressesToFilter</key>
  5. This is an array of <string> nodes. These are the filters. Edit as needed, following standard regex rules. In TextMate, I sort them too. Edit them to be simple as possible, e.g. "doubleclick\.net". You can also add new ones, just be sure to wrap them in <string></string>.
  6. When finished, save the file
  7. Convert it BACK to Binary
    Code:
    plutil -convert binary1 ~/Desktop/com.omnigroup.OmniWeb5.plist
  8. Copy it back to the Preferences folder
    Code:
    cp ~/Desktop/com.omnigroup.OmniWeb5.plist ~/Library/Preferences/
  9. Open OW and enjoy.
 
Oh, and you can download Filterset G and edit it and take parts to use.

Just remember the syntax is different! You need to escape periods with a backslash (doubleclick.net -> doubleclick\.net) and wildcards do not work the same way. In most cases, you can use .* in place of an AdBlock *. It helps to know a bit about Regular Expressions. Be conservative and you should be ok.

YMMV. I offer no warranty for damages caused by this mucking about. Make backups.

Here's the simple part of Filterset G, converted:
Code:
<string>0instant\.com</string>
<string>1100i\.com</string>
<string>125x125\.com</string>
<string>265\.com</string>
<string>2mdn\.net</string>
<string>2o7\.net</string>
<string>action\.ientry\.net</string>
<string>adinterax\.com</string>
<string>adsence\.sogou\.com</string>
<string>adserveredirect</string>
<string>adwork\.net\.ua</string>
<string>afcyhf\.com</string>
<string>affiliatefuture\.com</string>
<string>affiliatesensor\.com</string>
<string>affistats\.com</string>
<string>aftrack\.asp</string>
<string>aj\.600z\.com</string>
<string>allyes\.com</string>
<string>anrdoezrs\.net</string>
<string>artbanners/task,clk</string>
<string>atdmt\.com</string>
<string>atwola\.com</string>
<string>audiencematch\.net</string>
<string>avolutia\.com</string>
<string>awaps\.net</string>
<string>awltovhc\.com</string>
<string>awrz\.net</string>
<string>banman\.asp</string>
<string>banmanpro</string>
<string>bannex\.com\.ua</string>
<string>baventures\.com</string>
<string>bbmedia\.cz</string>
<string>bc\.geocities\.yahoo\.co\.jp</string>
<string>belnk\.com</string>
<string>beweb\.com</string>
<string>bfast\.com</string>
<string>bidvertiser\.com</string>
<string>bin-layer\.de</string>
<string>biz2008\.com</string>
<string>blogclick\.jp</string>
<string>bluestreak\.com</string>
<string>bncnt\.com</string>
<string>bns1\.net</string>
<string>bravenetmedianetwork\.com</string>
<string>bridgetrack\.com</string>
<string>bs\.yandex\.ru</string>
<string>budsinc\.com</string>
<string>casalemedia</string>
<string>cashregie\.com</string>
<string>cc-dt\.com</string>
<string>checkm8\.com</string>
<string>chitika\.net</string>
<string>chunnel\.de</string>
<string>cjt1\.net</string>
<string>cognigen\.net</string>
<string>commission-junction\.com</string>
<string>connextra\.com</string>
<string>contextweb\.com</string>
<string>cpaffiliates\.net</string>
<string>cpxinteractive\.com</string>
<string>custom-click\.com</string>
<string>cxtlive\.com</string>
<string>dbbsrv\.com</string>
<string>dgm2\.com</string>
<string>dgmaustralia\.com</string>
<string>did-it\.com</string>
<string>directivepub\.com</string>
<string>directorym\.com</string>
<string>directtrack\.com</string>
<string>dope\.dk</string>
<string>dtmpub\.com</string>
<string>ekmas\.com</string>
<string>el-mundo\.net/banners</string>
<string>entitycity\.com</string>
<string>eshopoffer\.aspx</string>
<string>excite\.com/gca_iframe</string>
<string>exponential\.com</string>
<string>eyewonder\.com</string>
<string>factortg\.com</string>
<string>filetarget\.com</string>
<string>filitrac\.com</string>
<string>findology\.com</string>
<string>floppybank\.com</string>
<string>flycast\.com</string>
<string>forrestersurveys\.com</string>
<string>ftjcfx\.com</string>
<string>funpic\.de/layer</string>
<string>geocities\.com/js_source/</string>
<string>gestionpub\.com</string>
<string>getban\.php</string>
<string>getfound\.com</string>
<string>gms1\.net</string>
<string>hb\.lycos\.com</string>
<string>idregie\.com</string>
<string>ifactz\.com</string>
<string>impact\.as</string>
<string>impresionesweb\.com</string>
<string>imrworldwide\.com</string>
<string>indiads\.com</string>
<string>industrybrains\.com</string>
<string>inetinteractive\.com</string>
<string>insightfirst\.com</string>
<string>instantattention\.com</string>
<string>instantbuzz\.com</string>
<string>intelli-direct\.com</string>
<string>intellisrv\.js</string>
<string>intellisrv\.net</string>
<string>intellitxt</string>
<string>interclick\.com</string>
<string>interpolls\.com</string>
<string>java\.yahoo\.com/a</string>
<string>jdoqocy\.com</string>
<string>jupiter\.bravenet</string>
<string>keymedia\.hu</string>
<string>keyrun\.com</string>
<string>kontera\.com</string>
<string>kqzyfj\.com</string>
<string>lapi\.ebay\.</string>
<string>lduhtrp\.net</string>
<string>leadhound\.com</string>
<string>linkbuddies</string>
<string>linkconnector\.com</string>
<string>linkexchange</string>
<string>linkshare</string>
<string>linksynergy</string>
<string>localxml\.com</string>
<string>log\.go\.com</string>
<string>lycos\.com/catman/</string>
<string>maxserving\.com</string>
<string>mbn\.com\.ua</string>
<string>medianext\.com</string>
<string>mediaonenetwork\.net</string>
<string>mediaplazza\.com</string>
<string>mediaprecision\.net</string>
<string>mercuras\.com</string>
<string>mercury\.bravenet</string>
<string>metaffiliation\.com</string>
<string>midaddle\.com</string>
<string>mms3\.com</string>
<string>myreferer\.com</string>
<string>mytemplatestorage\.com</string>
<string>narrowad\.com</string>
<string>ncsreporting\.com</string>
<string>netavenir\.com</string>
<string>netshelter\.net</string>
<string>northmay\.com</string>
<string>nvidium\.com</string>
<string>nytimes\.com/marketing</string>
<string>oclus\.com</string>
<string>omguk\.com</string>
<string>onenetworkdirect\.net</string>
<string>openadnetwork\.com</string>
<string>oxyonline\.cz</string>
<string>partner\.eniro\.</string>
<string>partner2profit\.com</string>
<string>pheedo\.com</string>
<string>pro-market\.net</string>
<string>projectwonderful\.com</string>
<string>promobenef\.com</string>
<string>promotionad</string>
<string>publicidad\.js</string>
<string>qksrv\.net</string>
<string>qksz\.net</string>
<string>questionmarket\.com</string>
<string>rad\.msn\.com</string>
<string>reactivpub\.com</string>
<string>realmedia\.com</string>
<string>redcolobus\.com</string>
<string>redsheriff\.com</string>
<string>regiedepub\.com</string>
<string>reklamer\.com\.ua/ban/</string>
<string>revsci\.net</string>
<string>rightmedia</string>
<string>rmxads\.com</string>
<string>rss\.slashdot\.org/~a</string>
<string>ru4\.com</string>
<string>searchcactus\.com</string>
<string>searchfeed\.com</string>
<string>serving-sys\.com</string>
<string>shareasale\.com</string>
<string>showyoursite\.com</string>
<string>si-net\.se</string>
<string>smarttargetting\.co</string>
<string>spotsystems\.info</string>
<string>sublimemedia\.net</string>
<string>subscriptionrocket\.com</string>
<string>suitesmart\.com</string>
<string>surehits\.com</string>
<string>targetpoint\.com</string>
<string>tipsurf\.com</string>
<string>tkqlhce\.com</string>
<string>toplaboom\.com</string>
<string>tqlkg\.com</string>
<string>tradedoubler\.com</string>
<string>trafficmp\.com</string>
<string>trafficsystem\.com</string>
<string>travidia</string>
<string>unicast\.com</string>
<string>urltrak\.com</string>
<string>utarget\.co\.uk</string>
<string>vibrantmedia</string>
<string>webex\.ru</string>
<string>xban\.walla\.co\.il</string>
<string>yceml\.net</string>
<string>yieldx\.com</string>
<string>zedo\.com</string>
<string>zoomdirect\.com\.au</string>

Last edited by Handycam; 2008-07-31 at 07:24 AM..
 
Quote:
Originally Posted by Handycam View Post
OK, like many others here I'd like to see some improvements in adding and managing adblocking filters.
Handycam,

what does your seasoned efficient list look like?

(ftr, I'm very familiar with GREP)

cheers,
Gregory
 
Quote:
Originally Posted by Handycam View Post
Open the file in your text editor and look for the key <key>OWAddressesToFilter</key>
whoops! my pref file didn't contain this key. strange...
 
Have you ever created any filters, through the Preferences UI? If not, it won't be there.
 
Gregory, I use mostly the list I included above.
 
Well, last post was 2008, and now in 2012 we are still stuck with stone-age ad blocking.

This effectively limits OmniWeb, otherwise my favourite browser, to a few remaining PPC machines.

What am I missing?
 
Quote:
Originally Posted by thundernerd View Post
Well, last post was 2008, and now in 2012 we are still stuck with stone-age ad blocking.

This effectively limits OmniWeb, otherwise my favourite browser, to a few remaining PPC machines.

What am I missing?
The simplest method for effective ad blocking I've found is to install an ad blocking css style sheet into OW's Preferences -> Page Appearance Preferences. You can find a good css ad blocker inside the Camino browser's Show Package Contents -> Contents -> Resources file. Just pull it out and store it someplace handy on your HD, then access it with the Style Sheet option on Page Appearance Preferences. If you want to allow ads on a page just change the blocking option for that page to None. I've also found a ready to install fanboy's list css somewhere online but I can't recall where. I've been using this for years and it works perfectly. Be sure to uncheck all the ad block options in OW's built in ad blocker to prevent them from blocking embedded videos.
 
Quote:
Originally Posted by jwthomas View Post
I've also found a ready to install fanboy's list css somewhere online but I can't recall where.
jwthomas, could this be the one you mention?

link on right side of page below
http://fanboy.co.nz/adblock/opera.html

direct link
http://www.fanboy.co.nz/adblock/oper...lements-v4.css
 
Quote:
Originally Posted by Drayon View Post
jwthomas, could this be the one you mention?

link on right side of page below
http://fanboy.co.nz/adblock/opera.html

direct link
http://www.fanboy.co.nz/adblock/oper...lements-v4.css
No. But if you can get it to work on OmniWeb good luck to you.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating .graffleshapes tutorial Joel OmniGraffle General 5 2013-11-24 10:59 AM
Filters lil improvement mattao OmniPlan General 2 2011-08-25 02:35 PM
Need help creating a script for creating a next action gcrump OmniFocus Extras 9 2009-02-21 07:10 PM
Creating and Editing Right Angle Lines ssipiora OmniGraffle General 1 2008-09-30 11:26 AM
Filters and Organizers Blatchara OmniFocus 1 for Mac 3 2007-06-01 04:30 PM


All times are GMT -8. The time now is 11:01 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.