Voskyize

Tư động chèn Skycode(Sếp'ss code) vào voz

当前为 2017-05-13 提交的版本,查看 最新版本

// ==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();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址