// ==UserScript== // @name TikTok Live Expander // @author Fetast // @description Automatically clicks show more on following and recommending // @version 0.1.0 // @license GNU GPLv3 // @match https://www.tiktok.com/live // @match https://www.tiktok.com/live* // @match https://www.tiktok.com/*/live // @match https://www.tiktok.com/*/live* // @namespace https://greasyfork.org/users/980311 // @downloadURL none // ==/UserScript== setInterval(() => { const xpr = XPathResult.FIRST_ORDERED_NODE_TYPE; let xpath; let node; let text = 'See all'; xpath = '/html/body/div[1]/main/div[2]/div[1]/div/div/div[1]/div[1]/div[2]/div[6]'; node = document.evaluate(xpath, document, null, xpr, null).singleNodeValue; if (node) { if (node.innerText == text) { node.click(); } } xpath = '/html/body/div[1]/main/div[2]/div[1]/div/div/div[1]/div[2]/div[2]/div[6]'; node = document.evaluate(xpath, document, null, xpr, null).singleNodeValue; if (node) { if (node.innerText == text) { node.click(); } } }, 100);