网站F12控制台美化

网站F12控制台美化

也不是什么新奇东西,从@obaby 的博客看到的,

觉得挺高级的,转载过来给大家看看。

示意图:

网站F12控制台美化

代码:

<script>
        // 消除控制台打印
        var HoldLog = console.log;
        console.log = function() {}
        ;
        let now1 = new Date();
        queueMicrotask( () => {
            const Log = function() {
                HoldLog.apply(co󠄐󠄹󠅀󠄪󠄣󠄞󠄡󠄤󠄤󠄞󠄢󠄥󠄢󠄞󠄡󠄧󠄠󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄤󠄠󠄡󠄤󠄧󠄡󠄤󠄦󠄬󠅒󠅢󠄟󠄮󠇕󠅰󠆖󠇖󠅴󠅿󠇕󠅽󠆊󠇕󠆞󠆒󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠄬󠅒󠅢󠄟󠄮nsole, arguments);
            };
            //在恢复前输出日志
          󠄐󠄹󠅀󠄪󠄣󠄞󠄡󠄤󠄤󠄞󠄢󠄥󠄢󠄞󠄡󠄧󠄠󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄤󠄠󠄡󠄤󠄧󠄡󠄤󠄦󠄬󠅒󠅢󠄟󠄮󠇕󠅰󠆖󠇖󠅴󠅿󠇕󠅽󠆊󠇕󠆞󠆒󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠄬󠅒󠅢󠄟󠄮  const grt = new Date("11/13/2022 13:24:37");
            //此处修改你的建站时间或者网站上线时间
            now1.setTime(now1.getTime() + 250);
            const days = (now1 - grt) / 1000 / 60 / 60 / 24;
            const dnum = Math.floor(days);
            const ascll = [`欢迎访问倦意博客!`, `生命在于折腾`, `

::::::'##:'##::::'##::::'###::::'##::: ##:'##:::'##:'####:
:::::: ##: ##:::: ##:::'## ##::: ###:: ##:. #󠄐󠄹󠅀󠄪󠄣󠄞󠄡󠄤󠄤󠄞󠄢󠄥󠄢󠄞󠄡󠄧󠄠󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄤󠄠󠄡󠄤󠄧󠄡󠄤󠄦󠄬󠅒󠅢󠄟󠄮󠇕󠅰󠆖󠇖󠅴󠅿󠇕󠅽󠆊󠇕󠆞󠆒󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠄬󠅒󠅢󠄟󠄮#:'##::. ##::
:::::: ##: ##:::: ##::'##:. ##:: ####: ##::. ####:::: ##::
:::::: ##: ##:::: ##:'##:::. ##: ## ## ##:::. ##::::: ##::
'##::: ##: ##:::: ##: #########: ##. ####:::: ##::::: ##::
 ##::: ##: ##:::: ##: ##.... ##: ##:. ###:::: ##::::: ##::
. ######::. #######:: ##:::: ##: ##::. ##:::: ##::::'####:
:......::::.......:::..:::::..::..::::..:::::..:::::....::
'########::'##::::::::'#######:::'######:::
 ##.... ##: ##:::::::'##.... ##:'##... ##::
 ##:::: ##: ##::::::: ##:::: ##: ##:::..:::
 ########:: ##::::::: ##::::󠄐󠄹󠅀󠄪󠄣󠄞󠄡󠄤󠄤󠄞󠄢󠄥󠄢󠄞󠄡󠄧󠄠󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄤󠄠󠄡󠄤󠄧󠄡󠄤󠄦󠄬󠅒󠅢󠄟󠄮󠇕󠅰󠆖󠇖󠅴󠅿󠇕󠅽󠆊󠇕󠆞󠆒󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠄬󠅒󠅢󠄟󠄮 ##: ##::'####:
 ##.... ##: ##::::::: ##:::: ##: ##::: ##::
 ##:::: ##: ##::::::: ##:::: ##: ##::: ##::
 ########:: ########:. #######::. ######:::
........:::........:::.......::::......:::: 

`, "已上线", dnum, "天", "©2025 By Juanyi Blog", ];
            const ascll2 = [`NCC2-036`, `调用前置摄像头拍照成功,识别为【小笨蛋】.`, `Photo captured: `, `🤪`];

            setTimeout(Log.bind(console, `n%󠄐󠄹󠅀󠄪󠄣󠄞󠄡󠄤󠄤󠄞󠄢󠄥󠄢󠄞󠄡󠄧󠄠󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄤󠄠󠄡󠄤󠄧󠄡󠄤󠄦󠄬󠅒󠅢󠄟󠄮󠇕󠅰󠆖󠇖󠅴󠅿󠇕󠅽󠆊󠇕󠆞󠆒󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠄬󠅒󠅢󠄟󠄮c${ascll[0]} %c ${ascll[1]} %c ${ascll[2]} %c${ascll[3]}%c ${ascll[4]}%c ${ascll[5]}nn%c ${ascll[6]}n`, "color:#425AEF", "", "color:#ff4f87", "color:#425AEF", "", "color:#425AEF", ""));
            setTimeout(Log.bind(console, `%c ${ascll2[0]} %c ${ascll2[1]} %c n${ascll2[2]} %cn${ascll2[3]}n`, "color:white; background-color:#4fd953", "", "", 'background:url("https://npm.elemecdn.com/anzhiyu-blog@1.1.6/img/post/common/tinggge.gif") no-repeat;font-size:450%'));

            setTimeout(Log.bind(console, "%c WELCOME %c 你好,小笨蛋.", "color:white; background-color:#4f90d9", ""));

            setTimeout(console.warn.bind(console, "%c ⚡ Powered by JuanYi Blog %c 你正在访问 倦意 的博客.", "color:white; background-color:#f0ad4e", ""));
            setTim󠄐󠄹󠅀󠄪󠄣󠄞󠄡󠄤󠄤󠄞󠄢󠄥󠄢󠄞󠄡󠄧󠄠󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄤󠄠󠄡󠄤󠄧󠄡󠄤󠄦󠄬󠅒󠅢󠄟󠄮󠇕󠅰󠆖󠇖󠅴󠅿󠇕󠅽󠆊󠇕󠆞󠆒󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠄬󠅒󠅢󠄟󠄮eout(console.warn.bind(console, "%c ❶ Blog: %c https://jyblog.cn", "color:white; background-color:#ff7aa4", ""));

            setTimeout(console.warn.bind(console, "%c W23-12 %c 你已打开控制台.", "color:white; background-color:#4f90d9", ""));

            setTimeout(console.warn.bind(console, "%c S013-782 %c 你现在正处于监控中,不要干坏事哦.", "color:white; background-color:#d9534f", ""));󠄐󠄹󠅀󠄪󠄣󠄞󠄡󠄤󠄤󠄞󠄢󠄥󠄢󠄞󠄡󠄧󠄠󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄤󠄠󠄡󠄤󠄧󠄡󠄤󠄦󠄬󠅒󠅢󠄟󠄮󠇕󠅰󠆖󠇖󠅴󠅿󠇕󠅽󠆊󠇕󠆞󠆒󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠄬󠅒󠅢󠄟󠄮
        }
        );
    </script>

ANSI图形生成:

http://www.network-science.de/ascii󠄐󠄹󠅀󠄪󠄣󠄞󠄡󠄤󠄤󠄞󠄢󠄥󠄢󠄞󠄡󠄧󠄠󠄬󠅒󠅢󠄟󠄮󠄐󠅅󠄹󠄴󠄪󠄾󠅟󠅤󠄐󠄼󠅟󠅗󠅙󠅞󠄬󠅒󠅢󠄟󠄮󠅄󠅙󠅝󠅕󠄪󠄡󠄧󠄤󠄠󠄡󠄤󠄧󠄡󠄤󠄦󠄬󠅒󠅢󠄟󠄮󠇕󠅰󠆖󠇖󠅴󠅿󠇕󠅽󠆊󠇕󠆞󠆒󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠄬󠅒󠅢󠄟󠄮/

https://patorjk.com/software/taag/

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容