Google Search Results Maximizer

Google disabled the option to display/show more than 10 results. This script allows you to get 100 Google search results per page again.

  1. // ==UserScript==
  2. // @name Google Search Results Maximizer
  3. // @version 1.0
  4. // @namespace https://github.com/Purfview/Google-Search-Results-Maximizer
  5. // @homepage https://github.com/Purfview/Google-Search-Results-Maximizer
  6. // @supportURL https://github.com/Purfview/Google-Search-Results-Maximizer/issues
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
  8. // @license MIT
  9. // @description Google disabled the option to display/show more than 10 results. This script allows you to get 100 Google search results per page again.
  10. // @match *://*.google.com/search?*
  11. // @grant none
  12. // @run-at document-start
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. function modifySearchURL() {
  19. let url = new URL(window.location.href);
  20. let params = url.searchParams;
  21.  
  22. if (params.has('num') && params.get('num') !== '100') {
  23. params.set('num', '100');
  24. } else if (!params.has('num')) {
  25. params.append('num', '100');
  26. }
  27.  
  28. let newUrl = url.toString();
  29. if (newUrl !== window.location.href) {
  30. window.location.replace(newUrl);
  31. }
  32. }
  33.  
  34. modifySearchURL();
  35. })();