Guest User

Untitled

a guest
May 24th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. replyHiding = {
  2. init: function() {
  3. return g.callbacks.push(function(root) {
  4. var a, dd, id, reply;
  5. if (!(dd = $('.doubledash', root))) return;
  6. dd.className = 'replyhider';
  7. a = $.el('a', {
  8. textContent: '[ - ]',
  9. href: 'javascript:;'
  10. });
  11. $.on(a, 'click', replyHiding.cb.hide);
  12. $.replace(dd.firstChild, a);
  13. reply = dd.nextSibling;
  14. id = reply.id;
  15. if (id in g.hiddenReplies) return replyHiding.hide(reply);
  16. });
  17. },
Add Comment
Please, Sign In to add comment