//アカウントマネージャ //最初に読むやつ function load() { document.querySelector('#acct-list').innerHTML = '' if (location.search) { const m = location.search.match(/\?mode=([a-zA-Z-0-9]+)\&code=(.+)/) const mode = m[1] const codex = m[2] if (mode == 'first' && codex == 'true') { setAllClasses('body', 'first', 'add') } } const multi = localStorage.getItem('multi') if (!multi) return false const obj = JSON.parse(multi) let domains = [] let template = '' document.querySelector('#acct-list').innerHTML = '' for (let i = 0; i < obj.length; i++) { const acct = obj[i] const list = (parseInt(i) + 1).toString() let style = '' if (acct.background != 'def' && acct.text != 'def') style = `style="background-color:#${acct.background}; color:${acct.text};"` let name = acct.user if (acct.name) name = acct.name domains.push(acct.domain) template = template + `
${domain}
${lang.lang_manager_maxChars}