Last active
September 23, 2021 21:41
-
-
Save msafadieh/2a58e3ef1c42c2b1e92d3e28a9ade0b7 to your computer and use it in GitHub Desktop.
User script that redirects Zoom meeting links to the web client automatically
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 Zoom Web Client Auto Redirect | |
// @namespace https://zoom.us | |
// @version 0.1 | |
// @description Automatically redirect Zoom meetings to the web client | |
// @author Mohamad Safadieh | |
// @license GNU AGPLv3: https://www.gnu.org/licenses/agpl-3.0.en.html | |
// @include /https:\/\/([a-z0-9\-]+\.)?zoom\.us\/([sj])\/([0-9]+).*/ | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
const match = window.location.href.match(/https:\/\/([a-z0-9\-]+\.)?zoom\.us\/([sj])\/([0-9]+).*/); | |
const prefix = match[1] || ""; | |
const end = match[2] === "j" ? "join/" + match[3] : match[3] + "/start"; | |
window.location.href = "https://" + prefix + "zoom.us/wc/" + end; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment