Skip to content

Instantly share code, notes, and snippets.

@teidesu
Created March 30, 2024 10:09
Show Gist options
  • Save teidesu/c93126c9de186ec3da3a54cffd07a34c to your computer and use it in GitHub Desktop.
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
// ==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