Skip to content

Instantly share code, notes, and snippets.

@tianyuf
Last active March 19, 2016 03:30
Show Gist options
  • Save tianyuf/c278d81f10817cc68486 to your computer and use it in GitHub Desktop.
Save tianyuf/c278d81f10817cc68486 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name 4sq SU Progress Bar w/ Number
// @author Tianyu Fang
// @namespace http://tianyuf.xyz/
// @description Show Foursquare SU test progress bar with number
// @include https://foursquare.com/edit/*
// ==/UserScript==
var display = function(){
var review = document.querySelector("#flag-contents > div.suBar > div > div.wideColumn > ul > li:nth-child(1) > div > div").style.width;
document.querySelector("#flag-contents > div.suBar > div > div.wideColumn > ul > li:nth-child(1) > p").innerText = `Suggestions reviewed ${review}`;
var accuracy = document.querySelector("#flag-contents > div.suBar > div > div.wideColumn > ul > li:nth-child(2) > div > div").style.width;
document.querySelector("#flag-contents > div.suBar > div > div.wideColumn > ul > li:nth-child(2) > p").innerText = `Accuracy ${accuracy}`;
}
setTimeout(display, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment