DeletedUser3502
Guest
Sorry, I know it's incredibly nooby of me, but how do you use a script? I already have a line of code, i.e.
I just have no idea what to do with it... Help anybody?
javascript:%20var%20url='http://www.tribalwarsmap.com/us/traveltimes2';%20if%20(location.hostname.split('.')[1]=='tribalwars')%20{url+='?world=';var%20world%20=%20location.hostname.split('.')[0];%20if%20(world=='classic')%20{url+='c1';}%20else%20{url+=world.substring(2);};%20var%20query='';%20if%20(window.main)%20{query%20=%20window.main.location.search.substring(1).split('&');}%20else%20{query%20=%20window.location.search.substring(1).split('&');};%20var%20village=false;%20var%20dest=false;%20for(i=0;i<query.length;i++)%20{query=query.split('=');%20if%20(query[0]=='village')%20{url+='&start='+query[1];}%20else%20if%20(query[0]=='screen'&&query[1]=='info_village')%20{village=true;}%20else%20if%20(query[0]=='id')%20{dest='&destination='+query[1];}};%20if%20(village&&dest)%20{url+=dest;}}void%20window.open(url);
I just have no idea what to do with it... Help anybody?