smiley

Location of the smileys data base for the Innogame forum

目前为 2021-07-26 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.cn-greasyfork.org/scripts/423271/954359/smiley.js

  1. var Emots = {
  2. button: ["rollsmiliey", "smile"],
  3. standard : [
  4. "smilenew", "lol", "neutral-new", "afraid", "freddus-pacman", "auslachen2", "kolobok-sanduhr", "bussi2", "winken4", "flucht2", "panik4", "ins-auge-stechen",
  5. "seb-zunge", "fluch4-GREEN", "baby-junge2", "blush-reloaded6", "frown", "verlegen", "blush-pfeif", "stevieh-rolleyes", "daumendreh2", "baby-taptap",
  6. "sadnew", "hust", "confusednew", "idea2", "irre", "irre4", "sleep", "candle", "nicken", "no-sad", "thumbs-up-new", "kciuki", "thumbs-down-new",
  7. "bravo2", "oh-no2", "kaffee2", "drunk", "saufen", "freu-dance", "hecheln", "headstand", "rollsmiliey", "eazy-cool01", "motz", "cuinlove", "biggrin"
  8. ],
  9. nature : [
  10. "dinosaurier07", "flu-super-gau", "ben-cat", "schwein", "hundeleine01", "blume", "ben-sharky", "ben-cow", "charly-bissig", "gehirnschnecke-confused", "mttao-fische", "mttao-angler",
  11. "insel", "fliegeschnappen", "plapperhase", "ben-dumbo", "twitter", "elefant", "schildkroete", "elektroschocker", "spiderschwein", "oma-sessel-katze", "fred-elefant",
  12. "palmoel", "stevieh-teddy", "fips-aufsmaul", "marienkaefer", "mrkaktus", "kleeblatt2", "fred-blumenstauss", "hurra-fruehling1-lila", "fred-rasenmaeher", "fred-blumenbeet"
  13. ],
  14. grepolis : [
  15. "grepolis", "mttao-wassermann", "i-lovo-grepolis", "silvester-cuinlove", "mttao-schuetze", "kleeblatt2", "wallbash", /* "glaskugel4", */ "musketiere-fechtend", "palka", /* "krone-hoch",*/
  16. "lol-1", "mttao-waage2", "steckenpferd", /* "kinggrin-anbeten2", /* Grepo Love */ "skullhaufen", "pferdehaufen", "pirat5", "seb-cowboy", "gw-ranger001",
  17. "barbar", "datz", "waffe01", "sarazene-bogen", "waffe02", "waffe14", "hoplit-sword1", "pfeildurchkopf02", "saladin", "hoplit-sword3"
  18. ],
  19. people : [
  20. "greenistan", "mttao-usa", "schal-usa", "mttao-grossbritannien", "seb-hut5", "opa-boese2", "star-wars-yoda1-gruen", "hexefliegend", "snob", "seb-detektiv-ani", "devil", "segen", "borg", "hexe3b",
  21. "eazy-polizei", "stars-elvis", "mttao-chefkoch", "nikolaus", "pirate3-biggrin", "batman-skeptisch", "tubbie1", "tubbie2", "tubbie3", "kosmita", "tubbie4"
  22. ],
  23. Party : [
  24. "torte1", "torte3", "bier", "party", "party2", "fans", "band", "klokotzen", "laola", "prost", "rave", "mcdonalds", "margarita",
  25. "geschenk", "sauf", "el", "trommler", "ozboss-gitarre2", "kaffee", "kaffee3", "caipirinha", "whiskey", "drunk", "fressen",
  26. "popcorn-essen", "saufen", "energydrink1", "leckerer", "prost2", "birthday"
  27. ],
  28. other : [
  29. "steinwerfen", "herzen02", "scream-if-you-can", "kolobok", "headbash", "liebeskummer", "bussi", "brautpaar-reis", "grab-schaufler2", "boxen2", "aufsmaul",
  30. "mttao-kehren", "sm", "weckruf", "klugscheisser2", "karte2-rot", "dagegen", "party", "dafuer", "outofthebox", "pokal-gold", "koepfler", "transformer", "eazy-senseo1"
  31. ],
  32. halloween : [
  33. "zombies-alien", "zombies-lol", "zombies-rolleyes", "zombie01", "zombies-smile", "zombie02", "zombies-skeptisch", "zombies-eek", "zombies-frown",
  34. "geistani", "scream-if-you-can", "pfeildurchkopf01", "grab-schaufler", "kuerbisleuchten", "mummy3",
  35. "kuerbishaufen", "halloweenskulljongleur", "fledermausvampir", "frankenstein-lol", "halloween-confused", "zombies-razz",
  36. "halloweenstars-freddykrueger", "zombies-cool", "geist2", "fledermaus2", "halloweenstars-dracula", "batman", "halloweenstars-lastsummer"
  37. ],
  38. xmas : [
  39. "i-love-grepolis", "santagrin", "xmas1-down", "xmas1-thumbs1", "xmas2-lol", "xmas1-frown", "xmas1-irre", "xmas1-razz", "xmas4-kaffee2", "xmas4-hurra2", "xmas4-aufsmaul",
  40. "schneeball", "schneeballwerfen", "xmas4-advent4", "nikolaus", "weihnachtsmann-junge", "schneewerfen-wald", "weihnachtsmann-nordpol", "xmas-kilroy-kamin",
  41. "xmas4-laola", "xmas3-smile", "xmas4-paketliebe", "3hlkoenige", "santa", "weihnachtsgeschenk2", "fred-weihnachten-ostern", "xmas4-wallbash", "xmas4-liebe", "xmas4-skullhaufen"
  42. //"dafuer", "outofthebox", "pokal_gold", "koepfler", "transformer"
  43. ],
  44. easter : [
  45. "eier-bemalen-blau-hase-braun", "osterei-hase05", "osterei-bunt", "ostern-hurra2", "osterhasensmilie", "ostern-thumbs1", "ostern-nosmile", "ostern-lol",
  46. "ostern-irre", "ostern-frown", "ostern-down", "ostern-cuinlove", "ostern-confused", "ostern-blush", "ostern-biggrin"
  47. ],
  48. love : [
  49. "b-love2", "brautpaar-kinder", "brautpaar-reis", "cuinlove", "fips-herzen01", "heart", "herzen01", "herzen02", "herzen06", "kiss", "klk-tee", "liebesflagge",
  50. "love", "lovelove-light", "rose", "send-out-love", "teeglas-fruechtetee", "unknownauthor-knutsch", "valentinstag-biggrin", "valentinstag-confused",
  51. "valentinstag-down", "valentinstag-irre", "valentinstag-lol", "valentinstag-thumbs1", "wolke7"
  52. ],
  53. };
  54. var FDio = {
  55. Home: "https://www.tuto-de-david1327.com/",
  56. HomeImg: "https://www.tuto-de-david1327.com/medias/images/smiley-emoticons-",
  57. lasttab: 0,
  58. emots: !1,
  59. xfEdit: null,
  60. xfAvat: "n",
  61. GetEmotss: function() {
  62. FDio.emots || ($.ajax({
  63. timeout: 1e4,
  64. complete: function() {
  65. FDio.emots = !0;
  66. var e = $(".fr-element.fr-view:first");
  67. function t(e, t, o) {
  68. return $("<li/>", {
  69. style: "float:left; width:35px; height:25; margin-top:4px; margin-left: 5px;"
  70. }).click(function() {
  71. $("#dio_emot_popup ul li").css("background", 'url("' + FDio.Home + 'medias/images/etabB.gif") no-repeat'),
  72. $(this).css("background", 'url("' + FDio.Home + 'medias/images/etabA.gif") no-repeat'),
  73. document.getElementById("dio_emots_poup_content").innerHTML = "",
  74. $.each(o, function(e, t) {
  75. (e = FDio.HomeImg + t + ".gif"),
  76. $("#dio_emots_poup_content").append($("<img/>", {
  77. src: e,
  78. title: "",
  79. class: ".Smilie",
  80. style: "margin-right: 5px; padding: 2px; border: 1px solid transparent; cursor: pointer;"
  81. }).mouseover(function() {
  82. this.style.backgroundColor = "#08944d33"
  83. this.style.border="1px solid #00800080"
  84. }).mouseout(function() {
  85. this.style.backgroundColor = "transparent"
  86. this.style.border="1px solid transparent"
  87. }).click(function(e) {
  88. FDio.xfPasteImage($(this).attr("src"))
  89. }))
  90. })
  91. }).html("<center>" + t + "<center>")
  92. }
  93. e.length && (FDio.xfEdit = e.closest("form"),
  94. FDio.xfEdit.length && (dioEmots = $("<div/>", {
  95. id: "dio_emot_popup",
  96. class: "message",
  97. style: "display:none; z-index:10;" //float: left; margin: -5px 0 -40px 0;
  98. }).append($("<ul/>", {
  99. class: "emojiList js-emojiList",
  100. style: "max-height: 27px; margin: 0px; background-color: #3f4745;border: .1px solid #f3b344;"
  101. }).append(
  102. t(0, "<img src='" + FDio.HomeImg + "smilenew.gif' style='padding: 2px;'</img>", Emots.standard)).append(
  103. t(0, "<img src='" + FDio.HomeImg + "ben-cat.gif' style='padding: 2px;'</img>", Emots.nature)).append(
  104. t(0, "<img src='" + FDio.HomeImg + "i-lovo-grepolis.gif' style='margin-top: -4px;'</img>", Emots.grepolis)).append(
  105. t(0, "<img src='" + FDio.HomeImg + "stars-elvis.gif' style=''</img>", Emots.people)).append(
  106. t(0, "<img src='" + FDio.HomeImg + "prost2.gif' style='padding: 2px; margin-right: -5px;'</img>", Emots.Party)).append(
  107. t(0, "<img src='" + FDio.HomeImg + "irre.gif' style='padding: 2px; margin-right: -5px;'</img>", Emots.other)).append(
  108. t(0, "<img src='" + FDio.HomeImg + "zombies-lol.gif' style='padding: 2px; margin-right: -5px;'</img>", Emots.halloween)).append(
  109. t(0, "<img src='" + FDio.HomeImg + "santagrin.gif' style='margin-top: -4px;'</img>", Emots.xmas)).append(
  110. t(0, "<img src='" + FDio.HomeImg + "osterhasensmilie.gif' style='margin-top: -4px;'</img>", Emots.easter)).append(
  111. t(0, "<img src='" + FDio.HomeImg + "herzen02-1.gif' style='margin-top: -4px;'</img>", Emots.love))).append(
  112. $("<div/>", {
  113. class: "js-emoji",
  114. style: 'clear:both; height:100px; border-left: .1px solid #f3b344; border-right: .1px solid #f3b344; margin-top: -5px;'
  115. }).append($("<div/>", {
  116. class: "signature",
  117. style: "margin:5px;overflow-y: auto; max-height: 99px;"
  118. }).append($("<div/>", {
  119. id: "dio_emots_poup_content",
  120. //style: "width:378px;"
  121. })))).css({
  122. "text-align": "left",
  123. //width: "413px"
  124. }),
  125. $(".fr-toolbar.fr-ltr.fr-desktop.fr-top.fr-basic").before(dioEmots), //'<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>'+
  126. dioEmots.parent().append("<br>"),
  127. dioEmotsbutton = $('<button id="dio_smiley_butt" type="button" role="button" class="fr-command fr-btn" style="text-align: center;">' +
  128. '<div id="dio_smiley_button" class="button"></div></button>', {
  129. //id: "dio_smiley_button",
  130. //class: "far fa-smile button",
  131. //style: "z-index:2; height: 18px; margin: 0 3px -9px 3px; border: transparent; background:url('" + FDio.HomeImg + "smile.gif') no-repeat 0px 0px"
  132. }).click(function() {
  133. $("#dio_emot_popup.content").height() < 80 ? $("#dio_emot_popup.content").css("overflow", "auto") : $("#dio_emot_popup.content").css("overflow-y", "scroll"),
  134. $("#dio_emot_popup").toggle()
  135. }),
  136. ((!$('#dio_smiley_button').length) ? (
  137. $(".fr-toolbar").length && ($("#xfSmilie-1").after(dioEmotsbutton))) : ""), //$(".fr-toolbar").length && ($(".fr-toolbar").append(dioEmotsbutton))) : ""),
  138. $("#dio_emot_popup ul li:first").click(),
  139. setTimeout("")))
  140. $('<style id="dio_emot_popup_style">' +
  141. // Chrome Scroollbar Style
  142. '#dio_smiley_button { z-index:2; height: 18px; border: transparent; background:url("' + FDio.HomeImg + 'smile.gif") no-repeat 0px 0px } ' +
  143. '#dio_emot_popup ::-webkit-scrollbar { width: 13px; } ' +
  144. '#dio_emot_popup ::-webkit-scrollbar-track { background-color: rgba(130, 186, 135, 0.5); border-top-right-radius: 4px; border-bottom-right-radius: 4px; } ' +
  145. '#dio_emot_popup ::-webkit-scrollbar-thumb { background-color: rgba(87, 121, 45, 0.5); border-radius: 3px; } ' +
  146. '#dio_emot_popup ::-webkit-scrollbar-thumb:hover { background-color: rgba(87, 121, 45, 0.8); } ' +
  147. '#dio_smiley_butt.fr-command.fr-btn.fr-disabled div#dio_smiley_button { filter: opacity(0.2); cursor: default;} ' +
  148. '</style>').appendTo('head');
  149. },
  150. error: function() {
  151. FDio.emots = !1,
  152. setTimeout("FDio.GetEmotss()", 1e4)
  153. }
  154. }),
  155. FDio.emots = !1,
  156. setTimeout("FDio.GetEmotss()", 1e4))
  157. },
  158. xfPasteImage: function(e) {
  159. var t;
  160. if (!(t = XF.getEditorInContainer(FDio.xfEdit)))
  161. return !1;
  162. console.log(t.ed),
  163. $('<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"),
  164. $("#dio_emot_popup").hide()
  165. },
  166. };
  167. FDio.GetEmotss();