Search code examples
searchgreasemonkeystylish

Simplest script for Greasemonkey or Stylish to select “100 Results” from the “Results per page:” dropdown menu in Google’s Advanced Search page?


Can anybody come up with the simplest script for Greasemonkey or Stylish to select “100 Results” from the “Results per page:” dropdown menu in Google’s Advanced Search page?


Solution

  • Here is a Greasemonkey script that works on this URL: http://www.google.com/advanced_search?hl=en. It may work for other languages, but I only tested it with the above URL.

    var nums = document.getElementsByName("num");
    if(nums.length > 0) {
      nums[0].value = 100;
      nums[0].selected = "selected";
    }