NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name JVCMaster // @namespace http://www.jvcmaster.org/ // @description Ajoute des fonctionnalités à Jeuxvideo.com // @include http://www.jeuxvideo.com/* // @include http://*.forumjv.com/* // @exclude http://www.jeuxvideo.com/jvchat* // @run-at document-end // @updateURL https://github.com/Kocal/JVCMaster/raw/master/JVCMaster.user.js // @version 4.5.18 // ==/UserScript== function JVCMaster(){ var _ = this; _.version = "4.5.18"; _.log = function(msg){ console.log(msg); } // localStorage _.LS_get = function(key){ return localStorage.getItem("JVCMaster_" + key); } _.LS_set = function(key, value){ localStorage.setItem("JVCMaster_" + key, value); } _.LS_rm = function(key){ localStorage.removeItem("JVCMaster_" + key); } _.patternButton = "_BADGE:RANK__BTN:CITATION__BTN:HIDDENPOST__BTN:HIDDENPOSTSPSEUDO__BTN:MP_"; // Un $("li.pseudo") aurait suffit, mais sur les MP, la zone était présente à côté de "Ce pseudo vient de quitter la conversation." _.pseudoArea = $(".msg").parent().find("li span:last-child:not(.generic), div[id^=message] ul").parent().find(".pseudo"); _.activatedExtensions = JSON.parse(_.LS_get("activatedExtensions") || "[]"); _.style = null; _.insertCSS = function(css){ if(_.style) _.style.get(0).innerHTML += css; else _.style = $("<style>", { html : css}).appendTo("head"); } _.setButtonsArea = function(){ $("<span>", { "class" : "JVCMaster_patternButton" , html : _.patternButton.replace(/_(BTN|BADGE):([a-zA-Z]*)_/g, "<span class='JVCMaster_$1_$2'>").replace(/'><span/g, "'></span><span") }).appendTo(_.pseudoArea); } _.setButton = function(type, btn, onMp){ onMp = (onMp === undefined ? true : false); if(!onMp) $("div[id^=message] .JVCMaster_" + type).append(btn); else $(".JVCMaster_" + type).append(btn); } _.onMp = function(){ return window.location.href.match(/^http:\/\/www\.jeuxvideo\.com\/messages-prives\/message.php\?idd=[0-9]*/); } _.sortObject = function(e){var c={},d,b=[];for(d in e){if(e.hasOwnProperty(d)){b.push(d)}}b.sort();for(d=0;d<b.length;d++){c[b[d]]=e[b[d]]}return c}; _.getSelectionHTML = function(){var d="";if(typeof window.getSelection!="undefined"){var e=window.getSelection();if(e.rangeCount){var b=document.createElement("div");for(var c=0,a=e.rangeCount;c<a;++c){b.appendChild(e.getRangeAt(c).cloneContents())}d=b.innerHTML}}else{if(typeof document.selection!="undefined"){if(document.selection.type=="Text"){d=document.selection.createRange().htmlText}}}return d}; _.sha1 = function(e){function d(y,j){var i=(y<<j)|(y>>>(32-j));return i}function s(A){var z="";var j;var B;var y;for(j=0;j<=6;j+=2){B=(A>>>(j*4+4))&15;y=(A>>>(j*4))&15;z+=B.toString(16)+y.toString(16)}return z}function u(A){var z="";var y;var j;for(y=7;y>=0;y--){j=(A>>>(y*4))&15;z+=j.toString(16)}return z}function b(j){j=j.replace(/\r\n/g,"\n");var i="";for(var z=0;z<j.length;z++){var y=j.charCodeAt(z);if(y<128){i+=String.fromCharCode(y)}else{if((y>127)&&(y<2048)){i+=String.fromCharCode((y>>6)|192);i+=String.fromCharCode((y&63)|128)}else{i+=String.fromCharCode((y>>12)|224);i+=String.fromCharCode(((y>>6)&63)|128);i+=String.fromCharCode((y&63)|128)}}}return i}var h;var w,v;var c=new Array(80);var n=1732584193;var l=4023233417;var k=2562383102;var g=271733878;var f=3285377520;var t,r,q,p,o;var x;e=b(e);var a=e.length;var m=new Array();for(w=0;w<a-3;w+=4){v=e.charCodeAt(w)<<24|e.charCodeAt(w+1)<<16|e.charCodeAt(w+2)<<8|e.charCodeAt(w+3);m.push(v)}switch(a%4){case 0:w=2147483648;break;case 1:w=e.charCodeAt(a-1)<<24|8388608;break;case 2:w=e.charCodeAt(a-2)<<24|e.charCodeAt(a-1)<<16|32768;break;case 3:w=e.charCodeAt(a-3)<<24|e.charCodeAt(a-2)<<16|e.charCodeAt(a-1)<<8|128;break}m.push(w);while((m.length%16)!=14){m.push(0)}m.push(a>>>29);m.push((a<<3)&4294967295);for(h=0;h<m.length;h+=16){for(w=0;w<16;w++){c[w]=m[h+w]}for(w=16;w<=79;w++){c[w]=d(c[w-3]^c[w-8]^c[w-14]^c[w-16],1)}t=n;r=l;q=k;p=g;o=f;for(w=0;w<=19;w++){x=(d(t,5)+((r&q)|(~r&p))+o+c[w]+1518500249)&4294967295;o=p;p=q;q=d(r,30);r=t;t=x}for(w=20;w<=39;w++){x=(d(t,5)+(r^q^p)+o+c[w]+1859775393)&4294967295;o=p;p=q;q=d(r,30);r=t;t=x}for(w=40;w<=59;w++){x=(d(t,5)+((r&q)|(r&p)|(q&p))+o+c[w]+2400959708)&4294967295;o=p;p=q;q=d(r,30);r=t;t=x}for(w=60;w<=79;w++){x=(d(t,5)+(r^q^p)+o+c[w]+3395469782)&4294967295;o=p;p=q;q=d(r,30);r=t;t=x}n=(n+t)&4294967295;l=(l+r)&4294967295;k=(k+q)&4294967295;g=(g+p)&4294967295;f=(f+o)&4294967295}var x=u(n)+u(l)+u(k)+u(g)+u(f);return x.toLowerCase()}; _.isPositiveInteger = function(val){ return val == "0" || ((val|0) > 0 && val % 1 == 0);} _.convertBadChars = function(str){ return str.replace("<", "<").replace(">", ">"); } _.onOverviewOfAPost = function(){ return window.location.href == "http://www.jeuxvideo.com/cgi-bin/jvforums/forums.cgi" } _.init = function(){ _.setButtonsArea(); // Bug sur les forumJV if(window.location.host.match(/\.forumjv\.com$/)) $("h1 a").css("width", "initial"); // Nouvelle interface de JVC, obligé de passer par du JS au lieu de CSS $("#connexion").css({ textAlign : "right" , paddingRight : "5px" , width : "666px" // ok }); /* ColorBox v1.3.20.1 - jQuery lightbox plugin (c) 2012 Jack Moore - jacklmoore.com License: http://www.opensource.org/licenses/mit-license.php */ (function(e,t,n){function G(n,r,i){var o=t.createElement(n);return r&&(o.id=s+r),i&&(o.style.cssText=i),e(o)}function Y(e){var t=T.length,n=(U+e)%t;return n<0?t+n:n}function Z(e,t){return Math.round((/%/.test(e)?(t==="x"?tt():nt())/100:1)*parseInt(e,10))}function et(e){return B.photo||/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i.test(e)}function tt(){return n.innerWidth||N.width()}function nt(){return n.innerHeight||N.height()}function rt(){var t,n=e.data(R,i);n==null?(B=e.extend({},r),console&&console.log&&console.log("Error: cboxElement missing settings object")):B=e.extend({},n);for(t in B)e.isFunction(B[t])&&t.slice(0,2)!=="on"&&(B[t]=B[t].call(R));B.rel=B.rel||R.rel||"nofollow",B.href=B.href||e(R).attr("href"),B.title=B.title||R.title,typeof B.href=="string"&&(B.href=e.trim(B.href))}function it(t,n){e.event.trigger(t),n&&n.call(R)}function st(){var e,t=s+"Slideshow_",n="click."+s,r,i,o;B.slideshow&&T[1]?(r=function(){M.text(B.slideshowStop).unbind(n).bind(f,function(){if(B.loop||T[U+1])e=setTimeout(J.next,B.slideshowSpeed)}).bind(a,function(){clearTimeout(e)}).one(n+" "+l,i),g.removeClass(t+"off").addClass(t+"on"),e=setTimeout(J.next,B.slideshowSpeed)},i=function(){clearTimeout(e),M.text(B.slideshowStart).unbind([f,a,l,n].join(" ")).one(n,function(){J.next(),r()}),g.removeClass(t+"on").addClass(t+"off")},B.slideshowAuto?r():i()):g.removeClass(t+"off "+t+"on")}function ot(t){V||(R=t,rt(),T=e(R),U=0,B.rel!=="nofollow"&&(T=e("."+o).filter(function(){var t=e.data(this,i),n;return t&&(n=t.rel||this.rel),n===B.rel}),U=T.index(R),U===-1&&(T=T.add(R),U=T.length-1)),W||(W=X=!0,g.show(),B.returnFocus&&e(R).blur().one(c,function(){e(this).focus()}),m.css({opacity:+B.opacity,cursor:B.overlayClose?"pointer":"auto"}).show(),B.w=Z(B.initialWidth,"x"),B.h=Z(B.initialHeight,"y"),J.position(),d&&N.bind("resize."+v+" scroll."+v,function(){m.css({width:tt(),height:nt(),top:N.scrollTop(),left:N.scrollLeft()})}).trigger("resize."+v),it(u,B.onOpen),H.add(A).hide(),P.html(B.close).show()),J.load(!0))}function ut(){!g&&t.body&&(Q=!1,N=e(n),g=G(K).attr({id:i,"class":p?s+(d?"IE6":"IE"):""}).hide(),m=G(K,"Overlay",d?"position:absolute":"").hide(),L=G(K,"LoadingOverlay").add(G(K,"LoadingGraphic")),y=G(K,"Wrapper"),b=G(K,"Content").append(C=G(K,"LoadedContent","width:0; height:0; overflow:hidden"),A=G(K,"Title"),O=G(K,"Current"),_=G(K,"Next"),D=G(K,"Previous"),M=G(K,"Slideshow").bind(u,st),P=G(K,"Close")),y.append(G(K).append(G(K,"TopLeft"),w=G(K,"TopCenter"),G(K,"TopRight")),G(K,!1,"clear:left").append(E=G(K,"MiddleLeft"),b,S=G(K,"MiddleRight")),G(K,!1,"clear:left").append(G(K,"BottomLeft"),x=G(K,"BottomCenter"),G(K,"BottomRight"))).find("div div").css({"float":"left"}),k=G(K,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),H=_.add(D).add(O).add(M),e(t.body).append(m,g.append(y,k)))}function at(){return g?(Q||(Q=!0,j=w.height()+x.height()+b.outerHeight(!0)-b.height(),F=E.width()+S.width()+b.outerWidth(!0)-b.width(),I=C.outerHeight(!0),q=C.outerWidth(!0),g.css({"padding-bottom":j,"padding-right":F}),_.click(function(){J.next()}),D.click(function(){J.prev()}),P.click(function(){J.close()}),m.click(function(){B.overlayClose&&J.close()}),e(t).bind("keydown."+s,function(e){var t=e.keyCode;W&&B.escKey&&t===27&&(e.preventDefault(),J.close()),W&&B.arrowKey&&T[1]&&(t===37?(e.preventDefault(),D.click()):t===39&&(e.preventDefault(),_.click()))}),e("."+o,t).live("click",function(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||(e.preventDefault(),ot(this))})),!0):!1}var r={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"Image {current} sur {total}",previous:"Précédent",next:"Suivant",close:"Fermer",xhrError:"Impossible de charger ce contenu",imgError:"Impossible de charger cette image.",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined},i="colorbox",s="cbox",o=s+"Element",u=s+"_open",a=s+"_load",f=s+"_complete",l=s+"_cleanup",c=s+"_closed",h=s+"_purge",p=!e.support.opacity&&!e.support.style,d=p&&!n.XMLHttpRequest,v=s+"_IE6",m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q,R,U,z,W,X,V,$,J,K="div",Q;if(e.colorbox)return;e(ut),J=e.fn[i]=e[i]=function(t,n){var s=this;t=t||{},ut();if(at()){if(!s[0]){if(s.selector)return s;s=e("<a/>"),t.open=!0}n&&(t.onComplete=n),s.each(function(){e.data(this,i,e.extend({},e.data(this,i)||r,t))}).addClass(o),(e.isFunction(t.open)&&t.open.call(s)||t.open)&&ot(s[0])}return s},J.position=function(e,t){function f(e){w[0].style.width=x[0].style.width=b[0].style.width=e.style.width,b[0].style.height=E[0].style.height=S[0].style.height=e.style.height}var n,r=0,i=0,o=g.offset(),u,a;N.unbind("resize."+s),g.css({top:-9e4,left:-9e4}),u=N.scrollTop(),a=N.scrollLeft(),B.fixed&&!d?(o.top-=u,o.left-=a,g.css({position:"fixed"})):(r=u,i=a,g.css({position:"absolute"})),B.right!==!1?i+=Math.max(tt()-B.w-q-F-Z(B.right,"x"),0):B.left!==!1?i+=Z(B.left,"x"):i+=Math.round(Math.max(tt()-B.w-q-F,0)/2),B.bottom!==!1?r+=Math.max(nt()-B.h-I-j-Z(B.bottom,"y"),0):B.top!==!1?r+=Z(B.top,"y"):r+=Math.round(Math.max(nt()-B.h-I-j,0)/2),g.css({top:o.top,left:o.left}),e=g.width()===B.w+q&&g.height()===B.h+I?0:e||0,y[0].style.width=y[0].style.height="9999px",n={width:B.w+q,height:B.h+I,top:r,left:i},e===0&&g.css(n),g.dequeue().animate(n,{duration:e,complete:function(){f(this),X=!1,y[0].style.width=B.w+q+F+"px",y[0].style.height=B.h+I+j+"px",B.reposition&&setTimeout(function(){N.bind("resize."+s,J.position)},1),t&&t()},step:function(){f(this)}})},J.resize=function(e){W&&(e=e||{},e.width&&(B.w=Z(e.width,"x")-q-F),e.innerWidth&&(B.w=Z(e.innerWidth,"x")),C.css({width:B.w}),e.height&&(B.h=Z(e.height,"y")-I-j),e.innerHeight&&(B.h=Z(e.innerHeight,"y")),!e.innerHeight&&!e.height&&(C.css({height:"auto"}),B.h=C.height()),C.css({height:B.h}),J.position(B.transition==="none"?0:B.speed))},J.prep=function(t){function o(){return B.w=B.w||C.width(),B.w=B.mw&&B.mw<B.w?B.mw:B.w,B.w}function u(){return B.h=B.h||C.height(),B.h=B.mh&&B.mh<B.h?B.mh:B.h,B.h}if(!W)return;var n,r=B.transition==="none"?0:B.speed;C.remove(),C=G(K,"LoadedContent").append(t),C.hide().appendTo(k.show()).css({width:o(),overflow:B.scrolling?"auto":"hidden"}).css({height:u()}).prependTo(b),k.hide(),e(z).css({"float":"none"}),d&&e("select").not(g.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(l,function(){this.style.visibility="inherit"}),n=function(){function y(){p&&g[0].style.removeAttribute("filter")}var t,n,o=T.length,u,a="frameBorder",l="allowTransparency",c,d,v,m;if(!W)return;c=function(){clearTimeout($),L.detach().hide(),it(f,B.onComplete)},p&&z&&C.fadeIn(100),A.html(B.title).add(C).show();if(o>1){typeof B.current=="string"&&O.html(B.current.replace("{current}",U+1).replace("{total}",o)).show(),_[B.loop||U<o-1?"show":"hide"]().html(B.next),D[B.loop||U?"show":"hide"]().html(B.previous),B.slideshow&&M.show();if(B.preloading){t=[Y(-1),Y(1)];while(n=T[t.pop()])m=e.data(n,i),m&&m.href?(d=m.href,e.isFunction(d)&&(d=d.call(n))):d=n.href,et(d)&&(v=new Image,v.src=d)}}else H.hide();B.iframe?(u=G("iframe")[0],a in u&&(u[a]=0),l in u&&(u[l]="true"),u.name=s+ +(new Date),B.fastIframe?c():e(u).one("load",c),u.src=B.href,B.scrolling||(u.scrolling="no"),e(u).addClass(s+"Iframe").appendTo(C).one(h,function(){u.src="//about:blank"})):c(),B.transition==="fade"?g.fadeTo(r,1,y):y()},B.transition==="fade"?g.fadeTo(r,0,function(){J.position(0,n)}):J.position(r,n)},J.load=function(t){var n,r,i=J.prep;X=!0,z=!1,R=T[U],t||rt(),it(h),it(a,B.onLoad),B.h=B.height?Z(B.height,"y")-I-j:B.innerHeight&&Z(B.innerHeight,"y"),B.w=B.width?Z(B.width,"x")-q-F:B.innerWidth&&Z(B.innerWidth,"x"),B.mw=B.w,B.mh=B.h,B.maxWidth&&(B.mw=Z(B.maxWidth,"x")-q-F,B.mw=B.w&&B.w<B.mw?B.w:B.mw),B.maxHeight&&(B.mh=Z(B.maxHeight,"y")-I-j,B.mh=B.h&&B.h<B.mh?B.h:B.mh),n=B.href,$=setTimeout(function(){L.show().appendTo(b)},100),B.inline?(G(K).hide().insertBefore(e(n)[0]).one(h,function(){e(this).replaceWith(C.children())}),i(e(n))):B.iframe?i(" "):B.html?i(B.html):et(n)?(e(z=new Image).addClass(s+"Photo").error(function(){B.title=!1,i(G(K,"Error").html(B.imgError))}).load(function(){var e;z.onload=null,B.scalePhotos&&(r=function(){z.height-=z.height*e,z.width-=z.width*e},B.mw&&z.width>B.mw&&(e=(z.width-B.mw)/z.width,r()),B.mh&&z.height>B.mh&&(e=(z.height-B.mh)/z.height,r())),B.h&&(z.style.marginTop=Math.max(B.h-z.height,0)/2+"px"),T[1]&&(B.loop||T[U+1])&&(z.style.cursor="pointer",z.onclick=function(){J.next()}),p&&(z.style.msInterpolationMode="bicubic"),setTimeout(function(){i(z)},1)}),setTimeout(function(){z.src=n},1)):n&&k.load(n,B.data,function(t,n,r){i(n==="error"?G(K,"Error").html(B.xhrError):e(this).contents())})},J.next=function(){!X&&T[1]&&(B.loop||T[U+1])&&(U=Y(1),J.load())},J.prev=function(){!X&&T[1]&&(B.loop||U)&&(U=Y(-1),J.load())},J.close=function(){W&&!V&&(V=!0,W=!1,it(l,B.onCleanup),N.unbind("."+s+" ."+v),m.fadeTo(200,0),g.stop().fadeTo(300,0,function(){g.add(m).css({opacity:1,cursor:"auto"}).hide(),it(h),C.remove(),setTimeout(function(){V=!1,it(c,B.onClosed)},1)}))},J.remove=function(){e([]).add(g).add(m).remove(),g=null,e("."+o).removeData(i).removeClass(o).die()},J.element=function(){return e(R)},J.settings=r})(jQuery,document,window); var ColorBox_img_Overlay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeBAMAAADJHrORAAAAMFBMVEX///8HBwcICAgUFBQXFxcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABuanbkAAAAQUlEQVR4nOzOoQ0AIBDF0K5QNiC3wYUN2H8nJPkai6l5prSOdcPU2jckN8mTZEmWZEmW5EFy8f+e/g4AAAD//wMAKnM4yCLdBHkAAAAASUVORK5CYII=" , ColorBox_img_Controls = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAAyCAYAAAD8z1GNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACu9JREFUeNrsXVtsFNcZ/sE37NjgNTYXh8ZgFBoupRJuWjVtlZguRVxSWqSobaKmUiHLU9T2oapbRJ8ajB+ohIIfcFupoY5JFaBKU0wjGdyEgiHJ1qHUQFwutcHGNo7XYTe+geXOd9gznB3PzM7M7szuLPNJRx7vzsw3/55v/vOfy/wzg4j2kAVMTU39gjzYgRkS4u1TJZXKaPE5fH0hqVyLlqABnUwZNLrOysVkP4wKGRsbY2XWrFmsuAgQrj8FohXhi14Hv5YWI0K2C2kh4Fu3btHw8DCNjIxM+66goICKi4tp4cKFDzMHRP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4vAxXgWsCPpSJLt8F416xYBqwlAK950w8u++WtntaDzelk9AXMRp+PLvsWwQfVl3w+FgJUeUzlclWw4kXQkATvUBMyBmNifRt44FO2wBXV0knnvStaDEw87OpF0xCY7gorOXWUKxByKelxHO2ta+L8AAwAVufYzBE3j5AAAAABJRU5ErkJggg==" , ColorBox_img_Border = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAyAQMAAACnNSPJAAAABlBMVEUAAAD///+l2Z/dAAAAAXRSTlOArV5bRgAAABhJREFUeF6VwQENAAAAgjCjG50GbPwzDwUmggsB4+yamQAAAABJRU5ErkJggg==" , ColorBox_img_Loading = "data:image/png;base64,R0lGODlhIAAgAPMAAP///wAAAMbGxoSEhLa2tpqamjY2NlZWVtjY2OTk5Ly8vB4eHgQEBAAAAAAAAAAAACH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHRLYKhKP1oZmADdEAAAh+QQACgABACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY/CZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB+A4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6+Ho7aWW54wl7obvEe0kRuoplCGepwSx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lErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg+ygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0+bm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h+Kr0SJ8MFihpNbx+4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX+BP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA==" ; /* ColorBox CSS Modifié pour JVCMaster */ _.insertCSS("#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:2147483647; overflow:hidden;}#cboxOverlay{position:fixed; width:100%; height:100%;}#cboxMiddleLeft, #cboxBottomLeft{clear:left;}#cboxContent{position:relative;}#cboxLoadedContent{overflow:auto;}#cboxTitle{margin:0;}#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}.cboxIframe{width:100%; height:100%; display:block; border:0;}#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;}/*User Style:Change the following styles to modify the appearance of ColorBox. They areordered & tabbed in a way that represents the nesting of the generated HTML.*/#cboxOverlay{background:url(" + ColorBox_img_Overlay + ") repeat 0 0;}#colorbox{z-index:2147483648}#cboxTopLeft{width:21px; height:21px; background:url(" + ColorBox_img_Controls + ") no-repeat -101px 0;}#cboxTopRight{width:21px; height:21px; background:url(" + ColorBox_img_Controls + ") no-repeat -130px 0;}#cboxBottomLeft{width:21px; height:21px; background:url(" + ColorBox_img_Controls + ") no-repeat -101px -29px;}#cboxBottomRight{width:21px; height:21px; background:url(" + ColorBox_img_Controls + ") no-repeat -130px -29px;}#cboxMiddleLeft{width:21px; background:url(" + ColorBox_img_Controls + ") left top repeat-y;}#cboxMiddleRight{width:21px; background:url(" + ColorBox_img_Controls + ") right top repeat-y;}#cboxTopCenter{height:21px; background:url(" + ColorBox_img_Border + ") 0 0 repeat-x;}#cboxBottomCenter{height:21px; background:url(" + ColorBox_img_Border + ") 0 -29px repeat-x;}#cboxContent{background:#fff; overflow:hidden;}.cboxIframe{background:#fff;}#cboxError{padding:50px; border:1px solid #ccc;}#cboxLoadedContent{margin-bottom:28px;}#cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}#cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}#cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}#cboxPrevious{position:absolute; bottom:0; left:0; background:url(" + ColorBox_img_Controls + ") no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}#cboxPrevious:hover{background-position:-75px -25px;}#cboxNext{position:absolute; bottom:0; left:27px; background:url(" + ColorBox_img_Controls + ") no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}#cboxNext:hover{background-position:-50px -25px;}#cboxLoadingGraphic{background:url(" + ColorBox_img_Loading + ") no-repeat center center;}#cboxClose{position:absolute; bottom:0; right:0; background:url(" + ColorBox_img_Controls + ") no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}#cboxClose:hover{background-position:-25px -25px;}") // Code CSS pour JVCMaster _.insertCSS(".JVCMaster_patternButton img {cursor: pointer; margin-right : 3px} \ .JVCMaster_colorboxHTML .titre_bloc{font-size : 13px; text-align: left} \ .JVCMaster_colorboxHTML li{background: url(http://image.jeuxvideo.com/css_img/defaut/puce_base.gif) no-repeat left center; border-bottom : 1px solid rgb(237, 237, 237); font-size : 12px; font-weight : normal; margin: 2px 0; overflow: hidden; padding: 0 0 1px 18px; text-align : left} \ .JVCMaster_colorboxHTML p{margin : 5px} \ .JVCMaster_colorboxHTML input[type=checkbox]{ margin-right: 3px; vertical-align : bottom } \ .JVCMaster_POST{background: url(http://image.jeuxvideo.com/css_img/defaut/sep_444.gif) repeat-x top; clear: both; line-height: 1.3em; margin-bottom: 8px; padding-top: 10px} \ "); // Bouton "JVCMaster x.x.x" pour ouvrir le panneau de configuration var BTN_CONFIGURATION = $("<a/>", { title : "Panneau de configuration de JVCMaster" , text : "JVCMaster " + _.version , click : function(e){ // On rafraichit la liste des extensions activées _.activatedExtensions = JSON.parse(_.LS_get("activatedExtensions") || "[]"); // Contenu du panneau de configuration de JVCMaster var html = '<div class="JVCMaster_colorboxHTML forums hp_forums"><div class="bloc1"><h3 class="titre_bloc"><span>Fonctionnalités</span></h3><div class="bloc_inner"><ul class="liste_liens">'; $.each(_.scripts, function(script){ html += '<li><input type="checkbox" data-jvcmaster-script-id="' + _.scripts[script].id + '"' + (_.activatedExtensions.indexOf(scripts[script].id) !== -1 ? ' checked="checked"' : '') + '/><b>' + _.scripts[script].name + "</b> : " + _.scripts[script].description + "</li>" }); html += "</ul></div></div>"; if(window.location.href.match("^http:\/\/www\.jeuxvideo\.com")){ html += '<div class="bloc1"><h3 class="titre_bloc"><span>Synchronisation des paramètres' + (_.LS_get("Sync_pseudo") != null ? ' (' + _.LS_get("Sync_pseudo") + ')' : '') + '</span></h3><div class="bloc_inner">'; var isConnected = false; if(typeof _.LS_get("Sync_key") == "object" && typeof _.LS_get("Sync_pseudo") == "object"){ html += '<form id="JVCMaster_FORM_connection">'; html += '<p style="font-size: 15px;font-weight: bold;">Connectez-vous avec votre compte JVCMaster</p><input type="text" name="JVCMaster_pseudo" placeholder="Pseudo"><input type="password" name="JVCMaster_password" placeholder="Mot de passe"><input type="submit" value="Connexion">'; html += '<p>Pas encore de compte JVCMaster? <a href="http://www.jvcmaster.org/account">Inscrivez-vous!</a></p>'; html += '</form>' } else{ isConnected = true; } html += '<form id="JVCMaster_FORM_sync"' + (!isConnected ? ' style="display:none;"' : '') + ' action="http://www.jvcmaster.org/action?type=sync"><button id="JVCMaster_BTN_setSync">Envoyer votre configuration</button><button id="JVCMaster_BTN_getSync">Télécharger votre configuration</button>'; html += "<br><a href='#' id='JVCMaster_BTN_Sync_logout'>Se déconnecter</a>"; html += "</form>"; html += "</div></div>"; } html += "</div>"; $.colorbox({html : html}); $("input[type=checkbox][data-jvcmaster-script-id]").click(function(){ var t = $(this) , id = t.attr("data-jvcmaster-script-id"); if(t.is(":checked")){ _.activatedExtensions.push(id); _.scripts[id].init(); } else{ _.activatedExtensions.splice(_.activatedExtensions.indexOf(id), 1); _.scripts[id].destroy(); } _.LS_set("activatedExtensions", JSON.stringify($.unique(_.activatedExtensions))); }); $("#JVCMaster_FORM_connection").on("submit", function(){ var t = $(this) , action = "http://www.jvcmaster.org/action?type=sync" , pseudo = t.find("input[name=JVCMaster_pseudo]").val() , password = t.find("input[name=JVCMaster_password]").val() , submitButton = t.find("[type=submit]") , formSync = $("#JVCMaster_FORM_sync") ; if(pseudo == ''){ alert("Rentrer votre pseudo"); return false; } if(password == ''){ alert("Rentrer votre mot de passe"); return false; } $.post(action, { pseudo : pseudo, password : _.sha1("0+@#1$4%*7" + password) }, "json").done(function(data) { data = JSON.parse(data); submitButton.attr("disabled", "disabled"); if(!data.accountExists) { alert("Ce compte n'existe pas!"); submitButton.removeAttr("disabled"); } else { t.slideUp(200); formSync.slideDown(200); _.LS_set("Sync_key" , data.key); _.LS_set("Sync_pseudo" , pseudo); } }).fail(function(jqXHR, textStatus, errorThrown) { alert("Bordel, il y a une erreur. Merci de regarder la console web, et de me faire parvenir (HerveGhesquiere) ce qui est inscrit dans cette dernière"); console.error(jqXHR); console.error(textStatus); console.error(errorThrown); }); return false; }); $("#JVCMaster_BTN_getSync").live("click", function(){ $.post("http://www.jvcmaster.org/action?type=sync&action=get", { jvcmaster_sync : "" , pseudo : _.LS_get("Sync_pseudo") , key : _.LS_get("Sync_key") }, function(data){ if(data.status){ var config = JSON.parse(data.config); _.LS_set("activatedExtensions", config.activatedExtensions == "null" ? "[]" : config.activatedExtensions); _.LS_set("favoritesTopics", config.favoritesTopics == "null" ? "{}" : config.favoritesTopics); _.LS_set("friends", config.friends == "null" ? "{}" : config.friends); _.LS_set("hiddenposts", config.hiddenposts == "null" ? "[]" : config.hiddenposts); _.LS_set("hiddenpostspseudo", config.hiddenpostspseudo == "null" ? "[]" : config.hiddenpostspseudo); alert("Votre configuration a été correctement téléchargée, et installée"); window.location.reload(); } else alert("Un problème est survenu"); }, "json" ); return false; }); $("#JVCMaster_BTN_setSync").live("click", function(){ config = { activatedExtensions : _.LS_get("activatedExtensions") , favoritesTopics : _.LS_get("favoritesTopics") , friends : _.LS_get("friends") , hiddenposts : _.LS_get("hiddenposts") , hiddenpostspseudo : _.LS_get("hiddenpostspseudo") }; $.post("http://www.jvcmaster.org/action?type=sync&action=set", { jvcmaster_sync : "" , config : config , pseudo : _.LS_get("Sync_pseudo") , key : _.LS_get("Sync_key") }, function(data){ if(data.status) alert("Votre configuration a été correctement envoyée"); else alert("Un problème est survenu"); }, "json" ); return false; }); $("#JVCMaster_BTN_Sync_logout").live("click", function(){ _.LS_rm("Sync_pseudo"); _.LS_rm("Sync_key"); window.location.reload(); }); e.preventDefault(); } , css : {cursor : "pointer"} }); BTN_CONFIGURATION.appendTo($("<div>").prependTo($("#connexion"))); // La barre #connexion est "appendée" au bout de 1000ms sur les ForumJV setTimeout(function(){ BTN_CONFIGURATION.appendTo($("<li>").prependTo($("div#log ul"))); }, 1100); // On lance les extensions que l'utilisateur a activées $.each(_.activatedExtensions, function(k, script){ _.scripts[script].init(); }); if(typeof LS_get("isFirstUse") === "object"){ _.LS_set("isFirstUse", "0") // On purge la configuration de JVCMaster 2.x _.LS_rm("oHiddenPosts"); _.LS_rm("oHiddenPostsViaPseudos"); _.LS_rm("firstUse"); _.LS_rm("sActivatedScripts"); BTN_CONFIGURATION.click(); } $("body").bind("ajaxComplete", function(e, xhr, settings){ if("url" in settings) { if(settings.url.match(/^\.\/ajax_prec_msg\.php/)) { console.log("ACTUALISATION"); $(".JVCMaster_patternButton").remove(); _.pseudoArea = $(".msg").parent().find("li span:last-child:not(.generic), div[id^=message] ul").parent().find(".pseudo"); _.setButtonsArea(); $.each(_.activatedExtensions, function(k, script){ _.scripts[script].destroy(); _.scripts[script].init(); }); } } }); delete ColorBox_img_Controls, ColorBox_img_Loading, ColorBox_img_Border, ColorBox_img_Overlay; } // Extensions de JVCMaster _.scripts = { antiflood : { id : "antiflood" , name : "Anti-Flood" , description : "Cache le flood" , init : function(){ _.insertCSS(".JVCMaster_POST_FLOOD{background : rgba(255, 0, 0, 0.2); border : 1px solid red; padding : 10px} \ .JVCMaster_POST_FLOOD a img{margin-right : 3px; vertical-align : top} \ "); $("body").find("div[id^=message] .post, table[id^=liste_topics] tr > td + td a").each(function(){ var t = $(this) , html = t.html() , postContainer = t.parents(".msg, .tr1, .tr2") ; // Titre de topic sur la liste des topics if(postContainer.attr("class").match(/tr1|tr2/)){ if(/(W{10,}){1,}/.test(html)){ t.html("<i>JVCMaster</i> : <b>Flood</b>"); } // Corps du post sur un topic } else if(postContainer.attr("class").match("msg")){ if(/(W{30,}){5,}/.test(html) || /( ?<br( \/)?> \n){200}/.test(html)){ var BTN_AVERTIR = t.parent().find("a[target=avertir]") , pseudo = postContainer.find(".pseudo strong").text() ; postContainer.hide(); postContainer.before($("<div>", { "class" : "msg JVCMaster_POST_FLOOD" , html : "<i>JVCMaster</i> : <b>Flood</b> de <b>" + pseudo + "</b> - <a href='#' onclick='$(this).parent().next().slideToggle(); return false'>Voir/cacher le post</a> " + BTN_AVERTIR.clone().wrap('<p>').parent().html() })); } } }); }, destroy : function(){ $(".JVCMaster_POST_FLOOD").remove(); $(".msg").show(); } }, cdvinformations : { id : "cdvinformations" , name : "CDV informations" , description : "Affiche des informations à côté du pseudo" , init : function(){ // Impossible de faire une requête AJAX depuis les forumJV sur "Jeuxvideo.com" if(/forumjv\.com$/.test(window.location.hostname)) return; _.insertCSS(".JVCMaster_BADGE_RANK img{ cursor : default } \ .JVCMaster_avatar{display : none; height : 100px; left: -105px; position: absolute; text-align : right; top: 0; z-index: 1; width : 100px} \ .JVCMaster_avatar img{background: white; box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); padding: 5px} \ "); BADGE_RANK = $("<span>", { height : "12px" , width : "14px" , css : { backgroundImage : "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAACXBIWXMAAAsSAAALEgHS3X78AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAxYSURBVHjapJd5VJRnlsZ/X60UFFAUW7EJyKIsLojK4oJolGjAJek0TEzsRZM2pjVGTWeYztLdnkzSak9PYrqzafpkNMZ02iUCxtYYMXGBkUUNqMgq+74WBVVQ9c4fNWIQY9S+59Q59dX33vs+dbfnXkkIwe3SUFkn/EICJH5ETua1iLOf/AK5tY/xziasLu4kZ+zmpu6V0jIRGTXhR+18X6TvAyprHBbF+1/DVbpMZ48Mz2kpLFq67o4GCwsLReHhdcSGOqDXqrlebaPL1AHA9Eff4/RvX8JdoUI+KZ6Qx1dyr8BGAL2z/WVhbvmWh0ME/inT6TndRJuskUvVTgz7pvLMM3Zgn+9IFwlLX+P4vi0kTxqmQ24B4FqpClNtJ846gd7Tje7vHAkXRvIrOzC4ypD76/G0uaBTwvhnN6GaPOeOAKW333hRWNrz8XZTE+4u6Bhw4FK7PyFunaRG62lr6uabxg5KqgRpSZ5IopfEn2VLH/1uiYg2DNGvslFebaTxmgUXBxk+vqAz+LL4hSwpb80K4W4zUtrcjl7jjLPMSMR4P2p6FUx899AdAckOf3EEbzc1kdHBBAT74K4ZJMStE4DujjI8fXQkTQnluRVhzAq3oBgwA5BT2E+XUWDplKhqdEHpqSVqihuTg5woKu8GIH7XIan4hpkZgT6EeGnx8jBwtamfs41dfH2hSDRU1o1JYIXOw5uKi21UXGwjLGocc6eH4QN4KASgJ7ukk9L86yxMiyDA45bi9KhJbDvwFfNjPEmOUANqDD4Kcku6UHonA1Dx2V4xLtidwnojsf5KBt3HcSMyFJt1kIKj+yg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gYPhSpqZ/ecc8qaikQM3ZGi9AMPxGa4SeiN4eKe93xsrOO3PHcqIecI1+JwMAaERhYI/z9u4W//2HxQ4ojhi9kiejNoWLiT4NF9oWsf3nh/L8BAIX3Kz3tDNjMAAAAAElFTkSuQmCC)" , marginRight : "3px" , display : "inline-block" } }); _.setButton("BADGE_RANK", BADGE_RANK); $(".pseudo strong").each(function(){ var t = $(this) , postContainer = t.parents(".msg") , pseudo = t.text().toLowerCase() ; $.ajax({ url : "http://www.jeuxvideo.com/profil/" + pseudo + ".html", dataType : "text", success : function(data){ var BTN_CDV = postContainer.find("a[href^=http\\:\\/\\/www\\.jeuxvideo\\.com\\/profil] img") , BADGE_RANK = postContainer.find("span.JVCMaster_BADGE_RANK span") ; if(data.match("<p class=\"banni\">")) BTN_CDV.attr("src", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wICggWDgPWFDkAAAD2SURBVCjPhdEtroNAEMDxP4VtsqYkxXALDAoBohfgCIg9wJpaLoDZA+BxXAgEsmkIigSxJDzR0Pa9NK/jJvnNZD4crfXGlzDGOAAeQBzH/2Kt9WaMcTwAay0ARVH8QlVVcTqdiKIIrfV22PFfCHC9XhmGgXmeATi8dwZIkoTL5fLMu65jmiaeM1trKcuSrusIw5C2bQHIsowgCFjX9YX7vsday/F4pGkaANI0BcB1Xe73O1LKBwYQQiCEQCnF7XZDCMH5fCYIAoQQr87vUdc1AHme4/v+E37ESinGcfx4b2c/+r6EtZZlWQCQUr5G8LwH3gu+vf0HNF5XpCC6I0sAAAAASUVORK5CYII="); else{ var rank = data.match("<body.*class=\"(.*)\">")[1] , sexe = data.match("<h1.*class=\"(sexe_[f|m])\">")[1] , avatar = data.match('<img id="img_grande"(?: | style="(?:[^"]*)" onClick="(?:[^"]*)" )?src="([^"]*)"')[1] ; if(!_.onMp()){ $("<li>", { "class" : "JVCMaster_avatar", html : "<img src='" + avatar + "'>" }).appendTo(postContainer.find("ul")); postContainer.find(".pseudo strong").hover(function(){ postContainer.find(".JVCMaster_avatar").stop().fadeIn(200); }, function(){ postContainer.find(".JVCMaster_avatar").fadeOut(200); }); } if(sexe == "sexe_f") BTN_CDV.attr("src", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAEmSURBVHjahNG/SwJhHMfx92Ond4slYaF3EmgN0tQQLTm2FQQtZbTV5tYc9Cc49TccLU61NZ4E4eJSJGFDSGFJmoZ3Ss/TIF72g/xsD8/reZ4P30c4lq0Yk0wtKwA0gIW1xX+xc2GrTC0rNADVlQDETpe+oauNc6L6NPOraZyirQID/PELAqycrXNTr/De6QDg42Gy1iYHqR1/XaqXeW694HdWXcnlcoFiq0RaT3FczQOwb24zZ5goV37h2/sKrvIwZZTdp0MAcpE9DIJE+5O8ug2mAmGEY9nKUz3/2aZsc927oynfSGoJksEEhtDRRWjQeTRbjzmOGnliEzPEtVkMoft72k9ciJ9Q7T/8OW8BMFrFVR5N2QYgEgj7N+siNMDDA+O+/XMAnBxmyJCBTqUAAAAASUVORK5CYII="); else BTN_CDV.attr("src", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAEmSURBVHjahJE9S8NQFIafG29JHKq1FOkHCFUHRwcpoh0cHJ3cdHBRhOAfUBAc/Qnd3QRxEBfBMUUQZ0UIFYeiRrQpVBKbkOsQjPUDe7bDec57Xt4jSqal6FPNWlUASIDFyuS/8DmWataqQgJ43Vj8cDP/DVrav0RP55ifnqBuWkoD8AL1CwQ43ang3N/Q6bwBoPUqA5RmVxhf2Eh6x76i3Xom8ewFipntC9p2HX10isbJHgDF6jpGdgw/UF/wnX2LCn2iVJHHo1UAMnNbgEGg5fCdFpoxjCiZllLhe3I28l26T9dEvoscKZPKlhHSQEg99txbDwfLvJztMpDOI4cKCGkkM/kTLqwdE7w2/sxbAPRaUaFP5LlxVIOZRFlIPYY/F/q9/WMAikdlnhDc6i4AAAAASUVORK5CYII="); switch(rank){ case "carton": BADGE_RANK.css({ width : "13px" , height : "13px" , backgroundPosition : "0 0" }); break; case "bronze": BADGE_RANK.css({ width : "8px" , height : "14px" , backgroundPosition : "-14px 0" }); break; case "argent": BADGE_RANK.css({ height : "13px" , backgroundPosition : "-22px 0" }); break; case "or": BADGE_RANK.css({ width : "13px" , height : "13px" , backgroundPosition : "0 -14px" }); break; case "rubis": BADGE_RANK.css({ width : "11px" , backgroundPosition : "-14px -15px" }); break; case "saphir": BADGE_RANK.css({ width : "12px" , backgroundPosition : "0 -28px" }); break; case "emeraude": BADGE_RANK.css({ width : "12px" , backgroundPosition : "-12px -28px" }); break; case "diamant": BADGE_RANK.css({ width : "11px" , backgroundPosition : "-25px -27px" }); break; } } } }); }); }, destroy : function(){ $("span.JVCMaster_BADGE_RANK span").remove(); $("a[href^=http\\:\\/\\/www\\.jeuxvideo\\.com\\/profil] img").attr("src" ,"data:image/png;base64,R0lGODlhCwAMAMQAAAAAAP///3LEGzpYGj5qD5LkO2m1GWClF3q0PKHnVlKAIVGLE4PHO6boX5XcSkyDEm69Gn/GM4zJS1mLJJrdUj9iGWWtGFaUFJzmTVWAJkNzEJflREJjIQAAAAAAAAAAACH5BAUUAAAALAAAAAALAAwAAAVFoCCOIwAITaqmwpkkQRxIVCJisow44hYPnFiGISpEJopYRRERQQyHGIFwMTghEMtDU4VcIbGFBfu1LMTkExZ6MKRPJFIIADs="); } }, citation : { id : "citation" , name : "Citation" , description : "Citer des posts" , init : function(){ var textarea = $("#newmessage") , btn = $("<img />", { title : "Citer ce post", src : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMEAYAAADkOZvdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAIcbAACL/wAA/6wAAIMCAACETAAA7XIAADqFAAAdxCRWn50AAAMoSURBVHjadJJvSJx1AMc/v98993h3HnLq6Q41lVKwGiGHmAwZQ4bEBW1sEENMgkSWuGMVDDlijIi4F3XY8EWMKBUnIccacdhYMlbYUasX4zj7I1K3FHGXXDc778/zPPf8elUNap/XXz58XnxFa9e8WvtWKZ6TXRwGcV40yMdBHFGn1IfYKsUlQuSYYYRJFuWbXKeHqHZRzspZO6EGZYR01dI2pJTS2yTCjInbxoQmUrJPRKGu6Nl1A9UJe8wOYjBFnDH2RYIx+tmWAyInblHnOCtSooteR0YWxaSwnC5N1/KO68actVwdK4xKnxwWDe6boiN01Z18XymX7ex1NoM8JbNyFEM0kyBGcf3E6Z5gGB+P4OlXP8gnxom6+/23moPMFTRrRV3mrsZRggwCm4ziAlHmJDPo6ydOB4JT6H8LWj+e6J7eAnGNNjEADt017vkD9JX6bxqTTDtna5719DEt3vF0essgVU5NiWkQWRETKRAf4aHrf9LiO/HfF0HLeIa8P4P7wmMHT8RB/+HQepsEdacmqr8I5h161QZofG8H1EmQy2JHngU2xKBKAJB62Fsqljr/jIEn7Tva9B7o4y3fde6D+ZTjosxC6RerUI1AOWcNWjmQak7GSIOdrAatAMgRe8Q+8t/gao8YNq/BwbY1XlmAB22l48URKCTLb1fuQnHXzFp7gIEHQKqgnbGHwPis3FKOQGXIiBgZSKczmQf5h8wL9iV9EqywmpEFMK8oH2FQtr1kS1CIT4Tx71y0Dsx/unZOKXrNrFEAsUgDcTB27x/fvgL3ayO+l87wSA69EV29Ogry9fpVvxccfe6wdxhEa8v81trnSinN8FQA8iwQA3uitHKwC6b3t1c2G8D0bb28eQ/4Sdn2VyAuuJZq3wVHsv6M/0fQIx3Pd8+BI9fYHjgGmgpZq2ZZNIkb+gs1uvpV+c3LlQSavOkxanfBGe94snsHzfGW7+vGVTR1u/Ja6RywrI6pJRCHa75wh4Abzo2aZVB+VafaQfzz08D8wdqXnEdDQ6p7wD4WISDPHu1Alh38wA57PAPsk0MC22SRQDsBAPoZgL8GAMXsSoEas11IAAAAAElFTkSuQmCC", click : function(){ var postContainer = $(this).parents(".msg") , isSelectedHTML = getSelection().toString() !== "" && (getSelection().focusNode.parentElement.className.match("JVCMaster_POST") || getSelection().focusNode.parentElement.className == "postContainer") , SelectedHTML_node = isSelectedHTML ? getSelection().focusNode.parentNode : '' , SelectedHTML = isSelectedHTML ? SelectedHTML_node.innerHTML : '' , SelectedHTML_isJVCMaster_POST = SelectedHTML_node.className && !!SelectedHTML_node.className.match("JVCMaster_POST") ; var citation = citationPermalink = citationDate = citationPseudo = citationPosplace = ""; if(isSelectedHTML){ citationPost = _.getSelectionHTML(); if(/<li class="ancre"><a href="([^"]*)">Lien permanent<\/a>/g.test(SelectedHTML)){ citationPermalink = /<li class="ancre"><a href="([^"]*)">Lien permanent<\/a>/g.exec(SelectedHTML).pop(); } else { citationPermalink = /<div class="CITATION_permalink" style="[^"]+"><a href="([^"]*)">/g.exec(SelectedHTML); citationPermalink = citationPermalink != null ? citationPermalink.pop() : ''; } if(/<li class="date">(Posté le \n[0-9]* [a-zéû]* [0-9]* à [0-9]{2}:[0-9]{2}:[0-9]{2})/g.test(SelectedHTML)){ citationDate = /<li class="date">(Posté le \n[0-9]* [a-zéû]* [0-9]* à [0-9]{2}:[0-9]{2}:[0-9]{2})/g.exec(SelectedHTML).pop(); } else { citationDate = /<div class="CITATION_date">(?:le )?([0-9]* [a-zéû]* [0-9]* à [0-9]{2}:[0-9]{2}:[0-9]{2})/g.exec(SelectedHTML); citationDate = citationDate != null ? citationDate.pop() : ''; } if(/<li class="pseudo">\n<strong>([^<]*)<\/strong>/g.test(SelectedHTML)){ citationPseudo = /<li class="pseudo">\n<strong>([^<]*)<\/strong>/g.exec(SelectedHTML).pop(); } else { citationPseudo = /<div class="CITATION_pseudo"><a.*?href="([^"]*?)".*?>([a-zA-Z0-9\-\]\[_]*)/g.exec(SelectedHTML); citationPseudo = citationPseudo != null ? citationPseudo.pop() : ''; } citationPost = _.getSelectionHTML(); if(SelectedHTML_isJVCMaster_POST){ var postContainer = $(SelectedHTML_node).parent(); citationPermalink = postContainer.find(".ancre a").attr("href"); citationDate = postContainer.find(".date").text(); citationPseudo = postContainer.find(".pseudo strong").text(); } } else { citationPermalink = postContainer.find(".ancre a").attr("href"); citationDate = postContainer.find(".date, .msg_infos").text(); citationPseudo = postContainer.find(".pseudo strong").text(); citationPost = postContainer.find(".post:eq(0), .msg_body:eq(0)").html(); } citation = ""; citationPermalink = $.trim(citationPermalink); citationDate = $.trim(citationDate).replace("Posté ", "").replace(/le \n/, ""); citationPseudo = $.trim(citationPseudo); citationPost = $.trim($.trim(citationPost).replace(/(\n)? *<br(?: \/)?> ?(\n)?/g, "\n").replace(/<img.*?alt="([^"]*?)".*?>|<a.*?href="([^"]*?)".*?>.*?<\/a>|<img.*?class="img_shack".*?>/gi, "$1 $2").replace(/>/g, ">").replace(/</g, "<").replace(/ /g, " ").replace(/&/g, "&").split("\n").join("\n| ")); if(citationPermalink != "") citation += "| " + citationPermalink + "\n"; citation += "| Ecrit par « " + citationPseudo + " », " + citationDate + "\n| « " + citationPost + " »\n\n> " textarea = $("#newmessage"); if(!textarea.is('*')){ _.LS_set("citation", citation); window.location.href = $(".bt_repondre").attr("href"); } else{ if(textarea.val() !== "" && textarea.val() !== "Ne postez pas d'insultes, évitez les majuscules, faites une recherche avant de poster pour voir si la question n'a pas déjà été posée...\n\nTout message d'incitation au piratage est strictement interdit et sera puni d'un bannissement.") textarea.val(textarea.val() + "\n\n" + citation); else textarea.val(citation); // Si on est sur un MP ou la page de réponse d'un topic ET que la valeur du textarea est vide if(($("#reception").is('*') || $(".revenir").is('*')) && textarea.val() === "") textarea.val(citation); } } }) ; _.setButton("BTN_CITATION", btn); if(textarea.is('*') && $(".revenir").is('*') && window.location.href.match("^http:\/\/www\.jeuxvideo\.com\/forums\/3")) textarea.focus(); if(textarea.is('*') && _.LS_get("citation")){ textarea.focus(); textarea.val(_.LS_get("citation")); _.LS_rm("citation"); } /* On ajoute du CSS pour les citations */ _.insertCSS(".JVCMaster_POST_CITATION .postContainer{background:#e4f5ff;border:1px solid #9ddbff;border-radius:6px 6px 0 0;box-shadow:0 0 10px rgba(0,0,0,0.2);margin:0 0 5px;padding:5px;position:relative} \ .JVCMaster_POST_CITATION .postContainer:first-child{margin-top : -5px} \ .JVCMaster_POST_CITATION .postContainer:gt(0){margin-top: 5px} \ .JVCMaster_POST_CITATION .postContainer .CITATION_pseudo,.JVCMaster_POST_CITATION .postContainer .CITATION_date,.JVCMaster_POST_CITATION .postContainer .CITATION_permalink{background:#cbecff;border:1px solid #9ddbff;height:13px;line-height:13px;padding:2px 5px;position:absolute} \ .JVCMaster_POST_CITATION .postContainer .CITATION_pseudo{border-radius:6px 0 6px 0;left:-1px;top:-1px} \ .JVCMaster_POST_CITATION .postContainer .CITATION_date{border-radius:0 6px 0 6px;color:#0c4568;right:-1px;top:-1px} \ .JVCMaster_POST_CITATION .postContainer .CITATION_permalink{border-radius:0 0 6px 6px;display:none;left:-1px;overflow:hidden;right:-1px;text-overflow:ellipsis;top:100%;white-space:nowrap} \ .JVCMaster_MSGBODY{width:720px;overflow:hidden;float:right;margin-top:8px;padding-top:10px;line-height:1.3em;background:url(http://image.jeuxvideo.com/css_img/defaut/sep_444.gif) repeat-x left top} \ .JVCMaster_MSGBODY .postContainer{width:98%} \ .JVCMaster_POST_CITATION a span{left:-9999em;letter-spacing:-1em;position:absolute} \ .JVCMaster_POST_CITATION a i{background:url(http://image.jeuxvideo.com/css_img/defaut/liens_tronq.png) right 3px no-repeat;font-style:normal;padding-right:19px} \ .JVCMaster_POST_CITATION a:hover i{background-position-y:-37px} \ "); $(".msg").find(".post:first, .msg_body:first").each(function(){ t = $(this); t.css("display", "none"); html = t.html(); html = html.replace(/(?:\| )+((?:Ecrit par « |Citation de )([a-zA-Z0-9_\-\[\]]*)(?: »)?(?:[^<]*))/g, '<div class="postContainer' + (t.attr("class") == "msg_body" ? " JVCMaster_MSGBODY" : '' ) + '">$1') .replace(/» ?\n? ?<br(?: ?\/)?>\n? ?(\| ?)*\n(\| ?)* ?<br( ?\/)?>(\| ?)*\n?(\| ?)*> ?/g, "</div>") .replace(/\| *<a href="([^"]*?)".+>.+<\/a> ?\n? (?:<br(?:\/ )?>(?:\| )*)?<div class="postContainer">/g, function(match, p1){ return '<div class="postContainer"><div class="CITATION_permalink"><a href=\'' + encodeURI(p1) + '\'>' + encodeURI(p1) + '</a></div>' }) .replace(/(<div class="postContainer(?: JVCMaster_MSGBODY)?">|<\/div>)(?:Ecrit par « |Citation de (?:")?)([a-zA-Z0-9_\-\[\]]*)(?: »?|(?:")?)? ?, *([^<]*)/gi, '$1<div class="CITATION_pseudo"><a href="http://www.jeuxvideo.com/profil/$2.html">$2</a></div><div class="CITATION_date">$3</div>') .replace(/ ?(<br(?: \/)?>)?\n? ?(?:\| )+(« (?:\| ?)?|« (?:\| ?)?)?/g, "<br>") .replace(/(<\/div>\n) ?<br(?: \/)?> ?/g, "$1"); t.before($("<li>", { "class" : "JVCMaster_POST_CITATION " + (t.attr("class") == "msg_body" ? "JVCMaster_MSGBODY" : "JVCMaster_POST" ) , html : html })); $(".JVCMaster_POST .postContainer").hover(function(){ $(this).find("> .CITATION_permalink").slideDown(100); }, function(){ $(this).find(".CITATION_permalink").slideUp(100); }); }) }, destroy : function(){ $(".JVCMaster_BTN_CITATION img").remove(); $(".JVCMaster_POST_CITATION").remove(); $(".msg").find(".post, .msg_body").show(); } }, hideposts : { id : "hideposts" , name : "HidePosts" , description : "Cacher des posts et les posts d'un pseudo" , init : function(){ $("div[id^=message]").find(".post").after($("<li/>", { "class" : "JVCMaster_POST JVCMaster_POST_HIDDENPOST" , html : "<b>JVCMaster</b> : <i>Ce message a été caché</i>" , css : { display : "none" } })); var postContainers = $(".msg") , topicContainers = $("#liste_topics tr:not(:first)") , hiddenPosts = JSON.parse(_.LS_get("hiddenposts") || "[]") , hiddenPostsPseudo = JSON.parse(_.LS_get("hiddenpostspseudo") || "[]"); // Timer, sinon, ".JVCMaster_POST_CITATION" ou autre n'apparaissent pas setTimeout(function(){ postContainers.each(function(){ var t = $(this); if(t.attr("id") === undefined) return; if(hiddenPosts.indexOf(t.attr("id").replace("message_", "")) !== -1 || hiddenPostsPseudo.indexOf(t.find(".pseudo strong").text().toLowerCase()) !== -1){ t.find(".post, .JVCMaster_POST").hide(); t.find(".JVCMaster_POST_HIDDENPOST").show(); } }); topicContainers.each(function(){ var t = $(this) , topicTitle = t.find("td:eq(1) a") , topicPseudo = t.find("td:last").prev().prev().text().toLowerCase() ; if(hiddenPostsPseudo.indexOf(topicPseudo) !== -1){ topicTitle.css("color", "#0C4568"); topicTitle.html("<b>JVCMaster</b> : <i style='font-weight:normal'>Ce topic a été caché</i>"); } }); }, 10); var btn = $("<img />", { title : "Cacher ce post" , src : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMEAYAAADkOZvdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAIcbAACL/wAA/6wAAIMCAACETAAA7XIAADqFAAAdxCRWn50AAALqSURBVHjaZJNfaFt1HMU/39+9jVmMXWVZCSOUIqPOMce1yKgjlDGCSh7GENEJfS4yREcp2odRhoziQzdKKaWKD2NIcVuZY5RZ1m4UQVHR0IcZNJSVlRpCrF0NaWju/f3xocM/23k7Lx8Oh3Nk5c/5eXBOBl0ngBr3TgBQ5DRgyUgC2HChXQe+UDXP5wafqKzc83+1s9Lhzria0TLjTfqHk3vlkgyri2G/rL5253lwbtdc4vwzveCOmYLOELpbxMhRk6Scl+OscY6q9wYFWZakV+eqdKp2r8ud84NYqqXf3TD3o3TzOdMnS5L1Fne94KsZtUoZ7Mcmq0dABqRLDYPqlhEV4KfsK7r2OwEAPxP8dHDm3u4X6Wk/lWqV21JOKhnQadHeqHc5Hqj8Vs/W8b/KuqQkS16OAd1USIMMy3uSJMYEQ3KUNh7TnR9/+EDnOFhd3QjcIjlOyZyEjOpZhlyaVYU3LDeJK0blVVcCKagjsgm08r7MAhm5Lfd5QitfrY3ZLGx9vz0mQ2DfpEII5sNwSbeDm4oWwlZQLiNJAAnUWa8I1GjIdSBglMUnwa6PTmpgfFMyk9B8t3GzYWF7rHm9PgBNq5ei78Bn0OwH0EFkbQrkS5VoKYNUmabjEe3hv+Ao32wLp6Fxpf5Oswjbl7eL7iq41+kD8ENvA8DXg3YEINLhbFgFz6o12wV20sT050Dv/xObs/a0XQC9bK6xAAaTBlCh1wDA5wCA78quFyDcH30TzYHkOBABpmhTTAKwjPtPFTl3BMC9bS888hUAFnZ+wMt07/AP0QVgfdsNwFE3AWCmbQXg1uanBRH49pfCSwCZqfQiQOzZpz4CMCfdPgDpc28BcIlxACnt+fppINVy1/8M3EozH5YAnzoVgPp4ox/w/+h9OAH4rm0n8Z5kWwIgsRzPA3hT3iGA+N1YHkD+mdFv89eAM8SIgXuAJgHkWWcT6KBMFUixjgYOs0ENUFQJAUWaOAA9dAL8PQB4PTdp3o3mAAAAAABJRU5ErkJggg==" , click : function(){ var postContainer = $(this).parents(".msg") , id = postContainer.attr("id").replace("message_", "") , hiddenPosts = JSON.parse(_.LS_get("hiddenposts") || "[]") ; if(hiddenPosts.indexOf(id) === -1){ postContainer.find(".post, .JVCMaster_POST").slideUp(300); postContainer.find(".JVCMaster_POST_HIDDENPOST").slideDown(300); hiddenPosts.push(id); } else{ hiddenPosts.splice(hiddenPosts.indexOf(id), 1); postContainer.find(".JVCMaster_POST_HIDDENPOST").slideUp(300); if(postContainer.find(".JVCMaster_POST_CITATION").is('*')) postContainer.find(".JVCMaster_POST_CITATION").slideDown(300); else postContainer.find(".post").slideDown(300); } _.LS_set("hiddenposts", JSON.stringify($.unique(hiddenPosts))); } }); _.setButton("BTN_HIDDENPOST", bt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h49TMjnFyUXzc3SC+YT40dva6/gpSDX5FzyBtEmQYYCOvC6yksEttNe3lwGTpp1tuDBbl+vOg11c1avCoH889Hily1rjQ0MoNBocwuHIBBnHQ/YzW0cIMQ6QSBCDg9QZCUAKBpMEYBWbIC/BwCMhjqxWSOhnwAAAABJRU5ErkJggg==" , click : function(){ var postContainer = $(this).parents(".msg") , pseudoToHide = postContainer.find(".pseudo strong").text().toLowerCase() , hiddenPostsPseudo = JSON.parse(_.LS_get("hiddenpostspseudo") || "[]") // Sinon, dans la boucle, ça renvoit true/false 1 fois sur 2 , postsAreToHide = (hiddenPostsPseudo.indexOf(pseudoToHide) === -1 ? true : false) ; postContainers.each(function(){ var t = $(this) , pseudo = t.find(".pseudo strong").text().toLowerCase() ; if(pseudoToHide == pseudo){ if(postsAreToHide){ t.find(".post, .JVCMaster_POST").slideUp(300); t.find(".JVCMaster_POST_HIDDENPOST").slideDown(300); hiddenPostsPseudo.push(pseudoToHide); } else{ t.find(".JVCMaster_POST").slideUp(300); if(t.find(".JVCMaster_POST_CITATION").is('*')) t.find(".JVCMaster_POST_CITATION").slideDown(300); else t.find(".post").slideDown(300); hiddenPostsPseudo.splice(hiddenPostsPseudo.indexOf(pseudoToHide), 1); } } }) _.LS_set("hiddenpostspseudo", JSON.stringify($.unique(hiddenPostsPseudo))); } }); _.setButton("BTN_HIDDENPOSTSPSEUDO", btn, false); }, destroy : function(){ $(".JVCMaster_BTN_HIDDENPOST img").remove(); $(".JVCMaster_BTN_HIDDENPOSTSPSEUDO img").remove(); } }, friendlist : { id : "friendlist", name : "Liste d'amis", description : "Gerez une liste d'amis", init : function(){ _.insertCSS("span.JVCMaster_colorView{border:1px solid;cursor:pointer;display:inline-block;height:10px;margin-right:3px;vertical-align:middle;width:10px} \ button.JVCMaster_delColor{height:16px;line-height:11px;margin-right:4px;padding:0;vertical-align:middle;width:16px} \ "); function showFarbtastic(color, pseudo, friends, callback){ $.colorbox({ height : "380px", width : "330px", onComplete : function(){ $("#JVCMaster_BTN_ValidateColor").click(function(){ var newColor = $("#Farbtastic_color").val(); if(newColor.match(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)){ friends[pseudo.toLowerCase()] = {pseudo : pseudo, color : newColor }; _.LS_set("friends", JSON.stringify(friends)); $.colorbox.close(); if(callback) callback(newColor); } else { alert("Merci de rentrer une couleur héxa-decimale valide!"); } }); }, html : '<h2 style="font-weight : normal; height:50px;"><b>JVCMaster<b> : choississez une couleur pour votre ami <b>' + encodeURI(pseudo) + '</b></h2><input type="text" id="Farbtastic_color" name="color" value="' + encodeURI(color) + '" /><div id="Farbtastic_colorpicker"></div><button id="JVCMaster_BTN_ValidateColor">Valider</button>' }); $("#Farbtastic_colorpicker").farbtastic("#Farbtastic_color"); } (colorizePseudos = function(){ var friends = JSON.parse(_.LS_get("friends") || "{}") , pseudos = $(".pseudo strong, td.pseudo"); pseudos.each(function(){ var t = $(this) , pseudo = $.trim(t.text().toLowerCase()) ; if(friends[pseudo] !== undefined){ t.css("color", friends[pseudo]["color"]); t.css("font-weight", "bold"); t.attr("data-color", friends[pseudo]["color"]); } else{ if((t.attr("class") && t.attr("class") == "moderateur" || t.attr("class") && t.attr("class").match(/topic_mod/))){ t.css("color", "#C00"); t.attr("data-color", "#C00"); } else{ t.css("color", "#000"); t.attr("data-color", "#000"); } } }) })(); // Farbtastic Color Picker 1.2 - © 2008 Steven Wittens jQuery.fn.farbtastic=function(a){$.farbtastic(this,a);return this};jQuery.farbtastic=function(a,b){var a=$(a).get(0);return a.farbtastic||(a.farbtastic=new jQuery._farbtastic(a,b))};jQuery._farbtastic=function(a,d){var b=this;$(a).html('<div class="farbtastic"><div class="color"></div><div class="wheel"></div><div class="overlay"></div><div class="h-marker marker"></div><div class="sl-marker marker"></div></div>');var c=$(".farbtastic",a);b.wheel=$(".wheel",a).get(0);b.radius=84;b.square=100;b.width=194;if(navigator.appVersion.match(/MSIE [0-6]\./)){$("*",c).each(function(){if(this.currentStyle.backgroundImage!="none"){var e=this.currentStyle.backgroundImage;e=this.currentStyle.backgroundImage.substring(5,e.length-2);$(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+e+"')"})}})}b.linkTo=function(e){if(typeof b.callback=="object"){$(b.callback).unbind("keyup",b.updateValue)}b.color=null;if(typeof e=="function"){b.callback=e}else{if(typeof e=="object"||typeof e=="string"){b.callback=$(e);b.callback.bind("keyup",b.updateValue);if(b.callback.get(0).value){b.setColor(b.callback.get(0).value)}}}return this};b.updateValue=function(e){if(this.value&&this.value!=b.color){b.setColor(this.value)}};b.setColor=function(e){var f=b.unpack(e);if(b.color!=e&&f){b.color=e;b.rgb=f;b.hsl=b.RGBToHSL(b.rgb);b.updateDisplay()}return this};b.setHSL=function(e){b.hsl=e;b.rgb=b.HSLToRGB(e);b.color=b.pack(b.rgb);b.updateDisplay();return this};b.widgetCoords=function(i){var g,m;var h=i.target||i.srcElement;var f=b.wheel;if(typeof i.offsetX!="undefined"){var l={x:i.offsetX,y:i.offsetY};var j=h;while(j){j.mouseX=l.x;j.mouseY=l.y;l.x+=j.offsetLeft;l.y+=j.offsetTop;j=j.offsetParent}var j=f;var k={x:0,y:0};while(j){if(typeof j.mouseX!="undefined"){g=j.mouseX-k.x;m=j.mouseY-k.y;break}k.x+=j.offsetLeft;k.y+=j.offsetTop;j=j.offsetParent}j=h;while(j){j.mouseX=undefined;j.mouseY=undefined;j=j.offsetParent}}else{var l=b.absolutePosition(f);g=(i.pageX||0*(i.clientX+$("html").get(0).scrollLeft))-l.x;m=(i.pageY||0*(i.clientY+$("html").get(0).scrollTop))-l.y}return{x:g-b.width/2,y:m-b.width/2}};b.mousedown=function(e){if(!document.dragging){$(document).bind("mousemove",b.mousemove).bind("mouseup",b.mouseup);document.dragging=true}var f=b.widgetCoords(e);b.circleDrag=Math.max(Math.abs(f.x),Math.abs(f.y))*2>b.square;b.mousemove(e);return false};b.mousemove=function(h){var i=b.widgetCoords(h);if(b.circleDrag){var g=Math.atan2(i.x,-i.y)/6.28;if(g<0){g+=1}b.setHSL([g,b.hsl[1],b.hsl[2]])}else{var f=Math.max(0,Math.min(1,-(i.x/b.square)+0.5));var e=Math.max(0,Math.min(1,-(i.y/b.square)+0.5));b.setHSL([b.hsl[0],f,e])}return false};b.mouseup=function(){$(document).unbind("mousemove",b.mousemove);$(document).unbind("mouseup",b.mouseup);document.dragging=false};b.updateDisplay=function(){var e=b.hsl[0]*6.28;$(".h-marker",c).css({left:Math.round(Math.sin(e)*b.radius+b.width/2)+"px",top:Math.round(-Math.cos(e)*b.radius+b.width/2)+"px"});$(".sl-marker",c).css({left:Math.round(b.square*(0.5-b.hsl[1])+b.width/2)+"px",top:Math.round(b.square*(0.5-b.hsl[2])+b.width/2)+"px"});$(".color",c).css("backgroundColor",b.pack(b.HSLToRGB([b.hsl[0],1,0.5])));if(typeof b.callback=="object"){$(b.callback).css({backgroundColor:b.color,color:b.hsl[2]>0.5?"#000":"#fff"});$(b.callback).each(function(){if(this.value&&this.value!=b.color){this.value=b.color}})}else{if(typeof b.callback=="function"){b.callback.call(b,b.color)}}};b.absolutePosition=function(f){var g={x:f.offsetLeft,y:f.offsetTop};if(f.offsetParent){var e=b.absolutePosition(f.offsetParent);g.x+=e.x;g.y+=e.y}return g};b.pack=function(f){var i=Math.round(f[0]*255);var h=Math.round(f[1]*255);var e=Math.round(f[2]*255);return"#"+(i<16?"0":"")+i.toString(16)+(h<16?"0":"")+h.toString(16)+(e<16?"0":"")+e.toString(16)};b.unpack=function(e){if(e.length==7){return[parseInt("0x"+e.substring(1,3))/255,parseInt("0x"+e.substring(3,5))/255,parseInt("0x"+e.substring(5,7))/255]}else{if(e.length==4){return[parseInt("0x"+e.substring(1,2))/15,parseInt("0x"+e.substring(2,3))/15,parseInt("0x"+e.substring(3,4))/15]}}};b.HSLToRGB=function(m){var o,n,e,j,k;var i=m[0],p=m[1],f=m[2];n=(f<=0.5)?f*(p+1):f+p-f*p;o=f*2-n;return[this.hueToRGB(o,n,i+0.33333),this.hueToRGB(o,n,i),this.hueToRGB(o,n,i-0.33333)]};b.hueToRGB=function(f,e,g){g=(g<0)?g+1:((g>1)?g-1:g);if(g*6<1){return f+(e-f)*g*6}if(g*2<1){return e}if(g*3<2){return f+(e-f)*(0.66666-g)*6}return f};b.RGBToHSL=function(m){var i,o,p,j,q,f;var e=m[0],k=m[1],n=m[2];i=Math.min(e,Math.min(k,n));o=Math.max(e,Math.max(k,n));p=o-i;f=(i+o)/2;q=0;if(f>0&&f<1){q=p/(f<0.5?(2*f):(2-2*f))}j=0;if(p>0){if(o==e&&o!=k){j+=(k-n)/p}if(o==k&&o!=n){j+=(2+(n-e)/p)}if(o==n&&o!=e){j+=(4+(e-k)/p)}j/=6}return[j,q,f]};$("*",c).mousedown(b.mousedown);b.setColor("#000000");if(d){b.linkTo(d)}}; var FarbtasticWheel = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMMAAADDCAYAAAA/f6WqAAAAB3RJTUUH1gcOCDIojJpTggAALYlJREFUeNrtnXmYHUW58H9V1WdmMtlDQtijSSDKorLovRAWAwqyiBJugoCK6CfqRdSLityLkIsiF9SIyqIsRhZBlu+TK0JEQBBFUEAEZQ9LgkCABBPIJJnMdFd9f5wzM2d6qrqr+/SZmUy6nqef06e6z9Ld76/epd6qgrKUpSxlKUtZylKWspSlLGVxF1HeguKLAQmTp0JlOuitQU+BaHJ105NBj4JoDEQKolYwoxAmQtKBxKBYi6ITxWokK1GsQPI6ilcQLEWxjBfpFGDKu13CMBwEXsA2bTB+BzA7Qbgz6B0hmgl6GugxEAG6tkX0va/fr70XBhQgqb72bLb3kgjFy0ieQ/EUiscQPErAo/yNlaL6pWUpYWia8Cv4l21BzwYzG6K9IHo7mBarcPcTfG0BwROGNED67xsUy5E8gOSPBNyD5mH+VGqREoaGhX+/KSD3h+j9EL231uILt+AnaYACYcgCiKADxZ+R3IHgNlp4jFvpKuEoYUgBYL8A2mYB80AfDGZXi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x6SpdiHe27hJn5ixW76536KDLsjGBKCkRXXQHHgMiu29Hvt/z+I3xdBUTX+JUB7Lxr92eumLf9gQyBI6n/t7OvaCDjitgkWKWNIQWFsWzbHWuMZ1Ii5aMKZtdXGYsCAVWgVePceeLIzD8jpcN6hiD4B2HPIScLWAdpp8Ywfab7FHaynWVnBe5U9oQeFZnZa2OW6NUYPogck1EKLzIHG1LbZF55SkWo3zzmFeTbekpl4ivaT43dATyuwOXr5rEifFTasvPvwt5oIPnufkzfEZES5Q9mwUGWoSDWYOWoAnfnOCp8XSnQyfmsYey4QN+x2qe84sduMIY7PsMA/Ie/z0t9/gHKOXPlZc81WwAAAABJRU5ErkJggg==" _.insertCSS(".farbtastic{position: relative;margin : 0 auto;text-align : center} \ .farbtastic *{position: absolute;cursor: crosshair} \ .farbtastic, .farbtastic .wheel{width: 195px;height: 195px} \ .farbtastic .color, .farbtastic .overlay{top: 47px;left: 47px;width: 101px;height: 101px} \ .farbtastic .wheel{background: url(" + FarbtasticWheel + ") no-repeat;width: 195px;height: 195px} \ .farbtastic .overlay{background: url(" + FarbtasticMask + ") no-repeat} \ .farbtastic .marker{width: 17px;height: 17px;margin: -8px 0 0 -8px;overflow: hidden;background: url(" + FarbtasticMarker + ") no-repeat} \ "); delete FarbtasticWheel, FarbtasticMarker, FarbtasticMask; var BTN_FRIENDLIST = $("<a/>", { id : "JVCMaster_BTN_FRIENDLIST", text : "JVCMaster : Liste d'amis", css : { cursor : "pointer"}, click : function(){ var html = '<div class="JVCMaster_colorboxHTML" style="min-width : 300px;" class="forums hp_forums"><div class="bloc1"><h3 class="titre_bloc" style="min-width:200px"><span>JVCMaster : Liste d\'amis</span></h3><div class="bloc_inner"><span id="JVCMaster_MSG_notFriends">Vous n\'avez pas d\'amis. <img src="http://image.jeuxvideo.com/smileys_img/41.gif" alt=":rire2:"></span><ul class="liste_liens">' , friends = JSON.parse(_.LS_get("friends") || "{}") ; var haveAFriend = false; $.each(friends, function(pseudo){ haveAFriend = true; html += "<li data-pseudo='" + _.convertBadChars(friends[pseudo]["pseudo"]) + "' data-color='" + _.convertBadChars(friends[pseudo]["color"]) + "'><button class='JVCMaster_delColor'>x</button><span class='JVCMaster_colorView' style='background-color : " + _.convertBadChars(friends[pseudo]["color"]) + "'></span>" + _.convertBadChars(friends[pseudo]["pseudo"]) + "</li>" }); html += "</ul></div></div>"; $.colorbox({ html : html, onComplete : function(){ if(haveAFriend) $("#JVCMaster_MSG_notFriends").hide(); else $("#JVCMaster_MSG_notFriends").show(); $(".JVCMaster_colorView").live("click", function(){ var t = $(this); showFarbtastic(t.parent().attr("data-color"), t.parent().attr("data-pseudo"), JSON.parse(_.LS_get("friends") || "{}")); }); $(".JVCMaster_delColor").live("click", function(){ var t = $(this); t.parent().remove(); delete friends[t.parent().attr("data-pseudo").toLowerCase()]; _.LS_set("friends", JSON.stringify(friends)); colorizePseudos(); }); } }); } }); BTN_FRIENDLIST.appendTo($("<div>").prependTo($("#connexion"))); setTimeout(function(){ BTN_FRIENDLIST.appendTo($("<li>").prependTo($("div#log ul"))); }, 1001); var pseudos = $(".pseudo strong"); pseudos.css("cursor", "pointer"); pseudos.attr("title", "Ajouter ce pseudo à mes amis"); pseudos.live("click", function(){ var t = $(this); showFarbtastic(t.attr("data-color"), t.text(), JSON.parse(_.LS_get("friends") || "{}"), function(color){ colorizePseudos(); }); }); }, destroy : function(){ $("#JVCMaster_BTN_FRIENDLIST").parent().remove(); var pseudos = $(".pseudo strong") , pseudosModo = $(".pseudo strong.moderateur, .pseudo.topic_mod") ; pseudos.css("color", "#000"); pseudos.attr("data-color", "#000"); pseudosModo.css("color", "#C00"); pseudosModo.attr("data-color", "#C00"); } }, shortcuts : { id : "shortcuts", name : "Raccourcis", description : "Des raccourcis sont ajoutés", init : function(){ if(_.onMp() || _.onOverviewOfAPost() || !window.location.href.match("^http:\/\/www\.jeuxvideo\.com\/forums")) return; _.insertCSS(".JVCMaster_BTN_MP span{cursor : pointer;display: inline-block;height: 10px;background: url(http://image.jeuxvideo.com/css_img/defaut/mprives/enveloppe.png) no-repeat top right;width: 16px}"); // Bouton MP $(".pseudo strong").each(function(){ var pseudo = $(this); var btn = $("<a/>", { title : "Envoyer un mp à " + pseudo.text(), href : "http://www.jeuxvideo.com/messages-prives/nouveau.php?all_dest=" + pseudo.text(), css : { background: "url(http://image.jeuxvideo.com/css_img/defaut/mprives/enveloppe.png) no-repeat top right" , width : "16px" , display : "inline-block" , height : "10px" } }); btn.appendTo(pseudo.parents(".msg").find(".JVCMaster_BTN_MP")); }); // Derniere page lors du clic gauche sur l'icône du topic $("#liste_topics tr:not(:first)").each(function(){ var t = $(this) , icon = t.find("td img") , href = t.find("td:eq(1) a").attr("href") , nbMessage = parseInt(t.find("td:last").prev().text()) + 1 ; icon.wrap($("<a/>", { href : href.replace(/(http:\/\/www.jeuxvideo.com\/forums\/|http:\/\/.*\.forumjv.com\/)([0-9]+\-)([0-9]+\-)([0-9]+\-)([0-9]+\-)/, "$11-$3$4" + Math.ceil(nbMessage / 20) + '-'), title : "Acceder à la dernière page de ce topic", // Bug sur les forumJV css : { display : "inline-block", width : "16px" } }).bind("contextmenu", function(e){ // Clic droit, alors on va sur la page de réponse window.open(href.replace(/(http:\/\/www.jeuxvideo.com\/forums\/|http:\/\/.*\.forumjv.com\/)([0-9]+\-)([0-9]+\-)([0-9]+\-)([0-9]+\-)/, "$13-$3$4" + Math.ceil(nbMessage / 20) + '-')); return false; })); }); // Permet de choisir la page en rentrant un numéro de page dans un input[type=text] _.insertCSS(".JVCMaster_FORM_navigatePage{ text-align : center !important} \ .JVCMaster_FORM_navigatePage input[type=text]{ height : 13px; vertical-align : top}"); _.scripts.quicknavigation.insertLoadingMessage(); var formNavigatePage = $("<form>", { "class" : "JVCMaster_FORM_navigatePage" }); formNavigatePage.append($("<input>", { type : "image" , src : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAAARCAYAAADuf5O3AAAABGdBTUEAAK/INwWK6QAAAAlwSFlzAAALEAAAC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KxJ95pCexcpykFMesbLJjDGrjy+Dv0rn82NFAKZv379qppQvp8kI6kKoAG5xgsUPxto0+RJoTmPSj6KmdaSW5fCx9B6T7aQ23uag74JPocHc/SYl3C2RIISmdUSyrUnoSd2JviNVAPFZ1MpNJciN5+LLaTrUuTi5PZWDmkO+qb+gTSf96HXsyUSFMgUoeWQK8Rvuhy8//8Zub2VQ7pWvcv1MJ3P9b46dNhvFGJzxblAvHQAAAAASUVORK5CYII=" })); formNavigatePage.append($("<input>", { type : "text" , size : "5" , value : window.location.href.match(/(http:\/\/www.jeuxvideo.com\/forums\/|http:\/\/.*\.forumjv.com\/)([0-9]+\-)([0-9]+\-)([0-9]+\-)([0-9]+)/)[5] })); formNavigatePage.submit(function(e){ var pageNumber = $(this).find("input[type=text]").val() , pagesNumber = $(".pagination:first").find("a, strong").filter(":last") ; if(pagesNumber.text() === "»") pagesNumber = pagesNumber.prev(); pagesNumber = pagesNumber.text(); if(_.isPositiveInteger(pagesNumber) && !!(pageNumber = parseInt(pageNumber, 10)) && pageNumber >= 1 && pageNumber <= pagesNumber){ var pageUrl = window.location.href.replace(/(http:\/\/www.jeuxvideo.com\/forums\/|http:\/\/.*\.forumjv.com\/)([0-9]+\-)([0-9]+\-)([0-9]+\-)([0-9]+\-)/, "$11-$3$4" + pageNumber + '-'); _.scripts.quicknavigation.navigatePage(pageUrl); } else { alert("Veuillez entrer un nombre correct"); } e.preventDefault(); }); $(".pagination").after(formNavigatePage); // Lien vers les statistiques du forum _.insertCSS("#JVCMaster_SPAN_forumStatistics{ color:white; position: static; } \ #JVCMaster_SPAN_forumStatistics a{ color : #000}"); $("h2.titre_page").next().children().filter(":first").append($("<span>", { id : "JVCMaster_SPAN_forumStatistics" , html : ' - <a href="http://jvstats.forum-stats.org/stats/inflate.php?num=' + window.location.href.match(/(http:\/\/www.jeuxvideo.com\/forums\/|http:\/\/.*\.forumjv.com\/)([0-9]+\-)([0-9]+)\-([0-9]+\-)([0-9]+)/)[3] + '">Statistiques du forum</a>' })); }, destroy : function(){ $(".JVCMaster_BTN_MP a").remove(); $("#JVCMaster_SPAN_forumStatistics").remove(); } }, showcdv : { id : "showcdv", name : "Show CDV", description : "Affiche la CDV dans une lightbox", init : function(){ $("a[target=profil], .pseudo > a, .CITATION_pseudo a").click(function(e){ var url = $(this).attr("href"); $.colorbox({ iframe : true , href : $(this).attr("href") , width : "830px" , title : "<a href='" + url + "' style='overflow: hidden;text-overflow: ellipsis;white-space: nowrap'>" + url + "</a>" , height : "81%" , onComplete : function(){ // Le temps que le DOM s'initialise setTimeout(function(){ $("#cboxLoadedContent iframe").on("load", function(){ var tFrame = $(this) , tabs = tFrame.contents().find("#onglets") ; tabs.find("li").click(function(e){ var t = $(this); if(t.find('a').is('*')) tFrame.attr("src", t.find('a').attr("href")); return false; }); }); }, 20); } }); return false; }) }, destroy : function(){ $("a[target=profil], .pseudo > a, .CITATION_pseudo a").unbind("click"); } }, hightlightpemt : { id : "hightlightpemt", name : "Surlign'PEMT", description : "Les posts \"PEMT\" sont surlignés", init : function(){ _.insertCSS(".JVCMaster_PEMT_time{ font-size : 11px}"); var formatDate = function(date){ if(!date.is('*')) return; var match = date.text().match("([0-9]*[a-z]* [a-zûé]* [0-9]{4} à [0-9]{2}:[0-9]{2}:[0-9]{2})"); return (match == null) ? false : match[1]} , dates = $(".date"); dates.each(function(k){ var date = $(dates[k]) , prevDate = $(dates[k - 1]) ; if(formatDate(date) == formatDate(prevDate)){ date.html(date.html().replace(/([0-9]{2}:[0-9]{2}:[0-9]{2})/g, "<span class='JVCMaster_PEMT_time'>$1</span>")); prevDate.html(prevDate.html().replace(/([0-9]{2}:[0-9]{2}:[0-9]{2})/g, "<span class='JVCMaster_PEMT_time'>$1</span>")); } }); }, destroy : function(){ $(".date").each(function(){ var date = $(this); date.html(date.html().replace(/(<span class="JVCMaster_PEMT_time">)*<span class="JVCMaster_PEMT_time">([0-9]{2}:[0-9]{2}:[0-9]{2})<\/span>(<\/span>)*/g, "$2")); }) } }, hightlightpermapost : { id : "hightlightpermapost", name : "Surlign'perma-post", description : "Les posts \"permanents\" sont surlignés", init : function(){ var hash = window.location.hash; scrollTo = function(el){el = $(el);if(el.is('*')){ el.addClass("JVCMaster_highlightedPost"); $("body").animate({ scrollTop : el.offset().top - 50 }, 500, function(){ el.stop().animate({ backgroundColor : "#FFF9D0" }, 500) }); }} if(hash !== "" && !!hash.match(/^\#message_[0-9]+$/) && hash !== "#last_msg"){ setTimeout(function(){ scrollTo(hash); }, 100); } $(".ancre a").live("click", function(e){ var t = $(this) , href = t.attr("href").match("(#.*)$")[0] , post = href ; if($(post).is('*')){ var highlightedPost = $('.JVCMaster_highlightedPost'); highlightedPost.animate({ backgroundColor : "#EFF4FC" }, 200); highlightedPost.removeClass("JVCMaster_highlightedPost"); scrollTo(post); } }); }, destroy : function(){ var highlightedPost = $('.JVCMaster_highlightedPost'); highlightedPost.css("backgroundColor", "").removeClass("JVCMaster_highlightedPost"); $(".ancre a").unbind("click"); } }, favoritestopics : { id : "favoritestopics", name : "Topics préférés", description : "Epinglez vos topics préférés", init : function(){ if(!window.location.href.match("^http:\/\/www\.jeuxvideo\.com\/forums")) return; _.insertCSS("#JVCMaster_FavoritesTopics li{position:relative} \ #JVCMaster_FavoritesTopics li .JVCMaster_BTN_RMFAVORITESTOPIC{background:url(http://image.jeuxvideo.com/css_img/defaut/bt_forum_supp_pref.png) no-repeat top left;cursor:pointer;display:none;height:10px;position:absolute;right:0;top:2px;width:10px} \ #JVCMaster_FavoritesTopics li a:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:270px;white-space:nowrap} \ #JVCMaster_FavoritesTopics li:hover .JVCMaster_BTN_RMFAVORITESTOPIC{display:inline-block} \ #JVCMaster_FavoritesTopics .JVCMaster_BTN_RMFAVORITESTOPIC:hover{background-position:bottom left} \ "); html = "<h3 class=\"titre_bloc\"><span>Mes topics préférés</span></h3><div class=\"bloc_inner\"><span id=\"JVCMaster_MSG_notFavTopics\">Vous n'avez pas encore choisi de topics.</span><ul class=\"liste_liens\"></ul></div>" // Box en dessous des forums préférés $("div.bloc3:first").after( $("<div>", { id : "JVCMaster_FavoritesTopics", "class" : "bloc3", html : html }) ); (listFavoritesTopics = function(){ var favoritesTopics = JSON.parse(_.LS_get("favoritesTopics") || "{}"); $("#JVCMaster_MSG_notFavTopics").show(); $("#JVCMaster_FavoritesTopics ul").show(0, function(){ $(this).find("li").remove(); for(topic in favoritesTopics){ $("#JVCMaster_MSG_notFavTopics").hide(); var split = topic.split("|||") , forumName = split[0] ; split.shift(); var topicName = split.join("|||") , topicUrl = favoritesTopics[topic]["topicUrl"] ; $("<a/>", { href : topicUrl.replace(/(<|>)/g, function(match, p1){ return _.convertBadChars(p1)}) , title : topicName.replace(/(<|>)/g, function(match, p1){ return _.convertBadChars(p1)}) , html : "<b class='JVCMaster_FavoritesTopics_forumName'>" + forumName.replace(/(<|>)/g, function(match, p1){ return _.convertBadChars(p1)}) + "</b> : <span class='JVCMaster_FavoritesTopics_topicName'>" + topicName.replace(/(<|>)/g, function(match, p1){ return _.convertBadChars(p1)}) + "</span>" }).after($("<a/>", { "class" : "JVCMaster_BTN_RMFAVORITESTOPIC", click : function(){ var t = $(this) , forumName = t.prev().find(".JVCMaster_FavoritesTopics_forumName").text() , topicName = t.prev().find(".JVCMaster_FavoritesTopics_topicName").text() ; delete favoritesTopics[forumName + "|||" + topicName]; _.LS_set("favoritesTopics", JSON.stringify(_.sortObject(favoritesTopics))); listFavoritesTopics(); } })).appendTo($("<li>").appendTo("#JVCMaster_FavoritesTopics ul")); } $("#JVCMaster_FavoritesTopics ul").delay(100).slideDown(250); }); })(); $("div.bloc_forum div.bloc_inner").css("textAlign", "center"); // On règle les quelques bugs d"alignement $("div.bloc_forum form").css("textAlign", "left"); $("div.bloc_forum td.nouveau, div.bloc_forum td.navig_prec").css("textAlign", "left"); // On insère le petit bouton à côté des titres du topic $("div.bloc_forum h1.sujet, div.bloc_forum h4.sujet").css({ display : "inline-block", verticalAlign : "middle" }).after( $("<img>", { "class" : "JVCMaster_BTN_FAVORITESTOPIC", title : "Epingler ce topics à vos topics préférés", src : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAIAQMAAAARA0f2AAAABlBMVEX///+ZzADAT8hDAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcCBsMAieAZsMmAAAAGklEQVQI12MoZ2D43wBF9QwMdgwMMgwMHAwAXZcF1pKKg9EAAAAASUVORK5CYII=", css : { cursor : "pointer", marginLeft : "5px", }, title : "JVCMaster : ajouter ce topic à vos topics favoris", click : function(){ var favoritesTopics = JSON.parse(_.LS_get("favoritesTopics") || "{}") , topicUrl = location.href.replace(/(http:\/\/www.jeuxvideo.com\/forums\/)(?:[0-9])-((?:[0-9]*)-(?:[0-9]*)-)(?:[0-9]*)-(.*)(#form_post)?/g, "$11-$21-$3") , topicName = $(".bloc_forum .sujet:first").text() , topicName = $.trim(topicName.substr(10).substr(0, topicName.length - 12)) , forumName = $.trim($(".bloc_forum h3:first").html().replace(/<span class="txt">Forum : <\/span>([^<]*)(<span id="JVCMaster_SPAN_forumStatistics">.*<\/span>)?/, "$1")) ; favoritesTopics[forumName + "|||" + topicName] = { topicUrl : topicUrl } _.LS_set("favoritesTopics", JSON.stringify(_.sortObject(favoritesTopics))); listFavoritesTopics(); } }) ); }, destroy : function(){ $("#JVCMaster_FavoritesTopics").remove(); $(".JVCMaster_BTN_FAVORITESTOPIC").remove(); } }, visionoelshack : { id : "visionoelshack", name : "Visionneuse NoelShack", description : "Visionner directement les ressources hébergées sur NoelShack", init : function(){ setTimeout(function(){ var $links = $("div[id^=message]").find("li:eq(2)").find("a[href^=http\\:\\/\\/www\\.noelshack\\.com], a[href^=http\\:\\/\\/image\\.noelshack\\.com]"); $links.each(function(){ var t = $(this); t.attr("data-jvcmaster-visionoelshack", t.parents(".msg").attr("id").replace("message_", "")); }); $("[data-jvcmaster-visionoelshack]").each(function(){ var t = $(this) , tParent = t.parents(".msg") , parentId = t.attr("data-jvcmaster-visionoelshack") , pageUrl = t.attr("href") , resUrl = pageUrl.replace(/http:\/\/www\.noelshack.com\/([0-9]{4})\-([0-9]*)\-([0-9]*)\-(.*)/, "http://image.noelshack.com/fichiers/$1/$2/$3-$4") , params = { photo : true , href : resUrl , title : "<a href='" + resUrl + "' style='overflow: hidden;text-overflow: ellipsis;white-space: nowrap'>Lien</a>" , maxHeight : "95%" , maxWidth : "95%" , rel : parentId } ; if(resUrl.match(/\.swf$/)){ params["iframe"] = true; params["innerWidth"] = "50%"; params["innerHeight"] = "60%"; delete params["photo"], params["maxHeight"], params["maxWidth"]; } t.colorbox(params); }); }, 10); }, destroy : function(){ $("div[id^=message]").find("li:eq(2)").find("a[href^=http\\:\\/\\/www\\.noelshack\\.com], a[href^=http\\:\\/\\/image\\.noelshack\\.com]").unbind("click"); } }, quicknavigation : { id : "quicknavigation", name : "Quick Navigation", description : "Naviguez d'une façon plus rapide", init : function(){ if(window.location.href.match("^http:\/\/www\.jeuxvideo\.com\/forums")){ _.scripts.quicknavigation.insertLoadingMessage(); $(".pagination a, .bt_rafraichir:first, .bt_rafraichir:last").live("click", function(e){ if(e.handled === true) return; var t = $(this) , pos = document.body.scrollTop ; _.scripts.quicknavigation.navigatePage($(this).attr("href"), function(){ if(t.attr("class") == "bt_rafraichir") $("body").animate({scrollTop : pos}, 200); }); e.handled = true; return false; }); } }, destroy : function(){ $(".pagination a").die("click"); }, navigatePage : function(pageUrl, callback){ $("body").animate({scrollTop : 0}, 100); $("div[id^=message]").remove(); $("#JVCMaster_loadPost").fadeIn(50); $.ajax({ dataType : "html", url : pageUrl, success : function(data){ $("#JVCMaster_loadPost").fadeOut(50, function(){ if (history && history.pushState) history.pushState({}, '', pageUrl); $(".bt_rafraichir").attr("href", pageUrl); $(".navig_pages").html($(data).find(".navig_pages:first").html()); $(".discu_boutons:first").after($(data).find("div[id^=message]")); $("#JVCMaster_loadPost").remove(); _.pseudoArea = $(".msg").parent().find("li span:last-child:not(.generic), div[id^=message] ul").parent().find(".pseudo"); _.setButtonsArea(); $.each(_.activatedExtensions, function(k, script){ _.scripts[script].destroy(); _.scripts[script].init(); }); if(callback) callback(); }); } }); }, insertLoadingMessage : function(){ if($("#JVCMaster_loadPost").is('*')) return; _.insertCSS("#JVCMaster_loadPost{display : none; font-size : 20px;height : 40px;line-height : 1.4em;text-align : center}"); $(".discu_boutons:first").after($("<p>", { id : "JVCMaster_loadPost" , html : "Chargement..." })); } }, quickresponse : { id : "quickresponse", name : "Quick Response", description : "Répondez plus vite à un topic!", init : function(){ if(window.location.href.match("^http:\/\/www\.jeuxvideo\.com\/forums\/1") && $(".bt_repondre").is('*')){ var JVCMaster_QuickResponse = $("<div>", { id : "JVCMaster_quickResponse" }); $(".bloc_forum:last").before(JVCMaster_QuickResponse); $.ajax({ dataType : "html", url : $(".bt_repondre:first").attr("href"), success : function(data){ JVCMaster_QuickResponse.append($(data.replace(/<p class="lien_base">\n.*\n<\/p>/, "").replace("Répondre sur ce sujet", "JVCMaster : Réponse rapide")).find(".bloc_forum:last, form[name=post2]")); JVCMaster_QuickResponse.find("#boutons_repondre").css({background : "none", paddingBottom : "0"}); $("#boutons_repondre").keydown(function(e){ if(e.keyCode == 8) return false; }); } }); } }, destroy : function(){ $("#JVCMaster_quickResponse").remove(); } } }; } var script = document.createElement("script"); script.appendChild(document.createTextNode("(JVCMaster = " + JVCMaster.toString() +")();\nJVCMaster = new JVCMaster(); JVCMaster.init();")); (document.body || document.head || document.documentElement).appendChild(script)