钉钉直播重定向

解决钉钉直播打不开的问题

// ==UserScript==
// @name         钉钉直播重定向
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  解决钉钉直播打不开的问题
// @author       share121
// @match        https://h5.dingtalk.com/group-live-share/index.htm?*
// @icon         https://g.alicdn.com/dingding/web/0.2.6/img/oldIcon.ico
// @grant        none
// @license      MIT
// @run-at       document-start
// ==/UserScript==
/https?:\/\/h5.dingtalk.com\/group-live-share\/index.htm\?(?=.*(liveUuid=|uuid=))(?!.*type=2).*/g.test(location.href)&&(location.href=location.href.replace(/.*(liveUuid=[a-zA-Z0-9-]+|uuid=[a-zA-Z0-9-]+).*/g,"https://h5.dingtalk.com/group-live-share/index.htm?type=2&$1#/union"))