Guest User

Untitled

a guest
Nov 19th, 2017
184
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Sample
  3. // @version      0.1
  4. // @match        http://xn--80akjcielidvhr6cf.xn--p1ai/*
  5. // ==/UserScript==
  6.  
  7. var desired_number = 31337;
  8. // На каком по счету нажатии произвести замену
  9. var desired_click_number = 3;
  10. var click_ctr = -1;
  11.  
  12. XMLHttpRequest.prototype.realSend = XMLHttpRequest.prototype.send;
  13. XMLHttpRequest.prototype.send = function(pData)
  14. {
  15.     click_ctr++;
  16.     if (click_ctr == desired_click_number)
  17.         pData = 'min=' + desired_number + '&max=' + desired_number + '&count=1';
  18.     this.realSend(pData);
  19. };
RAW Paste Data