Skip to content

Instantly share code, notes, and snippets.

@Benjol
Created February 18, 2011 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Benjol/833494 to your computer and use it in GitHub Desktop.
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)
// ==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