Created
April 5, 2014 13:39
-
-
Save alerque/9992125 to your computer and use it in GitHub Desktop.
Highlight On Hold, Closed and Duplicate questions
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
// ==UserScript== | |
// @name Highlight On Hold, Closed and Duplicate questions | |
// @namespace http://alerque.com | |
// @version 0.1 | |
// @description Gives questions that have the brakes on a serious stand out background for easy review | |
// @match http://*.stackexchange.com/questions* | |
// @match http://*.stackexchange.com/ | |
// @copyright 2014+, Caleb Maclennan | |
// ==/UserScript== | |
window.addEventListener("load", function () { | |
setTimeout(function(){ | |
$(".question-summary").each(function(){ | |
$(this).find("h3").text().match('closed') && | |
$(this).css("background", "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAKUlEQVQIW2P8z8BgzMjAcJYBDQDFGBiwSYIlsEnCJdAlUSSQJTEkYJIAdecLOZ1WZSYAAAAASUVORK5CYII=) repeat"); | |
$(this).find("h3").text().match('on hold') && | |
$(this).css("background", "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAKElEQVQIW2P8P5vBmDGV4SwDGmAE8bFJgiWwScIl0CVRJJAlMSRgkgAx8hDUf0jr6gAAAABJRU5ErkJggg==) repeat"); | |
$(this).find("h3").text().match('duplicate') && | |
$(this).css("background", "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAKElEQVQIW2NkcPxvzLCf8SwDGmAE87FIQiSwSCIk0CRRJZAkMSWgkgAd3hB6rHacgAAAAABJRU5ErkJggg==) repeat"); | |
$(this).find("h3").text().match('migrated') && | |
$(this).css("background", "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAKElEQVQIW2Nk+O9ozMC4/ywDGmAE87FIQiSwSCIk0CRRJZAkMSWgkgAenBB6LZXHIgAAAABJRU5ErkJggg==) repeat"); | |
}); | |
}, 300); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment