Created
March 30, 2024 10:09
-
-
Save teidesu/c93126c9de186ec3da3a54cffd07a34c to your computer and use it in GitHub Desktop.
userscript for ios to open modded tiktok through deeplinks. requires https://apps.apple.com/us/app/userscripts/id1463298887
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Open TikTok App | |
// @version 1.0.0 | |
// @author teidesu | |
// @match *://*.tiktok.com/* | |
// ==/UserScript== | |
let m = window.location.pathname.match(/^\/@[^\/]+\/video\/(\d+)/) | |
if (m !== null) { | |
window.location.href = `snssdk1233://aweme/detail/${m[1]}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment