NanoChecker

Figheeee so che!!!

当前为 2017-02-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name NanoChecker
  3. // @namespace Il_Nano
  4. // @version 1.1Finale
  5. // @description Figheeee so che!!!
  6. // @match https://*.imperiaonline.org/imperia/game_v5/game/village.php
  7. // @match http://*.imperiaonline.org/imperia/game_v5/game/village.php
  8. // @copyright 2017, Dwalin88 alias Il Nano
  9. // ==/UserScript==
  10.  
  11.  
  12. document.body.style.background = 'violet';
  13. function checker(){
  14. var sound = document.createElement('embed');
  15. sound.setAttribute('width', '5px');
  16. sound.setAttribute('height', '5px');
  17. sound.setAttribute('src', 'http://soundbible.com/1407-Phone-Ringing.html');
  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. }
  26. function init() {
  27. var myFunction = function() {
  28. suka();
  29. var rand = Math.round(Math.random() * (15000 - 500)) + 500;
  30. setTimeout(myFunction, rand);
  31. };
  32. myFunction();
  33. }
  34. $(function() {
  35. init();
  36. });
  37.  
  38. function suka(){
  39. alert("Suka, l'allarme funzionante al 100% lo tengo per me!!");
  40. alert("Se lo vuoi anche tu, scrivi a Dwalin88 su imperia e vi concordate per il prezzo.");
  41. alert("Un bacione.....SUKA....SUKA ANCORA");
  42. alert("HO DETTO SUKAAAAAAAAAA");
  43. alert("Ciao!!!!!");
  44. alert("P.S. Ho anche altri script compresa la V6!");
  45. alert("Suka!");
  46. }