Bustago

Block every custom popup and confirm message of Bustago

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Bustago
// @namespace    https://github.com/tark1998/bustago-popupblcoker
// @version      2025-12-24
// @description  Block every custom popup and confirm message of Bustago
// @author       You
// @match        https://www.bustago.or.kr/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=or.kr
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    window.confirm = function(message) {
        console.log("Confirm dialog intercepted. Message: " + message);
        // Return true to automatically confirm (click OK)
        if (message.includes("취소수수료")){ return true; }
        else{ return false;}
    };

    function terSelectAlert(selectCase,str,mode,roundTicketCd,terCode,area,terminalNm,searchNm,orderCreateDays,arr_cd,arr_nm,cd,nm) {
        if(selectCase=="1"){
            runTerminalEndList(mode,roundTicketCd,terCode,area,terminalNm,searchNm,orderCreateDays,arr_cd,arr_nm);
        }else if(selectCase=="2"){
            runTerminalSet(cd,nm,orderCreateDays);
        }else if(selectCase=="3"){
            runArrTerminalEndList(mode,roundTicketCd,terCode,area,terminalNm,searchNm,orderCreateDays,arr_cd,arr_nm);
        }else if (selectCase=="4"){
            runArrDepterminalSet(cd,nm,orderCreateDays);
        }
    }
    addJS_Node (terSelectAlert);

    function terLayerAlert(str,arr_nm) {
        if(arr_nm == undefined){
            $('#finishTerminalNm').focus();
        }else if(arr_nm != undefined){
            terminalEndListSearch('',$("#finishTerminalNm").val());
        }
    }
    addJS_Node (terLayerAlert);

    function layerAlert(str) {
        return
    }
    addJS_Node (layerAlert);
    
    function addJS_Node (text, s_URL, funcToRun, runOnLoad) {
        var D                                   = document;
        var scriptNode                          = D.createElement ('script');
        if (runOnLoad) {
            scriptNode.addEventListener ("load", runOnLoad, false);
        }
        scriptNode.type                         = "text/javascript";
        if (text)       scriptNode.textContent  = text;
        if (s_URL)      scriptNode.src          = s_URL;
        if (funcToRun)  scriptNode.textContent  = '(' + funcToRun.toString() + ')()';

        var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
        targ.appendChild (scriptNode);
    }
})();