16
$\begingroup$

For new questions and the chat there is the functionality showing (1) in the tab if there is a new question or a new chat message. I'd like to suggest such a functionality for the review queue, either one for all review tasks or seperate ones for all of them.

$\endgroup$
  • 1
    $\begingroup$ Just to clarify: do you suggest that (1) should appear on the review page if a user has it open as a new item arrives? (So the user would not end up in a webcomic) $\endgroup$ – user53153 Dec 28 '12 at 16:21
  • $\begingroup$ @PavelM Yes, that is what I suggest. $\endgroup$ – Julian Kuelshammer Dec 28 '12 at 16:29
2
$\begingroup$

This feature has since been implemented by the userscript Review Stalker.

For those who prefer not to install a userscript, I wrote a bookmarklet with similar functionality. Having opened the review page, click the bookmarklet: the review count will be shown in the tab, and updated every 60 seconds. (Tip: open review queues in a new tab, so that the bookmarklet will keep on running.)

There are a few other review-related scripts on Stack Apps. Given that this functionality is of interest only to "power users", it is unlikely that SE will implement it natively.


Uncompressed bookmarklet code:

t=document.title;
f();
function f() {
  r=new XMLHttpRequest();
  r.responseType='document';
  r.onload=function(e) {
    c=0;
    x=e.currentTarget.responseXML;
    a=x.querySelectorAll('.dashboard-item');
    for (i=0;i<a.length;i++) {
      c+=parseInt(a[i].children[0].innerText,10);
    }
  document.title='('+c+') '+t;
  document.getElementById('content').outerHTML=x.getElementById('content').outerHTML;
  window.setTimeout(f,60000);
  };
  r.open('GET',window.location.href,true);
  r.send();
}
$\endgroup$
  • $\begingroup$ I don't want to bump this thread, but the code above is Chrome-specific. The new version, posted here, works in both Chrome and Firefox (at least). $\endgroup$ – user147263 Aug 1 '14 at 6:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .