JVC Clash

JVC Clash 0.9.1

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        JVC Clash
// @namespace   Nique ta mere
// @version      0.9.1
// @description  JVC Clash 0.9.1
// @author       Singles
// @include     http://*.jeuxvideo.com/*
// @include     http://*.forumjv.com/*
// @include     https://*.jeuxvideo.com/*
// @include     https://*.forumjv.com/*
// @require    http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant        none
// ==/UserScript==


function change(){$.each(mots,function(e,t){$(".txt-msg p").each(function(){var i=$(this).html();$(this).html(i.replace(t,'<span class="insulte">'+insultes[e]+"</span>"))})})}function preview(){$.each(mots,function(e,t){$("#previewClash ul").append($('<li class="pull-left">').append(t)).append($('<li class="insulte droite">').append(insultes[e]))})}var mots=["Astalavista","Cordialement","Mes salutations","toboggan","dinosaurésque","coupin","gentille personne","truculent","être formidable"],insultes=["va te faire enculer","nique ta mère","suce ma bite","ta mère","fils de pute","fils","chienne","enculé","pute"];$(".jv-editor-toolbar").append('<div class="btn-group"><button class="btn clashButton btn-primary btn-danger " type="button" data-edit="arrow-d" title="JVC Clash"><span >Clash</span></button> </div>'),$(".clashButton").append('<div id="previewClash"><ul class="doube"></ul></div>'),$("#previewClash").css({width:"505px",height:"220px",background:"#34495e",color:"white","z-index":"900",display:"none"}),$("#previewClash").css("position","absolute"),change(),preview(),$(".insulte").css({color:"red","font-style":"italic"}),$(".droite").css({"margin-left":"20px","font-style":"italic",color:"#2ecc71"}),$(".clashButton").mouseover(function(){$("#previewClash").show()}).mouseout(function(){$("#previewClash").hide()}),$("#previewClash ul").css({width:"100%",padding:"0",overflow:"hidden","margin-top":"20px"}),$("#previewClash ul li ").css({"line-height":"1.5em","float":"left",display:"inline",width:"50%",margin:"0"});