Untitled


SUBMITTED BY: Guest

DATE: April 27, 2014, 5:11 a.m.

FORMAT: Text only

SIZE: 4.7 kB

HITS: 1205

  1. function add_chat(e, t, n, r) {
  2. if (settings.mutechat) return;
  3. if (!n) {
  4. var i = t.match(
  5. /^[[] ((.*?) → (.*?)) ](.*)$/);
  6. i ? i[3] == "@mods" ? (n = "chatmod",
  7. t = i[2] + i[4]) : (n = "chatpm", t =
  8. i[1] + i[4]) : t.match(/^[(]2[)]/) &&
  9. (n = "chatprincess")
  10. }
  11. console.log(t);
  12. t = quote_html(t.replace("Rainbow Dash", "ShiXEBa Inu")).replace(
  13. /([^0-9a-z#])((?:betid|roll):? |#)([1-9][0-9]{4,9})\b/ig,
  14. '$1<a target="_blank" href="/roll/$3">$2$3</a>'
  15. ).replace(
  16. /([^0-9a-z#])((?:betid|roll):? |#)([1-9][0-9]{4,9})\b/ig,
  17. '$1<a target="_blank" href="/roll/$3">$2$3</a>'
  18. ).replace(
  19. /(https:\/\/doge-dice[.]com\/roll\/)([1-9][0-9]{0,9})/ig,
  20. ' <a target="_blank" href="/roll/$2">$2</a> '
  21. ).replace(
  22. /(bitcoin-talk|bticointakl)/ig,
  23. "$1 (a phishing site, do not visit)")
  24. .replace(/lnputs[.]io/ig,
  25. "Lnputs.io (a phishing site, do not visit)"
  26. ).replace(/dicen[o0]w/ig, "dice-now").replace(
  27. /letsdice/ig, "lets-dice").replace(
  28. /grindabit/ig, "spamalot [lol jk]").replace(
  29. /bitdice[.]de/ig, "[yet more spam]").replace(
  30. /(http:\/\/just-dice[.]blogspot[.](?:ca|com)\/[0-9]+\/[0-9]+\/([a-z0-9-]+)(?:_[0-9]+)?[.]html)/ig,
  31. '[<a target="_blank" href="$1">$2</a>]'
  32. ).replace(
  33. /([?]|&)(r|referer|referal)=\s*(?:.+?\b)/ig,
  34. "$1$2= [spam link] ").replace(
  35. /(\/ref\/[0-9a-z\/]*)/ig,
  36. " [spam link]").replace(
  37. /(bit[.]ly|gg[.]gg|goo[.]gl|is[.]gd|ge[.]tt)\/[a-z0-9]{4,}/ig,
  38. "[suspicious link]").replace(
  39. /\bbitwars\b/ig, "[spam link]").replace(
  40. /\bmegaapp\b/ig, "[suspicious link]")
  41. .replace(/\b(javascript:)/i,
  42. "[potential scam warning] $1").replace(
  43. /([a-z0-9.-_]*buybtc[a-z0-9.-_]*@gmail[.])com/ig,
  44. "I am a scammer and will steal your coins! $1cum to meet your sticky end!"
  45. ).replace(
  46. /([a-z0-9.-_]*buybtc[a-z0-9.-_]*@gmail[.])com/ig,
  47. "").replace(
  48. /([^a-z])[ᴦrг]⁠*[aΑА]⁠*[pр]⁠*[eеΕ]/ig,
  49. "$1tickle").replace(
  50. /([^a-z])[ᴦrг]⁠*[aΑА]⁠*[pр]⁠*i⁠*([^d])/ig,
  51. "$1tickli$2").replace(
  52. /([^a-z])[ᴦrг]⁠*[aΑА]⁠*[eеΕ]⁠*[pр]/ig,
  53. "$1tickel").replace(
  54. /([^a-z])[ᴦrг]⁠*[aΑА]⁠*[eеΕ]⁠*[pр]⁠*i/ig,
  55. "$1tickeli").replace(
  56. /([nɴⓝ])⁠*([1iɪ!|ⓘ]⁠*)([gɢⓖ])⁠*([gɢⓖ]⁠*(?:[gɢⓖ]⁠*)*)([3eеΕᴇⓔ]⁠*[ᴦrгʀⓡ]|[aᴀ4ⓐ])/ig,
  57. "$3$2$1$4$5").replace(
  58. /(<.*>.*?)\b(butthurt)\b/i,
  59. '$1<a target="_blank" href="https://doge-dice.com/form.jpg">$2</a>'
  60. ).replace(
  61. /(dogechain[.]info\/)(?:[a-w]{2}|zh-cn)\//g,
  62. "$1").replace(
  63. /([^a-zA-Z0-9=?/])(?:(?:https?:\/\/)?dogechain[.]info\/tx(?:-index)?\/)?([0-9a-f]{8})([0-9a-f]{56})\b/g,
  64. '$1[<a target="_blank" href="http://dogechain.info/tx/$2$3">$2</a>]'
  65. ).replace(
  66. /([^a-zA-Z0-9=?/])(?:(?:https?:\/\/)?blockchain[.]info\/address\/)?(1[1-9A-HJ-NP-Za-km-z]{7})([1-9A-HJ-NP-Za-km-z]{24,26})\b/g,
  67. '$1[<a target="_blank" href="http://blockchain.info/address/$2$3">$2</a>]'
  68. ).replace(
  69. /([^a-zA-Z0-9=?/])(?:(?:https?:\/\/)?dogechain[.]info\/address\/)?(D[1-9A-HJ-NP-Za-km-z]{7})([1-9A-HJ-NP-Za-km-z]{24,26})\b/g,
  70. '$1[<a target="_blank" href="http://dogechain.info/address/$2$3">such $2</a>]'
  71. ).replace(
  72. /\b(https?:\/\/i[.]imgur[.]com\/[0-9a-z]{5,7}[.](?:jpe?g|png|gif)(?:[?][0-9]+)?)\b/ig,
  73. '[<a target="_blank" href="$1">img</a>]'
  74. ).replace(
  75. /\b(https?:\/\/imgur[.]com\/(?:a|gallery)\/[0-9a-z]{5,7}\/?(?:#\d+)?)(?:\b|$)/ig,
  76. '[<a target="_blank" href="$1">imgs</a>]'
  77. ).replace(
  78. /\b(https?:\/\/(?:(?:www[.])?youtube[.]com\/watch[?]v=|youtu[.]be\/)[0-9a-z_-]{11}[?]?(?:(?:&)?(?:wide|(?:feature|list)=[a-z.0-9]*|t=[0-9msh]+))*)\b/ig,
  79. '[<a target="_blank" href="$1">video</a>]'
  80. ).replace(
  81. /\b(https?:\/\/(?:(?:www|r2)[.])?reddit[.]com\/r\/([a-z0-9]+)\/comments\/[a-z0-9]+\/([a-z0-9_]+)(?:\/[0-9a-z]+)?\/?)(\b| |$)/ig,
  82. '[<a target="_blank" href="$1">reddit:$2 $3</a>]$4'
  83. ).replace(
  84. /\b(https:\/\/bitcointalk[.]org\/(?:index[.]php)?[?]topic=[0-9]+(?:[.](?:new#new|(?:msg)?[0-9]+))?(?:;(?:all|topicseen))?(?:#new|#msg[0-9]+)?)\b/ig,
  85. '[<a target="_blank" href="$1">thread</a>]'
  86. ), t = moment(e).format("HH:mm:ss") +
  87. " " + t, n = n ? " " + n : "", t =
  88. '<div class="chatline' + n + '">' + t +
  89. "</div>", r && chatbets_showing ?
  90. chatbets.prepend(t) : chatlog.append(
  91. t)
  92. }

comments powered by Disqus