TWINS Timeout Dialog Blocker

TWINS でタイムアウトしたときのポップアップを非表示にします。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         TWINS Timeout Dialog Blocker
// @name:en      TWINS Timeout Dialog Blocker
// @namespace    kichi2004.jp
// @version      1.0
// @description  TWINS でタイムアウトしたときのポップアップを非表示にします。
// @description:en Hide the popup windows for timeout on TWINS.
// @author       Takayuki Ueno
// @match        https://twins.tsukuba.ac.jp/campusweb/campusportal.do*
// @grant        none
// ==/UserScript==

console.log('Timeout Blocker Loaded!')
const windowOpen = window.open
const timeoutUrlList = [
    '/campusweb/theme/default/TimeoutAlert.html',
    '/campusweb/theme/default/Timeout.html'
]
window.open = (url, target, windowFeatures) => {
    if (timeoutUrlList.includes(url)) return
    windowOpen(url, target, windowFeatures)
}