Skip to content

Instantly share code, notes, and snippets.

@genecyber
Created July 24, 2014 14:31
Show Gist options
  • Save genecyber/aefe05a47898eedd1838 to your computer and use it in GitHub Desktop.
Save genecyber/aefe05a47898eedd1838 to your computer and use it in GitHub Desktop.
Cheat at planning poker (Bookmarklet to locally flip cards as they are played)
javascript: (function() {
var xray = function() {
var els = document.getElementsByClassName('estimate');
for (var i = 0; i < els.length; i++) {
var el = els[i];
if (el.getAttribute("class").indexOf("mine") < 0) {
el.setAttribute("class", el.getAttribute("class") + " mine");
}
}
setTimeout(xray, 1000);
};
xray();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment