// ==UserScript==
// @name Com'Count
// @version 1.0
// @description Permet de changer manuellement le nombre de messages non lus.
// @author MockingJay
// @match https://www.dreadcast.net/Main
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
// @grant GM_listValues
// @license http://creativecommons.org/licenses/by-nc-nd/4.0/
// @namespace https://greasyfork.org/users/30975
// @downloadURL none
// ==/UserScript==
$(document).ready(function() {
$("#zone_messagerie > .icon").after('
+1
');
$("#comcountInc").after('0
');
$("#comcountRes").after('-1
');
$(".comcount").css({
width: "10px",
height: "10px",
padding: "0",
margin: "0",
"line-height": "12px",
});
$("#comcountInc").click(function() {
$("#zone_messagerie").trigger({ type: "nouveauMessage", quantity: 1})
});
$("#comcountRes").click(function() {
$("#zone_messagerie").trigger({ type: "nouveauMessage", quantity: -parseInt($("#zone_messagerie > .icon").html()||0)})
});
$("#comcountDec").click(function() {
$("#zone_messagerie").trigger({ type: "nouveauMessage", quantity: -1})
});
});