Mini review controller

Adds an ability to see the review queues by hovering "review" link

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Mini review controller
// @version      1.3
// @description  Adds an ability to see the review queues by hovering "review" link 
// @author       nicael
// @include        *://*.stackexchange.com/*
// @include        *://*stackoverflow.com/*
// @include        *://*serverfault.com/*
// @include        *://*superuser.com/*
// @include        *://*askubuntu.com/*
// @include        *://*stackapps.com/*
// @include        *://*mathoverflow.net/*
// @grant        none
// @namespace    https://greasyfork.org/users/9713
// ==/UserScript==


//$(".help-dialog").hover(function(){alert($(this).css("left"))})
$(".topbar-wrapper").append('<div class="topbar-dialog cfr" style="top: 34px; left: 650px; display: none;"><div class="modal-content crd" style="margin-top:-1px;"><ul><li><div><img src="/content/img/progress-dots.gif"></div></li></ul></div></div>');
$(".topbar-menu-links > a[href='/review']:last").append('&nbsp;<span class="icon-help"><div class="triangle" style=""></div></span><tmp style="display:none"></tmp>')

$("tmp").load("/review .dashboard-num",function(){
    var stats=[];
    $("tmp > .dashboard-num").each(function(){
        stats.push($(this).text());
    });
    
    $("tmp").load("/review .dashboard-title > a",function(){$(".crd>ul>li").remove();
    $("tmp>a").each(function(index){
        if($(this).text()!="Meta Reviews"){
            $(".crd>ul").append('<li><div><span style="display:inline-block;width:20px;text-align:center;margin:2px;color:grey;">'+stats[index]+'</span>&nbsp;<a href="'+$(this).attr("href")+'">'+$(this).text()+'</a></div></li>');
        }else{
            $(".crd>ul").append('<li><div><span style="display:inline-block;width:20px;text-align:center;margin:2px;color:grey;"></span>&nbsp;<a href="'+$(this).attr("href")+'">'+$(this).text()+'</a></div></li>');
        }
    });
});})


$(".topbar-menu-links > a[href='/review']:last").hover(function(){$(this).addClass("topbar-icon-on").css({"color":"black"});$(".cfr").css({"display":"block"});})
$(".cfr").hover(function(){$(".topbar-menu-links > a[href='/review']:last").addClass("topbar-icon-on").css({"color":"black"});$(".cfr").css({"display":"block"})})
$(".topbar-menu-links > a[href='/review']:last").mouseleave(function(){$(this).removeClass("topbar-icon-on").css({"color":"#e0e0e0"});$(".cfr").css({"display":"none"})})
$(".cfr").mouseleave(function(){$(".topbar-menu-links > a[href='/review']:last").removeClass("topbar-icon-on").css({"color":"#e0e0e0"});$(".cfr").css({"display":"none"})})