“User:Lihaohong/common.js”的版本间的差异

来自萌娘共享
跳转至: 导航搜索
(以“setTimeout”替换内容)
1个标签替换
(艹)
第1行: 第1行:
setTimeout
+
// 自动关乞讨消息(雾
 +
const closeWindows = function() {
 +
  const closeButton = $('.fc-close');
 +
  if (closeButton.length == 0) {
 +
    const sto = setTimeout;
 +
    sto(closeWindows, 100);
 +
    return;
 +
  }
 +
  closeButton[0].click();
 +
}
 +
closeWindows();

2023年1月9日 (一) 07:11的版本

// 自动关乞讨消息(雾
const closeWindows = function() {
  const closeButton = $('.fc-close');
  if (closeButton.length == 0) {
    const sto = setTimeout;
    sto(closeWindows, 100);
    return;
  }
  closeButton[0].click();
}
closeWindows();