您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Simple script that targets the browser tab that AWS ClientVPN opens on authentication and closes it.
// ==UserScript== // @name AWS-ClientVPN-Auto-Close-Browser-Tab // @namespace http://tampermonkey.net/ // @version 0.1 // @description Simple script that targets the browser tab that AWS ClientVPN opens on authentication and closes it. // @author John Polansky // @icon https://www.google.com/s2/favicons?domain=userscript.zone // @include http://127.0.0.1:35001/ // @run-at document-end // @inject-into content // @license MIT // @noframes // @grant window.close // @grant window.focus // ==/UserScript== (function() { 'use strict'; if (document.body.textContent.includes("You may close this window at any time.")) { console.log("Safe to close window.. goodbye!") window.close() } })();