Last active
May 4, 2026 06:19
-
-
Save mary-ext/93c01e11b954ef1b5ed3c5fd995e60b8 to your computer and use it in GitHub Desktop.
Bypass Slack's switch-to-app nag screen
This file contains hidden or 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
| slack.com##+js(user-slack-remove-app-switch-nag.js) |
This file contains hidden or 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
| if (location.hostname !== 'slack.com' && location.hostname !== 'app.slack.com') { | |
| const match = location.pathname.match(/^\/archives\/([^/]+)\/p(\d+)/); | |
| if (match) { | |
| const [, channelId, pTs] = match; | |
| const params = new URLSearchParams(location.search); | |
| const ts = params.get('thread_ts') ?? `${pTs.slice(0, -6)}.${pTs.slice(-6)}`; | |
| location.replace(`/messages/${channelId}/convo/${channelId}-${ts}`); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment