Greasy Fork

DTF Album library

Библиотека для DTF альбома

目前为 2022-08-25 提交的版本。查看 最新版本

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

// @namespace   https://github.com/TentacleTenticals/DTF console mod
// @grant       none
// @version     1.0
// @author      Tentacle Tenticals
// @description Библиотека для модификации консоли
// @homepage https://github.com/TentacleTenticals/DTF functions
// @license MIT
// ==/UserScript==
/* jshint esversion:8 */

function consoleMod(run){
    {
        const log = console.log.bind(console)
        console.log = (...args) => {
          if(Array.isArray(args)){
            if(args[0]){
              if(typeof args[0] === 'string'){
                if(args[0].match(/\[ Air \] Ready.*/)){
                  log('ConsoleMod is active...');
                  run
                }
              }
            }
          }
          log(...args)
        }
    }
}