Skip to content

Instantly share code, notes, and snippets.

View theapache64's full-sized avatar
๐Ÿš
Focusing

theapache64 theapache64

๐Ÿš
Focusing
View GitHub Profile
@theapache64
theapache64 / gist:1745fabda7744c2350c8
Created September 12, 2015 13:38
The below jQuery script will alert if the viewCount of a stackoverflow question changed.
$(document).ready(function(){
var prevViewCount = 0;
var isFirst = 1;
var url = window.location.href;
if(url.indexOf("/questions/") > -1){
console.log("Question found");
setInterval(function(){