hwm_shestidyryj

Шестидырый молдован

  1. // ==UserScript==
  2. // @name hwm_shestidyryj
  3. // @namespace https://greasyfork.org/users/12821
  4. // @description Шестидырый молдован
  5. // @author Kleshnerukij
  6. // @version 1.00
  7. // @include http://www.heroeswm.ru/search.php*
  8. // @include http://qrator.heroeswm.ru/search.php*
  9. // @include http://178.248.235.15/search.php*
  10. // @include http://www.lordswm.com/search.php*
  11. // @include https://www.heroeswm.ru/search.php*
  12. // @include https://qrator.heroeswm.ru/search.php*
  13. // @include https://178.248.235.15/search.php*
  14. // @include https://www.lordswm.com/search.php*
  15. // ==/UserScript==
  16.  
  17. (function () {
  18.  
  19. var search_input = document.getElementsByTagName('form')[0].getElementsByTagName('input')[0];
  20. var search_button = document.getElementsByTagName('form')[0].getElementsByTagName('input')[1];
  21.  
  22. document.addEventListener(`keydown`, event => {
  23. if (event.keyCode == 13) {
  24. if(search_input.value == 'Шестидырый' || search_input.value == 'Шестидырочный' || search_input.value == 'Шестидырчатый' || search_input.value == 'Дырявый') {
  25. search_input.value = 'Ooo-ooO';
  26. }
  27. console.log(`йо`); // some code
  28. }
  29. }, false);
  30.  
  31. search_button.addEventListener(`mouseup`, event => {
  32. if(search_input.value == 'Шестидырый' || search_input.value == 'Шестидырочный' || search_input.value == 'Шестидырчатый' || search_input.value == 'Дырявый') {
  33. search_input.value = 'Ooo-ooO';
  34. }
  35. console.log(`йо`); // some code
  36. }, false);
  37.  
  38. })();