Post
Topic
Board Новички
Merits 15 from 7 users
Topic OP
📌 Подборка скриптов для форума
by
StartupAnalyst
on 04/02/2019, 12:29:08 UTC
⭐ Merited by xandry (4) ,Ratimov (4) ,Xal0lex (2) ,andy_pelevin (2) ,FontSeli (1) ,wh1rlw1nd (1) ,madnessteat (1)
В данной теме опубликован список скриптов и расширений для браузеров используя которые проводить время на форуме гораздо приятнее.
Скрипты будут добавляться по мере появления и обнаружения.
Конструктивная критика, дополнения и идеи для скриптов также приветствуются!

Дисклеймер:
Не рекомендуется использовать всевозможные скрипты , если вы хотите оставаться в тени.
Каждое дополнительное расширение/скрипт, делают цифровой отпечаток вашего браузера все более и более уникальным, тем самым выделяя его ( и заодно и вас) из общей толпы. (Уже даже не говорю о возможных дырах).


📌 Улучшенный пользовательский интерфейс системы Merit Оригинал темы

Оригинальная англотема: https://bitcointalk.org/index.php?topic=2833350.0

Это очень простой скрипт, который позволяет добавлять Мериты, не покидая страницу топика. После установки скрипта нажмите на ссылку «+ Merit», чтобы открыть/закрыть всплывающее окно.





Установка скрипта:

1. Если у вас ещё не установлено расширение для работы со скриптами в браузере, установить можно по ссылкам:


2. Установить (скачать) скрипт: Merit.user.js


EcuaMobi усовершенствовал скрипт. Теперь в окошке отображается количество оставшихся у вас сМеритов.

I have combined my own suggestion as well as sncc's and modified grue's script to implement them.

This is the result:
Loading image...

Here's the modified source. grue, feel free to update your original code if you like the change:
Code:
// ==UserScript==
// @name        bitcointalk merit
// @namespace   grue
// @include     https://bitcointalk.org/index.php?topic=*
// @require     https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js
// @version     1.1-em0.1
// @downloadURL https://grue.blob.core.windows.net/scripts/Merit.user.js?sv=2014-02-14&si=1&sr=c&sig=k%2BqstGBI3oQ8TrHfPWjS5HgjrazuDPmKJ6rYNs7rvRk%3D&.user.js
// @grant none
// ==/UserScript==

