Greasy Fork is available in English.
Redirect TikTok to TikNot
< Feedback on TikTok to TikNot Redirect
Hi, thank you for the script!Unfortunately on PC Tiktok redirects the user immediately to the login page, so the script does not work there: changing the currentUrl variable and the regex will make it work also on the forced login page, that has this format for URLs:https://www.tiktok.com/login?redirect_url=https%3A%2F%2Fwww.tiktok.com%2F%40ziggy_nonskid%2Fvideo%2F7336815316971834666&lang=en&enter_method=mandatoryThis is how I changed lines 17 and 20, if you want to implement the changes in the script.var currentUrl = decodeURIComponent(window.location.href);var tiktokRegex = /https:\/\/www\.tiktok\.com\/@.*\/video\/([0-9]+)/;
https://www.tiktok.com/login?redirect_url=https%3A%2F%2Fwww.tiktok.com%2F%40ziggy_nonskid%2Fvideo%2F7336815316971834666&lang=en&enter_method=mandatory
var currentUrl = decodeURIComponent(window.location.href);var tiktokRegex = /https:\/\/www\.tiktok\.com\/@.*\/video\/([0-9]+)/;
تسجيل الدخول إلى مرحلة ما بعد الرد.
Hi, thank you for the script!
Unfortunately on PC Tiktok redirects the user immediately to the login page, so the script does not work there: changing the currentUrl variable and the regex will make it work also on the forced login page, that has this format for URLs:
https://www.tiktok.com/login?redirect_url=https%3A%2F%2Fwww.tiktok.com%2F%40ziggy_nonskid%2Fvideo%2F7336815316971834666&lang=en&enter_method=mandatory
This is how I changed lines 17 and 20, if you want to implement the changes in the script.
var currentUrl = decodeURIComponent(window.location.href);
var tiktokRegex = /https:\/\/www\.tiktok\.com\/@.*\/video\/([0-9]+)/;