chatft

makes chat great

Old: v0.0.1.20170629170332 - 2017-06-29 -
New: v0.0.1.20170630010604 - 2017-06-30 -

  • --- /tmp/diffy20240508-2449458-1fobxb 2024-05-08 21:58:14.888742870 +0000
  • +++ /tmp/diffy20240508-2449458-mmugvp 2024-05-08 21:58:14.888742870 +0000
  • @@ -95,12 +95,12 @@
  • #window_i img {
  • max-width: 100%;
  • }
  • - #lobbychat #window {
  • - height: auto !important;
  • - }
  • #lobbychat #emobu {
  • margin-top: -1px;
  • }
  • + #lobbychat.expanded #window {
  • + height: auto !important;
  • + }
  • #lobbychat.expanded #window_i {
  • height: 400px !important;
  • }
  • @@ -232,12 +232,12 @@
  • }
  • }
  • node.innerHTML=node.innerHTML
  • - .replace(/\*\*(.+?)\*\*/g, "<b>$1</b>")
  • - .replace(/\*(.+?)\*/g, "<i>$1</i>")
  • - .replace(/__(.+?)__/g, "<u>$1</u>")
  • - .replace(/~~(.+?)~~/g, "<s>$1</s>")
  • - .replace(/($| )(\w+:\/\/\S+)/g, "$1<a href='$2' target='_blank'>$2</a>")
  • - .replace(/([\ud83c-\udbff\udc00-\udfff]+)/g, "<span class='emoji'>$1</span>");
  • + .replace(/(^|\s)\*\*(.+?)\*\*/g, "$1<b>$2</b>")
  • + .replace(/(^|\s)\*(.+?)\*/g, "$1<i>$2</i>")
  • + .replace(/(^|\s)__(.+?)__/g, "$1<u>$2</u>")
  • + .replace(/(^|\s)~~(.+?)~~/g, "$1<s>$2</s>")
  • + .replace(/(^|\s)(\w+:\/\/\S+)/g, "$1<a href='$2' target='_blank'>$2</a>")
  • + .replace(/([\u2600-\u27ff]+|\ud83c[\udc00-\udfff]+|\ud83d[\udc00-\udfff]+)/g, "<span class='emoji'>$1</span>");
  • }
  • });
  • });