Created
February 18, 2011 10:13
-
-
Save Benjol/833494 to your computer and use it in GitHub Desktop.
User script to change Unanswered tab to Review in StackOverflow and StackExchange (except gaming)
This file contains hidden or 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 FutureReview | |
// @author benjol | |
// @version 1.0.1 | |
// @description Hack Unanswered tab to point to review | |
// @include http://stackoverflow.com/* | |
// @include http://meta.stackoverflow.com/* | |
// @include http://*.stackexchange.com/* | |
// @include http://meta.*.stackexchange.com/* | |
// @exclude http://*.gaming.stackexchange.com/* | |
// @exclude http://area51.stackexchange.com/* | |
// ==/UserScript== | |
function with_jquery(f) { | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; | |
script.textContent = "(" + f.toString() + ")(jQuery)"; | |
document.body.appendChild(script); | |
}; | |
with_jquery(function ($) { | |
var unanswered = document.getElementById('nav-unanswered'); | |
if(unanswered == null) | |
notify.show('You can uninstall the <a href="http://stackapps.com/questions/2069/change-unanswered-tab-to-review">FutureReview</a> script, the functionality seems to now be built in to Stack Exchange', -123456); | |
unanswered.innerHTML = 'Review'; | |
unanswered.href = '/review'; | |
if(location.pathname.indexOf('/review') > -1) { | |
unanswered.parentNode.className += ' youarehere'; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment