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).
- Open Terminal, and quit Omniweb
- Copy your prefs file to your Desktop: Code:
cp ~/Library/Preferences/com.omnigroup.OmniWeb5.plist ~/Desktop/
- Convert the format of the file from Binary to XML: Code:
plutil -convert xml1 ~/Desktop/com.omnigroup.OmniWeb5.plist
- Open the file in your text editor and look for the key <key>OWAddressesToFilter</key>
- 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>.
- When finished, save the file
- Convert it BACK to Binary
Code:plutil -convert binary1 ~/Desktop/com.omnigroup.OmniWeb5.plist
- Copy it back to the Preferences folder
Code:cp ~/Desktop/com.omnigroup.OmniWeb5.plist ~/Library/Preferences/
- Open OW and enjoy.