Skip to content

Instantly share code, notes, and snippets.

@trolologuy
Created July 29, 2020 10:42
Show Gist options
  • Save trolologuy/12cb4b79b2bc2996da318f09566dc115 to your computer and use it in GitHub Desktop.
Save trolologuy/12cb4b79b2bc2996da318f09566dc115 to your computer and use it in GitHub Desktop.
tampermonkey google meet
// ==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