Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
User script to change Unanswered tab to Review in StackOverflow and StackExchange (except gaming)
// ==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
You can’t perform that action at this time.