Skip to content

Instantly share code, notes, and snippets.

@hirogasa
Last active February 9, 2021 08:18
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 hirogasa/20232405da92a0f6fe5897e837fddcfd to your computer and use it in GitHub Desktop.
Save hirogasa/20232405da92a0f6fe5897e837fddcfd to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Slack Redirector
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://*.slack.com/archives/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
if(document.title.indexOf("Redirecting…") !== -1){
document.getElementsByClassName('c-link')[2].click();
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment