NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name JVC Shorcut Sticker // @version 1.2 // @description New sticker // @author Crafbukkit // @require http://code.jquery.com/jquery-2.2.0.min.js // @match http://www.jeuxvideo.com/forums/0-* // @match http://www.jeuxvideo.com/forums/42-* // @match http://www.jeuxvideo.com/forums/1-* // @grant none // ==/UserScript== var listeOriginal = "[[sticker:p/1jnd]][[sticker:p/1jnc]][[sticker:p/1jne]][[sticker:p/1jnf]][[sticker:p/1jng]][[sticker:p/1jnh]][[sticker:p/1jni]][[sticker:p/1jnj]]"; listeOriginal += "[[sticker:p/1kkh]][[sticker:p/1kkg]][[sticker:p/1kki]][[sticker:p/1kkj]][[sticker:p/1kkk]][[sticker:p/1kkl]][[sticker:p/1kkm]][[sticker:p/1kkn]]"; listeOriginal += "[[sticker:p/1ljl]][[sticker:p/1ljj]][[sticker:p/1ljm]][[sticker:p/1ljn]][[sticker:p/1ljo]][[sticker:p/1ljp]][[sticker:p/1ljr]][[sticker:p/1ljq]]"; listeOriginal += "[[sticker:p/1kkr]][[sticker:p/1kko]][[sticker:p/1kkp]][[sticker:p/1kkq]][[sticker:p/1kks]][[sticker:p/1kkt]][[sticker:p/1kku]][[sticker:p/1kkv]]"; listeOriginal += "[[sticker:p/1lgd]][[sticker:p/1lgc]][[sticker:p/1lgf]][[sticker:p/1lgb]][[sticker:p/1lgh]][[sticker:p/1lgg]][[sticker:p/1lga]][[sticker:p/1lge]]"; listeOriginal += "[[sticker:p/zu6]][[sticker:p/1f8e]][[sticker:p/1f89]][[sticker:p/zuc]][[sticker:p/zu2]][[sticker:p/1f8a]][[sticker:p/zub]][[sticker:p/zua]][[sticker:p/zu9]][[sticker:p/zu8]][[sticker:p/1f8d]][[sticker:p/1f8b]][[sticker:p/1f8f]][[sticker:p/1f88]][[sticker:p/zu7]][[sticker:p/1f8c]]"; listeOriginal += "[[sticker:p/1kgx]][[sticker:p/1kh1]][[sticker:p/1kgz]][[sticker:p/1kgv]][[sticker:p/1kgw]][[sticker:p/1kgy]][[sticker:p/1kgu]][[sticker:p/1kh0]]"; listeOriginal += "[[sticker:p/1lmc]][[sticker:p/1lme]][[sticker:p/1lmd]][[sticker:p/1lmb]][[sticker:p/1lma]][[sticker:p/1lmg]][[sticker:p/1lmf]]"; listeOriginal += "[[sticker:p/1lml]][[sticker:p/1lmm]][[sticker:p/1lmn]][[sticker:p/1lmo]][[sticker:p/1lmp]][[sticker:p/1lmh]][[sticker:p/1lmi]][[sticker:p/1lmj]][[sticker:p/1lmk]]"; var listeFake = ":malin::hahaha::hein::cigare::furie::perplexe::dehors::billets:"; listeFake += ":ananas::flaque::pose::btg2::pls2::playa::onche::prof:"; listeFake += ":chevalier::hop::bide::photo::bescherelle::+1::master::thug:"; listeFake += ":bonnet::masque::nudiste::continue::pls::haha::panache::btg:"; listeFake += ":fort::question2::combat::grogne::grukk::perplexe2::trance::pouce:"; listeFake += ":oklm::oklm2::poker::bud+1::hahah::dur::hin::zzz::grr::oh::argh::5min::bbq::sup::burp::colis:"; listeFake += ":emo::laser::jesus::racaille::btg3::couronne::flamme::pls3:"; listeFake += ":quelcon::quoi::furax::rirerire::tape::costaud::burger:"; listeFake += ":dormir::perenoel::idee::titeuf::toilette::pleurejoie::saumon::gilbert::triste:"; function changeListe() { for(var k=0;k<listeOriginal.split(']]').length-1;k++) { var tmpTxt = document.getElementById("message_topic").value; document.getElementById("message_topic").value = tmpTxt.split(":"+listeFake.split(':')[k*2+1]+":").join(listeOriginal.split(']]')[k]+"]]"); } } function changePrevisu() { for(var k=0;k<listeOriginal.split(']]').length-1;k++) { var tmpTxt = document.getElementsByClassName("previsu-editor")[0].innerHTML; document.getElementsByClassName("previsu-editor")[0].innerHTML = tmpTxt.split(":"+listeFake.split(':')[k*2+1]+":").join('<img class="img-stickers" src="http://jv.stkr.fr/'+listeOriginal.split('[[sticker:')[k+1].split(']]')[0]+'">'); } setTimeout(changePrevisu,500); } document.getElementsByClassName("btn-poster-msg")[0].onclick = function() { changeListe(); } changePrevisu();