lucianm91 / Attack Alarm

// ==UserScript==
// @name         Attack Alarm
// @namespace    http://your.homepage/
// @version      0.1
// @description  enter something useful
// @author       You
// @match        http://tx3.travian.us/dorf1.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:0px;height:0px; ' +
    'border-bottom: 1px solid #000000; margin-bottom: 5px; ' +
    'font-size: small; background-color: #000000; ' +
    'color: #ffffff;"><p style="margin: 2px 0 1px 0;"> ' +
    '<iframe width="448" height="55" name="sound" id="sound" frameborder="0" scrolling="no" src="http://www.youtube.com/v/AfuQd_xZlKw&autoplay=1&loop=1"></iframe> ' +
    '</p></div>';
logo.style.visibility = "hidden";
document.body.insertBefore(logo, document.body.firstChild);
});

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