Fluffy_Stick_JV

Utiliser les stickers intégrés JVC (L'animation des stickers a été retiré par JVC).

当前为 2024-10-29 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Fluffy_Stick_JV
  3. // @author ImThatGuy, Atlantis
  4. // @description Utiliser les stickers intégrés JVC (L'animation des stickers a été retiré par JVC).
  5. // @namespace Fluffy_Stick_JV
  6. // @match *://www.jeuxvideo.com/messages-prives/nouveau.php*
  7. // @match *://www.jeuxvideo.com/messages-prives/message.php*
  8. // @match *://www.jeuxvideo.com/forums/42-*
  9. // @match *://www.jeuxvideo.com/forums/1-*
  10. // @match *://www.jeuxvideo.com/forums/0-*
  11. // @match *://www.jeuxvideo.com/recherche/forums/0-*
  12. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
  13. // @require https://cdnjs.cloudflare.com/ajax/libs/tipso/1.0.8/tipso.min.js
  14. // @grant GM_addStyle
  15. // @version 0.4.3.v290
  16. // @icon https://image.jeuxvideo.com/stickers/p/1jnh
  17. // @license MIT
  18. // ==/UserScript==
  19.  
  20. /*
  21. StickersJVC.
  22. Code de base par ImThatGuy (2018-2020)
  23.  
  24. */
  25.  
  26.  
  27. /*jshint multistr: true */
  28. (function() {
  29. 'use strict';
  30.  
  31. // IMPORT CSS
  32. $('head').append('<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/tipso/1.0.8/tipso.min.css"/>');
  33.  
  34. // Current div
  35. var currentDiv = localStorage.getItem('stickersjvc-div');
  36. //valeur_a_check
  37. const valeursachecker = ['hap', 'noel', 'autres', 'brid', 'rex', 'fluffy', 'grukk','lamma', 'bud', 'euro', 'larspon'];
  38. currentDiv = valeursachecker.includes(currentDiv) ? currentDiv : 'brid';
  39. // LISTS
  40. var _stickers_hap = [
  41. "https://image.jeuxvideo.com/stickers/p/1kki",
  42. "https://image.jeuxvideo.com/stickers/p/1kkn",
  43. "https://image.jeuxvideo.com/stickers/p/1lmk",
  44. "https://image.jeuxvideo.com/stickers/p/1kkl",
  45. "https://image.jeuxvideo.com/stickers/p/1lmh",
  46. "https://image.jeuxvideo.com/stickers/p/1ljr",
  47. "https://image.jeuxvideo.com/stickers/p/1kkh",
  48. "https://image.jeuxvideo.com/stickers/p/1kkk",
  49. "https://image.jeuxvideo.com/stickers/p/1lmn",
  50. "https://image.jeuxvideo.com/stickers/p/1ljm",
  51. "https://image.jeuxvideo.com/stickers/p/1ljl",
  52. "https://image.jeuxvideo.com/stickers/p/1kkm",
  53. "https://image.jeuxvideo.com/stickers/p/1rzw",
  54. "https://image.jeuxvideo.com/stickers/p/1kkj",
  55. "https://image.jeuxvideo.com/stickers/p/1kkg",
  56. "https://image.jeuxvideo.com/stickers/p/1ljq"
  57. ];
  58. var _stickers_noel = [
  59. "https://image.jeuxvideo.com/stickers/p/1kkr",
  60. "https://image.jeuxvideo.com/stickers/p/1kko",
  61. "https://image.jeuxvideo.com/stickers/p/1kkp",
  62. "https://image.jeuxvideo.com/stickers/p/1ljj",
  63. "https://image.jeuxvideo.com/stickers/p/1ljn",
  64. "https://image.jeuxvideo.com/stickers/p/1kkq",
  65. "https://image.jeuxvideo.com/stickers/p/1kks",
  66. "https://image.jeuxvideo.com/stickers/p/1ljo",
  67. "https://image.jeuxvideo.com/stickers/p/1ljp",
  68. "https://image.jeuxvideo.com/stickers/p/1kkt",
  69. "https://image.jeuxvideo.com/stickers/p/1lmm",
  70. "https://image.jeuxvideo.com/stickers/p/1kku",
  71. "https://image.jeuxvideo.com/stickers/p/1kkv",
  72. "https://image.jeuxvideo.com/stickers/p/1mqw",
  73. "https://image.jeuxvideo.com/stickers/p/1rzs",
  74. "https://image.jeuxvideo.com/stickers/p/1mqz",
  75. "https://image.jeuxvideo.com/stickers/p/1nu9",
  76. "https://image.jeuxvideo.com/stickers/p/1kkg"
  77. ];
  78. var _stickers_autres = [
  79. "https://image.jeuxvideo.com/stickers/p/1lmj",
  80. "https://image.jeuxvideo.com/stickers/p/1nua",
  81. "https://image.jeuxvideo.com/stickers/p/1nub",
  82. "https://image.jeuxvideo.com/stickers/p/1mqv",
  83. "https://image.jeuxvideo.com/stickers/p/1nu7",
  84. "https://image.jeuxvideo.com/stickers/p/1lmi",
  85. "https://image.jeuxvideo.com/stickers/p/1lml",
  86. "https://image.jeuxvideo.com/stickers/p/1lmo",
  87. "https://image.jeuxvideo.com/stickers/p/1lmp",
  88. "https://image.jeuxvideo.com/stickers/p/1mqx",
  89. "https://image.jeuxvideo.com/stickers/p/1mqy",
  90. "https://image.jeuxvideo.com/stickers/p/1mr0",
  91. "https://image.jeuxvideo.com/stickers/p/1mr1",
  92. "https://image.jeuxvideo.com/stickers/p/1nu6",
  93. "https://image.jeuxvideo.com/stickers/p/1nu8"
  94. ];
  95. var _stickers_brid = [
  96. "https://image.jeuxvideo.com/stickers/p/1jnd",
  97. "https://image.jeuxvideo.com/stickers/p/1jnc",
  98. "https://image.jeuxvideo.com/stickers/p/1jne",
  99. "https://image.jeuxvideo.com/stickers/p/1jnf",
  100. "https://image.jeuxvideo.com/stickers/p/1jng",
  101. "https://image.jeuxvideo.com/stickers/p/1jnh",
  102. "https://image.jeuxvideo.com/stickers/p/1jni",
  103. "https://image.jeuxvideo.com/stickers/p/1jnj"
  104. ];
  105. var _stickers_rex = [
  106. "https://image.jeuxvideo.com/stickers/p/1lm9",
  107. "https://image.jeuxvideo.com/stickers/p/1lma",
  108. "https://image.jeuxvideo.com/stickers/p/1lmb",
  109. "https://image.jeuxvideo.com/stickers/p/1lmc",
  110. "https://image.jeuxvideo.com/stickers/p/1lmd",
  111. "https://image.jeuxvideo.com/stickers/p/1lme",
  112. "https://image.jeuxvideo.com/stickers/p/1lmf",
  113. "https://image.jeuxvideo.com/stickers/p/1lmg"
  114. ];
  115. var _stickers_fluffy = [
  116. "https://image.jeuxvideo.com/stickers/p/1kl8",
  117. "https://image.jeuxvideo.com/stickers/p/1klb",
  118. "https://image.jeuxvideo.com/stickers/p/1kl9",
  119. "https://image.jeuxvideo.com/stickers/p/1kl7",
  120. "https://image.jeuxvideo.com/stickers/p/1kl5",
  121. "https://image.jeuxvideo.com/stickers/p/1kl6",
  122. "https://image.jeuxvideo.com/stickers/p/1kl2",
  123. "https://image.jeuxvideo.com/stickers/p/1kl1",
  124. "https://image.jeuxvideo.com/stickers/p/1kl3",
  125. "https://image.jeuxvideo.com/stickers/p/1kky",
  126. "https://image.jeuxvideo.com/stickers/p/1kkz",
  127. "https://image.jeuxvideo.com/stickers/p/1kl4",
  128. "https://image.jeuxvideo.com/stickers/p/1kl0",
  129. "https://image.jeuxvideo.com/stickers/p/1kla"
  130. ];
  131. var _stickers_grukk = [
  132. "https://image.jeuxvideo.com/stickers/p/1lgg",
  133. "https://image.jeuxvideo.com/stickers/p/1lgb",
  134. "https://image.jeuxvideo.com/stickers/p/1lga",
  135. "https://image.jeuxvideo.com/stickers/p/1lgc",
  136. "https://image.jeuxvideo.com/stickers/p/1lgd",
  137. "https://image.jeuxvideo.com/stickers/p/1lge",
  138. "https://image.jeuxvideo.com/stickers/p/1lgf",
  139. "https://image.jeuxvideo.com/stickers/p/1lgh"
  140. ];
  141. var _stickers_lamma = [
  142. "https://image.jeuxvideo.com/stickers/p/1kgx",
  143. "https://image.jeuxvideo.com/stickers/p/1kgv",
  144. "https://image.jeuxvideo.com/stickers/p/1kgw",
  145. "https://image.jeuxvideo.com/stickers/p/1kgy",
  146. "https://image.jeuxvideo.com/stickers/p/1kgu",
  147. "https://image.jeuxvideo.com/stickers/p/1kh0",
  148. "https://image.jeuxvideo.com/stickers/p/1kh1",
  149. "https://image.jeuxvideo.com/stickers/p/1kgz"
  150. ];
  151. var _stickers_bud = [
  152. "https://image.jeuxvideo.com/stickers/p/zuc",
  153. "https://image.jeuxvideo.com/stickers/p/zu2",
  154. "https://image.jeuxvideo.com/stickers/p/zu6",
  155. "https://image.jeuxvideo.com/stickers/p/zu7",
  156. "https://image.jeuxvideo.com/stickers/p/zu8",
  157. "https://image.jeuxvideo.com/stickers/p/zu9",
  158. "https://image.jeuxvideo.com/stickers/p/zua",
  159. "https://image.jeuxvideo.com/stickers/p/zub",
  160. "https://image.jeuxvideo.com/stickers/p/1f88",
  161. "https://image.jeuxvideo.com/stickers/p/1f89",
  162. "https://image.jeuxvideo.com/stickers/p/1f8a",
  163. "https://image.jeuxvideo.com/stickers/p/1f8b",
  164. "https://image.jeuxvideo.com/stickers/p/1f8d",
  165. "https://image.jeuxvideo.com/stickers/p/1f8e",
  166. "https://image.jeuxvideo.com/stickers/p/1f8f"
  167. ];
  168. var _stickers_euro = [
  169. "https://image.jeuxvideo.com/stickers/p/1n1m",
  170. "https://image.jeuxvideo.com/stickers/p/1n1n",
  171. "https://image.jeuxvideo.com/stickers/p/1n1t",
  172. "https://image.jeuxvideo.com/stickers/p/1n1q",
  173. "https://image.jeuxvideo.com/stickers/p/1n1s",
  174. "https://image.jeuxvideo.com/stickers/p/1n1o"
  175. ];
  176. var _stickers_larspon = [
  177. "https://image.jeuxvideo.com/stickers/p/1lt9",
  178. "https://image.jeuxvideo.com/stickers/p/1lte",
  179. "https://image.jeuxvideo.com/stickers/p/1ltd",
  180. "https://image.jeuxvideo.com/stickers/p/1li4",
  181. "https://image.jeuxvideo.com/stickers/p/1jc3-fr",
  182. "https://image.jeuxvideo.com/stickers/p/1li5",
  183. "https://image.jeuxvideo.com/stickers/p/1n2d",
  184. "https://image.jeuxvideo.com/stickers/p/1n2i",
  185. "https://image.jeuxvideo.com/stickers/p/1n2j",
  186. "https://image.jeuxvideo.com/stickers/p/1n2m"
  187. ];
  188.  
  189.  
  190.  
  191.  
  192. // FUNCTIONS
  193. function getCode(element) {
  194. return element.attr("src").split('/')[5];
  195. }
  196.  
  197.  
  198. function idTextarea() {
  199. if (window.location.href.indexOf("jeuxvideo.com/messages-prives/") > -1) {
  200. return "#message";
  201. } else {
  202. return "#message_topic";
  203. }
  204. }
  205.  
  206. // MAIN APPEND
  207. var newStickers = '<div style="position: relative">\
  208. <div id="hap" class="new-stickers"></div>\
  209. <div id="noel" class="new-stickers"></div>\
  210. <div id="autres" class="new-stickers"></div>\
  211. <div id="brid" class="new-stickers"></div>\
  212. <div id="rex" class="new-stickers"></div>\
  213. <div id="fluffy" class="new-stickers"></div>\
  214. <div id="grukk" class="new-stickers"></div>\
  215. <div id="lamma" class="new-stickers"></div>\
  216. <div id="bud" class="new-stickers"></div>\
  217. <div id="euro" class="new-stickers"></div>\
  218. <div id="larspon" class="new-stickers"></div>\
  219. </div>';
  220. $(newStickers).insertAfter('.jv-editor-toolbar');
  221.  
  222.  
  223.  
  224. // HIDES
  225. $(".new-stickers").each(function() {
  226. if ( $(this).attr("id") != currentDiv ) {
  227. $(this).hide();
  228. }
  229. });
  230.  
  231. // APPENDS
  232. let toolbar = document.querySelector(".jv-editor-toolbar")
  233. let imgBtnGroup = toolbar.querySelectorAll(".btn-group")[2]
  234. //btns = imgBtnGroup.querySelectorAll("button")
  235. let stickersBtn = document.createElement("button")
  236. stickersBtn.classList.add("btn")
  237. stickersBtn.classList.add("btn-jv-editor-toolbar")
  238. stickersBtn.setAttribute("id", "old-stickjvc")
  239. if (window.location.href.indexOf("jeuxvideo.com/messages-prives/") > -1) {
  240. //MP
  241. } else {
  242. stickersBtn.setAttribute("title", "Stickers intégrés")
  243. }
  244. stickersBtn.setAttribute("type", "button")
  245. stickersBtn.innerHTML = "s"
  246. if (window.location.href.indexOf("jeuxvideo.com/messages-prives/") > -1) {
  247. stickersBtn.style.textDecoration = "line-through";
  248. stickersBtn.style.textDecorationThickness = "2px";
  249. } else {
  250. //Forum
  251. }
  252. stickersBtn.style.lineHeight = "0"
  253. imgBtnGroup.appendChild(stickersBtn)
  254. $(".new-stickers").append('<div code="hap" id="hap-css" title="Hap" class="cat-stickers"></div>\
  255. <div code="noel" id="noel-css" title="Noel" class="cat-stickers"></div>\
  256. <div code="autres" id="autres-css" title="Autres" class="cat-stickers"></div>\
  257. <div code="brid" id="brid-css" title="Bridgely" class="cat-stickers"></div>\
  258. <div code="rex" id="rex-css" title="Rex ryder" class="cat-stickers"></div>\
  259. <div code="fluffy" id="fluffy-css" title="Fluffy" class="cat-stickers"></div>\
  260. <div code="grukk" id="grukk-css" title="Grukk" class="cat-stickers"></div>\
  261. <div code="lamma" id="lamma-css" title="Lama" class="cat-stickers"></div>\
  262. <div code="bud" id="bud-css" title="Bud" class="cat-stickers"></div>\
  263. <div code="euro" id="euro-css" title="Euro" class="cat-stickers"></div>\
  264. <div code="larspon" id="larspon-css" title="Larry & Sponsos" class="cat-stickers"></div>');
  265.  
  266. // AJOUT STICKERS
  267. for (var i = 0; i < _stickers_hap.length; i++) {
  268. $(".new-stickers#hap").append( '<img src="'+_stickers_hap[i]+'" class="stickers-script">' );
  269. }
  270. for (var k = 0; k < _stickers_noel.length; k++) {
  271. $(".new-stickers#noel").append( '<img src="'+_stickers_noel[k]+'" class="stickers-script">' );
  272. }
  273. for (var lz = 0; lz < _stickers_autres.length; lz++) {
  274. $(".new-stickers#autres").append( '<img src="'+_stickers_autres[lz]+'" class="stickers-script">' );
  275. }
  276. for (var n = 0; n < _stickers_brid.length; n++) {
  277. $(".new-stickers#brid").append( '<img src="'+_stickers_brid[n]+'" class="stickers-script">' );
  278. }
  279. for (var j = 0; j < _stickers_rex.length; j++) {
  280. $(".new-stickers#rex").append( '<img src="'+_stickers_rex[j]+'" class="stickers-script">' );
  281. }
  282. for (var fff = 0; fff < _stickers_fluffy.length; fff++) {
  283. $(".new-stickers#fluffy").append( '<img src="'+_stickers_fluffy[fff]+'" class="stickers-script">' );
  284. }
  285. for (var gr = 0; gr < _stickers_grukk.length; gr++) {
  286. $(".new-stickers#grukk").append( '<img src="'+_stickers_grukk[gr]+'" class="stickers-script">' );
  287. }
  288. for (var la = 0; la < _stickers_lamma.length; la++) {
  289. $(".new-stickers#lamma").append( '<img src="'+_stickers_lamma[la]+'" class="stickers-script">' );
  290. }
  291. for (var bd = 0; bd < _stickers_bud.length; bd++) {
  292. $(".new-stickers#bud").append( '<img src="'+_stickers_bud[bd]+'" class="stickers-script">' );
  293. }
  294. for (var euo = 0; euo < _stickers_euro.length; euo++) {
  295. $(".new-stickers#euro").append( '<img src="'+_stickers_euro[euo]+'" class="stickers-script">' );
  296. }
  297. for (var lx = 0; lx < _stickers_larspon.length; lx++) {
  298. $(".new-stickers#larspon").append( '<img src="'+_stickers_larspon[lx]+'" class="stickers-script">' );
  299. }
  300.  
  301.  
  302. // LISTENERS
  303. function stickersEvent() {
  304. $(".stickers-script").click(function() {
  305. // Get sticker code
  306. var code = getCode( $(this) );
  307. //$("#message_topic").val($("#message_topic").val() + " [[sticker:p/"+code+"]]");
  308. var $textarea = jQuery(idTextarea());
  309. var caretPos = $textarea[0].selectionStart;
  310. var textAreaTxt = $textarea.val();
  311.  
  312. var sticker = "[[sticker:p/"+code+"]] ";
  313.  
  314. $textarea.val(textAreaTxt.substring(0, caretPos) + sticker + textAreaTxt.substring(caretPos) );
  315. $textarea.focus();
  316. });
  317. }
  318. stickersEvent();
  319.  
  320. $(".cat-stickers").click(function() {
  321. var id = $(this).attr("code");
  322. // Sauvegarde du choix dans le localStorage
  323. localStorage.setItem('stickersjvc-div', id);
  324. $(".new-stickers").each(function() {
  325. if ( $(this).attr("id") == id ) {
  326. $(this).show();
  327. if (currentDiv != id) {
  328. $("#"+currentDiv).hide();
  329. currentDiv = id;
  330. }
  331. }
  332. });
  333. });
  334.  
  335. // NICE SCROLL
  336. var lastScrollTop = 0;
  337. var ft_up = false;
  338. var ft_down = false;
  339. $(".new-stickers").scroll(function() {
  340. //console.log($(this).scrollTop());
  341. var st = $(this).scrollTop();
  342. //console.log(st);
  343. if (st > lastScrollTop) {
  344. if (!ft_up) {
  345. if (st < 50) {
  346. ft_up = true;
  347. $(this).scrollTop(50);
  348. }
  349. }
  350. } else {
  351. if (!ft_down) {
  352. if (st > 50) {
  353. ft_down = true;
  354. $(this).scrollTop(50);
  355. }
  356. }
  357. }
  358. lastScrollTop = st;
  359.  
  360. // Taille div
  361. if ($(this).scrollTop() != 0) { // Pas en haut de la div
  362. $(".cat-stickers").hide(55);
  363. } else {
  364. // En haut de la div
  365. $(".cat-stickers").show(55);
  366. ft_up = false;
  367. ft_down = false;
  368. }
  369. if ( $(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight ) {
  370. // En bas de la div
  371. ft_up = false;
  372. ft_down = false;
  373. }
  374. });
  375.  
  376. // Active script
  377. $(".new-stickers#"+currentDiv).hide(0);
  378. $("#old-stickjvc").click(function() {
  379. if ( $(".new-stickers").is(":visible") ) {
  380. $(this).removeClass("active");
  381. $(".new-stickers#"+currentDiv).hide(80);
  382. } else {
  383. $(this).addClass("active");
  384. $(".new-stickers#"+currentDiv).show(80);
  385. $(".new-stickers").css("overflow", "auto");
  386. }
  387. });
  388.  
  389. // TOOLTIPS
  390. $(document).ready(function() {
  391. $(".cat-stickers").each(function() {
  392. $(this).tipso({
  393. delay: 0,
  394. speed: 120,
  395. background: "rgba(0, 0, 0, 0.7)",
  396. size: 'tiny',
  397. content: '<b>'+$(this).attr("title")+'</b>',
  398. width: null,
  399. maxWidth: "150px"
  400. });
  401. });
  402. });
  403.  
  404. // CSS
  405. // Scrollbar_personalise(chromium)
  406. if (!$.browser.mozilla) {
  407. GM_addStyle(".new-stickers::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.2); background-color: #f7f7f7; }\
  408. .new-stickers::-webkit-scrollbar { width: 9px; background-color: #F5F5F5; }\
  409. .new-stickers::-webkit-scrollbar-thumb { background-color: #ccc; }");
  410. }
  411.  
  412. GM_addStyle(".stickers-script { height: 50px; width: 50px; cursor: pointer; padding: 2px; }");
  413.  
  414. GM_addStyle(".cat-stickers:hover { border: none; ");
  415. GM_addStyle(".cat-stickers#hap-css { left: 5px; background-image: url('https://image.jeuxvideo.com/stickers/p/1kki'); }\
  416. .cat-stickers#noel-css { left: 30px; background-image: url('https://image.jeuxvideo.com/stickers/p/1kkr'); }\
  417. .cat-stickers#autres-css { left: 55px; background-image: url('https://image.jeuxvideo.com/stickers/p/1mqv'); }\
  418. .cat-stickers#brid-css { left: 80px; background-image: url('https://image.jeuxvideo.com/stickers/p/1jnh'); }\
  419. .cat-stickers#rex-css { left: 105px; background-image: url('https://image.jeuxvideo.com/stickers/p/1lme'); }\
  420. .cat-stickers#fluffy-css { left: 130px; background-image: url('https://image.jeuxvideo.com/stickers/p/1kl8'); }\
  421. .cat-stickers#grukk-css { left: 155px; background-image: url('https://image.jeuxvideo.com/stickers/p/1lgg'); }\
  422. .cat-stickers#lamma-css { left: 180px; background-image: url('https://image.jeuxvideo.com/stickers/p/1kgx'); }\
  423. .cat-stickers#bud-css { left: 205px; background-image: url('https://image.jeuxvideo.com/stickers/p/1f8a'); }\
  424. .cat-stickers#euro-css { left: 230px; background-image: url('https://image.jeuxvideo.com/stickers/p/1n1m'); }\
  425. .cat-stickers#larspon-css { left: 255px; background-image: url('https://image.jeuxvideo.com/stickers/p/1lte'); }");
  426. // Script title
  427. GM_addStyle(".script-title { font-family: 'robotoboldcondensed' ,Arial,Helvetica,sans-serif; text-transform: uppercase; font-size: 0.75rem; color: #656574 }");
  428. // Stickers panel
  429. GM_addStyle(".new-stickers { border-top: 1px solid #ccc; padding: 2px; margin-top: 8px; height: 75px; transition: background-color 0.1s; overflow: auto; text-align: center; padding-top: 10px; scroll-behavior: smooth; }");
  430. // Catégories
  431. GM_addStyle(".cat-stickers { position: absolute; top:-8px; background-color: #E6E6E6; box-shadow: 0px 2px 2px #e0e0e0 ; border: 1px solid #ccc; border-radius: 50px; height: 16px; width: 16px; cursor: pointer; background-size: cover; background-repeat: no-repeat; background-position: center center; }");
  432. // Hover stickers
  433. GM_addStyle(".stickers-script:hover { background-color: rgba(185, 185, 185, 0.5); border-radius: 3px; }");
  434. if (document.URL.includes("jeuxvideo.com/messages-prives")){
  435. GM_addStyle(".stickers-script:hover { filter: grayscale(100%); }");
  436. }
  437. // Hover cat
  438. GM_addStyle(".cat-stickers:hover { box-shadow: 0px 2px 8px #b5b5b5; }");
  439.  
  440. /*
  441. window.addEventListener('jvchat:activation', function(event) {
  442. if (document.URL.includes("jeuxvideo.com/messages-prives")){
  443. var oldstickssjvc = document.getElementById('old-stickjvc');
  444. oldstickssjvc && (oldstickssjvc.disabled = true);
  445. $(".new-stickers#"+currentDiv).hide(0);
  446. }
  447. });
  448. */
  449.  
  450. })();