On Fri, Jul 27, 2012 at 9:06 AM, John J. Foerch <[email protected]>wrote:
> On Fri, Jul 27, 2012 at 08:47:49AM +0100, Johnny wrote: > > "John J. Foerch" <[email protected]> writes: > > > http://conkeror.org/Tips#SelectionSearches > > > > Thanks John, this is excellent! > > > > Only one problem, IMDB does not recognise the escape symbols (%20) and > > searches for the literally. Is there any way to avoid this? > > You could use a function webjump instead. They probably expect spaces to > be encoded as plusses. This is really an imdb problem; conkeror is doing > the right thing. > > Here's the IMDB webjump I developed a while back: const IMDB_URL = "http://imdb.com/"; define_webjump( "imdb", function (arg) { return IMDB_URL + "find?q=" + encodeURIComponent(arg).replace(/%20/g, "+"); }, $alternative = IMDB_URL ); Seems to work OK. --Sean
_______________________________________________ Conkeror mailing list [email protected] https://www.mozdev.org/mailman/listinfo/conkeror
