Script Summary: Spot CPAN pages and automagically redirect to METACPAN equivalent
When I discovered that 'METACPAN Everywhere' [http://userscripts.org/scripts/show/108877] no longer works, I first tried to work out how to fix the existing script ... but soon ran into a dead-end chasing through the horror of the current search page source.
I thought about different ways to tackle the problem. I tried deducing things from page markup, but in the end decided it was easier, and more reliable, to perform redirection actions based on the URL.
NOTE: METACPAN Everywhere added links to search results. This script redirects you away from 'CPAN' to the equivalent 'METACPAN' page.



