Greasy Fork is available in English.
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/*// @run-at document-start// @version 1.2// @grant none// @namespace https://greasyfork.org/users/980489// ==/UserScript==(function() {'use strict';// Get the current URLvar currentUrl = decodeURIComponent(window.location.href);// Regular expression to match the TikTok URL patternvar tiktokRegex = /https:\/\/www\.tiktok\.com\/@.*\/video\/([0-9]+)/;// Extract the second * from the TikTok URL using regexvar match = currentUrl.match(tiktokRegex);if (match && match[1]) {// Construct the new URL using the matched part of the original URLvar redirectUrl = "https://tiknot.netlify.app/video/" + match[1];// Redirect the page to the new URLwindow.location.href = redirectUrl;}})();