您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirect TikTok to TikNot
当前为
// ==UserScript== // @name TikTok to TikNot Redirect // @author Rust1667 // @description Redirect TikTok to TikNot // @match https://www.tiktok.com/* // @match https://tiknot.netlify.app/* // @grant none // @version 0.0.1.20231219154958 // @namespace https://greasyfork.org/users/980489 // ==/UserScript== (function() { 'use strict'; // Get the current URL var currentUrl = window.location.href; // Regular expression to match the TikTok URL pattern var tiktokRegex = /https:\/\/www\.tiktok\.com\/@.*\/video\/([^/?]+)/; // Extract the second * from the TikTok URL using regex var match = currentUrl.match(tiktokRegex); if (match && match[1]) { // Construct the new URL using the matched part of the original URL var redirectUrl = "https://tiknot.netlify.app/video/" + match[1]; // Redirect the page to the new URL window.location.href = redirectUrl; } })();