自动关闭switch520的首次欢迎弹窗

2022/12/30 22:16:09

// ==UserScript==
// @name        自动关闭switch520的首次欢迎弹窗
// @namespace   Violentmonkey Scripts
// @match       https://xxxxx520.com/
// @grant       none
// @version     1.0
// @author      -
// @description 2022/12/30 22:16:09
// ==/UserScript==

(window.onload=function() {
    'use strict';
    var btn=document.querySelector('div.swal2-container.swal2-center.swal2-fade.swal2-shown > div > div.swal2-header > button');
    btn.click();
    
})();