spapanik / Lordswm warlog

// ==UserScript==
// @name         Lordswm warlog
// @namespace    https://openuserjs.org/users/spapanik
// @version      0.1.0
// @licence      MIT
// @description  Link to full battle
// @author       spapanik
// @match        https://www.lordswm.com/*
// ==/UserScript==

(function() {
    'use strict';

    let hyperlinks = document.getElementsByTagName( 'a' );
    let i;

    for (i=0; i < hyperlinks.length; i++) {
        let element = hyperlinks[i];
        if (element.href.indexOf('/warlog.php?') != -1) {
            element.href = element.href + '&lt=-1';
        }
    }
})();