Fluffy_Stick_JV

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

当前为 2024-11-01 提交的版本,查看 最新版本

  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/3.6.0/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.v301
  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.  
  255.  
  256. $(".new-stickers").append('<div code="hap" id="hap-css" title="Hap" class="cat-stickers"></div>\
  257. <div code="noel" id="noel-css" title="Noel" class="cat-stickers"></div>\
  258. <div code="autres" id="autres-css" title="Autres" class="cat-stickers"></div>\
  259. <div code="brid" id="brid-css" title="Bridgely" class="cat-stickers"></div>\
  260. <div code="rex" id="rex-css" title="Rex ryder" class="cat-stickers"></div>\
  261. <div code="fluffy" id="fluffy-css" title="Fluffy" class="cat-stickers"></div>\
  262. <div code="grukk" id="grukk-css" title="Grukk" class="cat-stickers"></div>\
  263. <div code="lamma" id="lamma-css" title="Lama" class="cat-stickers"></div>\
  264. <div code="bud" id="bud-css" title="Bud" class="cat-stickers"></div>\
  265. <div code="euro" id="euro-css" title="Euro" class="cat-stickers"></div>\
  266. <div code="larspon" id="larspon-css" title="Larry & Sponsos" class="cat-stickers"></div>');
  267.  
  268. // AJOUT STICKERS
  269. for (var i = 0; i < _stickers_hap.length; i++) {
  270. $(".new-stickers#hap").append( '<img src="'+_stickers_hap[i]+'" class="stickers-script">' );
  271. }
  272. for (var k = 0; k < _stickers_noel.length; k++) {
  273. $(".new-stickers#noel").append( '<img src="'+_stickers_noel[k]+'" class="stickers-script">' );
  274. }
  275. for (var lz = 0; lz < _stickers_autres.length; lz++) {
  276. $(".new-stickers#autres").append( '<img src="'+_stickers_autres[lz]+'" class="stickers-script">' );
  277. }
  278. for (var n = 0; n < _stickers_brid.length; n++) {
  279. $(".new-stickers#brid").append( '<img src="'+_stickers_brid[n]+'" class="stickers-script">' );
  280. }
  281. for (var j = 0; j < _stickers_rex.length; j++) {
  282. $(".new-stickers#rex").append( '<img src="'+_stickers_rex[j]+'" class="stickers-script">' );
  283. }
  284. for (var fff = 0; fff < _stickers_fluffy.length; fff++) {
  285. $(".new-stickers#fluffy").append( '<img src="'+_stickers_fluffy[fff]+'" class="stickers-script">' );
  286. }
  287. for (var gr = 0; gr < _stickers_grukk.length; gr++) {
  288. $(".new-stickers#grukk").append( '<img src="'+_stickers_grukk[gr]+'" class="stickers-script">' );
  289. }
  290. for (var la = 0; la < _stickers_lamma.length; la++) {
  291. $(".new-stickers#lamma").append( '<img src="'+_stickers_lamma[la]+'" class="stickers-script">' );
  292. }
  293. for (var bd = 0; bd < _stickers_bud.length; bd++) {
  294. $(".new-stickers#bud").append( '<img src="'+_stickers_bud[bd]+'" class="stickers-script">' );
  295. }
  296. for (var euo = 0; euo < _stickers_euro.length; euo++) {
  297. $(".new-stickers#euro").append( '<img src="'+_stickers_euro[euo]+'" class="stickers-script">' );
  298. }
  299. for (var lx = 0; lx < _stickers_larspon.length; lx++) {
  300. $(".new-stickers#larspon").append( '<img src="'+_stickers_larspon[lx]+'" class="stickers-script">' );
  301. }
  302.  
  303. $('.stickers-script').on('contextmenu', function(event) {
  304. event.preventDefault(); // Bloque le menu clic droit
  305. });
  306.  
  307. // LISTENERS
  308. function stickersEvent() {
  309. $(".stickers-script").click(function() {
  310. // Get sticker code
  311. var code = getCode( $(this) );
  312. //$("#message_topic").val($("#message_topic").val() + " [[sticker:p/"+code+"]]");
  313. var $textarea = jQuery(idTextarea());
  314. var caretPos = $textarea[0].selectionStart;
  315. var textAreaTxt = $textarea.val();
  316.  
  317. var sticker = "[[sticker:p/"+code+"]] ";
  318.  
  319. $textarea.val(textAreaTxt.substring(0, caretPos) + sticker + textAreaTxt.substring(caretPos) );
  320. $textarea.focus();
  321. });
  322. }
  323. stickersEvent();
  324.  
  325. $(".cat-stickers").click(function() {
  326. var id = $(this).attr("code");
  327. // Sauvegarde du choix dans le localStorage
  328. localStorage.setItem('stickersjvc-div', id);
  329. $(".new-stickers").each(function() {
  330. if ( $(this).attr("id") == id ) {
  331. $(this).show();
  332. if (currentDiv != id) {
  333. $("#"+currentDiv).hide();
  334. currentDiv = id;
  335. }
  336. }
  337. });
  338. });
  339.  
  340. // NICE SCROLL
  341. var lastScrollTop = 0;
  342. var ft_up = false;
  343. var ft_down = false;
  344. $(".new-stickers").scroll(function() {
  345. //console.log($(this).scrollTop());
  346. var st = $(this).scrollTop();
  347. //console.log(st);
  348. if (st > lastScrollTop) {
  349. if (!ft_up) {
  350. if (st < 50) {
  351. ft_up = true;
  352. $(this).scrollTop(50);
  353. }
  354. }
  355. } else {
  356. if (!ft_down) {
  357. if (st > 50) {
  358. ft_down = true;
  359. $(this).scrollTop(50);
  360. }
  361. }
  362. }
  363. lastScrollTop = st;
  364.  
  365. // Taille div
  366. if ($(this).scrollTop() != 0) { // Pas en haut de la div
  367. $(".cat-stickers").hide(55);
  368. } else {
  369. // En haut de la div
  370. $(".cat-stickers").show(55);
  371. ft_up = false;
  372. ft_down = false;
  373. }
  374. if ( $(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight ) {
  375. // En bas de la div
  376. ft_up = false;
  377. ft_down = false;
  378. }
  379. });
  380.  
  381. // Active script
  382. $(".new-stickers#"+currentDiv).hide(0);
  383. $("#old-stickjvc").click(function() {
  384. if ( $(".new-stickers").is(":visible") ) {
  385. $(this).removeClass("active");
  386. $(".new-stickers#"+currentDiv).hide(80);
  387. } else {
  388. $(this).addClass("active");
  389. $(".new-stickers#"+currentDiv).show(80);
  390. $(".new-stickers").css("overflow", "auto");
  391. }
  392. });
  393.  
  394. // TOOLTIPS
  395. $(document).ready(function() {
  396. $(".cat-stickers").each(function() {
  397. $(this).tipso({
  398. delay: 0,
  399. speed: 120,
  400. background: "rgba(0, 0, 0, 0.7)",
  401. size: 'tiny',
  402. content: '<b>'+$(this).attr("title")+'</b>',
  403. width: null,
  404. maxWidth: "150px"
  405. });
  406. });
  407. });
  408.  
  409. // CSS
  410. // Scrollbar_personalise(chromium)
  411. if (!navigator.userAgent.includes("Firefox")) {
  412. GM_addStyle(".new-stickers::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.2); background-color: #f7f7f7; }\
  413. .new-stickers::-webkit-scrollbar { width: 9px; background-color: #F5F5F5; }\
  414. .new-stickers::-webkit-scrollbar-thumb { background-color: #ccc; }");
  415. }
  416.  
  417. GM_addStyle(".stickers-script { height: 50px; width: 50px; cursor: pointer; padding: 2px; }");
  418.  
  419. GM_addStyle(".cat-stickers:hover { border: none; ");
  420. GM_addStyle(".cat-stickers#hap-css { left: 5px; background-image: url('https://image.jeuxvideo.com/stickers/p/1kki'); }\
  421. .cat-stickers#noel-css { left: 30px; background-image: url('https://image.jeuxvideo.com/stickers/p/1kkr'); }\
  422. .cat-stickers#autres-css { left: 55px; background-image: url('https://image.jeuxvideo.com/stickers/p/1mqv'); }\
  423. .cat-stickers#brid-css { left: 80px; background-image: url('https://image.jeuxvideo.com/stickers/p/1jnh'); }\
  424. .cat-stickers#rex-css { left: 105px; background-image: url('https://image.jeuxvideo.com/stickers/p/1lme'); }\
  425. .cat-stickers#fluffy-css { left: 130px; background-image: url('https://image.jeuxvideo.com/stickers/p/1kl8'); }\
  426. .cat-stickers#grukk-css { left: 155px; background-image: url('https://image.jeuxvideo.com/stickers/p/1lgg'); }\
  427. .cat-stickers#lamma-css { left: 180px; background-image: url('https://image.jeuxvideo.com/stickers/p/1kgx'); }\
  428. .cat-stickers#bud-css { left: 205px; background-image: url('https://image.jeuxvideo.com/stickers/p/1f8a'); }\
  429. .cat-stickers#euro-css { left: 230px; background-image: url('https://image.jeuxvideo.com/stickers/p/1n1m'); }\
  430. .cat-stickers#larspon-css { left: 255px; background-image: url('https://image.jeuxvideo.com/stickers/p/1lte'); }");
  431. // Script title
  432. GM_addStyle(".script-title { font-family: 'robotoboldcondensed' ,Arial,Helvetica,sans-serif; text-transform: uppercase; font-size: 0.75rem; color: #656574 }");
  433. // Stickers panel
  434. 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; }");
  435. // Catégories
  436. 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; }");
  437. // Hover stickers
  438. GM_addStyle(".stickers-script:hover { background-color: rgba(185, 185, 185, 0.5); border-radius: 3px; }");
  439. if (document.URL.includes("jeuxvideo.com/messages-prives")){
  440. GM_addStyle(".stickers-script:hover { filter: grayscale(100%); }");
  441. }
  442. // Hover cat
  443. GM_addStyle(".cat-stickers:hover { box-shadow: 0px 2px 8px #b5b5b5; }");
  444.  
  445. /*
  446. window.addEventListener('jvchat:activation', function(event) {
  447. if (document.URL.includes("jeuxvideo.com/messages-prives")){
  448. var oldstickssjvc = document.getElementById('old-stickjvc');
  449. oldstickssjvc && (oldstickssjvc.disabled = true);
  450. $(".new-stickers#"+currentDiv).hide(0);
  451. }
  452. });
  453. */
  454.  
  455. })();