On 2009-09-30 17:25+0200, Ricardo Buring wrote:
> On Wed, 2009-09-30 at 10:34 -0400, John J. Foerch wrote:
> > On Wed, Sep 30, 2009 at 11:11:38AM +0100, 'Mash wrote:
> > > I just had an idea...
> > >
> > > Would it be possible to create an optional "g" (Google search) to use a
> > > defined list of sites you wish to filter out of the search, using
> > > Google's "-term" ?
> > >
> > > For instance in your .rc file you could create a list of sites or terms
> > >
> > >     filterList = ('wikipedia','bigresource.com')
> > >
> > > and then say using "gf" you would get:
> > >
> > > http://www.google.com/search?q=javascript+function+-wikipedia+-bigresource.com
> > >
> > >
> > > I have no idea how to implement this even in a webjump without spending
> > > hours; but one of you lot could surely whip-up a webjump or expand the
> > > Google module.
> > >
> > > The idea came when I wanted to create a easy way to filter out the
> > > horror that is "bigresource.com" from my results.
> >
> >
> > Doesn't google itself have this feature?  Next to each search result,
> > there is an [X] button.  Not 100% sure.
> >
> > To do this in conkeror would entail adding a feature to
> > google-search-results-mode, not creating a webjump.
> >
>
> I haven't looked into Google modes, but you can put this quick
> Javascript in your .conkerorrc for a webjump:
>
> google_blacklist_array = ["wikipedia", "bigresource.com"];
> google_blacklist = "";
> for(var i=0; i<google_blacklist_array.length; i++)
> {
>     google_blacklist += "+-" + google_blacklist_array[i];
> }
> define_webjump("gf", "http://www.google.com/search?q=%s"+google_blacklist);
>
> That's probably not the best way to do it, but it works :)

Thanks! That will do nicely.

'Mash

---
Sola fide, Sola Gratia, Soli Deo gloria!

_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to