(() => {
  var sMerit;
  
  //get csrf token from the logout link
  let sc = $('td.maintab_back a[href*="index.php?action=logout;sesc="').attr("href");
  sc = /;sesc=(.*)/.exec(sc)[1];
  
  //Added by EcuaMobi: Get remaining sMerit
  $.post(
"https://bitcointalk.org/index.php?action=merit;msg=29048068"
  ).then((data) => {
    sMerit = /You have ([0-9]+)<\/b> sendable/.exec(data)[1];
  }).catch(() => sMerit = null);

  //selector for the "+Merit" link
  $('td.td_headerandpost div[id^=ignmsgbttns] a[href*="index.php?action=merit;msg="]')
  .each((i, e) => {
    const msgId = /msg=([0-9]+)/.exec(e.href)[1];
    
    const $popup = $(['
',
      '  
',
      '    
',
      '      Merit points: ',
      '    
',
 // Modified by EcuaMobi
      '    
',
      '  
',
      '
'
    ].join("\n"));
    $popup.find("form").submit( (e) => {
      e.preventDefault();
      $popup.find('input[type="submit"]')
        .prop("disabled", true)
        .val("Sending...");
      const merits = e.target.elements["merits"].value;
      
      $.post(
        "https://bitcointalk.org/index.php?action=merit",
        {merits, msgID: msgId, sc}
      ).then((data) => {
        //Error pages usually have this (rough heuristic)
        if(data.includes("An Error Has Occurred!</title")) {<br>          throw "error";<br>        }<br>        //double check and see whether the post we merited was added to the list. Its msgId should be visible in the page source.<br>        if(data.includes("#msg" + msgId)) {<br>          alert("Merit added.");<br>          $("#grue-merit-popup" + msgId).toggle(false);<br><span style="white-space: pre;"> </span><span style="white-space: pre;"> </span>  // Added by EcuaMobi<br><span style="white-space: pre;"> </span><span style="white-space: pre;"> </span>  if(sMerit!=null) { sMerit -= merits }<br>          return;<br>        }<br>        alert("Server response indeterminate.");<br>      })<br>      .catch(() => alert("Failed to add merit."))<br>      .always(() => {<br>        $popup.find('input[type="submit"]')<br>        .prop("disabled", false)<br>        .val("Send");<br>      });<br>    });<br>    $popup.insertAfter(e);<br>    <br>    $(e).click((e) => {<br>      e.preventDefault();<br>      $("#grue-merit-popup" + msgId).toggle();<br><span style="white-space: pre;"> </span>  // Added by EcuaMobi<br><span style="white-space: pre;"> </span>  if(sMerit!=null) { $("#em-smerit-count" + msgId).html('<a href="https://bitcointalk.org/index.php?action=merit;msg='+msgId+'" target="_blank">Available:</a> <b>'+sMerit+'</b>    ') };<br>    });<br>  });<br>   $(".grue-merit-popup").toggle(false);<br>   <br>})();</div></div></div><br><br>📌 <b><span style="color: green;"><span style="font-size: 12pt !important; line-height: 1.3em;">Скрипт позволяющий игнорировать сообщения низкого качества <a class="ul" href="https://bitcointalk.org/index.php?topic=4325308.msg43689074">Оригинал темы </a></span></span></b><br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=4325308.msg38781970#msg38781970">Quote from: Sybyll on May 28, 2018, 12:48:19 PM</a></div><div class="quote">Задолбали боты, баунисты и просто нубы? Хочется тупо не замечать их? Вот решение! Скрипт для расширения браузера Greasemonkey<br><br>Просто замените (или добавьте) никнеймы <img src="https://bitcointalk.org/Smileys/default/wink.gif" alt="Wink" border="0"> user1, user2...и.т.д на свои по усмотрению<br><br>Буду рад мериту<br><br><div class="codeheader">Code:</div><div class="code">// ==UserScript==<br>// @name        bububu<br>// @namespace   bububu<br>// @include     https://bitcointalk.org/*<br>// @version     2<br>// @grant       none<br>// ==/UserScript==<br><br>(function () {<br>    var bububu = new Array('user1','user2', 'user3', 'user4');<br>    var bububuText = 'ну-би-ща';<br><br>    var posters = document.getElementsByClassName('poster_info');<br>    for(var i=0;i<posters.length;i++)<br>    {<br>        var posterName = posters[i].firstElementChild.textContent;<br>        for(var j=0;j<bububu.length;j++)<br>        {<br>            if(posterName==bububu[j])<br>            {<br>                posters[i].parentElement.lastElementChild.lastElementChild.innerHTML=bububuText;<br>            }<br>        }<br>    }<br>    var quotes = document.getElementsByClassName('quoteheader');<br>    for(var i=0;i<quotes.length;i++)<br>    {<br>        var quoterName = quotes[i].textContent;<br>        for(var j=0;j<bububu.length;j++)<br>        {<br>            if(quoterName.indexOf(bububu[j])>0)<br>            {                <br>                quotes[i].parentElement.getElementsByClassName('quote')[0].innerHTML=bububuText;<br>            }<br>        }<br>    }<br>})();</div></div><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5105965.msg49655958#msg49655958">Quote from: xenon131 on February 09, 2019, 10:43:16 AM</a></div><div class="quote"><a class="ul" href="https://bitcointalk.org/index.php?topic=5098306.msg49267224#msg49267224">Вот здесь предлагается еще один скрипт</a>, который делает прозрачными все сообщения на форуме, носящие подпись какого-либо АЙКО.  <a class="ul" href="https://gist.github.com/CapnSparrow/d1f4f3d48c776279895a497a2eabe266">Сам скрипт можно забрать на гитхабе.</a>. <br></div><br><br>📌 <b><span style="color: green;"><span style="font-size: 12pt !important; line-height: 1.3em;">Скрипт для отправки отчета модератору из истории сообщений пользователя <a class="ul" href="https://bitcointalk.org/index.php?topic=5102160.0#quickreply">Оригинал темы</a></span></span></b><br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5102160.msg49418739#msg49418739">Quote from: madnessteat on January 25, 2019, 03:45:20 PM</a></div><div class="quote"><div align="center"><a class="ul" href="https://bitcointalk.org/index.php?topic=5101823.0"><span style="color: green;"><b>Оригинальная англоязычная тема</b></span></a></div><br><b>Пользователь <a class="ul" href="https://bitcointalk.org/index.php?action=profile;u=78147/">Cyrus</a> (администратор) создал очень полезный скрипт, с помощью которого можно отправить отчет модератору прямо из истории сообщений любого пользователя.</b><br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5101823.msg49405472#msg49405472">Quote from: Cyrus on January 24, 2019, 07:04:18 PM</a></div><div class="quote"><br><div class="codeheader">Code:</div><div class="code">// ==UserScript==<br>// @name     Post history report button<br>// @version  1<br>// @grant    none<br>// @include  https://bitcointalk.org/index.php?action=profile;u=*;sa=showPosts*<br>// @require  https://code.jquery.com/jquery-2.2.4.min.js<br>// ==/UserScript==<br><br>var postLinks = $('td.middletext a:last-of-type');<br>var buttonLink = $("span.middletext").slice(1);<br><br>for (var i = 0; i < postLinks.length; i++) {<br>  var postLink = $(postLinks[i]);<br>  var reportLink = "<a href=" + postLink.prop("href").replace("index.php?", "index.php?action=reporttm;").replace(".msg", ";msg=") + ">Report to moderator</a>";<br>  $(buttonLink[i]).prepend (reportLink);<br>}</div></div><br>Чтобы использовать скрипт вам потребуется установить менеджер пользовательских скриптов, например расширение GreaseMonkey для браузера Mozilla Firefox или Tampermonkey для браузера Chrome.<br><br>Для тех кто не умеет пользоваться скриптами решил сделать небольшую инструкцию на примере установки расширения Tampermonkey для браузера Chrome:<br><br><b>1. Перейдите в <a class="ul" href="https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=ru">интернет магазин Chrome</a> и нажмите <b><span style="color: green;">установить</span></b>.<br></b><br><a class="ul" href="https://radikal.ru"><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fa.radikal.ru%2Fa12%2F1901%2Fe9%2F2c25eae17425.png&t=614&c=EnV7Z_BD1J2caw" alt border="0"></a><br><br><b>2. Теперь у вас появилась иконка расширения. Нажимаем на нее, далее <b><span style="color: green;">Создать новый скрипт...</span></b></b><br><br><a class="ul" href="https://radikal.ru"><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fc.radikal.ru%2Fc04%2F1901%2F10%2F597fb1a3dce1.png&t=614&c=qALg5mPkTaLPQQ" alt border="0"></a><br><br><b>3. Скопируйте весь скрипт из поля <b><span style="color: green;">Code</span></b> выше. Затем нажмите <b><span style="color: green;">Файл</span></b> и <b><span style="color: green;">Сохранить</span></b>.</b><br><br><a class="ul" href="https://radikal.ru"><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fa.radikal.ru%2Fa41%2F1901%2Ffa%2F4251280f8a7b.png&t=614&c=WONJRYEAP2D00Q" alt border="0"></a><br><br><b>4. Вы увидите что скрипт включен.<br></b><br><a class="ul" href="https://radikal.ru"><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fa.radikal.ru%2Fa00%2F1901%2F1a%2F441e9b2c2df0.png&t=614&c=2nQQFvSunKJUkQ" alt border="0"></a><br><br><b>5. Далее переходим в историю сообщений любого пользователя и видим, что теперь под каждым постом появилась кнопка <b><span style="color: green;">отчет модератору</span></b>. </b><br><br><a class="ul" href="https://radikal.ru"><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fd.radikal.ru%2Fd28%2F1901%2F05%2F33d4d6ee689f.png&t=614&c=i6__Hfr4iD1bhA" alt border="0"></a><br><br><b>6. Пользуемся!</b><br><br>Огромное спасибо <a class="ul" href="https://bitcointalk.org/index.php?action=profile;u=78147/">Cyrus</a> за такой удобный и полезный скрипт. Сделаем форум чище, все вместе!<br><br><hr><br>Обновление: по просьбе <a class="ul" href="https://bitcointalk.org/index.php?action=profile;u=1068464">Xal0lex</a> <div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5101823.msg49421019#msg49421019">Quote from: Xal0lex on January 25, 2019, 06:26:23 PM</a></div><div class="quote">Перевод:<br>Скрипт не работает, если вы просматриваете последние темы пользователя. Было бы неплохо, чтобы скрипт работал и там.<br></div> пользователь <a class="ul" href="https://bitcointalk.org/index.php?action=profile;u=557798">TryNinja</a> доработал скрипт:<br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5101823.msg49421472#msg49421472">Quote from: TryNinja on January 25, 2019, 07:05:21 PM</a></div><div class="quote"><div class="codeheader">Code:</div><div class="code">// ==UserScript==<br>// @name     Post history report button<br>// @version  1<br>// @grant    none<br>// @include  https://bitcointalk.org/index.php?action=profile;u=*;sa=showPosts*<br>// @include  https://bitcointalk.org/index.php?action=profile;threads;u=*;sa=showPosts*<br>// @require  https://code.jquery.com/jquery-2.2.4.min.js<br>// ==/UserScript==<br><br>var postLinks = $('td.middletext a:last-of-type');<br>var buttonLink = $("span.middletext").slice(1);<br><br>for (var i = 0; i < postLinks.length; i++) {<br>  var postLink = $(postLinks[i]);<br>  var reportLink = "<a href=" + postLink.prop("href").replace("index.php?", "index.php?action=reporttm;").replace(".msg", ";msg=") + ">Report to moderator</a>";<br>  $(buttonLink[i]).prepend (reportLink);<br>}</div></div><br><br><br><br></div><br><br>📌 <b><span style="color: green;"><span style="font-size: 12pt !important; line-height: 1.3em;">Скрипт для имитации кнопки "All" для больших топиков <a class="ul" href="https://bitcointalk.org/index.php?topic=5112444.0"> Оригинал темы</a></span></span></b><br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5105965.msg49896108#msg49896108">Quote from: Xal0lex on February 24, 2019, 11:21:03 AM</a></div><div class="quote">Все вы видели ссылку "All" возле списка страниц у маленьких тем:<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FfgTWuEL.png&t=614&c=KZ4PRTCI1UjVKg" alt width="400" border="0"><br><br>Если кто не знает, этот прибамбас выводит сразу все страницы темы на одной. Но у больших тем такой кнопки нет. <br><br><a class="ul" href="https://bitcointalk.org/index.php?action=profile;u=459836">LoyceV</a> создал <a class="ul" href="https://bitcointalk.org/index.php?topic=5112444.0">скрипт для форума</a>, имитирующий такую кнопку для больших топиков (<b>до пятисот страниц</b>).<br><br>Порядок действий:<br><br>1. Берёте ID топика и подставляете в эту ссылку:<br><br><div class="codeheader">Code:</div><div class="code">http://loyce.club/showall/"ID топика".html</div><br>2. Затем постите эту ссылку где угодно на форуме. Можно в той же теме, которую вы хотите просмотреть;<br>3. Немного терпения (около 10 секунд + 5 секунд на страницу);<br>4. Потом просто переходите по этой ссылке и всё - вы получаете все страницы большой темы на одной.<br><br>Это удобно, например, для поиска. Чтобы не переходить по сотне страниц темы, а загрузить сразу все страницы и воспользоваться поиском (Ctrl+F).<br><br><span style="text-decoration: underline;">Пример темы <a class="ul" href="https://bitcointalk.org/index.php?topic=994018.0">Неофициальный список официальных правил</a></span>: <a class="ul" href="http://loyce.club/showall/994018.html">http://loyce.club/showall/994018.html</a> <br><br><span style="color: red;"><b>Только не забываем после использования ссылки удалять пост с этой ссылкой.</b></span><br><br>Кстати, авторы больших топиков могли бы разместить такие ссылки в стартовых постах своих топиков.<br></div><br>📌 <b><span style="color: green;"><span style="font-size: 12pt !important; line-height: 1.3em;">Скрипт и расширение для игнора неинтересных тем <a class="ul" href="https://bitcointalk.org/index.php?topic=879742.msg9709290#msg9709290">Оригинал темы</a></span></span></b><br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5105965.msg49952582#msg49952582">Quote from: Bloodxtz on February 28, 2019, 01:30:27 AM</a></div><div class="quote">Скрипт для игнора тем.<br><a class="ul" href="https://bitcointalk.org/index.php?topic=1451483.0">https://bitcointalk.org/index.php?topic=1451483.0</a><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FfaDvPHT.png&t=614&c=5-PfO7SFoUWslw" alt border="0"><br><br>Расширение для Chrome. Подсветка темы зеленым или красным(like,dislike). <br>Можно скрыть dislike топики.<br><a class="ul" href="https://bitcointalk.org/index.php?topic=879742.msg9709290#msg9709290">https://bitcointalk.org/index.php?topic=879742.msg9709290#msg9709290</a><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FRUw2jqa.png&t=614&c=f1NKEqbb6686vQ" alt border="0"><br></div><br><br>📌 <b><span style="color: green;"><span style="font-size: 12pt !important; line-height: 1.3em;">   Комплексный скрипт (недоработан) <a class="ul" href="https://bitcointalk.org/index.php?topic=264337.0">Оригинал темы</a></span></span></b><br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5105965.msg50186817#msg50186817">Quote from: Xal0lex on March 16, 2019, 02:04:41 PM</a></div><div class="quote">Есть скрипт - целый комбайн - для нашего форума - <a class="ul" href="https://bitcointalk.org/index.php?topic=264337.0">BitcoinTalk++ script - v0.2.96</a>. Он правда полурабочий, так сказать. Но там есть интересные функции. Например, многие спрашивают, как можно скрыть различные ненужные темы. Так вот там есть такая опция:<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FJglgp6q.png&t=614&c=x4vwsV4yx4cqkg" alt border="0"><br><br>Возьмём, к примеру, топик <a class="ul" href="https://bitcointalk.org/index.php?topic=4588431.0">[Список] Забаненные пользователи</a>. Вы хотите его скрыть. Для этого в окошке пишете "bt:4588431" и нажимаете кнопку "Change". Потом нажимаете "Save settings" и всё, при обновлении страницы тема будет скрыта.<br><br>Было:<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2F5VU3lNZ.png&t=614&c=jGCow_Neg12QTQ" alt width="900" border="0"><br><br>Стало:<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FwJCtPR3.png&t=614&c=qVmFSAgMYcrjuQ" alt width="900" border="0"><br><br>Можно указывать кучу топиков через точку с запятой. Чтобы сбросить всё, нужно нажать на "(default=)". Все скрытые темы появятся снова.<br><br>P.S. Если бы кто-нибудь из JavaScript-специалистов проверил-проштудировал этот скрипт и довёл бы его до ума - убрал бы чего лишнего (или, в частности, вытянул бы из комбайна вышеприведенную мной функцию), было бы очень неплохо (лично для меня, там куча ненужного). Так как я так понял, что автор скрипта давно его забросил: последний раз был на форуме 13 мая 2018 года, да к тому же и забанен.<br></div><br>📌 <b><span style="color: green;"><span style="font-size: 12pt !important; line-height: 1.3em;">  Скрипт по работе с цитатами <a class="ul" href="https://bitcointalk.org/index.php?topic=5148327.0">Оригинал темы</a></span></span></b><br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5105965.msg51259609#msg51259609">Quote from: Xal0lex on May 29, 2019, 01:01:55 AM</a></div><div class="quote">Чтобы избавиться от лишних цитат при цитировании оверквотинга <b>EcuaMobi</b> написал <a class="ul" href="https://bitcointalk.org/index.php?topic=5148327.0">скрипт по работе с цитатами</a>.<br><br>После установки скрипт добавляет три кнопки-ссылки:<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FhrrMp4E.png&t=614&c=lFwbDDgRJXjfrg" alt border="0"><br><br>1. <b>Full text</b> - возвращает на место весь оверквотинг (всё как было);<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2F2IXRKre.png&t=614&c=b6QCxb9ikAjX0g" alt border="0"><br><br>2. <b>Latest quote</b> - удаляет из оверквотинга все цитаты, кроме последней;<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FU4ooGFx.png&t=614&c=M1QeaFRNiMGXpw" alt border="0"><br><br>3. <b>~snip~</b> - удаляет весь оверквотинг и в последней цитате меняет весь текст на ~snip~ (вырезано).<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2Fj3YhAtC.png&t=614&c=72bRkQp6r1LrSA" alt border="0"><br><br><span style="color: red;"><b>Важно:</b></span> все действия с цитатами с помощью этих кнопок нужно производить <b>до того</b> как вы начнёте набирать свой комментарий. Иначе вы потеряете всё, что вы написали.<br><br>Установка скрипта не составляет труда. У вас должно быть установлено расширение для браузера: Tampermonkey для Chrome, Greasemonkey для Firefox, или Violentmonkey для Opera.<br><br>Можно установить скрипт по этой ссылке <a class="ul" href="https://openuserjs.org/scripts/EcuaMobi/Quote_plus">https://openuserjs.org/scripts/EcuaMobi/Quote_plus</a><br><br>Исходный код скрипта <a class="ul" href="https://openuserjs.org/scripts/EcuaMobi/Quote_plus/source">https://openuserjs.org/scripts/EcuaMobi/Quote_plus/source</a><br><br><div class="codeheader">Code:</div><div class="code">// ==UserScript==<br>// @name        Quote plus<br>// @namespace   ecuamobi<br>// @author      EcuaMobi<br>// @include     https://bitcointalk.org/index.php?action=post;quote=*<br>// @require     https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js<br>// @version     1.0<br>// @license   MIT<br>// @grant none<br>// ==/UserScript==<br><br>(() => {<br>  var full_text = document.forms.postmodify.message.value;<br>  var regex = /\[quote author/gi,<br>    result, indices = [];<br>  // Find second [quote]<br>  var i = 0;<br>  var start2 = 0;<br>  var end2 = 0;<br>  while ((result = regex.exec(full_text))) {<br>    i++;<br>    if (2 == i) {<br>      start2 = result.index;<br>      break;<br>    }<br>  }<br>  regex = /\[\/quote\]/gi, result, indices = [];<br>  var last = 0;<br>  while ((result = regex.exec(full_text))) {<br>    if (last > 0) {<br>      end2 = last + 8;<br>    }<br>    last = result.index;<br>  }<br><br>  // Are there several quotes?<br>  if (start2 == 0 || end2 == 0) {<br>    // Abort<br>    return;<br>  }<br><br>  // Get text to use for every option<br>  var latest_quote = full_text.substr(0, start2).trim() + '\n' + full_text.substr(end2).trim() + '\n';<br>  var snip_quote = full_text.substr(0, start2).trim() + '~snip~[/quote]\n';<br>  full_text = full_text.trim() + '\n';<br><br>  // By default use the latest quote. REPLACE THIS BY snip_quote OR REMOVE IF DESIRED<br>  document.forms.postmodify.message.value = latest_quote;<br><br>  // Add buttons to manually use full text, latest quote or snip<br>  const $links = $("<span style='margin-left:35%'><a id='full_text' href='#'>Full text</a> | <a id='latest_quote' href='#'>Latest quote</a> | <a id='snip_quote' href='#'>~snip~</a></span>");<br>  $links.insertAfter($("#postMoreOptions"));<br><br>  $("#full_text").click((e) => {<br>    e.preventDefault();<br>    document.forms.postmodify.message.value = full_text;<br>  });<br>  $("#latest_quote").click((e) => {<br>    e.preventDefault();<br>    document.forms.postmodify.message.value = latest_quote;<br>  });<br>  $("#snip_quote").click((e) => {<br>    e.preventDefault();<br>    document.forms.postmodify.message.value = snip_quote;<br>  });<br>})();<br></div><br>Примечания и ограничения:<br><br>- скрипт не будет работать, если нет вложенных цитат;<br>- скрипт учитывает только цитаты вида "[ quote author=username link=...". Обычный тег [ quote] не учитывается;<br>- скрипт может не работать, если вложенные цитаты находятся не в начале поста или цитаты смешаны с ответами на эти цитаты;<br>- вы должны проверять с помощью "Preview" как отработал скрипт, в противном случае вы можете вернуть всё как и было, нажав на кнопку "Full text".<br><br>Так как <b>EcuaMobi</b> продолжит работу над развитием скрипта, комментарии и пожелания по работе скрипта в топике автора приветствуются.<br></div><br>📌 <b><span style="color: green;"><span style="font-size: 12pt !important; line-height: 1.3em;">  Скрипт добавляющий значок для архивирования <a class="ul" href="https://bitcointalk.org/index.php?topic=5151005.09">Оригинал темы</a></span></span></b><br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5105965.msg51360473#msg51360473">Quote from: Xal0lex on June 05, 2019, 03:26:07 PM</a></div><div class="quote"><a class="ul" href="https://bitcointalk.org/index.php?topic=5151005.0">Скрипт</a>, добавляющий ко всем ссылкам значок для мгновенного архивирования темы/поста.<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FwrIw9xq.png&t=614&c=mTT6qOAOePcsoA" alt border="0"><br><br><br>Хотя я лично предпочитаю официальные букмарклеты архивов:<br><br>- <a class="ul" href="https://archive.fo">archive.today</a> (в самом верху страницы)<br><br><div class="codeheader">Code:</div><div class="code">javascript:void(open('http://archive.today/?run=1&url='+encodeURIComponent(document.location)))</div><br>- <a class="ul" href="https://en.wikipedia.org/wiki/Help:Using_the_Wayback_Machine#JavaScript_bookmarklet">Wayback Machine</a><br><br><div class="codeheader">Code:</div><div class="code">javascript:void(window.open('https://web.archive.org/web/*/'+location.href));</div></div><br>📌 <b><span style="color: green;"><span style="font-size: 12pt !important; line-height: 1.3em;">  Скрипт показывающий баланс Bitcoin-адреса <a class="ul" href="https://bitcointalk.org/index.php?topic=5158298.0">Оригинал темы</a></span></span></b><br><br><div class="quoteheader"><a href="https://bitcointalk.org/index.php?topic=5105965.msg51624493#msg51624493">Quote from: Xal0lex on June 27, 2019, 02:57:45 PM</a></div><div class="quote"><a class="ul" href="https://bitcointalk.org/index.php?topic=5158298.0">Скрипт</a>, который отображает баланс любого Bitcoin-адреса, присутствующего на форуме.<br>Адреса SegWit не отображает.<br><br><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FR7Z7mTT.png&t=614&c=mBd-6SYwp_yVAg" alt width="500" border="0"><br><hr><hr><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2FQcqd29n.png&t=614&c=-1sflXE0R13YNw" alt width="600" border="0"><br><hr><hr><img class="userimg" src="https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2F2FKtFzv.png&t=614&c=yYJkdsYUFqaNPw" alt width="400" border="0"><br></div><br><b><span style="color: green;"><span style="font-size: 12pt !important; line-height: 1.3em;"> Особая благодарность модератору <a class="ul" href="https://bitcointalk.org/index.php?action=profile;u=1068464">Xal0lex</a> за помощь в ведении темы, а так же прочим участникам форума принимавшим участие в ее наполнении!</span></span></b><br><br><br><br>