Created
July 25, 2022 00:01
-
-
Save sj26/5c9e07fabc96adbb6f3f28807974a60d to your computer and use it in GitHub Desktop.
Open slack in the browser straight away — no more "open this link in your browser"
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 slack-archive-redirect | |
// @namespace https://sj26.com/slack-archive-redirect | |
// @version 1 | |
// @description Open slack in the browser straight away | |
// @author [email protected] | |
// @match https://*.slack.com/archives/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var url = new URL(document.location); | |
url.pathname = url.pathname.replace("archives", "messages"); | |
document.location.replace(url.toString()); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment