Greasy Fork

STOP_IN_500

STOP_IN_500

目前为 2023-01-27 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.cloud/scripts/458965/1142582/STOP_IN_500.js

// ==UserScript==
// @name         STOP_IN_500
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  STOP_IN_500
// @author       You
// @match        http://*/*
// @grant        none
// ==/UserScript==

      
(function confirmAction() {
  'use strict';
  var pages = document.title
  if (pages.includes("500")) {
    let confirmAction = confirm("Are you sure to execute this action?");
        if (confirmAction) {
          alert("Action successfully executed");
        } else {
          alert("Action canceled");
        }
      }

})();