This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 最终版 V4.0 - 智能默认+键盘切换,精准时间匹配 | |
(() => { | |
const N = '智能预览 V4.0'; | |
let allGroups = { ios: new Map(), android: new Map() }, availableLibraries = []; | |
let currentLibraryKey, currentTimeIndex = 0, currentVersionIndex = 0; | |
let wrap, ui; | |
const css = (el, s) => el.style.cssText = s; | |
const nowMin = () => new Date().getHours() * 60 + new Date().getMinutes(); | |
const toMin = t => parseInt(t.substring(0, 2), 10) * 60 + parseInt(t.substring(2, 4), 10); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// == MSB PREVIEWER v6.0 == | |
// 在 Chrome 开发者模式(iPhone XR)中直接运行 | |
// 自动叠加顶部/底部素材,并根据时间自动匹配最接近的分钟组。 | |
// 支持隐藏、下一组、上一组、删除标记等控制。 | |
(() => { | |
const GIST_BASE = "https://gist.githubusercontent.com/wangjie88niu/563f977ddefa823a724c4280dc8f7dbb/raw/"; | |
const DEVICE_W = 414; // iPhone XR 宽度 | |
const DEVICE_H = 896; // iPhone XR 高度 | |
const TOP_H = 44; // 顶部条高度 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 最终版 V9.0 - 跨站通用,保留所有智能功能 | |
(() => { | |
const N = '智能预览 V9.0'; | |
let allGroups = { ios: new Map(), android: new Map() }, availableLibraries = []; | |
let currentLibraryKey, currentTimeIndex = 0, currentVersionIndex = 0; | |
let topWrap, botWrap, ui, filesToDelete = new Set(); | |
const css = (el, s) => el.style.cssText = s; | |
const nowMin = () => new Date().getHours() * 60 + new Date().getMinutes(); | |
const toMin = t => parseInt(t.substring(0, 2), 10) * 60 + parseInt(t.substring(2, 4), 10); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 最终版 V6.0 - 使用双容器覆盖,实现最逼真的覆盖效果 | |
(() => { | |
const N = '智能预览 V6.0'; | |
let allGroups = { ios: new Map(), android: new Map() }, availableLibraries = []; | |
let currentLibraryKey, currentTimeIndex = 0, currentVersionIndex = 0; | |
let topWrap, botWrap, ui, filesToDelete = new Set(); | |
const css = (el, s) => el.style.cssText = s; | |
const nowMin = () => new Date().getHours() * 60 + new Date().getMinutes(); | |
const toMin = t => parseInt(t.substring(0, 2), 10) * 60 + parseInt(t.substring(2, 4), 10); |