diff --git a/plugins/hc_im/index.js b/plugins/hc_im/index.js deleted file mode 100644 index 1c432af..0000000 --- a/plugins/hc_im/index.js +++ /dev/null @@ -1,162 +0,0 @@ -console.log("HCIM version 0.1.0 beta."); - -function swalImporter(){ - link = document.createElement('script'); - let info = navigator; - if(info.language == "zh-CN"){ - link.href = 'https://camo.hach.chat/?proxyUrl=https://unpkg.com/sweetalert/dist/sweetalert.min.js'; - }else{ - link.href = 'https://unpkg.com/sweetalert/dist/sweetalert.min.js'; - } - document.getElementsByTagName('head')[0].appendChild(link); -} - -swalImporter(); - -function getQueryVariable(variable) -{ - var query = window.location.search.substring(1); - var vars = query.split("&"); - for (var i=0;i -1){ - errorMessage(str('Script Error: See Browser Console for Detail'),1); - } else { - var message = [ - 'Message: ' + msg, - 'URL: ' + url, - 'Line: ' + lineNo, - 'Column: ' + columnNo, - 'Error object: ' + JSON.stringify(error) - ].join(' - '); - errorMessage(str(message),1); - } - return false; -}; - -window.alert = function(text) { - var mask = document.createElement("div"); - mask.style.position = " fixed"; - mask.style.zIndex = 1000000; - mask.style.top = 0; - mask.style.bottom = 0; - mask.style.left = 0; - mask.style.right = 0; - var div = document.createElement("div"); - div.style.backgroundColor = " #22b9ff"; - div.style.color = " #fff"; - div.style.position = " fixed"; - div.style.zIndex = 9999999; - div.style.height = " 60px"; - div.style.top = " 10%"; - div.style.left = "50%"; - div.style.lineHeight = " 60px"; - div.style.borderRadius = " 4px"; - div.style.fontSize = " 20px"; - div.style.textAlign = "center"; - div.style.padding = "0 10px"; - div.className = "animated bounceInDown"; - div.id = "alert"; - div.innerHTML = text; - document.getElementsByTagName("body")[0].appendChild(div); - document.getElementsByTagName("body")[0].appendChild(mask); - var selfObj = document.getElementById("alert"); - var alertWidth = window.getComputedStyle(selfObj, null).width; - div.style.marginLeft = -parseInt(alertWidth) / 2 + "px"; - setTimeout(function() { - document.getElementsByTagName("body")[0].removeChild(div); - document.getElementsByTagName("body")[0].removeChild(mask); - }, 3000); -} - -let firstOpen = getCookie("firstOpen"); -if(eval(firstOpen)){}else{ - swalImporter(); - swal({ - title: "Welcome!", - text: "Welcome to use HC-IM version 0.1.0.", - icon: "success", - }); -} - -var styleSheet = document.createElement('style'); -var mainStyle = ``` -body { - background-color: #9bddc2; - font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; -} -body, input, textarea { - font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; - font-size: 12px; - -o-tab-size: 4; - -moz-tab-size: 4; - tab-size: 4; -} -.trip -{ - overflow:hidden; -} - -.message { - border-left: 0px solid rgba(125,122,104,.5); -} -``` -styleSheet.type = 'text/css'; -styleSheet.innerText = ''; -document.head.appendChild(styleSheet); - diff --git a/plugins/hc_im/plugin.json b/plugins/hc_im/plugin.json deleted file mode 100644 index 6ebd821..0000000 --- a/plugins/hc_im/plugin.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "id":"hc_im", - "name":"HC-IM", - "description":"IM theme for HC++.", - "author":"Jankie", - "contact":"Soren@awaish.link" -} diff --git a/plugins/plugins.json b/plugins/plugins.json index 7359796..b595319 100644 --- a/plugins/plugins.json +++ b/plugins/plugins.json @@ -3,7 +3,6 @@ "demo_plugin", "ovui", "163music", - "hc_im", "cmd_history", "rain_render", "no_bomb",