wuk

Imperiaonline attackCheker

  1. // ==UserScript==
  2. // @name wuk
  3. // @namespace wolf
  4. // @version 0.1
  5. // @description Imperiaonline attackCheker
  6. // @match https://*.imperiaonline.org/imperia/game_v5/game/village.php
  7. // @copyright 2012+, You
  8. // ==/UserScript==
  9.  
  10.  
  11. document.body.style.background = 'green';
  12. setInterval(
  13. function checker(){
  14. var sound = document.createElement('embed');
  15. sound.setAttribute('width', '5px');
  16. sound.setAttribute('height', '5px');
  17. sound.setAttribute('src', 'https://www.soundjay.com/phone/sounds/telephone-ring-04.mp3');
  18. var currElements = document.getElementsByClassName('incoming province');
  19. for(var i=0;i<currElements.length;i++){
  20. if(currElements[i].className == 'incoming province'){
  21. document.body.appendChild(sound);
  22. document.body.style.background = 'red';
  23. }
  24. };
  25. //location.reload();
  26. xajax_find_babysit(1, 1);
  27. },15000);