Guest User

Untitled

a guest
Feb 22nd, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript: var re = function (ar) {
  2.     return ar[Math.floor(Math.random() * ar.length)];
  3. };
  4. var t = window.location.pathname.split("/")[3];
  5. var a = function () {
  6.     var n = $(".b-comment_b-info a[name]");
  7.     var w = $(".b-comment_b-body").text().split(/\s+/).filter(function (a) {
  8.         return a.match(/[А-Я]+/);
  9.     }).map(function (a) {
  10.         return a.replace(/[\.!?()]/g, "").toLowerCase()
  11.     });
  12.     $.post("http://1chan.ru/news/res/" + t + "/add_comment/", {
  13.         "post_id": t,
  14.         "text": ">>" + $(re(n)).text() + "\r\n" + (function () {
  15.             var r = [];
  16.             var rand = Math.random() * 30;
  17.             for (var i = 0; i < rand; i++) {
  18.                 r.push(re(w))
  19.             };
  20.             var s = r.join(" ");
  21.             return s.charAt(0).toUpperCase() + s.substr(1);;
  22.         })() + "."
  23.     })
  24. };
  25. if (true) {
  26.     a();
  27. } else {
  28.     setInterval('a()', 5000)
  29. };
Advertisement
Add Comment
Please, Sign In to add comment