Last active
March 12, 2019 21:54
-
-
Save cfarm/6011b922f014eb2c5533 to your computer and use it in GitHub Desktop.
POINTS!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:!function(){for(var c=document.getElementsByClassName("IssueLabel"),a=0,d=0;d<c.length;d++){var b=c[d].innerText;-1!=b.indexOf("points: 13")?a+=13:-1!=b.indexOf("points: 8")?a+=8:-1!=b.indexOf("points: 5")?a+=5:-1!=b.indexOf("points: 3")?a+=3:-1!=b.indexOf("points: 2")?a+=2:-1!=b.indexOf("points: 1")&&(a+=1)}document.querySelector(".progress-bar").style.marginRight="10px";c=document.createElement("span");a=document.createTextNode(" "+a+" points!");c.appendChild(a);document.querySelector(".js-project-header h3").appendChild(c)}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use this as a bookmarklet:
points-min.js
above