AmiAmi-More

Changes the result count on AmiAmi

  1. // ==UserScript==
  2. // @name AmiAmi-More
  3. // @license MIT
  4. // @version 0.1
  5. // @author IxianNavigator
  6. // @match https://*.amiami.com/*
  7. // @description Changes the result count on AmiAmi
  8. // @grant none
  9. // @run-at document-end
  10. // @icon https://icons.duckduckgo.com/ip2/amiami.com.ico
  11. // @namespace https://greasyfork.org/users/746566
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. if (document.location.host === 'secure.amiami.com') {
  17. return;
  18. }
  19.  
  20. Object.assign(XMLHttpRequest.prototype, {
  21. realOpen: XMLHttpRequest.prototype.open,
  22. open: function(method, url, ...args) {
  23. url = url.replace("pagemax=20", "pagemax=50");
  24. return this.realOpen(method, url, ...args);
  25. },
  26. });
  27.  
  28. })();