letsmain / TikTok抖音海外版/抖音国际版自由访问插件 - 尽享全球短视频娱乐!

// ==UserScript==
// @name         TikTok抖音海外版/抖音国际版自由访问插件 - 尽享全球短视频娱乐!
// @namespace    TikTok-Access-Assistant
// @version      1.2.5
// @description  ByteDance (字节跳动)自由浏览并尽情享受全球最热门的短视频平台字节跳动旗下的TikTok(抖音)。无论您身处哪个国家或地区,这个脚本将为您打开通往TikTok的大门,让您畅快观看各类有趣、创意和潮流的短视频内容,绕过TikTok浏览脚本/自由访问抖音海外版/突破网络封锁的短视频分享工具/抖音海外版自由浏览插件/代理TikTok脚本/油猴脚本抖音解封器/浏览被封锁的脚本,您将能够无缝地浏览、搜索和观看来自世界各地的精彩短视频,包括搞笑、舞蹈、美食、时尚和更多。该脚本支持多语言功能,让您能够以中英文等多种语言与全球用户交流和互动。
// @author       TikTok-Access-Assistant
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABdFBMVEX///8AAAD9LFQm8+4DAAAAAAMl+fUj9O7//f8EAwD/7fD6LlX6LFD2NV79//8GAAOYK0Gq+ff+I1Dd/PvxaYSj+fX/KlfZLVJ7IjYKAAD///wn8vD/+v/4//8p+O8ZaWb1MFT/KFn/GUyvKUUA9+iO+vIo/vn/4uzu/v/8M1on8Pb1rr0eDAwACAAIFBn1HUt39vFb+fEWZmTZe5D9eon4eZDugZC7IEWMHjVHGCDhLU332dz0kqbFNFNcJSz8QGZ6FyvyorH0W3ljEiD7DkGfKzz7ydT2SXBQDxgfAAC4nKiFrKXV//9AoqEDsaYllpHA+fUUSUwq2c8iW2IXV1UMHyErfn2P//f/2eh1DyC+M0blL1rW/PVl9PJw7ezoaoU4DhYwysbgx9VkIS0r4tcKNjvVHUY3t7YjiH3wvMyx8fcLODMqy70cXFAOCxgXc2X1maYiqJ0j18YRLDEXJSAYGhvD4t9eLzqsOVUpAABZFCA9DhKK8DAeAAAQUElEQVR4nO2di1/bRrbHPZKsB5LHQWAZS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DTPGiEN55yLMptGMo3bK/dyIzBS+xIJlGSXvyWgXcg7CNKn2Oy15b0bqqm5y1ZWYmrJ/QNU/cDMg3QaQquhWEcag5k+ERZgKo2RDImwVSss/ntOf9olYXpord8reVbX2zhq+SheiCoZhlHJDFxbPY8PbeaZTMa0o7kcsFqJ2CTIuwIeO//dffwgRvTkqKp3Cfg2CmQg+EZDexpZKTfyb5IT6uHvyTsVBRkKSkttzZZXxEwrIfYvuGnn0UeQIA734z6/gNs7nVCH3JbXFM1uaGgQy8DcVAKPWQ7uErcXmho6q57WhhDZ3ZbUTqTGO6u6Qp3GHzTFGRmmiufXmPHxUr9bL5WLx9HBbsfYRwyAcUtgfJeFVd2vjEYlCyXMoB27/oBfnSbRuenP39GAUjEMYhLUlHIfHxeM9SH3m6C156azeNyRJHknvln21sVvU1O5zbYra3LZwdH1MR1jEjWaNKef3f3s01MEgSX94f/1I6xp/dKJn1gpjqsIjJMMqWIWPjqYw5Ux+/8Hm7V4b/v7bzHreYcgNSO1zNfC7rKi1ZoNcaBdhN9ojnNr+zvXDzPJRfnduf2NjZmZjY259N7/FDJOb2Qv98oQLidyr9K7pKp3TT+3lM23wUDAZf2ptbTFygeh4YQgsLXGpWVNJuk6lgIrFYs9Fa/74qzmrL+ATicFTcXplgM/AjemaCwFLuQw9ViNBNb0TkPyV5Erke9XN7ID9xJQVLxueitySRyxIDuUrvjVpFuE48J2r3lttjD5yEgtB70stLq02yxRMCcTUXLeWqe80CmC66OUR5xc9F0uu8RYXGzur0817mUw5A7pXn15berFIh6sYhyBmtHD7Nu8UTYcKE4HoKisWU3F9MGWiRIkSJUqUKFGiRIkSJUqUKFGiRIkSJUqUKFGiRIkSxUH/BwJT85W+UVgDAAAAAElFTkSuQmCC
// @require      http://cdn.staticfile.org/jquery/1.12.0/jquery.min.js
// @supportURL   http://letsmain.com/tiktok-access-master?utm_source=openuserjs
// @include      *://*.tiktok.com/*
// @match        *://www.tiktok.com/*
// @include      *://*.bing.com/*
// @include      *://*.yandex.com/*
// @include      *://*.duckduckgo.com/*
// @include      *://*.baidu.com/*
// @include      *://*.sogou.com/*
// @include      *://*.so.com/*
// @include      *://*.sm.cn/*
// @include      *://*.startpage.com/*
// @include      *://*.fsoufsou.com/*
// @include      *://*.deepl.com/*
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_download
// @grant        GM_addStyle
// @grant        GM_openInTab
// @grant        unsafeWindow
// @run-at       document-idle
// @run-at       document-start
// @grant        GM_setClipboard
// @grant        GM_getResourceURL
// @grant        GM_getResourceURL
// @grant        GM_getResourceText
// @grant        GM_xmlhttpRequest
// @compatible	 Chrome
// @compatible	 Edge
// @compatible	 Firefox
// @compatible	 Safari
// @compatible	 Opera
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    var $ = window.jQuery;
    if (!$) {
        var script = document.createElement('script');
        script.src = 'https://code.jquery.com/jquery-3.6.1.min.js';
        document.head.appendChild(script);
        $ = window.jQuery;
    }
    var currentUrl = window.location.href;
    var currentHost = window.location.host;
    var resourceAnalysis = {};
    resourceAnalysis.addHtml = function() {
        var logoImgUrl = GM_getResourceURL('logo');
        var floatBoxHtml = '<div style="position:fixed;z-index:1076134;cursor:pointer;top:68px;left:0px;">' +
            '<div id="access-helper-wrap" style="width:136px;height:28px;line-height:28px;text-align:center;font-size:12px;color:#fff;background-color:#7C3AED;border:1px solid #7C3AED;border-left:none;border-top-right-radius:5px;border-bottom-right-radius:5px;">' +
            '<img src="' + logoImgUrl + '" style="width:20px;height:20px;position:relative;top:5px;" />&nbsp;TikTok访问助手' +
            '</div>' +
            '<div id="access-helper-url-wrap" style="font-size:12px;padding:6px 4px;">' +
            '<a href="http://letsmain.com/tiktok-access-master?utm_source=greasyfork-recommend" target="_blank" style="color:#3b8cff;text-decoration:none">http://letsmain.com/tiktok-access-master</a>' +
            '</div>' +
            '</div>';
        $('body').append(floatBoxHtml);
        var defaultVipUrl = 'http://letsmain.com/tiktok-access-master?utm_source=greasyfork-recommend&invitation-code=#';
        $('body').on('click', '#access-helper-wrap', function() {
            defaultVipUrl = defaultVipUrl.replace(/#/g, encodeURIComponent(currentUrl));
            window.open(defaultVipUrl, '_blank');
        });
    };
    resourceAnalysis.init = function() {
        resourceAnalysis.addHtml();
    };
    resourceAnalysis.init();
    const options = {
        hookEvents: ["contextmenu", "select", "selectstart", "copy", "cut", "dragstart"],
        unhookEvents: ["mousedown", "mouseup", "keydown", "keyup"],
        doms: true,
        hookAddEventListener: true,
        hookPreventDefault: true,
        addCss: true,
        iframeSrc: "about:blank",
    };
    const shouldNotHook = (event) => !!event.closest("form");
    const clearEvents = () => {
        const targets = [
                document,
                document.body,
                ...document.getElementsByTagName("div"),
            ];
        const iframe = document.querySelector(`iframe[src="${options.iframeSrc}"]`);
        if (
            iframe &&
            iframe.clientWidth > 99 &&
            iframe.clientHeight > 11
        ) {
            targets.push(
                iframe.contentWindow.document,
                iframe.contentWindow.document.body
            );
        }
        for (const target of targets) {
            if (!target) continue;
            for (const eventType of options.hookEvents.concat(options.unhookEvents)) {
                const prop = "on" + eventType;
                target[prop] = null;
            }
        }
    };
    const hookEvents = (originalAddEventListener) => {
        const newAddEventListener = function (type, listener, options) {
            const useCapture =
                typeof options === "boolean" ? options : options && options.capture;
            if (!options.hookEvents.includes(type)) {
                originalAddEventListener.call(this, type, listener, useCapture);
            } else {
                originalAddEventListener.call(this, type, (e) => {
                    if (shouldNotHook(e) || !options.hookEvents.includes(e.type)) {
                    e.preventDefault();
                } else {
                    listener(e);
                }
            }, useCapture);
        }
    };
    EventTarget.prototype.addEventListener = newAddEventListener;
    document.addEventListener = newAddEventListener;
};
const hookPreventDefault = (originalPreventDefault, eventNames) => {
    Event.prototype.preventDefault = function () {
        if (shouldNotHook(this) || !eventNames.includes(this.type)) {
            originalPreventDefault.call(this);
        }
    };
};
const addCss = () => {
    GM_addStyle(`
    html, * {
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        user-select: text !important;
    }

::-moz-selection {
        color: #FFF!important;
        background: #3399FF!important;
    }

::selection {
        color: #FFF!important;
        background: #3399FF!important;
    }
  `);
};
const init = () => {
    if (options.doms) {
        setInterval(clearEvents, 9000);
        setTimeout(clearEvents, 1000);
        window.addEventListener("load", clearEvents, true);
    }
    if (options.hookAddEventListener) {
        hookEvents(EventTarget.prototype.addEventListener);
    }
    if (options.hookPreventDefault) {
        hookPreventDefault(
            Event.prototype.preventDefault,
            options.hookEvents.concat(options.unhookEvents)
        );
    }
    if (options.addCss) {
        addCss();
    }
};
init();
})();