HWM_PrintBattleLinks

Меняет тексты ссылок на бои в протоколе на их адреса

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         HWM_PrintBattleLinks
// @namespace    Небылица
// @version      1.1
// @description  Меняет тексты ссылок на бои в протоколе на их адреса
// @author       Небылица
// @include      /^https{0,1}:\/\/((www|qrator)\.heroeswm\.ru|178\.248\.235\.15)\/pl_warlog.php.+/
// ==/UserScript==

(function() {
    "use strict";

    var links = document.querySelectorAll("a[href^='warlog.php']"),
        hostname = location.protocol + "//" + location.hostname + "/",
        i,
        maxI = links.length;
    for (i=0;i<maxI;i++){
        links[i].innerText = hostname + links[i].getAttribute("href").replace("warlog", "war") + "&lt";
    }
})();