NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name imcloudapp 私人主页/浏览器主页/收藏夹/云收藏/网址导航,网站配合插件使用更佳 // @namespace https://openuserjs.org/users/knciik // @version 1.0.1 // @copyright 2021, knciik (https://openuserjs.org/users/knciik) // @license Apache-2.0 // @author knciik // @match *://www.imcloudapp.com/* // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A /wD/oL2nkwAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAAd0SU1FB+UGFRMQC6GqpGwAAAABb3JOVAHP oneaAAAG4klEQVRIx0WWO4wlRxWGv/9U9b0zszvj3VkvmF1j8BNkYxkjAkCGCDmACBLEIyQlICIl QSIgJAQSLJCQkANACAEBIGRAIN4PCWxsY4PX9u7Mzs7cO9NddX6CvrYr6KBaffq8/oec7kxJLyqR 1ZaE1TqWSmRgS04JEU5nQlVgJVhZIK0uqoku25JcbDmNKgZVUWSQIa1AxSYhlEIgM78OSYCRCUAC AgQBhLGQjTzfBzigWDhAyF2brw0CY0RINu21uGCjbpL5CCxbKGwJISNQOCaB5v+KpATCLeh1viLS ZG+2bbd0GjB2CjNXOFl2aO4BJJYs2RUDPUOTohphnHbBChmfmVDUiGFOzZKEM3EOISE7cRdhQiFv yvMcrEKFjhwOkcnUVJYM6m4VYjEpnlvns68cHa5by9iq7O/uPHB5caUQ2e2GJGq6WGBCYHAHOVRx WJKpKcljuEFNKxhDfz48++6vXvjDtcXTN3SSw5QEvrDTHrq0fvye4eOP3vGmIabmUtStTJciiCJv +mfJvW0GYzJsHAnWdeXXf3vtiadu3GgX2dqpy92MKuWQY7TTk3Ur7vedW33h8UuP3703ZRtEzitO QFbJCZZ6jqjKyGkHpqVvLeIrTz33tZ9fX+4/2GMLWSY7RTlwJtPq9oh0vLo0PvuFj1z+1IOX+9QK LUppKFVCGmxn1iQ2jcN0E3Ey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Db3B5 cmlnaHQgKGMpIDE5OTggSGV3bGV0dC1QYWNrYXJkIENvbXBhbnn5V3k3AAAAIXRFWHRpY2M6ZGVz Y3JpcHRpb24Ac1JHQiBJRUM2MTk2Ni0yLjFXrdpHAAAAJnRFWHRpY2M6bWFudWZhY3R1cmVyAElF QyBodHRwOi8vd3d3LmllYy5jaBx/AEwAAAA3dEVYdGljYzptb2RlbABJRUMgNjE5NjYtMi4xIERl ZmF1bHQgUkdCIGNvbG91ciBzcGFjZSAtIHNSR0JEU0ipAAAAAElFTkSuQmCC // @grant none // @description 针对imcloudapp.com网页收藏夹,提供额外功能:图标透明度、网页标题、修改图标、搜索栏 // @ 插件开启后在左下角新增一个齿轮按钮,点击以打开插件配置 // @ 1. 图标透明度 // @ 2. 网页标题 // @ 3. 修改图标 开启后需要刷新页面,然后再图标右键点击编辑,弹出页面多出一个输入框,输入图片url链接或者base64图片编码 // @ 4. 添加搜索栏 // ==/UserScript== (function() { 'use strict'; //本地数据保存 var store =window.localStorage.getItem("imcloudapp_supper") var json = { alphacheck : false, alpha :100, modfiycheck:false, modfiy:null, iconcheck:false, seachcheck:false, seacher:1, bgmcheck:false, bgm:null, apps:{}, } if(store && store != "null"){ json = JSON.parse(store) console.log("读取到配置",json) }else{ window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) console.log("初始化配置") } var oldtitle = document.title //记录一下原本的title function setIconAlpha(al){ var appitem_list = document.getElementsByClassName("appitem") for (var i=0;i<appitem_list.length;i++){ var appitem = appitem_list[i] var icon = appitem.children[0] icon.style.opacity = al/100 } var div1 = document.getElementById("my-seacher1") if(div1){ div1.style.opacity = al/100 } } function setSeacher(index){ var div1 = document.getElementById("my-seacher1") var div2 = document.getElementById("my-seacher2") if(div1){ div1.remove() } if(div2){ div2.remove() } if(!index){ return } var d1 = document.createElement("div") d1.id="my-seacher1" d1.style = `height:60px;width:30%;position:absolute;top:60px;left:35%;` d1.innerHTML = ` <div class="searchInput ivu-input-wrapper ivu-input-wrapper-default ivu-input-type" style="margin-bottom: 10px;height:50px;"> <span class="ivu-input-suffix" style="padding:0;height:50px;width:50px;"> <button id="my-seacher-btn" style="height:100%;width:100%;border:none;border-left:2px solid #aabdf5;border-radius: 4px;background-size:50px;background-position:0;"></button> </span> <i class="ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i> <input id="my-seacher-word" autocomplete="off" spellcheck="false" type="text" placeholder="搜索" class="ivu-input ivu-input-default ivu-input-with-suffix" style="height:50px;color:#999;font-size:22px;" onkeypress="if(event.which === 13) document.getElementById('my-seacher-btn').click()"> </div> ` var vc = document.getElementsByClassName("page-launcher")[0] vc.insertBefore(d1,vc.children[0]) if(json.alphacheck) { d1.style.opacity = json.alpha/100 } if(json.alphaCheck){ d1.style.opacity = json.alpha/100 } var d2 = document.createElement("div") d2.style = `height:100px;width:100px;` d2.id="my-seacher2" var vContainer = document.getElementsByClassName("container")[0] vContainer.insertBefore(d2, vContainer.children[0]); setTimeout(function(){ if(index == 1) { var btn = document.getElementById("my-seacher-btn") btn.style.backgroundImage="url(data:image/webp;base64,UklGRhALAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSKsCAAABX6CobRs42O58jUOYLiJCER3e4wF0s+2NI0m/J7hzJDAhTAh7xDAZjE+Ppbbo9UMlID5CAK2iIiARnkiVAO69TkT/J+DH74P//Pxp8G9fMPj3r6P98j8W7/001Psz5zhSeIoIU895PxlLco69lHO05UqDqRWKCJOpUBsyt5KISDS1SntphHJisrR3eDolaUZDrnQOAhBKi8lQ7cgMIEl3HuENcKW3DBJqj6cxVukfg3z8g8TDLRhgvvZmwHvvT6Vz0LVZLzxz3h4A9g5Plw7SSyIiGwFrZwGw9nhSC+UkEQilNQMItROhtkqTCUgNJgCutJj09pbMQCiniHNqRai50lkAJBHZqBHKiUkv1A5PQHjm7YF2qiJHBODPCqt0DwLgvUfXpZzjBIRnznmj+z56MuNV5/0EIMk53rdfeHupHUqD6S5X1FZpx9u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76RwPAqs4HffhobXrLub6uEjBqbgAAAP/dq/2dCFa3xJMv8gr6Li9QAAAA=)" btn.addEventListener("click",function(){ var input = document.getElementById("my-seacher-word") var word = input.value var url = "https://www.baidu.com/s?wd="+word window.open(url, '_blank'); }) }else if (index == 2) { var btn = document.getElementById("my-seacher-btn") btn.style.backgroundImage="url(data:image/webp;base64,UklGRuAcAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSMwQAAANoV2I6H8kSUCSoiwiIqZsbXvaSPp+SaYwFVc1c/cFzHoumGlHS2amZioKmiLp/xcBV8Ns50RMwATYtbY9kSTp+38pFBGZWcmZzd3VU8Mzy8zgkbVnzfX3UvYa1l2bLCabmbG5u7gqMUDS/xtFWdm93hoRMQG0rG1T20jfX6WSZMt2ZDczMzP3XQ9sYBY4i5hVMDYzJoY2SBaUqv6LgCIlg1cRMQGNh2IK/KfP1MD/K+1iYy9GDhuNF1dCSUHHG+a+NvYiZOcX199Wzl88GniQuA1+k3rqoYsCsKYgC6Tn4O7143t/Cu/IEWFeJNoGcsjzHhkpgHJRAFY7GgggBFh/FvLXjp9Mp9007tLIvDASc5ED1p8yQxNbFIgAgBACFCCWx0AoijJSH6CsBAiyYF9P/jZf/qt+M6vzF0PTVYee+pwXCUW2KAAAjBVYhtQZlmVoQICRMqciRMaYug4K7ufPguvO58+2X914ETRt0pwUaQIwAMARLMMIIYoAoyWgKEKAQuokM2osLLiuIMoB6Wut395/3Bu1nzeDRa478YFNBABAAHNOWKKuLRFIeBlPsBw4AASqXkAsUWLS68OW8xqqaeKvZ9/fezsV+zwF9p2ae+CuGgIAIEoFz4mFtFhCc0Y8AWsrREWCBtZORibnuCwVNNj864OWP7jhnp9IzwV3/W4kQQCER0oTGW3DproJkYIzVRJSaDkXzcdXG9NDkUjdO+kf/vHf1wbp8xK6SrwnRDYpACIzxrS+poBnPScEvFBZcpQqSzvdvNz33M/3G/Uvw2vu+QgMBP5RpwAAeDNDXqJjC8kwWEoYOTMoFMXucrQ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wIwoMI23CNFofpPvClIedvOIgxTn5SoLNsPA2CHpxm4n5M7oMyBRg5ClMSejU6obbqBxqxc7UwQoA8KW5DBRh7hHgDpP3HMcpWoRGf15kqVATF44wCQL8BnWPhHM3UIONdJ7jD7lsJ/b/DLNOKQaQtG6qFq+Q1eBMPo8sUulurugVFKr2zFvx+JL9Q553NwwqzGB3sCKZnropt/kcRNo/q1pca3/r9DCXG9f89RjE/QXGPPML9LoXRwQWjCpXzRWYNVaTomHOo95x+BsA+7+kABx0hdQkgxUUOfUJDkJAMgQp6HRJUlgURwXfB0ogApv/aEgAzQAAAAAAAA=)" btn.addEventListener("click",function(){ var input = document.getElementById("my-seacher-word") var word = input.value var url = "https://www.sogou.com/web?query="+word window.open(url, '_blank'); }) }else if (index == 3){ var btn = document.getElementById("my-seacher-btn") btn.style.backgroundImage="url(data:image/webp;base64,UklGRngPAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSN4HAAAN8G5te9pm27btu4xxOCkcxZSZToYJuOabuZAyM6Vt0kDtGCTrwiOS7f68xoiICYD/24wEAHUARgE4558KEqKYqmmqxBxKsdYbZYHr+R4P2adAVCXTlylNF0yNEESOhIWc+c7TXafdaocBTzjdKIz0V4Y1t9GxXZ/5ACQ3oCtmJl/KaeHbydNdxwuSC610pTI8yF69gMJXEg0QFSVTNgtjFbN+dfLU6SYTsfqXpgu8ETAOQlFBkiqXlkZC+2L/zQ0TR0l/WZ6mtsdBroLp8vxkKTg8fHZZoqA1/u34x7sPUcSUObJagcO9ZydBjPLKoub4EFklO7Iw3jo/rrOkKCysFxocIq1aE8sjL9tXH4mgDm6MeAGHqOsDE6upg51aAqRmfiy0OMRQUYdXxt/+fkvjll1e8gKIKeZnZrLbh068St9PPgQQ3+zcmrVXbcUIB34e6zCIs178buxq+43HBYd+HnAh7qWNqYutNo/JwM99PsRfp5RDTPt+KfsQf3fvoB9jkv9+zIP4u3s7JYhpeq1iQ/zd6k4JYqovzd4zWS4PGQcAVAiqqhivul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px+12s5/E5N0TY4z6G/5/oNjN4ShKhu26Gv1aK+vCf9jkUKeN91CJc44AohyQ5/R6goY1VEJIFuU/92yZZCt7SRNrWzcdOG++wnRgEoa/ra/v94wW9RtIKt5KQyIaBArlj/MJCghpjntkQ6ThOBa7nD7S9Bi0qwUhdI/22ZlNx4vjLN6wkBc0fHktOxNzqkOEITiL3xxQGUIdD068cZf7iWrXiCmeiqcIZ00v/6ivYASv4CFBbzieK0vNOwBFtR4ci5uQ9ayYfv6mIFyYssiw/teWERlrtfj3x1p9t5ds/N4GdfPHx875Dj2Tmmis7+H4Ov9ieKtxK1lSEIaOputFgVTZJgf0wKgAAAAAA=)" btn.addEventListener("click",function(){ var input = document.getElementById("my-seacher-word") var word = input.value var url = "https://www.google.com.hk/search?q="+word window.open(url, '_blank'); }) }else if (index == 4){ var btn = document.getElementById("my-seacher-btn") btn.style.backgroundImage="url(data:image/webp;base64,UklGRjgGAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSPUCAAABoAVJtmnbGts89rm2bdu2bdu2bdu2bdv2sY3dH0dr7TvH9XsRERNAfKdPtDxjiaf/5fd3tLubMF2/l78DNdk8Fbw5zDsxtKgDZ7brEflkc+eiznytBoDgp5t7FDIxtS4BgPAHK9pkM3K0NgkAwTcXNcmpY2dNcgD43picjjfAqzp33tW486ryfz++VebOqxoRKTOlYqwGEWk67x5S3E7JVDUiosKP4l5u6p/fgaXqCUzz44GoRxva5jGz41MrAdX6AAAWvxtzm2XRM1M7kdSHEwCI97+6sHlmIyPe1RNR9g1LDIDF59LMOpm1XHhVTYTy3UgGgNjPFyZXc1GxopsWnSwAsV8OjSzjwQiVfZkSAHEf9vcv5yS8Kkk47ZQAQMSrjX2K2CpYoM4hkgAIf7Kla24zB3kvSwUg8PbSNrm0wtNOjJUOQNCNWbV0gqMan2QB4g+4ic5jr0w46S46ZZcA5ijbLZnOeAhPNypInrPiI+eOO9/zRuRYb827eNaInKotfhnLGpFNifG3Y1kj0hQcdTqY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5NVNjgjtitL2mhRDqwOj1t55rhYmSxz8n8J+FHk40Muy+0sze1H24X2PpxakF0it29OUZNLavl1RejDV7cfChSGfAUs8+Z/EO1WVbZV8T57G4OqglzpUSxE0xjNcg9EZhECAKWFQaa9qCcBt1mTEy1kF5rk0BxyPLPoObQ69Z3zajWJ7lj19sXo3qR7L24MUJYAGdsXS+OTqpPrvXuhPIl4PKC7YfvgsR+JrCH7eMQuWBSggoNqWtj9vjL11DipzTkHWoP48gQwMATeM3XfxH/KgI5xrQK50s47nhkAif/S6h/wdxt4H+tDI6zTK5rPX4EsPX3M9CYnIKsYT+ZWdmExZ6/F/7PHUnsDUez7/6LgYeWf7b85eFiEiAMk6D2W9DAlm9lDySdGNep4PfLeK5CvAZwpZ1dLtqZJpaIHnuivvgyFzJDtzkThJDLH/4ZHkYAAAAAA==)" btn.addEventListener("click",function(){ var input = document.getElementById("my-seacher-word") var word = input.value var url = "https://cn.bing.com/search?q="+word window.open(url, '_blank'); }) } },0) } function verifyUrlOrBase64(text){ if(text == "" || text=="null" || !text){ return false } var checkStr = text.substr(0,15).toLowerCase() var result = checkStr.startsWith("http://") || checkStr.startsWith("https://") || checkStr.startsWith("ftp://") || checkStr.startsWith("tftp://") || text.startsWith("//") || text.startsWith("data:image/") //console.log("verifyUrlOrBase64",text,checkStr,result) return result } function updateAppIcon(){ var vGrid = document.getElementsByClassName("v-grid")[0]; var appItems = vGrid.getElementsByClassName("appitem"); var cache = {} for (var i=0;i<appItems.length;i++){ var appitem = appItems[i] var name = appitem.querySelector("div.text span").innerHTML if(json.apps[name] && json.apps[name].icon && verifyUrlOrBase64(json.apps[name].icon)){ // console.log("updateAppIcon",name,json.apps[name].icon) cache[name] = json.apps[name] var vIcon = appitem.querySelector("div.icon") vIcon.style.backgroundImage="url("+json.apps[name].icon+")" var wordIcon = appitem.querySelector("span.icontext") if(wordIcon){ wordIcon.remove() } } } json.apps = cache //丢弃已删除的配置 window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) } function setAppIcon(){ setTimeout(updateAppIcon,600) if(document.body.isAddAppIconListener) return document.body.addEventListener("DOMNodeInserted",function(event){ if(!json.iconcheck){ return } if(event.target.className=="v-transfer-dom"){ setTimeout(function(){ var labels = event.target.getElementsByTagName("label") for (var i=0;i<labels.length;i++){ var label = labels[i] if(label.innerHTML=="请输入网址"){ //添加一个输入框 var form =event.target.getElementsByTagName("form")[0] // console.log(form) var newDiv = document.createElement("div") newDiv.className = "ivu-form-item" newDiv.innerHTML = ` <label class="ivu-form-item-label">自定义图标路径(url链接 或 <a target="_blank" href="https://note.youdao.com/s/QTH5Ag73">base64编码</a>)</label> <div class="ivu-form-item-content"> <div class="ivu-input-wrapper ivu-input-wrapper-default ivu-input-type"> <i class="ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i> <input autocomplete="off" spellcheck="false" type="text" placeholder="" class="ivu-input ivu-input-default" /> </div> </div>` form.append(newDiv) var confirmBtn = event.target.getElementsByClassName("ivu-btn")[0] confirmBtn.addEventListener("click",function(){ var inputs = form.getElementsByTagName("input") var url = inputs[0].value var name = inputs[1].value var icon = inputs[2].value // console.log("确认",url,name,icon) json.apps[name] = { url,icon } window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) setTimeout(updateAppIcon,100) }) return } } },300) } }) document.body.isAddAppIconListener = true } function init(){ // 添加一个按钮 var divcon = document.getElementsByClassName('base')[0] var divbtn = document.createElement('div') divbtn.style.backgroundImage = "url(data:image/webp;base64,UklGRiAFAABXRUJQVlA4WAoAAAAQAAAAPwAAPwAAQUxQSCsDAAABoETbtqk92mXbthEbv/+ybdu2bcX6VLZj27Ztm6txz73fffla6UXEBGjHZpULioouqFJAh64A2HZ24VyFeV/hfGC1Kpxu1oQCOfD6X/B2veuA7efMb+s7u1z043qC1/94425O1fZXJ3TiPLY8LpWPIuLYC6VHgLJEjpkL0PcnzNWTsqluXTOtlhjwb2/cSxI4Yz6hgx47VTvL3avkwyGbCb083hcE9q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6DSJWTT5ZgCACfj+GWS5OXqB/MWEbug2Jn9hZfJQKOElwKa7ZWPfdZDHXXC8JgbTsvHB3489BxMw6BBbbRJy+lBUh2lpZfK8cdAFGP+DTkCAWsS5qqevXjTd2fGZuXX3ypVTHjVxGpI0pZNs89g8ws6lEcn8+fTzGDjtrcaw8iNN7u5SElVtWzUizUgopqk4oWln1lMWgWL/a/1pXtc+Wf4ZiWRkHF2LYOHmc2BXzM9z3ZHyOC+HUyPWv27f/5OkjHCD0shxMnQIcfBn7+sJ5xj+OZzq+A5MrjXVNNA5IsVTvRrEUjUUApeKt6jUVihGi6Ex7G6zJdv/rNdyIsJZQBTEQV//K1N3Up6jMtLWugLi78fBql4iP4F3Zbra8w2kvhIAyvFqVzJZBL/+Vi3/5UbCVgAAAA)"; divbtn.style.backgroundSize = "35px 35px" divbtn.style.backgroundRepeat = "no-repeat" divbtn.style.backgroundPosition = "9px 7px" //每次新版本编译后data-v-x会改变 //读取父元素的data-v-x var htmltext = divcon.parentElement.innerHTML var datatext = htmltext.match(/data-v-[a-z0-9]{8}/g)[0] divbtn.setAttribute(datatext,"") divbtn.className = "btn self" divcon.appendChild(divbtn) //添加一个遮罩层 var divtrans = document.createElement('div') divtrans.setAttribute("data-transfer",true) divtrans.className = "v-transfer-dom" divtrans.id = "mysetting" document.body.append(divtrans) divtrans.innerHTML = ` <div class="ivu-drawer-mask" style="background-color: rgba(0, 0, 0, 0.2); display: none;" onclick="closeMyPanel()"></div> <div class="ivu-drawer-wrap ivu-drawer-hidden"> <div class="ivu-drawer ivu-drawer-left" style="width: 470px;margin-left:50px;"> <div class="ivu-drawer-content"> <div class="ivu-drawer-header"> <div class="sidebar-header"> <div class="btn left"> <i class="iconfont"></i> </div> <div class="title"> 插件配置 </div> </div> </div> <div class="ivu-drawer-body"> <form id="mysettingForm"> <div data-v-653a6582="" class="nav"> <!-- 图标透明度--> <div data-v-653a6582="" class="item"> <span data-v-653a6582="" class="text transition"><input name="alphacheck" type="checkbox" value="0"> 启用图标透明度</span> <span data-v-653a6582="" class="text transition"> 透明度: <input name="alpha" type="range" min="0" max="100" value="100" style="height:5px;width:200px;"></span> </div> <!-- 网页title--> <div data-v-653a6582="" class="item"> <span data-v-653a6582="" class="text transition"><input name="modfiycheck" type="checkbox" value="0"> 启用自定义网页标题</span> <span data-v-653a6582="" class="text transition"> 输入标题:<input name="modfiy" type="text" value="" placeholder ="我的主页" style="height:22px;width:200px;"></span> </div> <!-- 自定义图标--> <div data-v-653a6582="" class="item"> <span data-v-653a6582="" class="text transition"><input name="iconcheck" type="checkbox" value="0"> 启用修改图标</span> </div> <!-- 启用搜索栏--> <div data-v-653a6582="" class="item"> <span data-v-653a6582="" class="text transition"><input name="seachcheck" type="checkbox" value="0"> 启用搜索栏</span> <span data-v-653a6582="" class="text transition"> 搜索引擎:<select name="seacher" value="1" style="height:22px;width:200px;"> <option value="1">百度</option> <option value="2">搜狗</option> <option value="3">谷歌google</option> <option value="4">必应bing</option> <select></span> </div> <!-- 启用背景音乐--> <!-- <div data-v-653a6582="" class="item"> <span data-v-653a6582="" class="text transition"><input name="bgmcheck" type="checkbox" value="0"> 启用背景音乐</span> <span data-v-653a6582="" class="text transition"> 音乐连接:<input name="bgm" type="text" value="" placeholder ="url" style="height:22px;width:200px;"></span> </div> --> </div> </form> <div data-v-653a6582="" class="bottom"> <button data-v-653a6582="" type="button" class="btn-down ivu-btn ivu-btn-default ivu-btn-long ivu-btn-large"> <span>导入配置</span> </button> <button data-v-653a6582="" type="button" class="btn-upload ivu-btn ivu-btn-default ivu-btn-long ivu-btn-large"> <span>导出配置</span> </button> <button data-v-653a6582="" type="button" class="btn-close ivu-btn ivu-btn-default ivu-btn-long ivu-btn-large"> <span>关闭</span> </button> </div> </div> </div> <div> </div> ` //添加一个模态框 var divmodel = document.createElement('div') divmodel.setAttribute("data-transfer",true) divmodel.className = "v-transfer-dom" divmodel.id = "mysetting-upload" divmodel.style.display = "none" document.body.append(divmodel) divmodel.innerHTML = ` <div class="ivu-modal-mask" style="z-index: 1003;"></div> <div class="ivu-modal-wrap vertical-center-modal" style="z-index: 1003;" onclick="document.getElementById('mysetting-upload').style.display ='none'"> <div class="ivu-modal" style="width: 520px;"> <div class="ivu-modal-content" onclick="event.stopPropagation();"> <a class="ivu-modal-close" onclick="document.getElementById('mysetting-upload').style.display ='none'"> <i class="ivu-icon ivu-icon-ios-close"></i> </a> <div class="ivu-modal-header"> <div class="ivu-modal-header-inner">导入配置</div> </div> <div class="ivu-modal-body"> <form autocomplete="off" class="ivu-form ivu-form-label-top"> <div class="ivu-form-item ivu-form-item-required"> <label class="ivu-form-item-label">请粘贴配置</label> <div class="ivu-form-item-content"> <div class="ivu-input-wrapper ivu-input-wrapper-default ivu-input-type"> <i class="ivu-icon ivu-icon-ios-loading ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i> <input id="my-setting-upload-value" autocomplete="off" spellcheck="false" type="text" placeholder="" class="ivu-input ivu-input-default" /> </div> </div> </div> </form> </div> <div class="ivu-modal-footer"> <div style="height:80px;"> <button type="button" class="ivu-btn ivu-btn-primary ivu-btn-down" style="position:absolute;left:40%;bottom:15px;"> <span>确认</span> </button> <button type="button" class="ivu-btn ivu-btn-primary ivu-btn-up" style="position:absolute;left:40%;bottom:15px;"> <span>确认</span> </button> </div> </div> </div> </div> </div>` //自定义按钮点击事件 divbtn.addEventListener("click",function(){ divtrans.getElementsByClassName("ivu-drawer-mask")[0].style.display="block" divtrans.getElementsByClassName("ivu-drawer-wrap")[0].className = "ivu-drawer-wrap" }) //点击wrap关闭 divtrans.getElementsByClassName("ivu-drawer-wrap")[0].addEventListener("click",function(){ divtrans.getElementsByClassName("ivu-drawer-mask")[0].style.display="none" divtrans.getElementsByClassName("ivu-drawer-wrap")[0].className = "ivu-drawer-wrap ivu-drawer-hidden" }) divtrans.getElementsByClassName("ivu-drawer-left")[0].addEventListener("click",function(event){ event.stopPropagation(); }) //点击关闭按钮 divtrans.getElementsByClassName("btn-close")[0].addEventListener("click",function(){ divtrans.getElementsByClassName("ivu-drawer-mask")[0].style.display="none" divtrans.getElementsByClassName("ivu-drawer-wrap")[0].className = "ivu-drawer-wrap ivu-drawer-hidden" }) //点击导入 divtrans.getElementsByClassName("btn-down")[0].addEventListener("click",function(){ var title = divmodel.getElementsByClassName("ivu-modal-header-inner")[0] var input = divmodel.getElementsByClassName("ivu-input")[0] var tip = divmodel.getElementsByClassName("ivu-form-item-label")[0] divmodel.getElementsByClassName("ivu-btn-up")[0].style.display="none" divmodel.getElementsByClassName("ivu-btn-down")[0].style.display="block" title.innerHTML = "导入配置" tip.innerHTML = "请粘贴配置" input.value = "" divmodel.style.display = "block" }) //点击导出 divtrans.getElementsByClassName("btn-upload")[0].addEventListener("click",function(){ var title = divmodel.getElementsByClassName("ivu-modal-header-inner")[0] var tip = divmodel.getElementsByClassName("ivu-form-item-label")[0] var input = divmodel.getElementsByClassName("ivu-input")[0] divmodel.getElementsByClassName("ivu-btn-down")[0].style.display="none" divmodel.getElementsByClassName("ivu-btn-up")[0].style.display="block" title.innerHTML = "导出配置" tip.innerHTML = "请复制并保存" input.value = window.localStorage.getItem("imcloudapp_supper") divmodel.style.display = "block" }) //导入确定 divmodel.getElementsByClassName("ivu-btn-down")[0].addEventListener("click",function(){ var input = divmodel.getElementsByClassName("ivu-input")[0] var settingStr = input.value try{ var settingObj = JSON.parse(settingStr) if(settingObj){ window.localStorage.setItem("imcloudapp_supper",settingStr) alert("导入成功,请刷新页面") divmodel.style.display = "none" return } }catch(error){ } alert("输入有误") }) //导出确定 divmodel.getElementsByClassName("ivu-btn-up")[0].addEventListener("click",function(){ divmodel.style.display = "none" }) //初始化插件配置页面 setTimeout(function(){ var list = divtrans.getElementsByTagName("input") var alphacheckElement = list[0] var alphaElement = list[1] var modfiycheckElement =list[2] var modfiyElement = list[3] var iconcheckElement = list[4] var seachcheckElement = list[5] var seacherElement = divtrans.getElementsByTagName("select")[0] //var bgmcheckElement =list[6] //var bgmElement = list[7] if (json.alphacheck) { alphacheckElement.checked = true alphaElement.value = json.alpha setIconAlpha(json.alpha) }else{ alphaElement.parentElement.style.display="none" } if (json.modfiycheck) { modfiycheckElement.checked = true modfiyElement.value = json.modfiy document.title = json.modfiy }else{ modfiyElement.parentElement.style.display="none" } if(json.iconcheck){ iconcheckElement.checked = true setAppIcon() } if(json.seachcheck){ seachcheckElement.checked = true seacherElement.value = json.seacher setSeacher(json.seacher) }else{ seacherElement.parentElement.style.display="none" } //if(json.bgmcheck){ // bgmcheckElement.checked = true // bgmElement.value = json.bgm //}else{ // bgmElement.parentElement.style.display="none" //} //插件配置页面事件 alphacheckElement.addEventListener("click",function(){ json.alphacheck = alphacheckElement.checked if(json.alphacheck){ alphaElement.parentElement.style.display = "block" alphaElement.value = json.alpha setIconAlpha(json.alpha) }else{ alphaElement.parentElement.style.display = "none" json.alpha = 100 setIconAlpha(100) } window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) }) alphaElement.addEventListener("change",function(){ json.alpha = alphaElement.value window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) setIconAlpha(json.alpha) }) modfiycheckElement.addEventListener("click",function(){ json.modfiycheck = modfiycheckElement.checked if(json.modfiycheck){ modfiyElement.parentElement.style.display = "block"; modfiyElement.value = json.modfiy; if( json.modfiy="" || json.modfiy=="null" || !json.modfiy){ console.log("不修改标题") }else{ document.title = json.modfiy } }else{ modfiyElement.parentElement.style.display = "none" document.title = oldtitle modfiyElement.value ="" json.modfiy = "" } window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) }) modfiyElement.addEventListener("keyup",function(){ json.modfiy = modfiyElement.value window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) document.title = json.modfiy }) iconcheckElement.addEventListener("click",function(){ json.iconcheck = iconcheckElement.checked window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) setTimeout("alert('请刷新页面')",10) }) seachcheckElement.addEventListener("click",function(){ json.seachcheck = seachcheckElement.checked window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) if(json.seachcheck){ seacherElement.parentElement.style.display = "block" seacherElement.value = json.seacher setSeacher(json.seacher) }else{ seacherElement.parentElement.style.display = "none" setSeacher(null) } }) seacherElement.addEventListener("change",function(){ json.seacher = seacherElement.value window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) setSeacher(json.seacher) }) //bgmcheckElement.addEventListener("click",function(){ // json.bgmcheck = bgmcheckElement.checked // window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) // if(json.bgmcheck){ // bgmElement.parentElement.style.display = "block" // bgmElement.value = json.bgm // }else{ // bgmElement.parentElement.style.display = "none" // } //}) //bgmElement.addEventListener("keyup",function(){ // json.bgm = bgmElement.value // window.localStorage.setItem("imcloudapp_supper",JSON.stringify(json)) //}) },0) } //监听加载完成后添加控件 window.addEventListener('load', function () { //加一个延时循环保证元素已经绘制结束 var timer = setInterval(function(){ console.log("循环检测") if(document.getElementsByClassName('base')[0]){ init();console.log("第一次初始化") //var vm = document.querySelector("#app").__vue__ //var vgrid = vm.$children[0].$children[0] //applist: vgrid.items {href,icon,name,sort,_id} / vgrid.$data.list if(document.body.isAddInitListener) return document.body.addEventListener("DOMNodeInserted",function(event){ if(event.target.className=="page-launcher"){ init();console.log("页面更新") } }); document.body.isAddInitListener = true clearInterval(timer) } },50) }) })();