if settings newAjaxMail if mail mail message_list gim test location hr

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
if (settings.newAjaxMail) {
if (/mail\/\?r=mail\/message_list/gim.test(location.href)) {
var ihoho = $($('form')[1]).parent().clone(true);
var myNickName = $($('li.sep_bl:has("a[href*=\'/mysite/\']")').find("a")[0]).prop("title");
eval('var prrtrns = /<b style="color:darkmagenta;">Я<\\/b>/gim;');
$($('form')[1]).parent().remove();
$($('.blue_wrap_block')[0]).after(ihoho);
$('#navi').after("<div id='temp_tT' style='display:none'></div>");
var xls = $($($('form')[1]).find("input[type*='submit']")[0]);
xls.prop('type', 'button');
xls[0].setAttribute('onclick', '$("#temp_tT").html(document.forms[1].texttT.value); var rrr = this.parentNode.parentNode.r.value;var sid = this.parentNode.parentNode.sid.value;var CK = this.parentNode.parentNode.CK.value;var texttT = this.parentNode.parentNode.texttT.value;var Link_id = this.parentNode.parentNode.Link_id.value;var user = this.parentNode.parentNode.user.value;$.ajax({type:"POST",url: "http://spaces.ru/mail/?",data: {r:rrr,user:user,CK:CK,sid:sid,Link_id: Link_id,texttT:texttT},success:function(){document.forms[1].texttT.value = "";}});');
xls[0].setAttribute('name', 'okletsgo');
xls[0].setAttribute('style', 'display:none');
document.forms[1].setAttribute('onkeypress', 'void(0);');
document.forms[1].setAttribute('onkeydown', 'function lovly(e) { if (e.keyCode == 118) document.forms[1].texttT.value = $("#temp_tT").html(); if (e.keyCode == 13 && !e.shiftKey && !e.ctrlKey) document.forms[1].okletsgo.click(); } lovly(event)');
$('.t-bg3').each(function(i) {
$(this).html($(this).html().replace(/<b style="color:darkmagenta;">Я<\/b>/gim, '<b style="color:navy;"><img src="http://spaces.ru/i//man_on.gif" alt="(ON)"/> <span style="text-decoration:underline">' + myNickName + '</span></b>').replace("<div class=\"overfl_hid service_links_block service_links_block_top clear\">", "<div style='display:none'>"));
});
$('textarea').eq(1).after("<div id='showCopy' style='margin: 4px; padding: 6px; display:none;border:1px solid gray'><a style='color:red;text-decoration:none;font-weight:bold;' href='javascript:void();' onclick='$(\"#showCopy\").hide();'>Закрыть</a><br /><br /><div id='forCopy'></div></div>");
var reloadedMail = function(data) {
var dt = '';
$($(data).find("form")[1]).parent().each(function() {
dt = this.outerHTML;
});
data = data.replace(dt, "");
$(data).find('.t-bg3').each(function(i) {
$($('.main').find('.t-bg3')[i]).html($(this).html().replace(/<b style="color:darkmagenta;">Я<\/b>/gim, '<b style="color:navy;"><img src="http://spaces.ru/i//man_on.gif" alt="(ON)"/> <span style="text-decoration:underline">' + myNickName + '</span></b>').replace("<div class=\"overfl_hid service_links_block service_links_block_top clear\">", "<div style='display:none'>").replace(/style="margin-left:8px;"/gim, 'style="margin-left:8px;" kozel onclick="eval(atob(\'dGhpcy5ocmVmID0gImphdmFzY3JpcHQ6dm9pZCgwKTsiO3ZhciB4cyA9IHRoaXMucGFyZW50Tm9kZS5wYXJlbnROb2RlLnBhcmVudE5vZGU7ICQoJyNmb3JDb3B5JykuaHRtbCgkKCQoeHMpLmZpbmQoImRpdltpZCo9J3ByZXZpZXdUZXh0J10iKVswXSkuaHRtbCgpKTsgJCgnI3Nob3dDb3B5Jykuc2hvdygpOw==\'));"').replace(/http:\/\/spaces\.ru\/i\/star_fa(.+?)\.gif/gim, "http://fh38067t.bget.ru/copy.png").replace(/<a href="http:\/\/spaces\.ru\?(.+?)redirect=(.+?)">/gim, "<a target=\"_blank\" onClick=\"this.href = unescape('$2');\" href=\"javascript:void()\">"));
});
}
var reloadMail = function() {
$.ajax({
url: location.href,
success: reloadedMail
});
setTimeout(reloadMail, settings.ajaxTimeout);
}
reloadMail();
}
}