M.R_SIKO / Dejkoob and Travian Attack Alarm!

// ==UserScript==
// @name           Dejkoob and Travian Attack Alarm!
// @namespace      https://openuserjs.org/users/M.R_SIKO
// @description    Create by Mostafa, Attack Alarm for dejkoob and travian4 and travian 3.6 (classic)
// @author         M.R_SIKO (Mostafa Rashnoo)
// @license        GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt
// @version      1.1

// @include        http://*.dejkoob.*/dorf1.php*
// @include        http://*/*.dejkoob.*/dorf1.php*
// @include        http://*.dejkoob.*/dorf1.php*
// @include        http://*/*.dejkoob.*/dorf1.php*
// @include        http://*.travian.*/dorf1.php*
// @include        http://*/*.travian.*/dorf1.php*
// @include        http://*.travian.*/dorf1.php*
// @include        http://*/*.travian.*/dorf1.php*
// @include        https://*.travian.*/dorf1.php*
// @include        https://*/*.travian.*/dorf1.php*
// @include        https://*.travian.*/dorf1.php*
// @include        https://*/*.travian.*/dorf1.php*
// @include        http://*.travianteam.*/dorf1.php*
// @include        http://www.vfthis.net/*/dorf1.php*
// @include        http://www.vfthis.net/*/dorf1.php*
// @include        http://*.traaviaan.*/dorf1.php*
// @include        http://*/*.traaviaan.*/dorf1.php*
// @include        http://*.traaviaan.*/dorf1.php*
// @include        http://*/*.traaviaan.*/dorf1.php*

// @include        http://*.dejkoob.*/statistiken.php*
// @include        http://*/*.dejkoob.*/statistiken.php*
// @include        http://*.dejkoob.*/statistiken.php*
// @include        http://*/*.dejkoob.*/statistiken.php*
// @include        http://*.travian.*/statistiken.php*
// @include        http://*/*.travian.*/statistiken.php*
// @include        http://*.travian.*/statistiken.php*
// @include        http://*/*.travian.*/statistiken.php*
// @include        https://*.travian.*/statistiken.php*
// @include        https://*/*.travian.*/statistiken.php*
// @include        https://*.travian.*/statistiken.php*
// @include        https://*/*.travian.*/statistiken.php*
// @include        http://*.travianteam.*/statistiken.php*
// @include        http://www.vfthis.net/*/statistiken.php*
// @include        http://www.vfthis.net/*/statistiken.php*
// @include        http://*.traaviaan.*/statistiken.php*
// @include        http://*/*.traaviaan.*/statistiken.php*
// @include        http://*.traaviaan.*/statistiken.php*
// @include        http://*/*.traaviaan.*/statistiken.php*

// @include        http://*.dejkoob.*/dorf2.php*
// @include        http://*/*.dejkoob.*/dorf2.php*
// @include        http://*.dejkoob.*/dorf2.php*
// @include        http://*/*.dejkoob.*/dorf2.php*
// @include        http://*.travian.*/dorf2.php*
// @include        http://*/*.travian.*/dorf2.php*
// @include        http://*.travian.*/dorf2.php*
// @include        http://*/*.travian.*/dorf2.php*
// @include        https://*.travian.*/dorf2.php*
// @include        https://*/*.travian.*/dorf2.php*
// @include        https://*.travian.*/dorf2.php*
// @include        https://*/*.travian.*/dorf2.php*
// @include        http://*.travianteam.*/dorf2.php*
// @include        http://www.vfthis.net/*/dorf2.php*
// @include        http://www.vfthis.net/*/dorf2.php*
// @include        http://*.traaviaan.*/dorf2.php*
// @include        http://*/*.traaviaan.*/dorf2.php*
// @include        http://*.traaviaan.*/dorf2.php*
// @include        http://*/*.traaviaan.*/dorf2.php*

// @require       http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
// @grant   GM_getValue
// @grant   GM_setValue
// ==/UserScript==

$(".attack").each(function(){
   console.log(1);

    var logo = document.createElement("div");

logo.innerHTML = '<div  style="margin: 0 auto 0 auto;width:50px;height:30px; ' +
    'border-bottom: 1px solid #000000; margin-bottom: 5px; ' +
    'font-size: small; background-color: #000000; ' +
    'color: #ffffff;"><p style="margin: 2px 0 1px 0;"> ' +
    ' <audio controls autoplay loop> ' +
		'<source src="http://dl.ir-music.ir/Albums/Movie/Star%20Wars/Star%20Wars.mp3" type="audio/mpeg"> ' +
		'</audio> ' +
		'<button id="play" class="action-btn action-btn-big"> ' +
		'<i class="fas fa-play"> ' + '</i> ' +
		'</button> ' +
    '</p></div>';
logo.style.visibility = "show";
document.body.insertBefore(logo, document.body.firstChild);
});

setTimeout("location.reload(true);",60000);