diff --git a/README.md b/README.md index fd2c721..56a0c59 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # CDN -文件加速 +妞.我爱你静态文件 //cdn.jsdelivr.net/gh/ldxw/CDN@ diff --git a/Noisky_files/animate.css b/animate.css similarity index 100% rename from Noisky_files/animate.css rename to animate.css diff --git a/Noisky_files/font-awesome.css b/font-awesome.css similarity index 100% rename from Noisky_files/font-awesome.css rename to font-awesome.css diff --git a/Noisky_files/font-awesome.lite.css b/font-awesome.lite.css similarity index 100% rename from Noisky_files/font-awesome.lite.css rename to font-awesome.lite.css diff --git a/Noisky_files/font-awesome.min.css b/font-awesome.min.css similarity index 100% rename from Noisky_files/font-awesome.min.css rename to font-awesome.min.css diff --git a/Noisky_files/fonts/FontAwesome.otf b/fonts/FontAwesome.otf similarity index 100% rename from Noisky_files/fonts/FontAwesome.otf rename to fonts/FontAwesome.otf diff --git a/Noisky_files/fonts/fontawesome-webfont.eot b/fonts/fontawesome-webfont.eot similarity index 100% rename from Noisky_files/fonts/fontawesome-webfont.eot rename to fonts/fontawesome-webfont.eot diff --git a/Noisky_files/fonts/fontawesome-webfont.svg b/fonts/fontawesome-webfont.svg similarity index 100% rename from Noisky_files/fonts/fontawesome-webfont.svg rename to fonts/fontawesome-webfont.svg diff --git a/Noisky_files/fonts/fontawesome-webfont.ttf b/fonts/fontawesome-webfont.ttf similarity index 100% rename from Noisky_files/fonts/fontawesome-webfont.ttf rename to fonts/fontawesome-webfont.ttf diff --git a/Noisky_files/fonts/fontawesome-webfont.woff b/fonts/fontawesome-webfont.woff similarity index 100% rename from Noisky_files/fonts/fontawesome-webfont.woff rename to fonts/fontawesome-webfont.woff diff --git a/Noisky_files/fonts/fontawesome-webfont.woff2 b/fonts/fontawesome-webfont.woff2 similarity index 100% rename from Noisky_files/fonts/fontawesome-webfont.woff2 rename to fonts/fontawesome-webfont.woff2 diff --git a/Noisky_files/img/V_icon.png b/img/V_icon.png similarity index 100% rename from Noisky_files/img/V_icon.png rename to img/V_icon.png diff --git a/Noisky_files/img/V_icon_lite.png b/img/V_icon_lite.png similarity index 100% rename from Noisky_files/img/V_icon_lite.png rename to img/V_icon_lite.png diff --git a/Noisky_files/img/background-image/bg-0.jpg b/img/background-image/bg-0.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-0.jpg rename to img/background-image/bg-0.jpg diff --git a/Noisky_files/img/background-image/bg-1.jpg b/img/background-image/bg-1.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-1.jpg rename to img/background-image/bg-1.jpg diff --git a/Noisky_files/img/background-image/bg-10.jpg b/img/background-image/bg-10.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-10.jpg rename to img/background-image/bg-10.jpg diff --git a/Noisky_files/img/background-image/bg-2.jpg b/img/background-image/bg-2.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-2.jpg rename to img/background-image/bg-2.jpg diff --git a/Noisky_files/img/background-image/bg-3.jpg b/img/background-image/bg-3.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-3.jpg rename to img/background-image/bg-3.jpg diff --git a/Noisky_files/img/background-image/bg-4.jpg b/img/background-image/bg-4.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-4.jpg rename to img/background-image/bg-4.jpg diff --git a/Noisky_files/img/background-image/bg-5.jpg b/img/background-image/bg-5.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-5.jpg rename to img/background-image/bg-5.jpg diff --git a/Noisky_files/img/background-image/bg-6.jpg b/img/background-image/bg-6.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-6.jpg rename to img/background-image/bg-6.jpg diff --git a/Noisky_files/img/background-image/bg-7.jpg b/img/background-image/bg-7.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-7.jpg rename to img/background-image/bg-7.jpg diff --git a/Noisky_files/img/background-image/bg-8.jpg b/img/background-image/bg-8.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-8.jpg rename to img/background-image/bg-8.jpg diff --git a/Noisky_files/img/background-image/bg-9.jpg b/img/background-image/bg-9.jpg similarity index 100% rename from Noisky_files/img/background-image/bg-9.jpg rename to img/background-image/bg-9.jpg diff --git a/Noisky_files/img/favicon.ico b/img/favicon.ico similarity index 100% rename from Noisky_files/img/favicon.ico rename to img/favicon.ico diff --git a/Noisky_files/img/feed_icon_32x28.png b/img/feed_icon_32x28.png similarity index 100% rename from Noisky_files/img/feed_icon_32x28.png rename to img/feed_icon_32x28.png diff --git a/Noisky_files/img/noisky.jpg b/img/noisky.jpg similarity index 100% rename from Noisky_files/img/noisky.jpg rename to img/noisky.jpg diff --git a/Noisky_files/img/policebeian.png b/img/policebeian.png similarity index 100% rename from Noisky_files/img/policebeian.png rename to img/policebeian.png diff --git a/Noisky_files/jquery-1.12.4.min.js b/jquery-1.12.4.min.js similarity index 100% rename from Noisky_files/jquery-1.12.4.min.js rename to jquery-1.12.4.min.js diff --git a/Noisky_files/main.css b/main.css similarity index 100% rename from Noisky_files/main.css rename to main.css diff --git a/Noisky_files/main.js b/main.js similarity index 100% rename from Noisky_files/main.js rename to main.js diff --git a/Noisky_files/main.min.css b/main.min.css similarity index 100% rename from Noisky_files/main.min.css rename to main.min.css diff --git a/Noisky_files/main.min.js b/main.min.js similarity index 100% rename from Noisky_files/main.min.js rename to main.min.js diff --git a/scfone-theme-js/canvas-nest/2.0.4/canvas-nest.js b/scfone-theme-js/canvas-nest/2.0.4/canvas-nest.js deleted file mode 100644 index 16f956f..0000000 --- a/scfone-theme-js/canvas-nest/2.0.4/canvas-nest.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=1;t.default=function(){return""+n++},e.exports=t.default});e(n);var o=t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,n=null;return function(){for(var o=this,i=arguments.length,r=Array(i),a=0;an||r.x<0?-1:1,r.ya*=r.y>o||r.y<0?-1:1,t.fillStyle="rgba("+e.c.pointColor+")",t.fillRect(r.x-.5,r.y-.5,1,1),u=f+1;u=s.max/2&&(r.x-=.03*l,r.y-=.03*d),c=(s.max-v)/s.max,t.beginPath(),t.lineWidth=c/2,t.strokeStyle="rgba("+e.c.color+","+(c+.2)+")",t.moveTo(r.x,r.y),t.lineTo(s.x,s.y),t.stroke()))}),this.requestFrame(this.drawCanvas)}},{key:"destroy",value:function(){l(this.el),window.onmousemove=this.onmousemove,window.onmouseout=this.onmouseout,f(this.tid),this.canvas.parentNode.removeChild(this.canvas)}}]),e}();y.version="2.0.4";var w,b;new y(document.body,(w=document.getElementsByTagName("script"),{zIndex:(b=w[w.length-1]).getAttribute("zIndex"),opacity:b.getAttribute("opacity"),color:b.getAttribute("color"),pointColor:b.getAttribute("pointColor"),count:Number(b.getAttribute("count"))||99}))}(); diff --git a/scfone-theme-js/img/bg.jpg b/scfone-theme-js/img/bg.jpg deleted file mode 100644 index 828c41c..0000000 Binary files a/scfone-theme-js/img/bg.jpg and /dev/null differ diff --git a/scfone-theme-js/odscf/scf.js b/scfone-theme-js/odscf/scf.js deleted file mode 100644 index 2ee1703..0000000 --- a/scfone-theme-js/odscf/scf.js +++ /dev/null @@ -1,274 +0,0 @@ -// 针对 20200120.02 版本 -// 忽略异常 -const IGNORE_EXCEPTION = (funs) => funs.forEach(fun => { try { fun(); } catch (error) { } }); -// const IGNORE_EXCEPTION = (funs) => funs.forEach(fun => fun()); - -// 资源加载后回调 -const LOADED = (element, callback) => { - let loaded = false; - if (typeof callback === 'function') { - element.onload = element.onreadystatechange = () => { - if (!loaded && (!element.readyState || /loaded|complete/.test(element.readyState))) { - element.onload = element.onreadystatechange = null; - loaded = true; - callback(); - } - } - } -}; - -// 字符串模板 -const HEREDOC = (fn) => fn.toString().split('\n').slice(1, -1).join('\n') + '\n'; - -// 自定义字体 -const FONT_PINGYONG = HEREDOC(() => {/* - - */}); - -// 雨伞背景 -const ADD_UMBRELLA_BACKGROUND = (callback) => { - const SCRIPT = document.createElement('script'); - //SCRIPT.src = '//s0.pstatp.com/cdn/expire-1-M/canvas-nest.js/2.0.4/canvas-nest.js'; - SCRIPT.src = '//cdn.jsdelivr.net/gh/ldxw/CDN@v0.02.1/scfone-theme-js/canvas-nest/2.0.4/canvas-nest.js'; - SCRIPT.opacity = '0.1'; - SCRIPT.count = '10'; - LOADED(SCRIPT, callback); - document.body.appendChild(SCRIPT); -}; - -const ADD_IMGAGE_BACKGROUND = () => { - //const IMAGE = 'url(//img12.360buyimg.com/img/jfs/t1/56992/25/15607/359235/5dc93624E8223dc25/41cac0ada12d3ad9.jpg)' - //const IMAGE = 'url(//cdn.jsdelivr.net/gh/ldxw/CDN@v0.02.1/scfone-theme-js/img/bg.jpg)' - //随机美图背景 - const IMAGE = 'url(//api.ldxw.vip/img/pic.php?type=img.jpg)' - const DIV = document.createElement('div'); - DIV.style.background = IMAGE; - DIV.style.pointerEvents = 'none'; - DIV.style.backgroundRepeat = 'no-repeat'; - DIV.style.backgroundSize = 'cover'; - DIV.style.position = 'fixed'; - DIV.style.left = '0'; - DIV.style.top = '0'; - DIV.style.width = '100%'; - DIV.style.height = '100%'; - DIV.style.filter = 'blur(2px)'; - DIV.style.msFilter = 'blur(2px)'; - DIV.style.webkitFilter = 'blur(2px)'; - DIV.style.mozFilter = 'blur(2px)'; - DIV.style.oFilter = 'blur(2px)'; - DIV.style.opacity = '0.2'; - document.body.appendChild(DIV); -}; - -// 移除 README.md -const REMOVE_README = () => { - const TBODY = document.querySelector('#list-table tbody'); - if (TBODY) { - const TRS = TBODY.querySelectorAll('tr'); - let readme = null; - TRS.forEach(TR => { - const A = TR.querySelector('a'); - if (A && A.href.indexOf('README.md') >= 0) { - readme = TR; - return; - } - }); - readme ? TBODY.removeChild(readme) : null; - } -}; - -// 时间和 IP 居中显示,时间走动 -const ADD_TIME_AND_IP = () => { - // 居中并显示 - const CENTER = document.createElement('center'); - CENTER.style.paddingBottom = '40px'; - const FONT = document.body.querySelector('font'); - FONT.id = 'date'; - FONT.removeAttribute('color'); - CENTER.appendChild(FONT); - document.body.insertBefore(CENTER, document.body.querySelector('#mask')); - - // 时间走动 - setInterval(() => { - const ADDZERO = num => num < 10 ? '0' + num : num; const FUN_WEEK = week => '日一二三四五六'[week]; - - const DATE = new Date(); - const YEAR = DATE.getFullYear(); - const MONTH = DATE.getMonth() + 1; - const DAY = DATE.getDate(); - const HOURS = DATE.getHours(); - const MINUTES = DATE.getMinutes(); - const SECONDS = DATE.getSeconds(); - const WEEK = DATE.getDay(); - - const ELEMENT = document.querySelector('#date'); - const IP = ELEMENT.innerHTML.split(' ').pop(); - ELEMENT.innerHTML = 'yyyy-mm-dd hh:MM:ss 星期w' - .replace('yyyy', YEAR) - .replace('mm', ADDZERO(MONTH)) - .replace('dd', ADDZERO(DAY)) - .replace('hh', ADDZERO(HOURS)) - .replace('MM', ADDZERO(MINUTES)) - .replace('ss', ADDZERO(SECONDS)) - .replace('w', FUN_WEEK(WEEK)) - + ' ' + IP; - }, 1000); -}; - -// 其他 UI -const CHANGE_OHTER_UI = () => { - // 标题 - document.head.innerHTML += FONT_PINGYONG; - const TITLE = document.body.querySelector('.title'); - TITLE.style.margin = '0'; - TITLE.style.lineHeight = '2em'; - TITLE.style.fontSize = '300%'; - TITLE.style.fontFamily = 'PinyonScript'; - - // 语言选择框 - const LANGUAGES = document.body.querySelector('.changelanguage'); - if (screen.width < 800) { - // 移动端隐藏 - LANGUAGES.style.display = 'none'; - } else { - LANGUAGES.style.position = 'fixed'; - LANGUAGES.style.top = '5px'; - LANGUAGES.style.outline = 'none'; - LANGUAGES.style.borderRadius = '2em'; - LANGUAGES.style.height = '1.5em'; - } - - // 左上角管理 - const OPERATE = document.body.querySelector('.operate'); - if (OPERATE) { - OPERATE.style.position = 'fixed'; - OPERATE.style.top = '5px'; - OPERATE.style.left = '5px'; - OPERATE.style.border = '1px #00000066 solid'; - OPERATE.style.borderRadius = '2em'; - OPERATE.style.background = 'white'; - OPERATE.style.minWidth = '3em'; - OPERATE.style.textAlign = 'center'; - OPERATE.style.lineHeight = '1.3em'; - } - - // 左上角登录 - const LOGIN = document.querySelector('a[onclick="login();"]'); - if (LOGIN) { - LOGIN.style.position = 'fixed'; - LOGIN.style.top = '5px'; - LOGIN.style.left = '5px'; - LOGIN.style.border = '1px #00000066 solid'; - LOGIN.style.borderRadius = '2em'; - LOGIN.style.background = 'white'; - LOGIN.style.minWidth = '3em'; - LOGIN.style.textAlign = 'center'; - LOGIN.style.lineHeight = '1.3em'; - } - - // BODY - document.body.style = ''; - document.body.zIndex = '99'; - document.body.style.margin = '0'; - document.body.style.padding = '0'; - // 文件列表和 README 阴影 - const LIST_WRAPPERs = document.body.querySelectorAll('.list-wrapper'); - LIST_WRAPPERs.forEach(WRAPPER => { - WRAPPER.style.boxShadow = '0 0 32px 0 rgba(128, 128, 128, 0.18)'; - }); - // 文件列表圆角 - const LTFILEs = document.body.querySelectorAll('.list-table .file'); - LTFILEs.forEach(FILE => { - FILE.style.borderRadius = '25px 0px 0px 25px'; - }); - const LTSIZEs = document.body.querySelectorAll('.list-table .size'); - LTSIZEs.forEach(SIZE => { - SIZE.style.borderRadius = '0px 25px 25px 0px'; - }); - // 文件路径行距 - const THEADER = document.body.querySelector('.list-header-container .table-header'); - THEADER.style.lineHeight = '1.3em'; - - // 移动端隐藏修改时间 - if (screen.width < 800) { - const LTUPDATEATs = document.body.querySelectorAll('.list-table .updated_at'); - LTUPDATEATs.forEach(UPDATEAT => { - UPDATEAT.style.display = 'none'; - }); - } - // 按钮 - const BUTTONs = document.body.querySelectorAll('button'); - BUTTONs.forEach(BUTTON => { - BUTTON.style.border = '1px #00000066 solid'; - BUTTON.style.borderRadius = '2em'; - BUTTON.style.background = 'white'; - }); - const SUBMITs = document.body.querySelectorAll('input[type="submit" i]'); - SUBMITs.forEach(SUBMIT => { - SUBMIT.style.border = '1px #00000066 solid'; - SUBMIT.style.borderRadius = '2em'; - SUBMIT.style.background = 'white'; - SUBMIT.style.minWidth = '5em'; - }); - const FILE_BUTTONs = document.body.querySelectorAll('input[type="button" i]'); - FILE_BUTTONs.forEach(FBUTTON => { - FBUTTON.style.border = '1px #00000066 solid'; - FBUTTON.style.borderRadius = '2em'; - FBUTTON.style.background = 'white'; - FBUTTON.style.minWidth = '5em'; - FBUTTON.style.height = '1.9em'; - }); - // 输入框 - const PASSWORDs = document.body.querySelectorAll('input[type="password" i], input[type="file" i]'); - PASSWORDs.forEach(PASSWORD => { - PASSWORD.style.outline = 'none'; - PASSWORD.style.textAlign = 'center'; - PASSWORD.style.lineHeight = '1.3em'; - PASSWORD.style.border = '1px #00000066 solid'; - PASSWORD.style.borderRadius = '2em'; - PASSWORD.style.background = 'white'; - PASSWORD.style.minWidth = '10em'; - }); - // URL - const URL = document.body.querySelector('#url'); - if (URL) { - URL.style.resize = 'none'; - URL.style.outline = 'none'; - URL.style.textAlign = 'center'; - URL.style.height = 'initial'; - URL.style.borderRadius = '2em'; - } -}; - -// 修复视频失效 -const FIX_VIDEO = () => { - const VIDEO_DIV = document.querySelector('[id^="video-a"]'); - if (VIDEO_DIV && VIDEO_DIV.innerHTML === '') { - VIDEO_DIV.style.zIndex = '9999'; - addVideos([document.querySelector('#url').value.trim()]); - } -} - -// 主函数 -const MAIN_HANDLER = () => { - IGNORE_EXCEPTION([ - ADD_IMGAGE_BACKGROUND, - ADD_UMBRELLA_BACKGROUND, - CHANGE_OHTER_UI, - REMOVE_README, - ADD_TIME_AND_IP, - FIX_VIDEO - ]); - document.body.removeAttribute('hidden'); -}; - -// 文档加载完毕执行主函数 -document.addEventListener('DOMContentLoaded', MAIN_HANDLER); diff --git a/scfone-theme-js/scf.js b/scfone-theme-js/scf.js deleted file mode 100644 index 1e483ac..0000000 --- a/scfone-theme-js/scf.js +++ /dev/null @@ -1,245 +0,0 @@ -// 忽略异常 -const IGNORE_EXCEPTION = (funs) => funs.forEach(fun => { try { fun(); } catch (error) { } }); - -// 资源加载后回调 -const LOADED = (element, callback) => { - let loaded = false; - if (typeof callback === 'function') { - element.onload = element.onreadystatechange = () => { - if (!loaded && (!element.readyState || /loaded|complete/.test(element.readyState))) { - element.onload = element.onreadystatechange = null; - loaded = true; - callback(); - } - } - } -}; - -// 字符串模板 -const HEREDOC = (fn) => fn.toString().split('\n').slice(1, -1).join('\n') + '\n'; - -// 自定义字体 -const FONT_PINGYONG = HEREDOC(() => {/* - - */}); - -// 雨伞背景 -const ADD_UMBRELLA_BACKGROUND = (callback) => { - const SCRIPT = document.createElement('script'); - //SCRIPT.src = '//s0.pstatp.com/cdn/expire-1-M/canvas-nest/2.0.4/canvas-nest.js'; - SCRIPT.src = '//cdn.jsdelivr.net/gh/ldxw/CDN@v0.02.1/scfone-theme-js/canvas-nest.js/2.0.4/canvas-nest.js'; - SCRIPT.opacity = '0.1'; - SCRIPT.zIndex = '-99'; - SCRIPT.count = '10'; - LOADED(SCRIPT, callback); - document.body.appendChild(SCRIPT); -}; - -const ADD_IMGAGE_BACKGROUND = () => { - //const IMAGE = 'url(https://img12.360buyimg.com/img/jfs/t1/56992/25/15607/359235/5dc93624E8223dc25/41cac0ada12d3ad9.jpg)' - const IMAGE = 'url(//cdn.jsdelivr.net/gh/ldxw/CDN@v0.02.1/scfone-theme-js/img/bg.jpg)' - const DIV = document.createElement('div'); - DIV.style.background = IMAGE; - DIV.style.pointerEvents = 'none'; - DIV.style.backgroundRepeat = 'no-repeat'; - DIV.style.backgroundSize = 'cover'; - DIV.style.position = 'fixed'; - DIV.style.left = '0'; - DIV.style.top = '0'; - DIV.style.width = '100%'; - DIV.style.height = '100%'; - DIV.style.filter = 'blur(2px)'; - DIV.style.msFilter = 'blur(2px)'; - DIV.style.webkitFilter = 'blur(2px)'; - DIV.style.mozFilter = 'blur(2px)'; - DIV.style.oFilter = 'blur(2px)'; - DIV.style.opacity = '0.2'; - document.body.appendChild(DIV); -}; - -// 移除 README.md -const REMOVE_README = () => { - const TBODY = document.querySelector('#list-table').querySelector('tbody'); - const TRS = TBODY.querySelectorAll('tr'); - let readme = null; - TRS.forEach(TR => { - const A = TR.querySelector('a'); - if (A && A.href.indexOf('README.md') >= 0) { - readme = TR; - return; - } - }); - readme ? TBODY.removeChild(readme) : null; -}; - -// 时间和 IP 居中显示,时间走动 -const ADD_TIME_AND_IP = () => { - // 居中并显示 - const CENTER = document.createElement('center'); - CENTER.style.paddingBottom = '40px'; - const FONT = document.body.querySelector('font'); - FONT.id = 'date'; - FONT.removeAttribute('color'); - CENTER.appendChild(FONT); - document.body.insertBefore(CENTER, document.body.querySelector('#mask')); - - // 时间走动 - setInterval(() => { - const ADDZERO = num => num < 10 ? '0' + num : num; const FUN_WEEK = week => '日一二三四五六'[week]; - - const DATE = new Date(); - const YEAR = DATE.getFullYear(); - const MONTH = DATE.getMonth() + 1; - const DAY = DATE.getDate(); - const HOURS = DATE.getHours(); - const MINUTES = DATE.getMinutes(); - const SECONDS = DATE.getSeconds(); - const WEEK = DATE.getDay(); - - const ELEMENT = document.querySelector('#date'); - const IP = ELEMENT.innerHTML.split(' ').pop(); - ELEMENT.innerHTML = 'yyyy-mm-dd hh:MM:ss 星期w' - .replace('yyyy', YEAR) - .replace('mm', ADDZERO(MONTH)) - .replace('dd', ADDZERO(DAY)) - .replace('hh', ADDZERO(HOURS)) - .replace('MM', ADDZERO(MINUTES)) - .replace('ss', ADDZERO(SECONDS)) - .replace('w', FUN_WEEK(WEEK)) - + ' ' + IP; - }, 1000); -}; - -// 其他 UI -const CHANGE_OHTER_UI = () => { - // 标题 - document.head.innerHTML += FONT_PINGYONG - const TITLE = document.body.querySelector('.title'); - TITLE.style.margin = '0'; - TITLE.style.lineHeight = '2em'; - TITLE.style.fontSize = '300%'; - TITLE.style.fontFamily = 'PinyonScript'; - - // 语言选择框 - const LANGUAGES = document.body.querySelector('.changelanguage'); - if (screen.width < 800) { - // 移动端隐藏 - LANGUAGES.style.display = 'none'; - } else { - LANGUAGES.style.position = 'fixed'; - LANGUAGES.style.top = '5px'; - LANGUAGES.style.outline = 'none'; - LANGUAGES.style.borderRadius = '2em'; - LANGUAGES.style.height = '1.5em'; - } - - // 左上角管理 - const OPERATE = document.body.querySelector('.operate'); - if (OPERATE) { - OPERATE.style.position = 'fixed'; - OPERATE.style.top = '5px'; - OPERATE.style.left = '5px'; - OPERATE.style.border = '1px #00000066 solid'; - OPERATE.style.borderRadius = '2em'; - OPERATE.style.background = 'white'; - OPERATE.style.minWidth = '3em'; - OPERATE.style.textAlign = 'center'; - OPERATE.style.lineHeight = '1.3em'; - } - - // BODY - document.body.style = ''; - document.body.zIndex = '99'; - document.body.style.margin = '0'; - document.body.style.padding = '0'; - // 文件列表和 README 阴影 - const LIST_WRAPPERs = document.body.querySelectorAll('.list-wrapper'); - LIST_WRAPPERs.forEach(WRAPPER => { - WRAPPER.style.boxShadow = '0 0 32px 0 rgba(128, 128, 128, 0.18)'; - }); - // 文件列表圆角 - const LTFILEs = document.body.querySelectorAll('.list-table .file'); - LTFILEs.forEach(FILE => { - FILE.style.borderRadius = '25px 0px 0px 25px'; - }); - const LTSIZEs = document.body.querySelectorAll('.list-table .size'); - LTSIZEs.forEach(SIZE => { - SIZE.style.borderRadius = '0px 25px 25px 0px'; - }); - // 文件路径行距 - const THEADER = document.body.querySelector('.list-header-container .table-header'); - THEADER.style.lineHeight = '1.3em'; - - // 移动端隐藏修改时间 - if (screen.width < 800) { - const LTUPDATEATs = document.body.querySelectorAll('.list-table .updated_at'); - LTUPDATEATs.forEach(UPDATEAT => { - UPDATEAT.style.display = 'none'; - }); - } - // 按钮 - const BUTTONs = document.body.querySelectorAll('button'); - BUTTONs.forEach(BUTTON => { - BUTTON.style.border = '1px #00000066 solid'; - BUTTON.style.borderRadius = '2em'; - BUTTON.style.background = 'white'; - }); - const SUBMITs = document.body.querySelectorAll('input[type="submit" i]'); - SUBMITs.forEach(SUBMIT => { - SUBMIT.style.border = '1px #00000066 solid'; - SUBMIT.style.borderRadius = '2em'; - SUBMIT.style.background = 'white'; - SUBMIT.style.minWidth = '5em'; - }); - const FILE_BUTTONs = document.body.querySelectorAll('input[type="button" i]'); - FILE_BUTTONs.forEach(FBUTTON => { - FBUTTON.style.border = '1px #00000066 solid'; - FBUTTON.style.borderRadius = '2em'; - FBUTTON.style.background = 'white'; - FBUTTON.style.minWidth = '5em'; - FBUTTON.style.height = '1.9em'; - }); - // 输入框 - const PASSWORDs = document.body.querySelectorAll('input[type="password" i], input[type="file" i]'); - PASSWORDs.forEach(PASSWORD => { - PASSWORD.style.outline = 'none'; - PASSWORD.style.textAlign = 'center'; - PASSWORD.style.lineHeight = '1.3em'; - PASSWORD.style.border = '1px #00000066 solid'; - PASSWORD.style.borderRadius = '2em'; - PASSWORD.style.background = 'white'; - PASSWORD.style.minWidth = '10em'; - }); - // URL - const URL = document.body.querySelector('#url'); - if (URL) { - URL.style.resize = 'none'; - URL.style.outline = 'none'; - URL.style.textAlign = 'center'; - URL.style.height = 'initial'; - URL.style.borderRadius = '2em'; - } -}; - -// 主函数 -const MAIN_HANDLER = () => { - IGNORE_EXCEPTION([ - ADD_IMGAGE_BACKGROUND, - ADD_UMBRELLA_BACKGROUND, - CHANGE_OHTER_UI, - REMOVE_README, - ADD_TIME_AND_IP - ]); - document.body.removeAttribute('hidden'); -}; - -// 文档加载完毕执行主函数 -document.addEventListener('DOMContentLoaded', MAIN_HANDLER); \ No newline at end of file