Steam Store Auto Read More

Steam Store Auto Read More (Expand All Descriptions). Steam 商店页自动展开更多(展开所有描述)

// ==UserScript==
// @name         Steam Store Auto Read More
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Steam Store Auto Read More (Expand All Descriptions). Steam 商店页自动展开更多(展开所有描述)
// @author       Martin______X
// @match        https://store.steampowered.com/app/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=steampowered.com
// @grant        none
// @license      MIT
// ==/UserScript==

const readMore = (async (button)=>{
    let readmores = document.getElementsByClassName("game_page_autocollapse_readmore");
    if (readmores) {
        for(let i=0; i<readmores.length; i++){
            readmores[i].click();
        }
        clearInterval(readMoreInterval);
    }
});
const readMoreInterval = setInterval(() => {
    readMore();
}, 100);