Created
July 29, 2020 10:42
-
-
Save trolologuy/12cb4b79b2bc2996da318f09566dc115 to your computer and use it in GitHub Desktop.
tampermonkey google meet
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 Open in new tab any link on google meet | |
// @namespace http://userscripts.org/users/4294 | |
// @description Makes links open in a new window | |
// @include https://meet.google.com/* | |
// @grant window.close | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
if (location.href.match(/([a-z]{3})-([a-z]{4})-([a-z]{3})/)){ | |
var myWindow = window.open(window.location.href, 'Google Meet', 'location=0, menubar=1, resizable=1, scrollbars=1, status=1, titlebar=1, toolbar=1, width=800,height=600') | |
myWindow.focus() | |
setTimeout(function(){ myWindow.stop(); }, 1000); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment