CPAN Search - 100 results per page

By Dean Wilson Last update Jun 27, 2006 — Installed 341 times.
// ==UserScript==
// @name          CPAN Search - 100 results per page
// @namespace     http://www.unixdaemon.net/gmscripts/
// @description   Show 100 entries in each page of search results
// @include       http://search.cpan.org/search*
// ==/UserScript==

(function() {
  if (!(window.location.href.match(/\&n=/))) {
    window.location.replace(window.location + "&n=100");
  } else {
    if (!(window.location.href.match(/\&n=100/))) {
      if (window.location.href.match(/\&n=\d+/)) {
        window.location.replace(window.location.href.replace(/\&n=\d+/, "&n=100"));
      }
    }
  }

})();