EM deathsound

Adds button to profiles to listen to deathsound

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey 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 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.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

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         EM deathsound
// @version      1.0
// @description  Adds button to profiles to listen to deathsound
// @author       Whitepimp007
// @match        https://epicmafia.com/user/*
// @match        https://epicmafia.com/u/*
// @grant        none
// @namespace https://greasyfork.org/users/105745
// ==/UserScript==


var profileLink = document.getElementsByClassName("lcontrols sel")[0].children[0].href;
var profileNumber = profileLink.replace("https://epicmafia.com/user/","");
console.log(profileNumber);

var deathSoundLink = "https://epicmafia.com/uploads/deathsounds/" + profileNumber + ".ogg";

var userbox = document.getElementById("finduserbox");

var constructSpan=document.createElement("span");
constructSpan.className="lcontrols";

var constructAnchor=document.createElement("a");
constructAnchor.href=deathSoundLink;

var constructI=document.createElement("i");
constructI.className="icon-music";
constructI.innterHTML="::before";

constructAnchor.appendChild(constructI);
constructSpan.appendChild(constructAnchor);
userbox.appendChild(constructSpan);