Код:
<!--Для хтмл --> <script type="text/javascript"> function Transform_Code_Box_in_HTML(aX){ var TemLnk=aX.replace(/^(.viewtopic.php?id=\d).$/ig,"$1"); var PstId=aX.replace(/^.viewtopic.php?id=.*(#p\d+)$/ig,"$1"); var L=document.URL.replace(TemLnk,''); if(L!=document.URL&&(L.slice(0,1)).search(/\d/ig)==-1 ){ L=$("div.topic "+PstId); if(L.length==1){ var Lhtm=L.find(".post-content .code-box:first .scrollbox pre").text(); L.find(".post-content .code-box:first").replaceWith(Lhtm) }}} function Demo_HTML(Ts){var Ll=Ts.parents(".htmldemo").find(".code-box .scrollbox pre").text(); Ts.parents(".htmldemo").after('<div class="demHtml">'+Ll+'</div>');Ts.replaceWith(DemoButt0); } $(document).ready(function() { $("#pun-viewtopic .post .code-box").each(function(){ if($(this).text().indexOf('<!--HTML-->')!=-1){ $(this).wrap('<div class="htmldemo"></div>') $(this).replaceWith($('.htmldemo').text().split('<!--HTML-->')[1]); } }); }); </script> <!-- Cчётчик Игровых постов --> <script type="text/javascript"> /*************************** Настройки! ***************************/ FORUM._NUMpa_fld = 2; // Номер.Доп.поля, FORUM._color_fld = "#938947"; // Цвет шрифта cчётчика, FORUM.includeFirstPost = 0; // 0 - не учитывать,1 - учитывать Первопост автора в игровых темах, FORUM.AddOrSlash = 0; // 0 - Поле отдельно, 1 - через слешь c общ. числом сообщений, FORUM.Number_winners = [7,[19,166]]; // Начальное Число отображаемых юзеров в таблице и список форумов показа; FORUM.Subscription_Code = "f0ea9dee347d59379d264661bce75c0275273f9c"; //Код подписки;/выдаётся на этапе теста/ /**** НАСТРОЙКА Игровых локаций ****/ function ad_ (){/*!~!FORUM.ForArrAy = { //Форум //Темы (включаемые, или исключаемые) f19 :+[7836], //Тестовая Тема f137 :-[0], //Когда + , то только включаемые темы 26 f93 :-[28], //Когда - , то все темы, кроме Исключаемых f14 :-[30], //0 - Все темы(без исключений) f61 :-[0], f43 :-[0], f158 :-[0] //Последний элемент без запятой! } !~!*/}ad_ = ad_.toString().split('!~!')[1]; </script> <script type="text/javascript" src="https://forumstatic.ru/files/0013/44/56/77707.js"></script> <style>.Form-Table {width:99%;position:relative;z-index:19}#pun strong.GamePst2, #pun span.GamePst { padding-right: 0 !important;color:var(--proftext)!important;}.punbb .table_GamePosts tbody th{height: 27px!important;}#pre_placement>a {top:3px;right:-13px} </style> <!-- /END//Cчётчик Игровых постов //forumstatic.ru--> <!-— Шрифты перенесённые из стиля --> <link rel="stylesheet" type="text/css" href="https://forumstatic.ru/files/0017/da/8a/52333.css"/> <style> @media screen and (max-width: 1200px) { body { margin-left: 70px;} #pun-stats li.item1, #pun-stats li.item2, #pun-stats li.item3, #pun-stats li.item4 { width: -webkit-fill-available;} } </style> <!-- Плюсы на все посты на странице V2 © Deff --> <style>#Pros_to_all{margin-top:-22px!important; transform: scale(0.8);}</style> <script type="text/javascript"> /************************* НАСТРОЙКИ *************************/ Pros_to_all = { Показать_Время : 1, /* Отображает затраченное время запросов */ Access_forums : [], /* ID Форумов(разделов) работы скрипта - если список пустой, - то все форумы*/ Access_Groups : [1, 11], /* Допущенные группы */ excluded_users : [] /* ID Юзеров исключений //Последняя строка в конце без запятой*/ } </script> <script data="c0gwicpj" src ="https://forumstatic.ru/files/0013/44/56/97444.js""></script> <!-- END//Плюсы на все посты на странице V2 © Deff --> <!-- Смена стиля, (с) ForumD.ru, satsana, модификация от Fumuse --> <script type="text/javascript"> const styleList = [{ class: 'night', name: 'ночь' }, { class: 'day', name: 'день' }]; function getCookie(a) { return (a = document.cookie.match(new RegExp("(?:^|; )" + a.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") + "=([^;]*)"))) ? decodeURIComponent(a[1]) : void 0 } function setStyle(a) { $("body").attr("class", a); selStyle = a; document.cookie = "selStyle=" + a + "; max-age=2592000"; } let selStyle = getCookie("selStyle"); selStyle && setStyle(selStyle); function darkLight () { if (styleList[1]["class"] === selStyle) { $('#checkBox').prop("checked", false); setStyle(styleList[0]["class"]); } else { $('#checkBox').prop("checked", true); setStyle(styleList[1]["class"]); } } $(document).pun_mainReady(function () { if ($("#stylelist").length || $("body").prepend('<ul id="stylelist"></ul>')) { $("#stylelist").append('<label class="switch">\n' + '<input type="checkbox" onclick="darkLight();" id="checkBox" ' + (styleList[1]["class"] === selStyle ? 'checked' : false) + '>\n' + '<span class="slider"></span>\n' + '</label>'); } }); </script> <!-- Смена стиля - END --> <ul id="stylelist"></ul> <!---------------------------- актив ----------------------------> <post><span>лучший пост</span><a href="https://soullove.ru/viewtopic.php?id=10911#p1156223"> Ael Price-Lindberg</a></post> <post_text> Растерянность. Подозрительность. Атрея, за все эти годы не научившись доверять, хотела неоспоримых доказательств прозвучавшему признанию, жаждала получить ответы на вопросы, которые ее терзали, возможно, уже давно. Гордая, холодная Атрея. Неприступная Атрея. Одинокая Атрея. Ни длинные ресницы, ни выразительные глаза, в глубине которых навеки канули сердца многих кавалеров, ни красивая фигура, легко угадываемая даже под объемным свитером, ни задорная юбочка — ничего не могло смягчить ее облик. Она напоминала неприступную, но прекрасную Снежную Королеву, по велению которой ни один принц пытался, но так и не смог выложить слово “вечность”.</post_text> <quot><br><center>«Озвучить тот факт, что мать вернулась, оказалось весьма просто, словно она не с того света вернулась, а из отпуска». © Mara Lightwood</center></quot> <act> постописцы </act> <active> <a href="https://soullove.ru/profile.php?id=3271" title='постов: 15'>Cleo </a>, <a href="https://soullove.ru/profile.php?id=3272" title='постов: 14'>Eva</a>, <a href="https://soullove.ru/profile.php?id=2529" title='постов: 5'> Patricia</a>, <a href="https://soullove.ru/profile.php?id=3197" title='постов: 5'> Daniel</a></active> <episode><span>лучший эпизод</span> <a href="https://soullove.ru/viewtopic.php?id=11007" title='Yan Shao & Rong Shukuang'>История красных теней </a></episode> <amso> <div class="ams"><a href="https://soullove.ru/profile.php?id=2">morrigan</a>,<span><div class="ams_frame"><img src="https://forumstatic.ru/files/001a/fb/a2/66745.gif"></div></span></div> <div class="ams"><a href="https://soullove.ru/profile.php?id=1954">elena</a>,<span><div class="ams_frame"><img src="https://forumstatic.ru/files/001a/fb/a2/37635.gif"></div></span></div> <div class="ams"><a href="https://soullove.ru/profile.php?id=2462">robin</a><span><div class="ams_frame"><img src="https://forumstatic.ru/files/001a/fb/a2/85763.gif"></div></span></div> </amso> <anim>анимация 1</anim> <div class="spirit-navigation" id="navig-batton">полезные телепорты</div> <div id="navigblock" style="display:none"><div class="sslka"> <a href="http://soullove.ru/viewtopic.php?id=8091#p619359">гостевая</a> <a href="http://soullove.ru/viewtopic.php?id=39">сюжет</a> <a href="http://soullove.ru/viewtopic.php?id=8#p8">канон</a> <a href="http://soullove.ru/viewtopic.php?id=10#p12">бестиарий</a> <a href="http://soullove.ru/viewtopic.php?id=9">внешности</a> <a href="http://soullove.ru/viewtopic.php?id=16">FAQ</a> <a href="http://soullove.ru/viewtopic.php?id=6">правила</a> <a href="http://soullove.ru/viewtopic.php?id=7023#p484992">девять миров</a> <a href="http://soullove.ru/viewtopic.php?id=7417#p532081">хронология</a> </div></div> <script> $(document).ready(function(){ $("#navig-batton").click(function(){ $("#navigblock").slideToggle(); }); }); $(document).ready(function(){ $('.spirit-navigation, .spirit-navigation2').click(function () { $(this).toggleClass('spirit-navigation_hover'); }); }); </script> <!--выделить код--> <script type="text/javascript" src="https://forumstatic.ru/files/0015/c4/3f/26102.js"></script> <script>eval(select_text.toString().replace(/\}$/,'try{document.execCommand("copy")}catch(e){}}'))</script> <script type="text/javascript">select_text.linkText = 'выделить [копируется сразу]' //текст ссылки</script> <!-- конец --> <!--Отключение функций "Жалоба, Это интересно, Поделиться, Граффити"--> <script type="text/javascript"> RusffCore.sets.show_reportBtn = 0; rusffLive.enable = false; RusffCore.sets.share = false; RusffCore.sets.graffiti = false; </script> <!-- новый шрифт --> <style type="text/css"> @font-face { font-family: 'Philosopher'; src: url('https://forumstatic.ru/files/0019/ee/2d/98295.eot?'), url('https://forumstatic.ru/files/0019/ee/2d/56813.woff') format('woff'), url('https://forumstatic.ru/files/0019/ee/2d/15696.ttf') format('truetype'); font-weight: normal; font-style: normal; } </style> <!-- КОНЕЦ --> <!--Set class .Trevelyan by Deff--><script> $().pun_mainReady(function(){ var tit = 'Pst-Class=' $('.post-content').find('abbr[title^="'+tit+'"]').each(function () { var pstClass = this.title.split(tit)[1]; $(this).parents('.post-content').addClass(pstClass).parents('.post').addClass(pstClass); }); }); </script> <!-- ники модера --> <style> .modlist {display: none !important;} </style> <!-- конец --> <!--Всплывающие Подсказки при наведении--> <style> #tooltip { position: absolute; background: rgba(0,0,0,.8); z-index: 999; max-width: 180px; border: none; border-radius: 2px; box-shadow: 0 0 1px 1px rgba(0,0,0,.1); font-family: open sans; /* шрифт */ font-size: 10px; /* размер текста */ display: none; color: #fff; /* цвет текста */ text-align: center; padding: 5px; letter-spacing: 1px; font-weight: lighter; text-shadow: 1px 1px 1px #253130 } </style> <!-- Пиар-вход --> <script src="https://forumstatic.ru/files/0015/c4/3f/26781.js"></script> <script type="text/javascript"> PR.nick = 'PR'; //Ник PR-аккаунта PR.pass = '1111'; //Пароль PR-аккаунта PR.btn_text = 'Реклама'; //Надпись на кнопке PR-входа(или ссылка на картинку); PR.set();</script> <!------------ Отключить "Вложения" от русфф ------------> <script type="text/javascript"> RusffCore.sets.files.button = false; </script> <!-- HTML верх -Cпойлер cкрытия Инфы под N-кнопок в Профиле Топика --> <style> img.post-img-Sp { margin-top: 10px; margin-bottom:0px !important; margin-left: 2px !important; } div.tipsy.tipsy-s.Sp-imgSp-img .tipsy-inner{font-size:14px;letter-spacing:1px;} .post-ul-Sp.Sp1 {margin-left: 6px !important; padding: 0 !important; } </style> <script type="text/javascript" src="https://forumstatic.ru/files/0010/b4/f8/57844.js"></script> <style type="text/css"> /*убрать: "пожаловаться" и "поделиться"*/ .pl-reports,.pl-share { display:none!important; } </style> <!-- Мгновенные уведомления © Alex_63, Deff 2019 --> <link rel="stylesheet" type="text/css" href="//forumstatic.ru/f/ru/bestbb/notifications.css" /> <script type="text/javascript" src="//forumstatic.ru/f/ru/bestbb/notifications.js"></script> <script type="text/javascript"> notifications.token = 'f0ea9dee347d59379d264661bce75c0275273f9c'; // Forum token notifications.key = 'c5jo1oqo6jq7'; // Subscription key RusffCore.sets.notifications = false; </script> <!-- Мгновенные уведомления: подписки на форум/тему © Alex_63, 2019 --> <script>notifications.load('subscriptions');</script> <!-- Мгновенные уведомления: новые посты из важных тем © Alex_63, 2019 --> <script type="text/javascript"> notifications.load('common', {}); notifications.load('important', {topics: [15, 5827, 39, 22, 5522, 5520, 7389, 6537, 8149, 8421, 8625, 10369]}); // ID важных тем (через запятую) </script> <!-- Мгновенные уведомления: комменты к репе для Rusff © Alex_63, 2019 --> <script>notifications.load('reputation');</script> <!-- Мгновенные уведомления: упоминания © Alex_63, 2020 --> <script>notifications.load('mentions');</script> <!-- Скрываем профиль в постах © Deff --> <script type="text/javascript"> if(GroupID<3)FORUM.set('editor.addition.tags.noborder_td', {name:'Скрытие профиля',onclick:function(){smile('[im'+'g=hide-autor]https://is.gd/ekiTPp['+'/img]');}}); $().pun_mainReady(function() { function addStyle() { /*==123==; <style type="text/css">#### .post-author,#### .post-sig,#### .pl-email,#### .pl-website{display:none !important}#### .post-body,#### .post-links,#### .post-links ul,#### h3>span,#### .post-content {margin-left:0 !important}</style> ==123==;*/ } addStyle = addStyle.toString().split('==123==;')[1]; $('.post .post-content img[alt="hide-autor"]').each(function(){ var id = $(this).parents('.post').prop('id'); $(addStyle.replace(/####/gim,'#'+id)).insertBefore($(this)); });}); </script> <script src="https://forumstatic.ru/files/0011/e9/e1/56920.js" type="text/javascript"></script> <!-- Подсчет символов в постах игры --> <style>.send-sumb{margin: 28px 0 12px;padding:2px 7px; float:right;color:#800;min-width:25px; cursor:pointer; border:1px solid;}.post.topicpost .send-sumb{display:none}</style> <script type="text/javascript"> if([137,93,61,177,176].indexOf(+FORUM.topic.forum_id)!=-1){//id Нужных форумов для подсчета document.write('<script type="text/javascript" data="k6ds" src="https://forumstatic.ru/files/001b/93/2e/18162.js?"><\/script>')} $(function(){$(".post-content .send-sumb").each(function(){$(this).attr("title",$(this).attr("original-title")) .removeAttr("original-title")})});/**/ </script> <!-- конец --> <!---------------------------- Быстрая смена аккаунта ----------------------------> <script type="text/javascript"> New_EXiT = 'https://forumstatic.ru/files/000e/5d/50/61160.png'; //Дополнительная Иконка выход; </script> <script data="1a7104" src="https://forumstatic.ru/files/0014/cc/0a/93129.js"></script> <!--// Быстроплюсы c правкой для тревельян by Deff //--> <script type="text/javascript" src="https://forumstatic.ru/files/0012/d8/04/65145.js" addComment="1"></script> <script> ReactionsPlugin.setConfig({ disable: true }); </script> <!--Правка Sachimot скрипта в Админке "Быстрое перемещение сообщений"--> <script type="text/javascript" src="https://forumstatic.ru/files/0012/d8/04/91552.js"></script> <!-- Разбивка текста на абзацы, для ролевых форумов (c)satsana, 2017г. --> <script type="text/javascript"> if ([61, 93, 137, 176, 177, 202].indexOf(+$('#pun-viewtopic').attr('data-forum-id')) != -1)(function() { try{if (this.document != parent.document) return}catch(e){return} function ad_ (){/*!~!<style> .post-content {text-align: justify;} td p {text-indent: 0 !important;} .post-content p { text-indent: 3.5em; padding: 0 0 .7em 0 !important; }</style>!~!*/}ad_ = ad_.toString().split('!~!')[1];//alert(ad_); $(ad_).insertBefore('script:last'); $().pun_mainReady(function() { $(".post-content p").html(function() { if($(this).find('img').length) return; var pos = 0, spanpos = 0, brpos = 0; var str = this.innerHTML; while (true) { spanpos = str.indexOf("<span", pos); brpos = str.substring(pos).search(/(\<br\s?\/?\>)+(?!<span style="display:inline-block)/); if (brpos == -1) { return str; } else { brpos += pos; } if (spanpos < brpos && spanpos != -1) { var span1 = 1, span2 = 0; pos = spanpos + 2; while (span1 != span2) { pos = str.indexOf("span", pos); if (str.substring(pos - 1, pos) == "/") { span2++; } else { span1++; } pos++; if (str.indexOf("<span", pos) == str.indexOf("<br>", pos)) { break; } } } else if (spanpos > brpos || spanpos == -1) { str = str.substring(0, brpos) + str.substring(brpos).replace(/(\<br\s?\/?\>)+/, '</p><p>'); pos = brpos++; } else { return str; } } }) }); /**/ }()); </script> <!-- Разбивка на абзацы (end) -->