IQAMakerRemote

给轻文的编辑器添加指令功能

29.08.2018 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @icon         http://www.iqing.com/iriya/img/人物.0a09b6d.png
// @name         IQAMakerRemote
// @namespace    http://www.iqing.com/
// @version      0.88
// @description  给轻文的编辑器添加指令功能
// @author       Ts8zs
// @include      *//www.iqing.com/preview.html*
// ==/UserScript==

//将下面这段代码放进预览的F12控制台执行即可使用指令控制预览
document.getElementsByClassName('nav')[0].innerHTML +=
    `<div style="position:fixed;z-index:100000;right:0;bottom:0;left:0;">
    <datalist id="iqacmd">
        <option>@jump</option>
        <option>@in</option>
        <option>@sel</option>
        <option>@clear</option>
        <option>@action</option>
        <option>@play</option>
        <option>@stop</option>
        <option>@add</option>
        <option>@break</option>
        <option>@random</option>
    </datalist>
    <input id="command" list="iqacmd" style="width:100%;font-size: 24px;" onchange="cmd()" placeholder="输入指令回车执行">
    `;
document.domain = "iqing.com";
var cmd = function () {
    previewIframe.contentWindow.game.logic.Stage_exec.insert(command.value); command.value = '';
}