tags:

views:

72

answers:

1

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?

A: 

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";
}
cowgod
Bingo!!! I stumped the guys at Super User with this one.
Excellent. Would you mind marking the answer as accepted?
cowgod
How? I clicked the up arrow, but it didn't take it. Apparently, I haven't been here long enough.
Yes, you need 15 reputation to cast an upvote. However, you can click the checkmark below the voting block to mark an answer as "accepted." This will give the answerer 15 reputation and the asker 2 reputation. It's a win/win!
cowgod