ushro0m / SHOUTBOX_KYS_V1

// ==UserScript==
// @name           SHOUTBOX_KYS_V1
// @namespace      net.smithline + Danix
// @include        */game/index.php?page=*
// ==/UserScript==

function gogo()
 {
     	   var txt = document.documentElement.innerHTML;
     var test = 'pl=33643684" title="Planet menu">Planet &quot;Tyger Tyger&quot;</a>     (KillY0urself)';
     var testRE = txt.match("</a>     \((.*)\)");
    // alert(testRE[1]);
     var playernameHTML = "<input type='hidden' id='playername' value='"+testRE[1]+"'>";  
     var playerfinal = testRE[1].slice(1, -1);
     var chatHTML = '<div id="content2" height="100px" > <center> <table width="519"> <tr> <td class="s" colspan="1"><div id="shoutboxbox"><iframe id="iframe1" style="border: 1px #415680 solid;" id="shoutbox" width="519" height="300px" src="http://calynpedal.pl/ogame/index.php/#divWithScroll"></iframe></div></td></tr> <tr><td class="s" colspan="1"><div id="shoutboxbox"><iframe style="border: 1px #415680 solid;" id="shoutbox1" width="519" height="40px" src="http://calynpedal.pl/ogame/submit.php?nickname='+playerfinal+'"></iframe></div></tr></table></center></div>';
     var targetElement = document.getElementById('content');
	 var origHTML = targetElement.innerHTML;
	 targetElement.innerHTML =  origHTML + chatHTML +playernameHTML;
 }

gogo();


//calinpedal