Com'Count

Permet de changer manuellement le nombre de messages non lus.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Com'Count
// @version      1.0.2
// @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
// ==/UserScript==

$(document).ready(function() {

    $("#zone_messagerie > .grid.grid-title > .icon").before('<div class="comcount btnTxt link" id="comcountInc" style="top: 1px;"><p>+1</p></div>');
    $("#comcountInc").after('<div class="comcount btnTxt link" id="comcountRes" style="top: 15px;"><p>0</p></div>');
    $("#comcountRes").after('<div class="comcount btnTxt link" id="comcountDec" style="top: 29px;"><p>-1</p></div>');

    $(".comcount").css({
        display: "block",
        position: "absolute",
        left: "-16px",
        width: "10px",
        height: "10px",
        padding: "0",
    });
    $(".comcount > p").css({
        "line-height": "12px",
        "font-size": "10px",
        margin: "0",
    });

    $("#comcountInc").click(function() {
        $("#zone_messagerie").trigger({ type: "nouveauMessage", quantity: 1})
    });
    $("#comcountRes").click(function() {
        $("#zone_messagerie").trigger({ type: "nouveauMessage", quantity: -parseInt($("#zone_messagerie > .grid > .icon > .nbrmessage").text()||0)})
    });
    $("#comcountDec").click(function() {
        $("#zone_messagerie").trigger({ type: "nouveauMessage", quantity: -1})
    });

});