Monkey Tab

Say monkey when opening a new tab

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Monkey Tab
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Say monkey when opening a new tab
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Check if the current tab is a new tab
    if (window.location.href === "about:blank") {
        // Create an audio element
        var audio = document.createElement("audio");
        // Set the source to a monkey sound
        audio.src = "https://freesound.org/data/previews/169/169731_3022696-lq.mp3";
        // Play the audio
        audio.play();
        // Display a message on the tab
        document.body.innerHTML = "<h1>Monkey!</h1>";
    }
})();