Greasy Fork is available in English.
Automatically clicks show more on following and recommending
当前为
// ==UserScript==
// @name TikTok Live Expander
// @author Skojaren
// @description Automatically clicks show more on following and recommending
// @version 0.2.1
// @license GNU GPLv3
// @supportURL https://t.me/skojaren
// @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 http://greasyfork.icu/users/980311
// ==/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/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[1]/div[1]/div/div[1]/div/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/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[1]/div[1]/div/div[2]/div/div[2]/div[6]'
node = document.evaluate(xpath, document, null, xpr, null).singleNodeValue;
if (node) {
if (node.innerText == text) {
node.click();
}
}
}, 100);