<!--кнопки вверх вниз-->
<div class="go-up" id='ToTop'><span></span></div>
<div class="go-down" id='OnBottom'><span></span></div>
<style>
.go-up, .go-down {
display: none;
position: fixed;
margin-left: 1069px;
z-index: 9999;
cursor: pointer;
opacity: 1;
margin-bottom: 140px;
}
.go-up {
bottom:210px; /*положение от низа окна браузера верхняя кнопка*/
}
.go-down {
bottom:160px; /*положение от низа окна браузера нижняя кнопка кнопка*/
}
.go-down:hover,.go-up:hover {
opacity:1;
}
</style>
<!--кнопки вверх вниз-->
<script type="text/javascript">
$(function(){
if ($(window).scrollTop()>="250") $("#ToTop").fadeIn("slow")
$(window).scroll(function(){
if ($(window).scrollTop()<="250") $("#ToTop").fadeOut("slow")
else $("#ToTop").fadeIn("slow")
});
if ($(window).scrollTop()<=$(document).height()-"999") $("#OnBottom").fadeIn("slow")
$(window).scroll(function(){
if ($(window).scrollTop()>=$(document).height()-"999") $("#OnBottom").fadeOut("slow")
else $("#OnBottom").fadeIn("slow")
});
$("#ToTop").click(function(){$("html,body").animate({scrollTop:0},"slow")})
$("#OnBottom").click(function(){$("html,body").animate({scrollTop:$(document).height()},"slow")})
});
</script>
<!-- Регулировка размера шрифта в постах © Alex_63 -->
<script type="text/javascript" src="https://forumstatic.ru/files/001b/57/10/88325.js?v=2"></script>
<!--ТЕГ абзаца - [indent] -->
<style>#button-indent {background:url(http://s7.uploads.ru/t/mnkgq.png)no-repeat center 6px!important;}</style>
<script type="text/javascript">(function(){ var b = '[indent]';
$("#button-strike").after('<td id="button-indent" title="Отступы"><img src="/i/blank.gif" onclick="insert(\''+b+'\')"></td>');
var indent = '<span style="display:inline-block;margin: 0.7em 1em;"></span>'; /*удвоенные Отступы сверху и слева*/
$('.post-content p:contains("'+b+'")').each(function(){ $(this).html( $(this).html().replace(/\[indent\]/gm,indent));});}());
</script>
<!-- Анти-в-строчку для Сообщений и Репутации © deff -->
<script type="text/javascript">
function changeS(sc,ch,st){$(sc).parent().each(function(){$(this).html($(this).html().replace(ch,st));});}
changeS('.pa-respect span','<span>+','<span>');
changeS('#pun-ulinks .item2','Активные темы','Активные');
changeS('#pun-ulinks .item3','Темы без ответов','Без ответов');
changeS('#pun-ulinks .item7','Всё прочитано','Прочитано');
changeS('#navadmin','Администрирование','Admin');
changeS('#navindex','Форум','Home');
changeS('#navuserlist','Участники','Users');
changeS('#navsearch','Поиск','Search');
changeS('#navprofile','Профиль','Mirror');
changeS('#navpm','Сообщения','Messages');
changeS('#navlogout','Выход','Logout');
changeS('#navregister','Регистрация','Registration');
changeS('#navlogin','Войти','Login');
</script>
<!-- Исключение из "Цитировать" подписи и "отредактировано" -->
<script type="text/javascript"> (function(){ var p =[];
$('.post').find('.pl-quote').click(function(){
p[0] = $(this).parents('.post').find('.lastedit');
p[1] = $(this).parents('.post').find('.post-sig');
p[2] = p[0].html();p[3] = p[1].html();
p[0].html('');p[1].html('');
setTimeout(function(){p[0].html(p[2]);p[1].html(p[3])},600);});
}());
</script>
<!--Отключение кнопки Жалоба в сообщениях -->
<script type="text/javascript">
RusffCore.sets.show_reportBtn = 0;
</script>
<!--Отключить функцию "Поделиться" -->
<script type="text/javascript">
RusffCore.sets.share = false;
</script>
<!--Отключить функцию "Это интересно" -->
<script type="text/javascript">
rusffLive.enable = false;
</script>
<!-- Удаляем лишние строки после цитаты и кода // v.3 © Alex_63 -->
<script type="text/javascript">
$('.post-content').each(function() {
var CNT = $(this).html();
CNT = CNT.replace(/<p><br><\/p>/img,'');
CNT = CNT.replace(/<p><br><br>(.*?)<\/p>/img,'<p>$1</p>');
CNT = CNT.replace(/<p><br>(.*?)<\/p>/img,'<p>$1</p>');
$(this).html(CNT);
});
</script>
<!--Альтернативная вставка картинки-->
<script>
var oldIMG="<td id=\"button-image\" title=\"Вставить картинку\"><img onclick=\"bbcode('[img]','[/img]')\" src=\"/i/blank.gif\"/><b><p style=\"z-index:20;position:absolute;height14px;margin:2px 0 0 5px;background: var(--base-bg2);font: 500 8px var(--main-font);width: 11px;height: 11px;text-align: center;border-radius: 100%;padding: 0;\">2</p></b></td>"
$("#button-image").after(oldIMG);
</script>
<!--замена коротких тире на длинные -->
<script>$('.post-content p').html(function(){return this.innerHTML.replace(/(\s| )?-(\s| )/g,'$1—$2')})</script>
<script>
$(function() {
/* ПОДСЧЕТ СИМВОЛОВ В ФОРМЕ ОТВЕТА */
if ($('textarea#main-reply').length > 0) {
$('.fs-box.hashelp').before('<div id="charcounter">Символов в сообщении: <span class="charcount">0</span></div>');
var lastValue = '';
setInterval(function() {
if ($('#main-reply').val().length != lastValue) {
lastValue = $('#main-reply').val().length;
$('.charcount').text(lastValue);
}
}, 100);
} /* Конец скрипта */
});
</script>
<!-- ник гостя -->
<script>$(".post[data-group-id=3]").find(".pa-author").html(function(){return this.innerHTML.replace(/(<.+>)(.+)$/,'$1<a href="javascript:to(\'$2\')">$2</a>')});</script>
<script type="text/javascript">
function show_new() { if(GroupID == 3) return;
$('#pun-ulinks ul').prepend('<li class="item1"><a href="/search.php?action=show_new">Новые</a></li>');}
show_new();
</script>
<script type="text/javascript">
var title = document.querySelectorAll('.pa-avatar img[title], p.formsubmit .button[title], input.button[title],#statistic-other a[title], .post-rating a[title], span.offctgr img[title]');
var allTitle = title.length;
for (i=0; i<allTitle; i++){
title[i].removeAttribute('title');
}
</script>
<!-- Восстановление последнего поста при утере by Человек-Шаман -->
<script>
$(document).ready(function() {
$('#addition-area').append(function() {
return $('<div>Восстановить последний пост</div>').click(restoreLastPost);
});
function restoreLastPost() {
$('#main-reply').val(localStorage.ReservePost);
};
});
</script>
<!--конец-->
<script>
$('#pun-index .tcr').each(function(){
$(this).find('.lastpost-link, .lastpost').wrapAll('<div class="sered">');
});
$('.punbb .post .post-author').each(function(){
$(this).find('li.pa-title, .pa-avatar, .pa-fld1, .pa-fld2').wrapAll('<div class="proffl">');
});
</script>
<!-- Разделение ников пользователей в теме запятой -->
<script>$('#topic-users-in a').prev('a').after(',');</script>
<!---------------------------- замена в последней регистрации ---------------------------->
<script type="text/javascript">document.getElementById('pun-stats').getElementsByTagName('li')[2].childNodes[0].innerHTML = 'Нас: ' </script>
<script>
function UniverСhange(selektor,changed,substitute){
$(selektor).each(function(){if ($(this).parent().html()!=null){if($(this).parent().html().indexOf(changed)!=-1){
$(this).parent().html($(this).parent().html().replace(changed,substitute));};};});}
UniverСhange(".item4","Последним зарегистрировался","Последний прибывший");
</script>
<!-- Маски -->
<script src="https://forumstatic.ru/files/0017/95/29/89289.js"></script>
<script>
hvScriptSet.addMask({
forumAccessExtended: {
'Ready or not': ['Пользователи'],
'Now you gonna take me there': ['Пользователи'],
'Say my name': ['Пользователи'],
'Nothing compares to you': ['Пользователи'],
'Got my number': ['Пользователи'],
'Dramarama': ['Пользователи'],
'Lost in the dream': ['Пользователи'],
'Life goes on': ['Пользователи'],
'Permission to dance': ['Пользователи'],
'Film it now': ['Пользователи'],
'Shine forever': ['Пользователи']
},
changeList: {
'pafld1': {
title: 'ЛЗ1',
description: '',
tag: 'lz1',
class: 'pa-fld1',
defaultCode: 'Имя Фамилия, возраст',
type: 'text'
},
'pafld2': {
title: 'ЛЗ2',
description: '',
tag: 'lz2',
class: 'pa-fld2',
defaultCode: 'Краткое описание персонажа',
type: 'text'
}
}
});
</script>
<!-- Аватар в цитате V.2 © Alex_63 / Ч.2 в HTML низ -->
<script type="text/javascript">setLinkAndAva()</script>
<!--Убрать сокращатель ссылок -->
<script>
FORUM.set("editor.link.short_url", function() { return false; });
</script>
<!--- конец --->
<script type="text/javascript">
(function(){function rep(str, p1,offset, s){
return '>'+p1.replace(/"([^ "][^"]+?)"/gm,'«$1»')+'<';}
$('.post-content p').each(function(){
$(this).html(('</>'+$(this).html()+'</>').replace(/>([^<>]+)</gm, rep));
});}());
</script>
<script type="text/javascript">
function to(username)
{insert('[b]' + username + '[/b]' + ', ');}
</script>
<script type="text/javascript">
var DefAvtr = 'https://forumstatic.ru/files/001b/57/10/16889.jpg'; //Ссылка на аватар по умолчанию
var GuestAvtr = 'https://forumstatic.ru/files/001b/57/10/16889.jpg'; //Ссылка на аватар для Гостя
$('#pun-viewtopic,#pun-messages').find('.pa-title').each(function(){
var b = DefAvtr;if($(this).text()=='Гость'){b = GuestAvtr;}
var s='<li class="pa-avatar item2"><img class="defavtr" src="'+b+'" alt="Аватар"/></li>';
if($(this).parent().find('.pa-avatar').html()==null)$(this).after(s);
});$('#profile-left strong:contains("Нет аватара")')
.parent().html('<div><img src="'+DefAvtr+'"/></div>');
</script>
<!-- ЧТОБЫ НЕ ПРОПАДАЛИ ПОСТЫ V.3 -->
<script type="text/javascript" src="https://forumstatic.ru/files/001b/6b/7e/85302.js?v=4"></script>
<!--обтекание изображения 2.5-->
<script language="javascript">
$(function(){
$('td#button-link').before(`<td id="button-floatleft"><img class="vibor" src="https://sunnycross.ru/i/blank.gif" title="Обтекание слева" onclick="bbcode('[float=left]', '[/float]')" /><i class="fa-solid fa-angles-left"></i></td><td id="button-floatright"><img class="vibor" src="https://sunnycross.ru/i/blank.gif" title="Обтекание справа" onclick="bbcode('[float=right]', '[/float]')" /><i class="fa-solid fa-angles-right"></i></td>`);
});
elm=document.getElementsByTagName("div")
for(x in elm) if(elm[x].className=="post-content")
{
post = elm[x].innerHTML;
if(post.indexOf("[/float]") != -1) {
floats = /\[float=(.*?)\]([^\[]*)\[\/float\]/gi
elm[x].innerHTML = elm[x].innerHTML.replace(floats, "<span style='float: $1; margin: 15px; text-align: $1;'>$2</span>")
}}
</script>
<style type="text/css">
#form-buttons .vibor {width: 22px; height: 22px;}
</style>
<!--Конец -->
<div id="counters" class="banners"><div>
<a href="https://rpgtop.su/26557" title="Рейтинг Ролевых Ресурсов - RPG TOP" target="_blank">
<img src="//img.rpgtop.su/88x31x11x1.gif" alt="Рейтинг Ролевых Ресурсов - RPG TOP" border="0" width="88" height="31"></a>
<a href="https://imagiart.ru/" target="_blank"> <img src="https://i.imgur.com/h3ba1GC.gif" title="photoshop: Renaissance" border="0" alt="photoshop: Renaissance"></a>
<a href="https://urchoice.rolka.me/" target="_blank"><img src="https://forumstatic.ru/files/000b/09/4f/61730.png" title="Каталог форумов" alt="LYL" width="88" height="31"></a>
<a href="https://artishock.rusff.me/" target="_blank"><img src="http://s2.uploads.ru/nzVxs.gif" title="ARTISHOCK" border="0"width="88" height="31"></a>
<a href="https://oldshadows.rusff.me/" title="Тёмное фэнтези. Магия. Боги." target="blank"><img src="https://forumupload.ru/uploads/001c/03/d9/2/629753.png"></a>
<a href='https://nolf.rusff.me/' target='blank' title="ФРПГ No One Lives Forever"><img src="https://forumstatic.ru/files/0015/1e/ae/69675.gif" border="0" width="88" height="31"></a>
<a href="https://sideffect.rusff.me/" target="_blank"><img src="https://i.imgur.com/F521zKD.gif" title="seoul // real life"></a>
<a href="http://mirine.rusff.me" title="mirine"><img src="https://forumstatic.ru/files/001a/da/82/74207.gif" target="_blank" border="0" width="88" height="31"></a>
<a href="https://lastworldwar.rusff.me/"><img src="https://forumstatic.ru/files/001b/c8/34/90844.gif" title="Naruto: last world war" border="0" width="88" height="31"></a>
<a href="https://genshineclipse.com/" title="Genshin Impact: Celestial Eclipse" target="_blank"><img src="https://forumupload.ru/uploads/001b/df/32/147/26957.gif"></a>
<a target="_blank" href="https://thedas.mybb.ru/"><img title="Твоя любимая ролевая – Thedas" src="https://forumupload.ru/uploads/001b/e0/da/3/614063.gif"/></a>
<a target="_blank" href="http://illyon.rusff.me/"><img src="https://forumstatic.ru/files/001b/13/57/78392.jpg"></a>
<a href="https://genshinmemories.rusff.me/" target=_blank><img src="https://forumstatic.ru/files/0017/4a/e0/13035.gif" title="Genshin Impact: Golden Memories"></a>
<a href="https://romancecclub.rolka.me/" target="_blank"><img src="https://i.postimg.cc/zXR6d4QY/25.png" title="romance club"></a>
<a href="https://gemcross.rusff.me/"><img src="https://roleit.ru/f/gem/gemcross.png" width="88" height="31" border="0" alt="GEMcross"></a>
<a href="https://labardon.rusff.me" target=_blank title="Labardon: disillusionment of unity"><img src="https://forumstatic.ru/files/001b/df/86/26188.gif?v=1" border="0"alt="labardon" width=88 height=31></a>
<a href="https://crossfeeling.rusff.me/" target="_blank">
<img src="https://forumstatic.ru/files/0015/e5/b7/66578.png"
title="crossfeeling"
border="1" width="88" height="31"></a>
<a href="https://wolveslife.bbok.ru" target="_blank"><img src="https://forumstatic.ru/files/0001/bf/9c/79365.gif" title="Волки. Инстинкт зовет!">
</div></div>
<script>
$('#pun-main .post-author ul').each(function(){
$(this).find('.pa-posts, .pa-respect, .pa-fld3').wrapAll('<div class="allps">');
});
</script>
<script src="//pull.cappuccicons.com/cpf.js"></script>