🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

TikTok Relief Copy Limit

Relief the copy limit of the comments when playing TikTok webside in browser, Now, Arbitrary copy!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name              TikTok解除复制限制
// @name:en           TikTok Relief Copy Limit
// @namespace    https://greasyfork.org/zh-CN/scripts/462687-tiktok%E8%A7%A3%E9%99%A4%E5%A4%8D%E5%88%B6%E9%99%90%E5%88%B6
// @version      0.1.1
// @description  用网页浏览TikTok时不允许复制评论内容,现已解除,请随意复制。
// @description:en  Relief the copy limit of the comments when playing TikTok webside in browser, Now, Arbitrary copy!
// @author       Alan636
// @match       *.tiktok.com/*
// @icon         https://www.tiktok.com/favicon.ico
// @grant        none
// @license      GPL
// ==/UserScript==

(function() {
    'use strict';
    const sleep = time => new Promise(rs => setTimeout(rs, time))
    const main = async () => {
        while(true) {
            await sleep(1500)
            const ctag = document.querySelector('[data-e2e="comment-level-1"]')
            if (!ctag) continue
            var eles = document.getElementsByTagName('*');
            for (var i = 0; i < eles.length; i++) {
                eles[i].style.userSelect = 'text';
            }
        }
    }
    main();
})();