Tư động chèn Skycode(Sếp'ss code) vào voz
当前为
// ==UserScript==
// @name Voskyize
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Tư động chèn Skycode(Sếp'ss code) vào voz
// @author SúperSky
// @match https://vozforums.com/*
// @grant none
// @require http://code.jquery.com/jquery-1.12.4.min.js
// ==/UserScript==
function addBtn() {
$("#vB_Editor_QR_controls").each(
function () {
$(this).after("<input type='button' value='SKY' id='sky'>");
$('#sky').click(function(){
var str = document.getElementById("vB_Editor_QR_textarea" ).value;
var sky = "s";
var res = str.replace(/(\S+)/g, function(x){return x + "'" + sky.repeat(Math.floor((Math.random() * 3) + 1));}); //số đơn vị sky('s) random từ 1-3
document.getElementById("vB_Editor_QR_textarea" ).value = res;
});
}
);
}
addBtn();
function addBtnAdv() {
$("#vB_Editor_001_controls").each(
function () {
$(this).after("<input type='button' value='SKY' id='sky'>");
$('#sky').click(function(){
var str = document.getElementById("vB_Editor_001_textarea" ).value;
var sky = "s";
var res = str.replace(/(\S+)/g, function(x){return x + "'" + sky.repeat(Math.floor((Math.random() * 3) + 1));}); //số đơn vị sky('s) random từ 1-3
document.getElementById("vB_Editor_001_textarea" ).value = res;
});
}
);
}
addBtnAdv();