Open Slack archive links on web

Automatically open Slack archive links on web without showing the redirect dialog

// ==UserScript==
// @name        Open Slack archive links on web
// @namespace   Violentmonkey Scripts
// @match       *://*.slack.com/archives/*
// @grant       none
// @run-at      document-body
// @version     1.0
// @author      CyrilSLi
// @description Automatically open Slack archive links on web without showing the redirect dialog
// @license     MIT
// ==/UserScript==

const area = document.createElement("textarea");
area.innerHTML = document.getElementById("props_node").dataset.props;
window.location.href = JSON.parse(area.value).webUrl;