Skip to content

Instantly share code, notes, and snippets.

View AaronMT's full-sized avatar
👾
Hacking

Aaron Train AaronMT

👾
Hacking
View GitHub Profile
@AlexLakatos
AlexLakatos / bookmarklet.js
Created December 19, 2012 19:46
Bookmarklet for finding all bug reporters in a component in Bugzilla
javascript:{email%20=%20document.querySelectorAll(".bz_reporter_column%20span");%20reporter%20=%20document.querySelectorAll(".bz_reporter_realname_column%20span");%20emails%20=%20[];%20function%20inFinals(x)%20{%20%20%20var%20uniq%20=%20false;%20%20%20var%20id;%20%20%20for(j%20=%200;%20j%20<%20emails.length;%20j++)%20{%20%20%20%20%20if%20(emails[j].email%20===%20x)%20{%20%20%20%20%20%20%20uniq%20=%20true;%20%20%20%20%20%20%20id%20=%20j;%20%20%20%20%20}%20%20%20}%20%20%20if%20(uniq)%20emails[id].count%20=%20emails[id].count%20+%201;%20%20%20return%20uniq;%20}%20for(i=0;%20i<email.length;%20i++)%20{%20%20%20if%20(!inFinals(email[i].title))%20{%20%20%20%20%20emails.push({reporter:%20reporter[i].title%20,%20email:%20email[i].title,%20count:%201});%20%20%20%20%20%20%20%20}%20%20%20%20}%20header%20=%20document.getElementById("header");%20table%20=%20document.createElement('table');%20var%20tr=document.createElement('thead');%20var%20td1%20=%20document.createElement('td');%20td1.textContent%20=%20"Name";%20var%20td2