smiley

Location of the smileys data base for the Innogame forum

目前為 2021-03-23 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/423271/914206/smiley.js

var Emots = {
        button: ["rollsmiliey", "smile"],

        standard : [
            "smilenew", "lol", "neutral-new", "afraid", "freddus-pacman", "auslachen2", "kolobok-sanduhr", "bussi2", "winken4", "flucht2", "panik4", "ins-auge-stechen",
            "seb-zunge", "fluch4-GREEN", "baby-junge2", "blush-reloaded6", "frown", "verlegen", "blush-pfeif", "stevieh-rolleyes", "daumendreh2", "baby-taptap",
            "sadnew", "hust", "confusednew", "idea2", "irre", "irre4", "sleep", "candle", "nicken", "no-sad", "thumbs-up-new", "kciuki", "thumbs-down-new",
            "bravo2", "oh-no2", "kaffee2", "drunk", "saufen", "freu-dance", "hecheln", "headstand", "rollsmiliey", "eazy-cool01", "motz", "cuinlove", "biggrin"
        ],
        nature : [
            "dinosaurier07", "flu-super-gau", "ben-cat", "schwein", "hundeleine01", "blume", "ben-sharky", "ben-cow", "charly-bissig", "gehirnschnecke-confused", "mttao-fische", "mttao-angler",
            "insel", "fliegeschnappen", "plapperhase", "ben-dumbo", "twitter", "elefant", "schildkroete", "elektroschocker", "spiderschwein", "oma-sessel-katze", "fred-elefant",
            "palmoel", "stevieh-teddy", "fips-aufsmaul", "marienkaefer", "mrkaktus", "kleeblatt2", "fred-blumenstauss", "hurra-fruehling1-lila", "fred-rasenmaeher", "fred-blumenbeet"

        ],
        grepolis : [
            "grepolis", "mttao-wassermann", "i-lovo-grepolis", "silvester-cuinlove", "mttao-schuetze", "kleeblatt2", "wallbash", /* "glaskugel4", */ "musketiere-fechtend", "palka", /* "krone-hoch",*/
            "lol-1", "mttao-waage2", "steckenpferd", /* "kinggrin-anbeten2", /* Grepo Love */ "skullhaufen", "pferdehaufen", "pirat5", "seb-cowboy", "gw-ranger001",
            "barbar", "datz", "waffe01", "sarazene-bogen", "waffe02", "waffe14", "hoplit-sword1", "pfeildurchkopf02", "saladin", "hoplit-sword3"
        ],
        people : [
            "greenistan", "mttao-usa", "schal-usa", "mttao-grossbritannien", "seb-hut5", "opa-boese2", "star-wars-yoda1-gruen", "hexefliegend", "snob", "seb-detektiv-ani", "devil", "segen", "borg", "hexe3b",
            "eazy-polizei", "stars-elvis", "mttao-chefkoch", "nikolaus", "pirate3-biggrin", "batman-skeptisch", "tubbie1", "tubbie2", "tubbie3", "kosmita", "tubbie4"
        ],
        Party : [
            "torte1", "torte3", "bier", "party", "party2", "fans", "band", "klokotzen", "laola", "prost", "rave", "mcdonalds", "margarita",
            "geschenk", "sauf", "el", "trommler", "ozboss-gitarre2", "kaffee", "kaffee3", "caipirinha", "whiskey", "drunk", "fressen",
            "popcorn-essen", "saufen", "energydrink1", "leckerer", "prost2", "birthday"
        ],
        other : [
            "steinwerfen", "herzen02", "scream-if-you-can", "kolobok", "headbash", "liebeskummer", "bussi", "brautpaar-reis", "grab-schaufler2", "boxen2", "aufsmaul",
            "mttao-kehren", "sm", "weckruf", "klugscheisser2", "karte2-rot", "dagegen", "party", "dafuer", "outofthebox", "pokal-gold", "koepfler", "transformer", "eazy-senseo1"
        ],
        halloween : [
            "zombies-alien", "zombies-lol", "zombies-rolleyes", "zombie01", "zombies-smile", "zombie02", "zombies-skeptisch", "zombies-eek", "zombies-frown",
            "geistani", "scream-if-you-can", "pfeildurchkopf01", "grab-schaufler", "kuerbisleuchten", "mummy3",
            "kuerbishaufen", "halloweenskulljongleur", "fledermausvampir", "frankenstein-lol", "halloween-confused", "zombies-razz",
            "halloweenstars-freddykrueger", "zombies-cool", "geist2", "fledermaus2", "halloweenstars-dracula", "batman", "halloweenstars-lastsummer"
        ],
        xmas : [
            "i-love-grepolis", "santagrin", "xmas1-down", "xmas1-thumbs1", "xmas2-lol", "xmas1-frown", "xmas1-irre", "xmas1-razz", "xmas4-kaffee2", "xmas4-hurra2", "xmas4-aufsmaul",
            "schneeball", "schneeballwerfen", "xmas4-advent4", "nikolaus", "weihnachtsmann-junge", "schneewerfen-wald", "weihnachtsmann-nordpol", "xmas-kilroy-kamin",
            "xmas4-laola", "xmas3-smile", "xmas4-paketliebe", "3hlkoenige", "santa", "weihnachtsgeschenk2", "fred-weihnachten-ostern", "xmas4-wallbash", "xmas4-liebe", "xmas4-skullhaufen"
            //"dafuer", "outofthebox", "pokal_gold", "koepfler", "transformer"
        ],
        easter : [
            "eier-bemalen-blau-hase-braun", "osterei-hase05", "osterei-bunt", "ostern-hurra2", "osterhasensmilie", "ostern-thumbs1", "ostern-nosmile", "ostern-lol",
            "ostern-irre", "ostern-frown", "ostern-down", "ostern-cuinlove", "ostern-confused", "ostern-blush", "ostern-biggrin"
        ],
        love : [
            "b-love2", "brautpaar-kinder", "brautpaar-reis", "cuinlove", "fips-herzen01", "heart", "herzen01", "herzen02", "herzen06", "kiss", "klk-tee", "liebesflagge",
            "love", "lovelove-light", "rose", "send-out-love", "teeglas-fruechtetee", "unknownauthor-knutsch", "valentinstag-biggrin", "valentinstag-confused",
            "valentinstag-down", "valentinstag-irre", "valentinstag-lol", "valentinstag-thumbs1", "wolke7"
        ],
    };

    var FDio = {
        Home: "https://www.tuto-de-david1327.com/",
        HomeImg: "https://www.tuto-de-david1327.com/medias/images/smiley-emoticons-",
        lasttab: 0,
        emots: !1,
        xfEdit: null,
        xfAvat: "n",

        GetEmotss: function() {
            FDio.emots || ($.ajax({
                timeout: 1e4,
                complete: function() {
                    FDio.emots = !0;
                    var e = $(".fr-element.fr-view:first");
                    function t(e, t, o) {
                        return $("<li/>", {
                            style: "float:left; width:35px; height:25; margin-top:4px; margin-left: 5px;"
                        }).click(function() {
                            $("#dio_emot_popup ul li").css("background", 'url("' + FDio.Home + 'medias/images/etabB.gif") no-repeat'),
                                $(this).css("background", 'url("' + FDio.Home + 'medias/images/etabA.gif") no-repeat'),
                                document.getElementById("dio_emots_poup_content").innerHTML = "",
                                $.each(o, function(e, t) {
                                (e = FDio.HomeImg + t + ".gif"),
                                    $("#dio_emots_poup_content").append($("<img/>", {
                                    src: e,
                                    title: "",
                                    class: ".Smilie",
                                    style: "margin-right: 5px; padding: 2px; border: 1px solid transparent; cursor: pointer;"
                                }).mouseover(function() {
                                    this.style.backgroundColor = "#08944d33"
                                    this.style.border="1px solid #00800080"
                                }).mouseout(function() {
                                    this.style.backgroundColor = "transparent"
                                    this.style.border="1px solid transparent"
                                }).click(function(e) {
                                    FDio.xfPasteImage($(this).attr("src"))
                                }))
                            })
                        }).html("<center>" + t + "<center>")
                    }
                    e.length && (FDio.xfEdit = e.closest("form"),
                                 FDio.xfEdit.length && (dioEmots = $("<div/>", {
                        id: "dio_emot_popup",
                        class: "message",
                        style: "display:none; z-index:10;" //float: left;  margin: -5px 0 -40px 0;
                    }).append($("<ul/>", {
                        class: "emojiList js-emojiList",
                        style: "max-height: 27px; margin: 0px; background-color: #3f4745;border: .1px solid #f3b344;"
                    }).append(
                        t(0, "<img src='" + FDio.HomeImg + "smilenew.gif' style='padding: 2px;'</img>", Emots.standard)).append(
                        t(0, "<img src='" + FDio.HomeImg + "ben-cat.gif' style='padding: 2px;'</img>", Emots.nature)).append(
                        t(0, "<img src='" + FDio.HomeImg + "i-lovo-grepolis.gif' style='margin-top: -4px;'</img>", Emots.grepolis)).append(
                        t(0, "<img src='" + FDio.HomeImg + "stars-elvis.gif' style=''</img>", Emots.people)).append(
                        t(0, "<img src='" + FDio.HomeImg + "prost2.gif' style='padding: 2px; margin-right: -5px;'</img>", Emots.Party)).append(
                        t(0, "<img src='" + FDio.HomeImg + "irre.gif' style='padding: 2px; margin-right: -5px;'</img>", Emots.other)).append(
                        t(0, "<img src='" + FDio.HomeImg + "zombies-lol.gif' style='padding: 2px; margin-right: -5px;'</img>", Emots.halloween)).append(
                        t(0, "<img src='" + FDio.HomeImg + "santagrin.gif' style='margin-top: -4px;'</img>", Emots.xmas)).append(
                        t(0, "<img src='" + FDio.HomeImg + "osterhasensmilie.gif' style='margin-top: -4px;'</img>", Emots.easter)).append(
                        t(0, "<img src='" + FDio.HomeImg + "herzen02-1.gif' style='margin-top: -4px;'</img>", Emots.love))).append(
                        $("<div/>", {
                            class: "js-emoji",
                            style: 'clear:both; height:100px; border-left: .1px solid #f3b344; border-right: .1px solid #f3b344; margin-top: -5px;'
                        }).append($("<div/>", {
                            class: "signature",
                            style: "margin:5px;overflow-y: auto; max-height: 99px;"
                        }).append($("<div/>", {
                            id: "dio_emots_poup_content",
                            //style: "width:378px;"
                        })))).css({
                        "text-align": "left",
                        //width: "413px"
                    }),
                                                        $(".fr-toolbar.fr-ltr.fr-desktop.fr-top.fr-basic").before(dioEmots),   //'<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>'+
                                                        dioEmots.parent().append("<br>"),
                                                        dioEmotsbutton = $('<button id="dio_smiley_butt" type="button" role="button" class="fr-command fr-btn" style="text-align: center;">' +
                                                                           '<div id="dio_smiley_button" class="button"></div></button>', {

                        //id: "dio_smiley_button",
                        //class: "far fa-smile button",
                        //style: "z-index:2; height: 18px; margin: 0 3px -9px 3px; border: transparent; background:url('" + FDio.HomeImg + "smile.gif') no-repeat 0px 0px"
                    }).click(function() {
                        $("#dio_emot_popup.content").height() < 80 ? $("#dio_emot_popup.content").css("overflow", "auto") : $("#dio_emot_popup.content").css("overflow-y", "scroll"),
                            $("#dio_emot_popup").toggle()
                    }),

                                                        ((!$('#dio_smiley_button').length) ? (
                        $(".fr-toolbar").length && ($("#xfSmilie-1").after(dioEmotsbutton))) : ""), //$(".fr-toolbar").length && ($(".fr-toolbar").append(dioEmotsbutton))) : ""),
                                                        $("#dio_emot_popup ul li:first").click(),
                                                        setTimeout("")))

                    $('<style id="dio_emot_popup_style">' +
                      // Chrome Scroollbar Style
                      '#dio_smiley_button { z-index:2; height: 18px; border: transparent; background:url("' + FDio.HomeImg + 'smile.gif") no-repeat 0px 0px } ' +
                      '#dio_emot_popup ::-webkit-scrollbar { width: 13px; } ' +
                      '#dio_emot_popup ::-webkit-scrollbar-track { background-color: rgba(130, 186, 135, 0.5); border-top-right-radius: 4px; border-bottom-right-radius: 4px; } ' +
                      '#dio_emot_popup ::-webkit-scrollbar-thumb { background-color: rgba(87, 121, 45, 0.5); border-radius: 3px; } ' +
                      '#dio_emot_popup ::-webkit-scrollbar-thumb:hover { background-color: rgba(87, 121, 45, 0.8); } ' +
                      '</style>').appendTo('head');

                },
                error: function() {
                    FDio.emots = !1,
                        setTimeout("FDio.GetEmotss()", 1e4)
                }
            }),
                           FDio.emots = !1,
                           setTimeout("FDio.GetEmotss()", 1e4))
        },

        xfPasteImage: function(e) {
            var t;
            if (!(t = XF.getEditorInContainer(FDio.xfEdit)))
                return !1;
            console.log(t.ed),
                $('<img src="' + e + '" data-url="' + e + '" class="bbImage fr-fic fr-dii fr-draggable" alt="" title="">').insertBefore(".fr-element.fr-view:first p:last br:last"),
                $("#dio_emot_popup").hide()
        },
    };
    FDio.GetEmotss();