Greasy Fork

Greasy Fork is available in English.

Kiosk 자동 국룰/다운

Kiosk 자동 국룰 입력

当前为 2024-05-27 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name		Kiosk 자동 국룰/다운
// @namespace	http://tampermonkey.net/
// @version		1.1
// @description	Kiosk 자동 국룰 입력
// @author		김머시기
// @match		https://kiosk.ac/c/*
// @match		https://arca.live/b/simya*
// @icon		https://www.google.com/s2/favicons?sz=64&domain=kioskloud.ac
// @grant		GM.setValue
// @grant		GM.getValue
// @license		MIT
// @run-at document-end
// ==/UserScript==
'use strict';
let rp;
const rpw = atob("c21wZW9wbGU=");
async function m(){
    rp = await GM.getValue("rp")
    if(rp != rpw)	{
        const chk = prompt("국룰 확인");
        if(chk?.toLowerCase() == rpw) {
            GM.setValue("rp", rpw);
        } else {
            GM.setValue("rp", false);
            alert("국룰이 일치하지 않습니다.");
        }
    }
}
function pw() {
	document.querySelector('.input.shadow-xl.flex-grow').value = rpw;
    document.querySelector('.btn.btn-ghost.w-full.mt-2.rounded-md').click();
}
function pw1() {
	document.querySelector('.input.shadow-xl.flex-grow').value = "#"+rpw+"#";
    document.querySelector('.btn.btn-ghost.w-full.mt-2.rounded-md').click();
}
function dbtn() {
	let downButton = document.querySelector('.p-2 li:last-child button');
    downButton.click();
}
m();
async function auto() {
    if(rp==rpw){
        await pw();
        await setTimeout(pw1,800);
        await setTimeout(dbtn,2500);
    }
}
window.addEventListener('load', () => setTimeout(auto, 100));