import IGlobal from "../interface/IGlobal"; import IWHSettings from "../interface/IWHSettings"; import Log from "./Log"; export default class WuhuBase { static glob: IGlobal = null; static getLocal(): IWHSettings { return JSON.parse(localStorage.getItem('wh_trans_settings')); } static conditionInterrupt() { if ( document.title.toLowerCase().includes('just a moment') || document.querySelector('#skip-to-content').innerText.toLowerCase().includes('please validate') ) throw '芜湖'; } constructor() { Log.info('创建对象:' + this.constructor.name) } }