[Bangalore-pm] CPAN to MetaCPAN auto-redirect

SundaraRaman R sundaryourfriend at gmail.com
Sun Oct 6 15:24:31 PDT 2013


Huh, I went searching for something else, and coincidentally came
across a related
FAQ<https://github.com/CPAN-API/cpan-api/wiki/FAQ#can-i-automatically-redirect-links-pointing-at-searchcpanorg-to-metacpanorg>right
after sending this:

> For Chrome users, the MetaCPAN Helper<https://chrome.google.com/webstore/detail/metacpan-helper/aoioenbjpmccpkincghhjfmeceknpcnb>extension will automatically rewrite
> search.cpan.org links to MetaCPAN.
>
> You can accomplish the same thing by modifying your hosts file. Add the
> following lines and all links to search.cpan.org (and links to source
> code) will be redirected to MetaCPAN:
>
> 46.43.35.68 search.cpan.org
> 46.43.35.68 cpansearch.perl.org
>
> If you do this, be sure to point cpanm to another mirror, as it defaults
> to search.cpan.org. Here's how:
>
> export PERL_CPANM_OPT="--mirror http://www.cpan.no/" # Insert your closest mirror here.
>
>
HTH,
Sundar




On Mon, Oct 7, 2013 at 3:43 AM, SundaraRaman R
<sundaryourfriend at gmail.com>wrote:

> Long ago (ok, more like a month ago), I'd lamented the fact that Google
> and most other places link us to cpan.org pages of modules rather than
> the much better metacpan.org pages, in a thread here. I came across this
> blog post <http://perlhacks.com/2013/01/give-me-metacpan/> while
> searching for a solution to this today, which led me to this script:
> CPAN to METACPAN <http://userscripts.org/scripts/show/157649> - "Spot
> CPAN pages and automagically redirect to METACPAN equivalent". It's a
> Greasemonkey userscript, so needs Greasemonkey installed on your Firefox
> first (will probably work on Chrome too with the Tampermonkey addon,
> haven't tried it there).
>
> It adds a few seconds delay to the pageload time due to the extra
> redirects, but I'm sufficiently Lazy that this is worth it. :) Hope someone
> else here finds this useful too.
>
> Cheers,
> Sundar
>
> --
> ! Knowing others is intelligence; knowing yourself is true wisdom.
> Mastering others is strength; mastering yourself is true power.
> http://www.google.com/profiles/sundaryourfriend
>
>


-- 
! Knowing others is intelligence; knowing yourself is true wisdom.
Mastering others is strength; mastering yourself is true power.
http://www.google.com/profiles/sundaryourfriend
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/bangalore-pm/attachments/20131007/da4eea6c/attachment.html>


More information about the Bangalore-pm mailing list