您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
给轻文的编辑器添加素材库隐藏 预览添加命令
当前为
// ==UserScript== // @icon http://www.iqing.com/iriya/img/人物.0a09b6d.png // @name IQA Maker Plus // @namespace http://www.iqing.com/ // @version 0.8888 // @description 给轻文的编辑器添加素材库隐藏 预览添加命令 // @author Ts8zs // @include *//www.iqing.com/preview.html* // @include *//www.iqing.com/iriya.html* // @update https://greasyfork.runtimutd.eu.org/scripts/371697-iqamakerremote/code/IQAMakerRemote.user.js // ==/UserScript== //将下面这段代码放进预览的F12控制台执行即可使用指令控制预览 if(/.*preview.*/.test(location.href)) 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="previewIframe.contentWindow.game.logic.Stage_exec.insert(command.value);command.value = '';" placeholder="输入指令回车执行"> `; document.domain = "iqing.com"; function a(){ if(/.*iriya.*/.test(location.href)) document.getElementsByClassName('editor-top')[0].innerHTML+= ` <button id="fold" class="el-button el-button--small" style="margin-left:10px;" onclick=" if(document.getElementsByClassName('material-list-panel')[0].style.display=='block') { document.getElementsByClassName('material-list-panel')[0].style.display='none'; fold.innerText='<显示素材列表'} else { document.getElementsByClassName('material-list-panel')[0].style.display='block';fold.innerText='隐藏素材列表>' } "> 隐藏素材列表> </button> ` } setTimeout(a,1000);