Load More on Steam

This script automatically clicks Load More button on Steam Chat Logs.

// ==UserScript==
// @name         Load More on Steam
// @namespace    http://steamcommunity.com
// @version      1.0
// @description  This script automatically clicks Load More button on Steam Chat Logs.
// @author       TEKNO
// @match        https://help.steampowered.com/en/accountdata/GetFriendMessagesLog
// @grant        none
// ==/UserScript==

(function() {
    function clicker() {
        var btn = document.getElementsByClassName("AccountDataLoadMore");
        if(btn.length>0) {
            loadbtn = btn[0];
            loadbtn.click();
        }
        setTimeout(clicker,500);
    }

    clicker();
})();