Flag All by User Bookmarklet

Bookmarklet will prompt for User's name, like Pigeon, then find all posts on the current page (must run on each page of thread). It will automatically flag each comment for the matching username.

You can see the results by reloading the page after you see the "done" message. You should see an "Unflag this item" link for every comment of the user.

Be careful to use the whole username.

Source (forums.tesla.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3Avar%20C%3Ddocument.getElementsByClassName%28%27panel-pane%20pane-node-comments%27%29%5B0%5D%3B%20var%20s%3Dprompt%28%27Text%20to%20search%20for%20then%20hide.%27%2C%27PDX%27%29%3B%20if%28s%3D%3Dnull%29%7Bs%3D%27PDX%27%3B%7D%20try%20%7B%20%09for%28var%20i%3D0%2Cd%3Bd%3DC.querySelectorAll%28%22.comment%22%29%3Bi++%29%7B%20%09%09var%20h%3Dd%5Bi%5D.querySelector%28%22.user-date%22%29.innerHTML%3B%20%09%09if%28h.toLowerCase%28%29.indexOf%28s.toLowerCase%28%29%29%20%3E%20-1%29%20%7B%20%09%09%09var%20Flag%3Dd%5Bi%5D.querySelector%28%22.flag-action%22%29%3B%20%09%09%09/*alert%28Flag.href%29%3B%20%09%09%09var%20w%09%3D%20window.open%28Flag.href%2C%20%22_blank%22%2C%22%22%2Cfalse%29%3B*/%20%09%09%09if%28Flag%20%21%3D%20null%29%20%7B%20%09%09%09%09var%20IGet%20%3D%20new%20Image%28%29%3B%20%09%09%09%09IGet.src%09%3D%20Flag.href%3B%20%09%09%09%7D%20%09%09%7D%20%09%7D%20%7D%20catch%28ex%29%20%7B%7D%20alert%28%22done%22%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.