Maracas

Changes regular room_dogcheck dog to maraca dog on deltarune's dogcheck room page if it is specifically on /maraca, /maracadog, /maracadancingdog, /maracadance or /maracadancer

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

Advertisement:

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

Advertisement:

// ==UserScript==
// @name         Maracas
// @namespace    http://tampermonkey.net/
// @version      0.0.1
// @description  Changes regular room_dogcheck dog to maraca dog on deltarune's dogcheck room page if it is specifically on /maraca, /maracadog, /maracadancingdog, /maracadance or /maracadancer
// @author       fat hairr
// @match        https://deltarune.com/maraca/
// @match        https://deltarune.com/maracadog/
// @match        https://deltarune.com/maracadancingdog/
// @match        https://deltarune.com/maracadance/
// @match        https://deltarune.com/maracadancer/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=deltarune.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    document.body.firstElementChild.getElementsByTagName("div").dog_sleep.classList.add("hidden")
    document.body.firstElementChild.getElementsByTagName("div").dog_maraca.classList.remove("hidden")
    maraca = true;
    document.on('click', '.dog:not(.playing)', function() {
        if (maraca) {
            baci.play();
        } else {
            results.play();
        }
        document.body.firstElementChild.getElementsByTagName("div").dog_maraca.classList.add("playing")
        document.body.firstElementChild.getElementsByTagName("div").dog_maraca.getElementsByClassName("dog1")[0].style.opacity=0
        document.body.firstElementChild.getElementsByTagName("div").dog_maraca.getElementsByClassName("dog2")[0].style.opacity=1
    });
    document.on('click', '.dog.playing', function() {
        if (maraca) {
            baci.pause();
        } else {
            results.pause();
        }
        document.body.firstElementChild.getElementsByTagName("div").dog_maraca.classList.remove("playing")
        document.body.firstElementChild.getElementsByTagName("div").dog_maraca.getElementsByClassName("dog1")[0].style.opacity=1
        document.body.firstElementChild.getElementsByTagName("div").dog_maraca.getElementsByClassName("dog2")[0].style.opacity=-0
  });
})();