Lost Cafe instruction

来自DOLLARS
Lostcafe讨论 | 贡献2023年5月19日 (五) 15:16的版本 (创建页面,内容为“(方便云端复制粘贴ing) = Tampermonkey = == 1 == // ==UserScript== // @name         Lost Cafeのclerk 打扫咖啡馆 // @namespace    <nowiki>http://tampermonkey.net/</nowiki> // @version      1.0 // @description  Dollars聊天室 控制台输出聊天信息及控制台聊天 // @author       Lost Cafeのclerk // @match        <nowiki>https://drrr.com/room/*</nowiki> // @icon         data:image/gif;base64,R0lGODlhAQAB…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

(方便云端复制粘贴ing)

Tampermonkey

1

// ==UserScript==

// @name         Lost Cafeのclerk 打扫咖啡馆

// @namespace    http://tampermonkey.net/

// @version      1.0

// @description  Dollars聊天室 控制台输出聊天信息及控制台聊天

// @author       Lost Cafeのclerk

// @match        https://drrr.com/room/*

// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

// @grant        none

// @license      MIT

// ==/UserScript==

(function() {

'use strict';

console.clear()

const events = ['talk join system', 'talk leave system', 'talk me system select-text'];

let message=document.getElementsByName('message')[0];

let send=document.getElementsByName('post')[0];

$("#talks").bind('DOMNodeInserted', function(e) {

  //  console.log('element now contains: ' + $(e.target).html());

    if(events.includes(e.target.className)){

        console.log(e.target.innerText);

    }else{

       //常规对话输出

        try{

            var out="$ "+e.target.children[0].innerText+":"+e.target.children[1].innerText;

            console.log(out);

        }catch(err){

        }

    }

});

function echo(content){

    message.value=content;

    send.click();

}

setInterval(function () {

echo('/me 打扫咖啡馆ing...( _ _)ノ|壁');

}, 1000*1498);

setTimeout(function(){console.clear();},1000);

})();

2

// ==UserScript==

// @name         Lost Cafeのclerk(店内)

// @namespace    http://tampermonkey.net/

// @version      1.0

// @description  Dollars聊天室 控制台输出聊天信息及控制台聊天

// @author       Lost Cafeのclerk

// @match        https://drrr.com/room/*

// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

// @grant        none

// @license      MIT

// ==/UserScript==

(function() {

'use strict';

console.clear()

const events = ['talk join system', 'talk leave system', 'talk me system select-text'];

let message=document.getElementsByName('message')[0];

let send=document.getElementsByName('post')[0];

$("#talks").bind('DOMNodeInserted', function(e) {

  //  console.log('element now contains: ' + $(e.target).html());

    if(events.includes(e.target.className)){

        console.log(e.target.innerText);

    }else{

       //常规对话输出

        try{

            var out="$ "+e.target.children[0].innerText+":"+e.target.children[1].innerText;

            console.log(out);

        }catch(err){

        }

    }

});

function echo(content){

    message.value=content;

    send.click();

}

setInterval(function () {

echo('/me 这里是ℒℴ𝓈𝓉 𝒞𝒶𝒻ℯの𝒸𝓁ℯ𝓇𝓀,欢迎来到𝓛𝓸𝓼𝓽 𝓒𝓪𝓯𝓮。可输入“Lhelp”查看指令,详细指令“Ldhelp”。歌曲是脚本自动播放的,所以不介意打断的ing。附:打翻的咖啡比直接喝更使人清醒');

}, 1000*1500);

setTimeout(function(){console.clear();},1000);

})();

3

// ==UserScript==

// @name         Lost Cafeのclerk 打翻的咖啡

// @namespace    http://tampermonkey.net/

// @version      1.0

// @description  Dollars聊天室 控制台输出聊天信息及控制台聊天

// @author       Lost Cafeのclerk

// @match        https://drrr.com/room/*

// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

// @grant        none

// @license      MIT

// ==/UserScript==

(function() {

'use strict';

console.clear()

const events = ['talk join system', 'talk leave system', 'talk me system select-text'];

let message=document.getElementsByName('message')[0];

let send=document.getElementsByName('post')[0];

$("#talks").bind('DOMNodeInserted', function(e) {

  //  console.log('element now contains: ' + $(e.target).html());

    if(events.includes(e.target.className)){

        console.log(e.target.innerText);

    }else{

       //常规对话输出

        try{

            var out="$ "+e.target.children[0].innerText+":"+e.target.children[1].innerText;

            console.log(out);

        }catch(err){

        }

    }

});

function echo(content){

    message.value=content;

    send.click();

}

setInterval(function () {

echo('/me 又有一杯咖啡被打翻了Σ( ° △ °|||)');

}, 1000*1498);

setTimeout(function(){console.clear();},1000);

})();

4

// ==UserScript==

// @name         Lost Cafe祁门红茶

// @namespace    http://tampermonkey.net/

// @version      1.0

// @description  Dollars聊天室 控制台输出聊天信息及控制台聊天

// @author       Lostcafeのclerk

// @match        https://drrr.com/room/*

// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

// @grant        none

// @license      MIT

// ==/UserScript==

(function() {

    'use strict';

    console.clear();

    const message = document.querySelector('[name=message]');

    document.addEventListener('keydown', function(event) {

        const chatText = message.value.toLowerCase();

        if (chatText.includes('/me lqi')) {

            setTimeout(function() {

                const newEvent = new KeyboardEvent('keydown', {

                    code: 'Enter'

                });

                document.dispatchEvent(newEvent);

            }, 3000);

            setTimeout(function() {

                message.value = '/me 将水烧至90—95℃,茶具景瓷,装百分之五的茶叶,冲入已烧好的热水,冲泡后香气高锐持久,隔45秒左右倒入小杯,把做好的“祁门红茶”递给您';

                const send = document.querySelector('[name=post]');

                send.click();

            }, 5000);

        }

    }, true);

})();

5

// ==UserScript==

// @name         Lost Cafe瑰夏咖啡

// @namespace    http://tampermonkey.net/

// @version      1.0

// @description  Dollars聊天室 控制台输出聊天信息及控制台聊天

// @author       Lostcafeのclerk

// @match        https://drrr.com/room/*

// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

// @grant        none

// @license      MIT

// ==/UserScript==

(function() {

    'use strict';

    console.clear();

    const message = document.querySelector('[name=message]');

    document.addEventListener('keydown', function(event) {

        const chatText = message.value.toLowerCase();

        if (chatText.includes('lgui')) {

            setTimeout(function() {

                const newEvent = new KeyboardEvent('keydown', {

                    code: 'Enter'

                });

                document.dispatchEvent(newEvent);

            }, 3000);

            setTimeout(function() {

                message.value = '/me 玫瑰和茉莉花香的特质,蜜柚以及柑橘香味,浅烘焙有坚果香气;湿香气同样有榛子味道。口感稍显温和含蓄,稍冷却一点,花果风味伴随着温度下降逐渐上升,把做好的“瑰夏咖啡”递给您';

                const send = document.querySelector('[name=post]');

                send.click();

            }, 5000);

        }

    }, true);

})();