NitroChiptune

Adds chiptune music to Nitrotype garage

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         NitroChiptune
// @namespace    http://tampermonkey.net/
// @version      2025-02-24
// @description  Adds chiptune music to Nitrotype garage
// @author       c00lkat
// @match        https://www.nitrotype.com/garage
// @icon         https://www.google.com/s2/favicons?sz=64&domain=nitrotype.com
// @grant        none
// ==/UserScript==

(function() {
    function playSound(url) {
        var audio = new Audio(url);
        audio.loop = true; // Set to loop the audio
        audio.play();
    }

    // URL of the chiptune music
    var musicURL = "https://cdn.glitch.global/07099a28-733d-44ff-9708-a279d0b188e5/chiptune-ending-212716.mp3?v=1740430912623";

    // Play the sound when the page loads
    window.addEventListener('load', function() {
        playSound(musicURL);
    });
})();