Greasy Fork

Greasy Fork is available in English.

JVC Clash

JVC Clash 0.9.1

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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"});