Skip to content

Instantly share code, notes, and snippets.

@sj26
Created July 25, 2022 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sj26/5c9e07fabc96adbb6f3f28807974a60d to your computer and use it in GitHub Desktop.
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"
// ==UserScript==
// @name slack-archive-redirect
// @namespace https://sj26.com/slack-archive-redirect
// @version 1
// @description Open slack in the browser straight away
// @author sj26@sj26.com
// @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