// ==UserScript== // @name [1180] panel guide // @namespace berkut009 // @description panel guide // @version 1.5 // @include http://www.heroeswm.ru/* // @include http://www.heroeswm.com/battlechat.php* // @include http://rus.heroeswm.com/battlechat.php* // @include http://www.lordswm.com/* // @exclude */ch_box.php* // @exclude */chatonline.php* // @exclude */chat_line.php* // @exclude */chatpost.php* // @exclude */chat.php* // @exclude */ticker.html* // @exclude */war.php* // @exclude */cgame.php* // @downloadURL https://update.greasyfork.icu/scripts/7949/%5B1180%5D%20panel%20guide.user.js // @updateURL https://update.greasyfork.icu/scripts/7949/%5B1180%5D%20panel%20guide.meta.js // ==/UserScript== var serv = 'ru'; if (location.href.match(/heroeswm.ru/)) { serv = 'ru'; } else if (location.href.match(/lordswm.com/)) { serv = 'com'; } else if (location.href.match(/rus.heroeswm.com/)) { serv = 'ru'; } else if (location.href.match(/heroeswm.com/)) { serv = 'com'; } var text_nummove, text_player, text_message; if (serv == 'com') { text_nummove = 'Num~Move:'; text_player = 'Player'; text_message = 'Message'; } else { text_nummove = 'Паутина'; text_player = 'Склад'; text_message = 'Управление'; text_forum = 'Форум'; text_6 = 'Состав'; text_7 = 'Приглашения'; text_8 = 'Счет'; text_9 = 'Рассылка'; text_10 = 'Боевая слава'; text_11 = 'Воен. пол.'; } var stable = {}; var setted = false; var second = false; // adds new chat-string to the table function addstr(table, str) { if (m = str.match(/(\d+~\d+:)(\*?)\[([^\]]*)\]:([^<]*)