Following the example set by the excellent hoodwink’d, here is a GreaseMonkey script. It grabs customized CSS/XPath expressions for the current page you’re on (currently only from my server, but you can edit that if you like). What does this mean?
Ad-blocking via CSS and XPath on a per-domain basis, with no need to update your ad-blocking definitions. Ever. Oh, and did I mention Javascript injection?
The next step is to create a miniwiki that allows editing of the items, for true community-oriented ad-busting. Assistance in this regard would be appreciated. After that I will add support for multiple “overlays” of CSS/XPath/Javascript rules.
Oh, and the link: Combobulate. Cleaning up the web one site at a time.
Current example pages:
- http://cnn.com
- http://boingboing.net
- http://deviantart.com
Comments 7
You might have to lower people like me into this slowly. How does one write aforementioned ruleset, can you post up an example at all?
Cheers.
Posted 18 Oct 2005 at 6:44 pm ¶Err, just a collection of CSS/Javascript/XPath… the actual format for the stored rules is visible at http://porges.name/combobulate/ … I was going for simplicity
One line for CSS, one line for Javascript, any lines after that are for XPath.
Posted 19 Oct 2005 at 6:27 pm ¶Hmmm… interesting, CNN sorta works, although I’m getting textboxes in lieu of ads… GPForums, still has the main banner up, however, the one under the 2nd P, then Table > TBody > TR > TD > A > IMG in Dom Inspector.
Posted 25 Oct 2005 at 11:31 pm ¶It’s possible that’s due to using an older version of firefox, GreaseMonkey was having some problems… For what it’s worth I’ve got 1.5 Beta 2.
Posted 26 Oct 2005 at 3:48 pm ¶Ah, that there might explain it.
Posted 26 Oct 2005 at 4:34 pm ¶And I was thinking that Greasemonkey was being silly.
How beta is the FF beta?
Haha. OK, now it works. You might wanna mention that it needs beta FF and latest Greasemonkey though.
Posted 26 Oct 2005 at 8:41 pm ¶Now it just needs latest FF and GM, but RIP seems like a superior solution – at least it will be once they have automatic import etc. working
Posted 06 Dec 2005 at 2:37 pm ¶Post a Comment