Skip to content

Instantly share code, notes, and snippets.

@msafadieh
Last active September 23, 2021 21:41
Show Gist options
  • Save msafadieh/2a58e3ef1c42c2b1e92d3e28a9ade0b7 to your computer and use it in GitHub Desktop.
Save msafadieh/2a58e3ef1c42c2b1e92d3e28a9ade0b7 to your computer and use it in GitHub Desktop.
User script that redirects Zoom meeting links to the web client automatically
// ==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