From kfm-devel Fri May 12 09:51:12 2006 From: Ivor Hewitt Date: Fri, 12 May 2006 09:51:12 +0000 To: kfm-devel Subject: Re: Adblock improvement Message-Id: <44645A90.2070107 () ivor ! org> X-MARC-Message: https://marc.info/?l=kfm-devel&m=114742765721551 Daniele Galdi wrote: > Hi all, > i am the author of > > http://www.kde-apps.org/content/show.php?content=38915 > > I think this plugin complete the adblock feature. > Yay! The joy of OSS... :) if you're too laz^h^h slow, someone else will do it first. > Is possible to include in kde-addons? > It would be welcome.... have you applied for an svn account. > I think the entire adblock feature should be in kde-addons like > extension, and also khtml should be methods to add, remove > and update adblock filter. > Yup agree with that. It should be separated out and the necessary hooks to enable it to function incorporated into khtml... however the easiest/quickest implementation was to simply code it straight into khtml, so that's what happened. > Actually the only way to add filter is get KHTMLSetting from > khtml part, const_cast this because is defined as const and > invoke the method > If it was all pulled out into addons that clearly would no longer be a problem. I guess the alternative would be to just add the new filter setting in directly and then call reparseConfiguration, otherwise adding add and remove calls to the kpart that call d->m_settings in the same fashion as the JS-settings calls (grep for "it sucks") I guess. Regards, -- Ivor http://www.ivor.it