Skip to content

Instantly share code, notes, and snippets.

@pahanix
Created June 16, 2011 17:59
Show Gist options
  • Save pahanix/1029826 to your computer and use it in GitHub Desktop.
Save pahanix/1029826 to your computer and use it in GitHub Desktop.
Javascript Bookmarklet для мгновенного удаления комментов неугодного ЖЖ юзера (заменить ****** на ник нужного ЖЖ юзера)
javascript:(function(){var%20BLJU="******";%20var%20a%20=%20new%20Array;%20allSpans%20=%20document.getElementsByTagName("span");%20for%20(i=0;%20i<allSpans.length;%20i++)%20%20{%20if%20((allSpans[i].className.indexOf("ljuser")%20>%20-1)%20&&%20allSpans[i].getAttribute("lj:user")%20==%20BLJU)%20{%20a.push(allSpans[i].parentNode.parentNode.parentNode.parentNode)%20}};%20for%20(i=0;%20i<a.length;%20i++)%20{%20if%20(a[i].className.indexOf("comment-wrap")%20>%20-1)%20{%20a[i].style.display%20=%20"none"}%20};})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment