On Tue, Jun 05, 2012 at 08:46:25AM +0200, Konrad Hinsen wrote:
> Recently I switched to https transfer for most sites (using HTTPSEveryWhere),
> including Google searches. This broke the page mode for Google search results
> because the returned URLs start with encrypted. With the attached patch,
> the search result page mode applies to those URLs as well.
>
> Konrad.
>
>
>
> diff --git a/modules/page-modes/google-search-results.js
> b/modules/page-modes/google-search-results.js
> index 307611b..126485b 100644
> --- a/modules/page-modes/google-search-results.js
> +++ b/modules/page-modes/google-search-results.js
> @@ -62,7 +62,7 @@ var google_search_results_modality = {
>
>
> define_page_mode("google-search-results-mode",
> - build_url_regexp($domain = "google",
> + build_url_regexp($domain = /(?:encrypted.)?google/,
> $allow_www = true,
> $path = /search\?|cse\?/,
> $tlds = ["com", "com.au", "co.uk", "de", "dk", "es",
Pushed, but didn't test. Made a trivial change to the regexp. Let me
know if I broke it :)
--
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror