// ==UserScript== // @name JVCSticker++ // @namespace JVCSticker++ // @include http://www.jeuxvideo.com/forums/* // @include https://www.jeuxvideo.com/forums/* // @version 2.0.3 // @grant GM_addStyle // @updateURL https://ticki84.github.io/JVCSticker++.meta.js // @downloadURL https://ticki84.github.io/JVCSticker++.user.js // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js // @require https://ticki84.github.io/jquery.modal.min.js // @require https://swisnl.github.io/jQuery-contextMenu/dist/jquery.contextMenu.js // @require https://swisnl.github.io/jQuery-contextMenu/dist/jquery.ui.position.min.js // @connect github.io // @connect jvcstckr.comli.com // @grant GM_xmlhttpRequest // @grant GM_getValue // @grant GM_setValue // @grant GM_listValues // @grant GM_deleteValue // @grant GM_registerMenuCommand // @grant GM_log // @icon http://jv.stkr.fr/p/1kki // @author Ticki84 // @copyright 2017+, Ticki84 // @noframes // ==/UserScript== function delTimestamp(){GM_deleteValue("lTimestamp")}function delFavoris(){GM_deleteValue("catFavoris")}function delGlobalVar(){for(var q=GM_listValues(),x=0,H=null;H=q[x];x++)GM_deleteValue(H)}GM_registerMenuCommand("JVCSticker++ - Recharger les stickers",delTimestamp);GM_registerMenuCommand("JVCSticker++ - Supprimer les favoris",delFavoris);GM_registerMenuCommand("JVCSticker++ - Supprimer toutes les variables",delGlobalVar); function addStyle(q){var x=document.getElementsByTagName("HEAD")[0].appendChild(window.document.createElement("style"));x.innerHTML=q;return x}addStyle('@import "https://ticki84.github.io/jquery.modal.min.css";');addStyle('@import "https://swisnl.github.io/jQuery-contextMenu/dist/jquery.contextMenu.css";');addStyle('@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css";');void 0===GM_getValue("dontShowUpTo")&&GM_setValue("dontShowUpTo",GM_info.script.version); GM_xmlhttpRequest({method:"GET",url:"https://ticki84.github.io/JVCSticker++.xml?_="+Date.now(),headers:{"User-Agent":"Mozilla/5.0",Accept:"text/xml"},onload:function(q){function x(l,p,n){function q(p){return(x?/^\d+[A-Za-z]*$/:/^\d+$/).test(p)}var x=n&&n.lexicographical;n=n&&n.zeroExtend;l=l.split(".");p=p.split(".");if(!l.every(q)||!p.every(q))return NaN;if(n){for(;l.lengthp[n]?1:-1}return l.length!=p.length?-1:0}function H(){for(var l=0,p="";q.responseXML.getElementsByTagName("version")[l];){if(0Version "+q.responseXML.getElementsByTagName("version")[l].childNodes[0].nodeValue+":"),n=q.responseXML.getElementsByTagName("changelog")[l].childNodes[0].nodeValue.replace(RegExp("-","g"),"
-"),p=p+n,p=p+"
";else break; l++}return p}q.responseXML||(new DOMParser).parseFromString(q.responseText,"text/xml");var A=document.createElement("script");A.type="text/javascript";A.src="https://ticki84.github.io/jquery.modal.min.js";document.body.appendChild(A);0