--===============2136072707== Content-Type: multipart/signed; boundary="nextPart1691930.EPRBUteJmm"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1691930.EPRBUteJmm Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 09 December 2004 15:31, Luc Saillard wrote: > Hi, > > I want to be able to block some urls in Konqueror (or any application th= at > use KHTML) like adblock do for Mozilla suite. You could extent KApplication::authorizeURLAction with some additional=20 filtering logic. The current rules-based filtering doesn't work nicely if y= ou=20 have a large list of hosts that you want to block, but you could add some=20 optional hook in there. The basic idea is: if ((destClass =3D ":internet") && (destURL.host() =3D=3D "some.site.to.block.com")) return false; Cheers, Waldo =2D-=20 bastian@kde.org | Free Novell Linux Desktop 9 Evaluation Download bastian@suse.com | http://www.novell.com/products/desktop/eval.html --nextPart1691930.EPRBUteJmm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQBBuI9sN4pvrENfboIRAqHKAJ4xGSTUBKFXYU56FdU0HxWApphEiwCeMZXU cTpza26XS4OKLOllZal6jn4= =kPKV -----END PGP SIGNATURE----- --nextPart1691930.EPRBUteJmm-- --===============2136072707== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============2136072707==--