Skip to content

Instantly share code, notes, and snippets.

@denilsonsa
Last active May 23, 2023 20:18
Show Gist options
  • Select an option

  • Save denilsonsa/b32ee2957982bfa86a00 to your computer and use it in GitHub Desktop.

Select an option

Save denilsonsa/b32ee2957982bfa86a00 to your computer and use it in GitHub Desktop.
Telegram tg:// to web+tg:// — user-script, AKA greasemonkey script.
@Korb

Korb commented May 21, 2023

Copy link
Copy Markdown

The script doesn't work. Links like tg://resolve?phone=7964... do not change.
Tampermonkey 4.18.1 (22 April 2023), Firefox 113.0.1 (64-bit), Microsoft Windows 10.0.19045.2965.

@denilsonsa

Copy link
Copy Markdown
Author

@Korb I've just tested it, and the script still works. However, as mentioned in the description:

It is only run when a document finishes loading, so it won't slow down the entire browser. This also means that any dynamically-created links will be left untouched.

The page you're testing is probably generating the links dynamically after the page is loaded. It is still possible to write a browser extension (or possibly a user-script) for such cases, but I'm afraid I won't write it myself. I don't even use this user-script anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment