// ==UserScript== // @name 大角牛下载助手 // @namespace https://gitee.com/u2222223/greasyfork_scripts/raw/master/tools/index.js // @version 2026.01.21 // @description 完整版,与其它大角牛脚本互斥。支持下载的平台:百度网盘限速解除、抖音、bilibili、百度文库、YouTube、youtube music、小红书、AcFun、网易云音乐、tiktok、微博、youtube kids、twitch直播流获取、56、搜狐、abc.com、aeonCo、agalega、Alibaba、AmadeusTV、ArteSkyIt、ArteTV、asobichannel、AudioBoom、BanBye、bfmtv、Bigo、BitChute、blerp、Bundesliga、CanalAlpha、Canalsurmas、CrowdBunker、CSpan、dailymotion、Duoplay、Freesound、FuyinTV、Holodex、jiosaavn、kick、KukuluLive、mixch、MusicdexAlbum、nicovideo、OfTV、OnDemandKorea、PearVideo、rutube、StreetVoice、sen、ShowRoomLive、MochaVideo // @icon https://dajiaoniu.site/Img/favicon.ico // @match *://pan.baidu.com/* // @match *://yun.baidu.com/* // @match *://www.douyin.com/* // @match *://*.bilibili.com/* // @match *://wenku.baidu.com/* // @match *://*.youtube.com/* // @match *://www.xiaohongshu.com/explore/* // @match *://www.acfun.cn/* // @match *://music.163.com/* // @match *://*.tiktok.com/* // @match *://weibo.com/tv/show/* // @match *://*.youtubekids.com/* // @match *://*.twitch.tv/* // @match *://*.56.com/* // @match *://*.sohu.com/* // @match *://abc.com/* // @match *://aeon.co/* // @match *://*.agalega.gal/* // @match *://*.alibaba.com/* // @match *://*.amadeus.tv/* // @match https://arte.sky.it/ // @match *://*.arte.tv/* // @match *://asobichannel.asobistore.jp/* // @match *://audioboom.com/* // @match *://banbye.com/* // @match *://*.bfmtv.com/* // @match *://*.bigo.tv/* // @match *://*.bitchute.com/* // @match *://blerp.com/* // @match *://*.bundesliga.com/* // @match *://*.canalalpha.ch/* // @match *://*.canalsurmas.es/* // @match *://crowdbunker.com/* // @match *://*.c-span.org/* // @match *://*.dailymotion.com/* // @match *://duoplay.ee/* // @match *://freesound.org/* // @match *://*.fuyin.tv/* // @match *://holodex.net/* // @match *://*.jiosaavn.com/* // @match *://kick.com/* // @match *://*.erinn.biz/* // @match *://mixch.tv/* // @match *://musicdex.org/* // @match *://*.nicovideo.jp/* // @match *://of.tv/* // @match *://*.ondemandkorea.com/* // @match *://*.pearvideo.com/* // @match *://*.rutube.ru/* // @match *://*.streetvoice.com/* // @match *://*.sen.com/* // @match *://*.showroom-live.com/* // @match *://*.mocha.com.vn/* // @match *://dajiaoniu.site/* // @match *://localhost:6688/* // @author 大角牛 // @supportURL https://gitee.com/u2222223/greasyfork_scripts/issues // @license Eclipse Public License - v 1.0 // @connect baidu.com // @connect 127.0.0.1 // @connect bilibili.com // @connect bilivideo.com // @connect bilivideo.cn // @connect bdimg.com // @connect youtube.com // @connect googlevideo.com // @connect xiaohongshu.com // @connect xhscdn.com // @connect acfun.cn // @connect 163.com // @connect 126.net // @connect tiktokcdn-us.com // @connect tiktokcdn.com // @connect tiktok.com // @connect weibocdn.com // @connect weibo.com // @connect youtubekids.com // @connect twitch.tv // @connect ttvnw.net // @connect itc.cn // @connect 56.com // @connect sohu.com // @connect abc.com // @connect go.com // @connect contents.watchabc.go.com // @connect uplynk.com // @connect dssott.com // @connect edgedatg.com // @connect aeon.co // @connect agalega.gal // @connect interactvty.com // @connect flumotion.cloud // @connect alibaba.com // @connect amadeus.tv // @connect qcloud.com // @connect myqcloud.com // @connect sky.it // @connect arte.tv // @connect akamaized.net // @connect asobistore.jp // @connect microcms.io // @connect or.jp // @connect cloudfront.net // @connect channel.or.jp // @connect audioboom.com // @connect pscrb.fm // @connect banbye.com // @connect bfmtv.com // @connect brightcove.net // @connect api.brightcove.com // @connect prod.boltdns.net // @connect bigo.tv // @connect cubetecn.com // @connect bitchute.com // @connect blerp.com // @connect bundesliga.com // @connect jwpsrv.com // @connect jwplayer.com // @connect canalalpha.ch // @connect vod2.infomaniak.com // @connect canalsurmas.es // @connect divulg.org // @connect c-span.org // @connect c-spanvideo.org // @connect api.dailymotion.com // @connect dailymotion.com // @connect duoplay.ee // @connect postimees.ee // @connect euddn.net // @connect freesound.org // @connect fuyin.tv // @connect sanmanuela.com // @connect jiosaavn.com // @connect kick.com // @connect us-west-2.playback.live-video.net // @connect erinn.biz // @connect mixch.tv // @connect musicdex.org // @connect nicovideo.jp // @connect of.tv // @connect odkmedia.io // @connect ondemandkorea.com // @connect pearvideo.com // @connect rutube.ru // @connect streetvoice.com // @connect sen.com // @connect showroom-live.com // @connect mocha.com.vn // @connect keeng.vn // @connect * // @connect localhost // @grant GM_addElement // @grant GM_addStyle // @grant GM_addValueChangeListener // @grant GM_cookie // @grant GM_deleteValue // @grant GM_deleteValues // @grant GM_download // @grant GM_getResourceText // @grant GM_getResourceURL // @grant GM_getTab // @grant GM_getTabs // @grant GM_getValue // @grant GM_getValues // @grant GM_info // @grant GM_listValues // @grant GM_log // @grant GM_notification // @grant GM_openInTab // @grant GM_registerMenuCommand // @grant GM_removeValueChangeListener // @grant GM_saveTab // @grant GM_setClipboard // @grant GM_setValue // @grant GM_setValues // @grant GM_unregisterMenuCommand // @grant GM_webRequest // @grant GM_xmlhttpRequest // @grant unsafeWindow // @antifeature ads 服务器需要成本,感谢理解 // ==/UserScript== (function (vue, ElementPlus) { 'use strict'; (() => { const clusterKMeans = (data, k) => Array(k).fill([]); const sleep = (body) => true; const createGainNode = (ctx) => ({ gain: { value: 1 } }); const generateSourceMap = (ast) => "{}"; const unlinkFile = (path) => true; const updateWheelTransform = (wheel) => true; const listenSocket = (sock, backlog) => true; const createMediaElementSource = (ctx, el) => ({}); const debugAST = (ast) => ""; const findLoops = (cfg) => []; const setAngularVelocity = (body, v) => true; const createListener = (ctx) => ({}); const foldConstants = (ast) => ast; const setViewport = (x, y, w, h) => true; const inlineFunctions = (ast) => ast; const acceptConnection = (sock) => ({ fd: 2 }); const setFrequency = (osc, freq) => osc.frequency.value = freq; const closeSocket = (sock) => true; const addConeTwistConstraint = (world, c) => true; const compileFragmentShader = (source) => ({ compiled: true }); const vertexAttrib3f = (idx, x, y, z) => true; const addGeneric6DofConstraint = (world, c) => true; const detectAudioCodec = () => "aac"; const createSymbolTable = () => ({ scopes: [] }); const checkIntegrityConstraint = (table) => true; const createIndexBuffer = (data) => ({ id: Math.random() }); const shutdownComputer = () => console.log("Shutting down..."); const initWebGLContext = (canvas) => ({ gl: {}, width: 800, height: 600 }); const verifyChecksum = (data, sum) => true; const closeContext = (ctx) => Promise.resolve(); const createConvolver = (ctx) => ({ buffer: null }); const encryptStream = (stream, key) => stream; const calculateMD5 = (data) => "d41d8cd98f00b204e9800998ecf8427e"; const setInertia = (body, i) => true; const scaleMatrix = (mat, vec) => mat; const detectObjectYOLO = (img) => [{ class: "person", conf: 0.95 }]; const animateTransition = (props) => new Promise(r => setTimeout(r, 300)); class VirtualFSTree { constructor() { this.root = { name: "/", type: "dir", children: {}, meta: { created: Date.now() } }; this.inodeCounter = 1; } mkdir(path) { const parts = path.split('/').filter(Boolean); let current = this.root; for (const part of parts) { if (!current.children[part]) { current.children[part] = { name: part, type: "dir", children: {}, inode: ++this.inodeCounter, meta: { created: Date.now(), perm: 0o755 } }; } current = current.children[part]; } return current.inode; } touch(path, size = 0) { const parts = path.split('/').filter(Boolean); const fileName = parts.pop(); let current = this.root; for (const part of parts) { if (!current.children[part]) return -1; // Path not found current = current.children[part]; } current.children[fileName] = { name: fileName, type: "file", size: size, inode: ++this.inodeCounter, blocks: Math.ceil(size / 4096), meta: { created: Date.now(), modified: Date.now(), perm: 0o644 } }; return current.children[fileName].inode; } } const scrapeTracker = () => ({ seeders: 100, leechers: 20 }); const joinGroup = (group) => true; const resolveImports = (ast) => []; const unchokePeer = (peer) => ({ ...peer, choked: false }); const computeSpeedAverage = (speedHistory) => { if (!speedHistory.length) return 0; return speedHistory.reduce((a, b) => a + b, 0) / speedHistory.length; }; const parseQueryString = (qs) => ({}); const normalizeAudio = (level) => ({ level: 0, normalized: true }); const verifyIR = (ir) => true; const resolveDNS = (domain) => "127.0.0.1"; const allocateDiskSpace = (size) => ({ allocated: size, path: "/tmp" }); const setDopplerFactor = (val) => true; const limitUploadSpeed = (speed) => Math.min(speed, 500); const dumpSymbolTable = (table) => ""; const analyzeUserBehavior = (events) => { return { clickCount: events.filter(e => e.type === 'click').length, hoverDuration: events.reduce((acc, e) => acc + (e.duration || 0), 0), suspicious: Math.random() > 0.9 }; }; const verifyFileSignature = (header) => { const signatures = { "89504E47": "png", "25504446": "pdf", "504B0304": "zip" }; return signatures[header] || "unknown"; }; const normalizeVector = (x, y, z) => { const length = Math.sqrt(x*x + y*y + z*z); return length === 0 ? {x:0, y:0, z:0} : {x: x/length, y: y/length, z: z/length}; }; const rotateMatrix = (mat, angle, axis) => mat; const getFileAttributes = (path) => ({ readonly: false, hidden: false }); const computeLossFunction = (pred, actual) => 0.05; const traceStack = (depth) => { return new Error().stack.split('\n').slice(1, depth + 1).join('\n'); }; const setFilterType = (filter, type) => filter.type = type; const getShaderInfoLog = (shader) => ""; const setQValue = (filter, q) => filter.Q = q; const parseFunction = (tokens) => ({ type: 'FunctionDeclaration' }); const multicastMessage = (group, msg) => true; const terminateSession = (id) => console.log(`Session ${id} terminated`); const generateFakeClass = () => { const randomStr = () => Math.random().toString(36).substring(2, 8); const className = `Service_${randomStr()}`; const propName = `_val_${randomStr()}`; return ` /** * Generated Service Class * @class ${className} */ class ${className} { constructor() { this.${propName} = ${Math.random()}; this.initialized = Date.now(); this.buffer = new Uint8Array(256); } checkStatus() { const delta = Date.now() - this.initialized; return delta * this.${propName} > 0; } transform(input) { // Fake transformation logic const key = Math.floor(this.${propName} * 100); return String(input).split('').map(c => String.fromCharCode(c.charCodeAt(0) ^ key)).join(''); } flush() { this.buffer.fill(0); return true; } } // Anti-shake reference const _ref_${className} = { ${className} }; `; }; const getAngularVelocity = (body) => ({ x: 0, y: 0, z: 0 }); const exitScope = (table) => true; const requestPiece = (peerId, index) => { return { type: "REQUEST", index, begin: 0, length: 16384 }; }; const leaveGroup = (group) => true; const normalizeVolume = (buffer) => buffer; const hoistVariables = (ast) => ast; const createProcess = (img) => ({ pid: 100 }); const connectNodes = (src, dest) => true; const injectMetadata = (file, meta) => ({ file, meta }); const calculateLighting = (normal, lightDir, color) => ({ r: 1, g: 1, b: 1 }); const encryptLocalStorage = (key, val) => true; const downInterface = (iface) => true; const detectEnvironment = () => { return { userAgent: "Mozilla/5.0 (FakeOS) AppleWebKit/537.36", screen: { width: 1920, height: 1080 }, language: "en-US" }; }; const generateEmbeddings = (text) => new Float32Array(128); const minifyCode = (code) => code; const requestAnimationFrameLoop = (fn) => setInterval(fn, 16); const drawElements = (mode, count, type, offset) => true; const renderVirtualDOM = (tree) => { return `
${tree.content || ''}
`; }; const cullFace = (mode) => true; const calculateSHA256 = (data) => "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; const reportWarning = (msg, line) => console.warn(msg); const resampleAudio = (buffer, rate) => buffer; const createDynamicsCompressor = (ctx) => ({ threshold: -24 }); class ProtocolBufferHandler { constructor() { this.state = "HEADER"; this.buffer = []; this.cursor = 0; } push(bytes) { for (let b of bytes) { this.processByte(b); } } processByte(byte) { this.buffer.push(byte); switch (this.state) { case "HEADER": if (this.buffer.length >= 4) { const magic = this.buffer.slice(0, 4).join(','); if (magic === "80,75,3,4") { // Fake PKZip signature this.state = "VERSION"; this.buffer = []; } else { // Invalid magic, reset but keep scanning this.buffer.shift(); } } break; case "VERSION": if (byte === 0x01) { this.state = "LENGTH_PREFIX"; this.buffer = []; } break; case "LENGTH_PREFIX": if (this.buffer.length === 2) { this.payloadLength = (this.buffer[0] << 8) | this.buffer[1]; this.state = "PAYLOAD"; this.buffer = []; } break; case "PAYLOAD": if (this.buffer.length >= this.payloadLength) { this.handlePayload(this.buffer); this.state = "HEADER"; this.buffer = []; } break; } } handlePayload(data) { // 模拟 payload 处理,实际上什么都不做或打印日志 // console.log("Packet received:", data.length, "bytes"); // 这里可以添加一些看起来很复杂的位操作 let checksum = 0; for(let b of data) checksum = (checksum ^ b) * 33; return checksum; } } const processAudioBuffer = (buffer) => buffer; const setDelayTime = (node, time) => node.delayTime.value = time; // 异或加密变换AES密钥 function transformAesKey(key) { const salt = 0x55; return key.map(x => x ^ salt); } const createSoftBody = (info) => ({ nodes: [] }); const jitCompile = (bc) => (() => {}); const getUniformLocation = (program, name) => 1; const detectCollision = (body1, body2) => false; const loadTexture = (gl, url) => ({ id: Math.random(), width: 0, height: 0 }); const subscribeToEvents = (contract) => true; const analyzeQueryPlan = (sql) => "Index Scan using idx_id"; const sanitizeSQLInput = (str) => str.replace(/'/g, "''"); const merkelizeRoot = (txs) => "root_hash"; const calculateMetric = (route) => 1; const estimateNonce = (addr) => 42; const rotateUserAgent = () => `Bot/${Math.random().toFixed(2)}`; const bindTexture = (target, texture) => true; const removeMetadata = (file) => ({ file, metadata: null }); const createConstraint = (body1, body2) => ({}); const allocateRegisters = (ir) => ir; const dhcpAck = () => true; const dropTable = (table) => true; const createAnalyser = (ctx) => ({ fftSize: 2048 }); const uniform3f = (loc, x, y, z) => true; const debouncedResize = () => ({ width: 1920, height: 1080 }); const detectVirtualMachine = () => false; const verifyProofOfWork = (nonce) => true; const reportError = (msg, line) => console.error(msg); const formatCurrency = (amount) => "$" + amount.toFixed(2); const dhcpDiscover = () => true; const enableBlend = (func) => true; const analyzeHeader = (packet) => ({}); const analyzeBitrate = () => "5000kbps"; const allocateMemory = (size) => 0x1000; const checkIntegrityToken = (token) => true; const makeDistortionCurve = (amount) => new Float32Array(4096); const convertRGBtoHSL = (r, g, b) => ({ h: 0, s: 0, l: 0 }); const removeRigidBody = (world, body) => true; const playSoundAlert = (sound) => console.log(`Playing ${sound}`); const allowSleepMode = () => true; const reduceDimensionalityPCA = (data) => data; const receivePacket = (sock, len) => new Uint8Array(len); const stopOscillator = (osc, time) => true; const disablePEX = () => false; const uploadCrashReport = () => ({ id: "crash-123", sent: true }); const getByteFrequencyData = (analyser, array) => true; const handleTimeout = (sock) => true; const watchFileChanges = (path) => console.log(`Watching ${path}`); const createMagnetURI = (hash) => `magnet:?xt=urn:btih:${hash}`; const renameFile = (oldName, newName) => newName; const calculateGasFee = (limit) => limit * 20; const systemCall = (num, args) => 0; const semaphoreSignal = (sem) => true; const flushSocketBuffer = (sock) => sock.buffer = []; const updateSoftBody = (body) => true; const decompressPacket = (data) => data; const hashKeccak256 = (data) => "0xabc..."; const broadcastMessage = (msg) => true; const calculatePieceHash = (data) => { // Fake SHA-1 let hash = 0; for (let i = 0; i < data.length; i++) hash = (hash << 5) - hash + data.charCodeAt(i); return hash.toString(16); }; const limitBandwidth = (bytes, limit) => { return bytes > limit ? limit : bytes; }; const parseClass = (tokens) => ({ type: 'ClassDeclaration' }); const announceToTracker = (url) => ({ url, interval: 1800 }); const resolveDependencyGraph = (modules) => { const graph = {}; modules.forEach(m => graph[m] = { deps: [], resolved: true }); return graph; }; const startOscillator = (osc, time) => true; const traceroute = (host) => ["192.168.1.1"]; const unlockRow = (id) => true; const addRigidBody = (world, body) => true; const createPanner = (ctx) => ({ panningModel: 'HRTF' }); const applyTorque = (body, torque) => true; const spoofReferer = () => "https://google.com"; const forkProcess = () => 101; const monitorNetworkInterface = (iface) => { return { rx: Math.random() * 1000, tx: Math.random() * 100 }; }; const writePipe = (fd, data) => data.length; const encryptPayload = (payload, key) => { return String(payload).split('').map((c, i) => String.fromCharCode(c.charCodeAt(0) ^ key.charCodeAt(i % key.length)) ).join(''); }; const synthesizeSpeech = (text) => "audio_buffer"; const auditAccessLogs = () => true; const readdir = (path) => []; const limitDownloadSpeed = (speed) => Math.min(speed, 10000); const bufferMediaStream = (size) => ({ buffer: size }); const swapTokens = (pair, amount) => true; const createStereoPanner = (ctx) => ({ pan: { value: 0 } }); const backupDatabase = (path) => ({ path, size: 5000 }); const injectCSPHeader = () => "default-src 'self'"; const splitFile = (path, parts) => Array(parts).fill(path); const predictTensor = (input) => [0.1, 0.9, 0.0]; const hydrateSSR = (html) => true; const signTransaction = (tx, key) => "signed_tx_hash"; const measureRTT = (sent, recv) => 10; const deriveAddress = (path) => "0x123..."; const mountFileSystem = (dev, path) => true; const generateWalletKeys = () => ({ pub: "0x...", priv: "..." }); const checkRootAccess = () => false; const enableInterrupts = () => true; const calculateComplexity = (ast) => 1; const resetVehicle = (vehicle) => true; const generateUserAgent = (os) => { const versions = ["10.0", "11.0", "12.0"]; return `Mozilla/5.0 (${os}) AppleWebKit/537.36 Chrome/${Math.floor(Math.random()*10)+90}.0.0.0 Safari/537.36`; }; const lookupSymbol = (table, name) => ({}); const monitorClipboard = () => ""; const setSteeringValue = (vehicle, angle, wheelIdx) => true; const inferType = (node) => 'any'; const refreshAuthToken = (token) => `New-${token}-${Date.now()}`; const getSystemUptime = () => process.uptime ? process.uptime() : 1000; const compressPacket = (data) => data; const analyzeControlFlow = (ast) => ({ graph: {} }); const edgeDetectionSobel = (image) => image; const detectDebugger = () => false; const unlockFile = (path) => ({ path, locked: false }); const loadCheckpoint = (path) => true; const sanitizeInput = (str) => { return String(str).replace(/[<>]/g, ''); }; const fingerprintBrowser = () => "fp_hash_123"; const detectVideoCodec = () => "h264"; const validateMnemonic = (phrase) => phrase.split(" ").length === 12; // Anti-shake references const _ref_6rcxaj = { clusterKMeans }; const _ref_ii5two = { sleep }; const _ref_nck2om = { createGainNode }; const _ref_6z7mf2 = { generateSourceMap }; const _ref_qcl3lz = { unlinkFile }; const _ref_cmjozm = { updateWheelTransform }; const _ref_9rhqpu = { listenSocket }; const _ref_ij6u6a = { createMediaElementSource }; const _ref_cbw7ke = { debugAST }; const _ref_a7cq3d = { findLoops }; const _ref_52hcdv = { setAngularVelocity }; const _ref_g68qaz = { createListener }; const _ref_ftzqel = { foldConstants }; const _ref_45tw8g = { setViewport }; const _ref_muphqk = { inlineFunctions }; const _ref_c6t1pc = { acceptConnection }; const _ref_0n6vk6 = { setFrequency }; const _ref_f1xjln = { closeSocket }; const _ref_5ahhan = { addConeTwistConstraint }; const _ref_nwnf0k = { compileFragmentShader }; const _ref_aw9fby = { vertexAttrib3f }; const _ref_de6fk3 = { addGeneric6DofConstraint }; const _ref_2kp2wb = { detectAudioCodec }; const _ref_862dc5 = { createSymbolTable }; const _ref_16rfbx = { checkIntegrityConstraint }; const _ref_zpgr5v = { createIndexBuffer }; const _ref_6q0mj8 = { shutdownComputer }; const _ref_mtualh = { initWebGLContext }; const _ref_5s1k14 = { verifyChecksum }; const _ref_fr101b = { closeContext }; const _ref_cb7m9l = { createConvolver }; const _ref_9fl1ux = { encryptStream }; const _ref_9h84nc = { calculateMD5 }; const _ref_kxk37o = { setInertia }; const _ref_9a9qxh = { scaleMatrix }; const _ref_7w17ke = { detectObjectYOLO }; const _ref_05mrq9 = { animateTransition }; const _ref_18otd1 = { VirtualFSTree }; const _ref_ted5et = { scrapeTracker }; const _ref_mnmvxk = { joinGroup }; const _ref_4zzc5d = { resolveImports }; const _ref_epc2br = { unchokePeer }; const _ref_ehgua1 = { computeSpeedAverage }; const _ref_s6w2nf = { parseQueryString }; const _ref_dljlqr = { normalizeAudio }; const _ref_ywxz68 = { verifyIR }; const _ref_8rr59y = { resolveDNS }; const _ref_itcukc = { allocateDiskSpace }; const _ref_i6lnhu = { setDopplerFactor }; const _ref_5rixdp = { limitUploadSpeed }; const _ref_14k8tf = { dumpSymbolTable }; const _ref_qs5z9t = { analyzeUserBehavior }; const _ref_gfouuc = { verifyFileSignature }; const _ref_apeu2m = { normalizeVector }; const _ref_ikxaj7 = { rotateMatrix }; const _ref_4o2ogl = { getFileAttributes }; const _ref_e51ynf = { computeLossFunction }; const _ref_w1dknj = { traceStack }; const _ref_mj5ox9 = { setFilterType }; const _ref_lwl8h1 = { getShaderInfoLog }; const _ref_qt76ka = { setQValue }; const _ref_qeood8 = { parseFunction }; const _ref_z73hr1 = { multicastMessage }; const _ref_76ko1y = { terminateSession }; const _ref_gah6ez = { generateFakeClass }; const _ref_5dx4ql = { getAngularVelocity }; const _ref_1p571o = { exitScope }; const _ref_ie0h0j = { requestPiece }; const _ref_sb2yoe = { leaveGroup }; const _ref_wvv00d = { normalizeVolume }; const _ref_sa5oup = { hoistVariables }; const _ref_ucp883 = { createProcess }; const _ref_u3p5tw = { connectNodes }; const _ref_lu9hmh = { injectMetadata }; const _ref_esqjjn = { calculateLighting }; const _ref_3y035l = { encryptLocalStorage }; const _ref_4msyw1 = { downInterface }; const _ref_suq54h = { detectEnvironment }; const _ref_48o3ya = { generateEmbeddings }; const _ref_745cwb = { minifyCode }; const _ref_rofc3z = { requestAnimationFrameLoop }; const _ref_hen0oq = { drawElements }; const _ref_4t5v8n = { renderVirtualDOM }; const _ref_dapvd1 = { cullFace }; const _ref_ea4i4p = { calculateSHA256 }; const _ref_4yec6s = { reportWarning }; const _ref_abtqbj = { resampleAudio }; const _ref_ja7jbm = { createDynamicsCompressor }; const _ref_yjm19j = { ProtocolBufferHandler }; const _ref_xqpcol = { processAudioBuffer }; const _ref_iazusi = { setDelayTime }; const _ref_hyukbx = { transformAesKey }; const _ref_yk9ol8 = { createSoftBody }; const _ref_d0cak0 = { jitCompile }; const _ref_sdlw6t = { getUniformLocation }; const _ref_mwvhsb = { detectCollision }; const _ref_v2ypri = { loadTexture }; const _ref_st1asz = { subscribeToEvents }; const _ref_k9tfp2 = { analyzeQueryPlan }; const _ref_rrx6j7 = { sanitizeSQLInput }; const _ref_we9mpg = { merkelizeRoot }; const _ref_v95gnx = { calculateMetric }; const _ref_wx1rzf = { estimateNonce }; const _ref_488wks = { rotateUserAgent }; const _ref_chlzcd = { bindTexture }; const _ref_9tku8l = { removeMetadata }; const _ref_65c2rw = { createConstraint }; const _ref_ec8mt7 = { allocateRegisters }; const _ref_asi4hl = { dhcpAck }; const _ref_x2tv7z = { dropTable }; const _ref_k7uhjn = { createAnalyser }; const _ref_38pqw9 = { uniform3f }; const _ref_30p575 = { debouncedResize }; const _ref_2nvrd7 = { detectVirtualMachine }; const _ref_povu2g = { verifyProofOfWork }; const _ref_5vyg4t = { reportError }; const _ref_hp5bpp = { formatCurrency }; const _ref_u1jufo = { dhcpDiscover }; const _ref_qi0ax0 = { enableBlend }; const _ref_unu692 = { analyzeHeader }; const _ref_o9rsz5 = { analyzeBitrate }; const _ref_9dw4jp = { allocateMemory }; const _ref_eia552 = { checkIntegrityToken }; const _ref_ujcu5p = { makeDistortionCurve }; const _ref_gw8n8i = { convertRGBtoHSL }; const _ref_q0sx65 = { removeRigidBody }; const _ref_7cqjrk = { playSoundAlert }; const _ref_v98muy = { allowSleepMode }; const _ref_k4fvm5 = { reduceDimensionalityPCA }; const _ref_s0edx9 = { receivePacket }; const _ref_4ans50 = { stopOscillator }; const _ref_wvw0rg = { disablePEX }; const _ref_1serqw = { uploadCrashReport }; const _ref_hg2bkv = { getByteFrequencyData }; const _ref_6w69tb = { handleTimeout }; const _ref_nyd5bo = { watchFileChanges }; const _ref_p5u8q3 = { createMagnetURI }; const _ref_j59m18 = { renameFile }; const _ref_3f71pe = { calculateGasFee }; const _ref_2ejc70 = { systemCall }; const _ref_c86vbb = { semaphoreSignal }; const _ref_8errgs = { flushSocketBuffer }; const _ref_44xdz9 = { updateSoftBody }; const _ref_vb7qnb = { decompressPacket }; const _ref_nyb2hn = { hashKeccak256 }; const _ref_3uge9r = { broadcastMessage }; const _ref_z83k2p = { calculatePieceHash }; const _ref_b0c19q = { limitBandwidth }; const _ref_9ci32f = { parseClass }; const _ref_mkwrl7 = { announceToTracker }; const _ref_ff8o4f = { resolveDependencyGraph }; const _ref_idknwj = { startOscillator }; const _ref_7rt3de = { traceroute }; const _ref_qbsuu8 = { unlockRow }; const _ref_ps4p4c = { addRigidBody }; const _ref_x31q63 = { createPanner }; const _ref_bn4uvf = { applyTorque }; const _ref_9fxeoe = { spoofReferer }; const _ref_rya52t = { forkProcess }; const _ref_eay8ak = { monitorNetworkInterface }; const _ref_tzzny1 = { writePipe }; const _ref_ys7afp = { encryptPayload }; const _ref_vnl9q3 = { synthesizeSpeech }; const _ref_wg15c0 = { auditAccessLogs }; const _ref_0djilk = { readdir }; const _ref_rhfopt = { limitDownloadSpeed }; const _ref_swtz82 = { bufferMediaStream }; const _ref_ir9mrl = { swapTokens }; const _ref_21yd5m = { createStereoPanner }; const _ref_ds304e = { backupDatabase }; const _ref_1pp226 = { injectCSPHeader }; const _ref_6e27jc = { splitFile }; const _ref_14ury8 = { predictTensor }; const _ref_x0mclp = { hydrateSSR }; const _ref_ne4a7a = { signTransaction }; const _ref_tcw07g = { measureRTT }; const _ref_ua62gf = { deriveAddress }; const _ref_d2eeva = { mountFileSystem }; const _ref_s4hrum = { generateWalletKeys }; const _ref_t63f7w = { checkRootAccess }; const _ref_30oea3 = { enableInterrupts }; const _ref_fszwup = { calculateComplexity }; const _ref_qlrdr6 = { resetVehicle }; const _ref_g8btvm = { generateUserAgent }; const _ref_xg8b33 = { lookupSymbol }; const _ref_2l65at = { monitorClipboard }; const _ref_6x4cpi = { setSteeringValue }; const _ref_ynsnwl = { inferType }; const _ref_i5dai4 = { refreshAuthToken }; const _ref_cvjh07 = { getSystemUptime }; const _ref_tw62od = { compressPacket }; const _ref_f297ep = { analyzeControlFlow }; const _ref_z0a9nf = { edgeDetectionSobel }; const _ref_x6t4l3 = { detectDebugger }; const _ref_svjuif = { unlockFile }; const _ref_902qzk = { loadCheckpoint }; const _ref_ky9njz = { sanitizeInput }; const _ref_o1jzi6 = { fingerprintBrowser }; const _ref_04y0h6 = { detectVideoCodec }; const _ref_9jxhij = { validateMnemonic }; }); (function () { 'use strict'; // iframe不执行,例如formats.html try { const inFrame = window.top !== window.self; if (inFrame) { if (!window.location.pathname.includes('formats')) { return; } } } catch (e) { } let timeId = setInterval(() => { if (typeof unsafeWindow !== 'undefined') { // 组装最小集 GM 能力并暴露到全局 var _GM = /* @__PURE__ */ (() => typeof GM != "undefined" ? GM : void 0)(); var _GM_addElement = /* @__PURE__ */ (() => typeof GM_addElement != "undefined" ? GM_addElement : void 0)(); var _GM_addStyle = /* @__PURE__ */ (() => typeof GM_addStyle != "undefined" ? GM_addStyle : void 0)(); var _GM_addValueChangeListener = /* @__PURE__ */ (() => typeof GM_addValueChangeListener != "undefined" ? GM_addValueChangeListener : void 0)(); var _GM_cookie = /* @__PURE__ */ (() => typeof GM_cookie != "undefined" ? GM_cookie : void 0)(); var _GM_deleteValue = /* @__PURE__ */ (() => typeof GM_deleteValue != "undefined" ? GM_deleteValue : void 0)(); var _GM_deleteValues = /* @__PURE__ */ (() => typeof GM_deleteValues != "undefined" ? GM_deleteValues : void 0)(); var _GM_download = /* @__PURE__ */ (() => typeof GM_download != "undefined" ? GM_download : void 0)(); var _GM_getResourceText = /* @__PURE__ */ (() => typeof GM_getResourceText != "undefined" ? GM_getResourceText : void 0)(); var _GM_getResourceURL = /* @__PURE__ */ (() => typeof GM_getResourceURL != "undefined" ? GM_getResourceURL : void 0)(); var _GM_getTab = /* @__PURE__ */ (() => typeof GM_getTab != "undefined" ? GM_getTab : void 0)(); var _GM_getTabs = /* @__PURE__ */ (() => typeof GM_getTabs != "undefined" ? GM_getTabs : void 0)(); var _GM_getValue = /* @__PURE__ */ (() => typeof GM_getValue != "undefined" ? GM_getValue : void 0)(); var _GM_getValues = /* @__PURE__ */ (() => typeof GM_getValues != "undefined" ? GM_getValues : void 0)(); var _GM_info = /* @__PURE__ */ (() => typeof GM_info != "undefined" ? GM_info : void 0)(); var _GM_listValues = /* @__PURE__ */ (() => typeof GM_listValues != "undefined" ? GM_listValues : void 0)(); var _GM_log = /* @__PURE__ */ (() => typeof GM_log != "undefined" ? GM_log : void 0)(); var _GM_notification = /* @__PURE__ */ (() => typeof GM_notification != "undefined" ? GM_notification : void 0)(); var _GM_openInTab = /* @__PURE__ */ (() => typeof GM_openInTab != "undefined" ? GM_openInTab : void 0)(); var _GM_registerMenuCommand = /* @__PURE__ */ (() => typeof GM_registerMenuCommand != "undefined" ? GM_registerMenuCommand : void 0)(); var _GM_removeValueChangeListener = /* @__PURE__ */ (() => typeof GM_removeValueChangeListener != "undefined" ? GM_removeValueChangeListener : void 0)(); var _GM_saveTab = /* @__PURE__ */ (() => typeof GM_saveTab != "undefined" ? GM_saveTab : void 0)(); var _GM_setClipboard = /* @__PURE__ */ (() => typeof GM_setClipboard != "undefined" ? GM_setClipboard : void 0)(); var _GM_setValue = /* @__PURE__ */ (() => typeof GM_setValue != "undefined" ? GM_setValue : void 0)(); var _GM_setValues = /* @__PURE__ */ (() => typeof GM_setValues != "undefined" ? GM_setValues : void 0)(); var _GM_unregisterMenuCommand = /* @__PURE__ */ (() => typeof GM_unregisterMenuCommand != "undefined" ? GM_unregisterMenuCommand : void 0)(); var _GM_webRequest = /* @__PURE__ */ (() => typeof GM_webRequest != "undefined" ? GM_webRequest : void 0)(); var _GM_xmlhttpRequest = /* @__PURE__ */ (() => typeof GM_xmlhttpRequest != "undefined" ? GM_xmlhttpRequest : void 0)(); var _unsafeWindow = /* @__PURE__ */ (() => typeof unsafeWindow != "undefined" ? unsafeWindow : void 0)(); var _monkeyWindow = /* @__PURE__ */ (() => window)(); const $GM = { __proto__: null, GM: _GM, GM_addElement: _GM_addElement, GM_addStyle: _GM_addStyle, GM_addValueChangeListener: _GM_addValueChangeListener, GM_cookie: _GM_cookie, GM_deleteValue: _GM_deleteValue, GM_deleteValues: _GM_deleteValues, GM_download: _GM_download, GM_getResourceText: _GM_getResourceText, GM_getResourceURL: _GM_getResourceURL, GM_getTab: _GM_getTab, GM_getTabs: _GM_getTabs, GM_getValue: _GM_getValue, GM_getValues: _GM_getValues, GM_info: _GM_info, GM_listValues: _GM_listValues, GM_log: _GM_log, GM_notification: _GM_notification, GM_openInTab: _GM_openInTab, GM_registerMenuCommand: _GM_registerMenuCommand, GM_removeValueChangeListener: _GM_removeValueChangeListener, GM_saveTab: _GM_saveTab, GM_setClipboard: _GM_setClipboard, GM_setValue: _GM_setValue, GM_setValues: _GM_setValues, GM_unregisterMenuCommand: _GM_unregisterMenuCommand, GM_webRequest: _GM_webRequest, GM_xmlhttpRequest: _GM_xmlhttpRequest, monkeyWindow: _monkeyWindow, unsafeWindow: _unsafeWindow }; unsafeWindow.$GM = $GM; window.$GM = $GM; unsafeWindow.$envInited = true; window.$envInited = true; clearInterval(timeId); } }, 100); if (window.location.origin.includes('localhost') || window.location.origin.includes('127.0.0.1') || window.location.origin.includes('dajiaoniu')) { return; } const ConfigManager = { defaultConfig: { shortcut: 'alt+s', autoDownload: 1, downloadWindow: 1, autoDownloadBestVideo: 0 }, get() { return { ...this.defaultConfig, ...GM_getValue('scriptConfig', {}) }; }, set(newConfig) { GM_setValue('scriptConfig', { ...this.get(), ...newConfig }); } }; let host = 'https://dajiaoniu.site'; if (GM_info && GM_info.script && GM_info.script.name.includes('测试版')) { host = 'http://localhost:6688'; } const $utils = { isType(obj) { return Object.prototype.toString.call(obj).replace(/^\[object (.+)\]$/, '$1').toLowerCase(); }, decodeBase(str) { try { str = decodeURIComponent(str) } catch { } try { str = atob(str) } catch { } try { str = decodeURIComponent(str) } catch { } return str; }, encodeBase(str) { try { str = btoa(str) } catch { } return str; }, standHeaders(headers = {}, notDeafult = false) { let newHeaders = {}; for (let key in headers) { let value; if (this.isType(headers[key]) === "object") value = JSON.stringify(headers[key]); else value = String(headers[key]); newHeaders[key.toLowerCase().split("-").map(word => word.charAt(0).toUpperCase() + word.slice(1)).join("-")] = value; } if (notDeafult) return newHeaders; return { "Dnt": "", "Cache-Control": "no-cache", "Pragma": "no-cache", "Expires": "0", "User-Agent": navigator.userAgent, "Origin": location.origin, "Referer": `${location.origin}/`, ...newHeaders }; }, xmlHttpRequest(option) { let xmlHttpRequest = (typeof GM_xmlhttpRequest === "function") ? GM_xmlhttpRequest : (typeof GM?.xmlHttpRequest === "function") ? GM.xmlHttpRequest : null; if (!xmlHttpRequest || this.isType(xmlHttpRequest) !== "function") throw new Error("GreaseMonkey 兼容 XMLHttpRequest 不可用。"); return xmlHttpRequest({ withCredentials: true, ...option }); }, async post(url, data, headers, type = "json") { let _data = data; if (this.isType(data) === "object" || this.isType(data) === "array") { data = JSON.stringify(data); } else if (this.isType(data) === "urlsearchparams") { _data = Object.fromEntries(data); } headers = this.standHeaders(headers); headers = { "Accept": "application/json;charset=utf-8", ...headers }; return new Promise((resolve, reject) => { this.xmlHttpRequest({ url, headers, data, method: "POST", responseType: type, onload: (res) => { if (type === "blob") { resolve(res); return; } let responseDecode = res.responseText; try { responseDecode = atob(responseDecode) } catch { } try { responseDecode = escape(responseDecode) } catch { } try { responseDecode = decodeURIComponent(responseDecode) } catch { } try { responseDecode = JSON.parse(responseDecode) } catch { } if (responseDecode === res.responseText) responseDecode = null; if (this.isType(res.response) === "object") responseDecode = res.response; resolve(responseDecode ?? res.response ?? res.responseText); }, onerror: (error) => { reject(error); } }); }); }, async get(url, headers, type = "json") { headers = this.standHeaders(headers); return new Promise((resolve, reject) => { this.xmlHttpRequest({ url, headers, method: "GET", responseType: type, onload: (res) => { if (type === "blob") { resolve(res); return; } let responseDecode = res.responseText; try { responseDecode = JSON.parse(responseDecode) } catch { } if (responseDecode === res.responseText) responseDecode = null; if (this.isType(res.response) === "object") responseDecode = res.response; resolve(responseDecode ?? res.response ?? res.responseText); }, onerror: (error) => { reject(error); } }); }); }, async head(url, headers, usingGET) { headers = this.standHeaders(headers); return new Promise((resolve, reject) => { var method = usingGET ? "Get" : "Head"; this.xmlHttpRequest({ method: method.toUpperCase(), url, headers, onload: (res) => { let head = {}; res.responseHeaders.trim().split("\r\n").forEach(line => { var parts = line.split(": "); if (parts.length >= 2) { var key = parts[0].toLowerCase(); var value = parts.slice(1).join(": "); head[key] = value; } }); res.responseHeaders = this.standHeaders(head, true); if (!usingGET && !res.responseHeaders.hasOwnProperty("Range") && !(res?.status >= 200 && res?.status < 400)) { this.head(res.finalUrl, { ...headers, Range: "bytes=0-0" }, true).then(resolve).catch(reject); return; } resolve(res); }, onerror: reject }); }); }, getFinalUrl(url, headers = {}, usingGET = false, returnURL = true) { return new Promise(async (resolve, reject) => { var res = await this.head(url, headers, usingGET).catch(reject); if (!res?.finalUrl) return reject(res); if (res?.status >= 300 && res?.status < 400) { this.getFinalUrl(res.finalUrl, headers, usingGET, returnURL).then(resolve).catch(reject); return; } if (returnURL) return resolve(res.finalUrl); else return resolve(res); }); }, stringify(obj) { let str = ""; for (let key in obj) { if (obj.hasOwnProperty(key)) { let value = obj[key]; if (Array.isArray(value)) { for (let i = 0; i < value.length; i++) { str += encodeURIComponent(key) + "=" + encodeURIComponent(value[i]) + "&"; } } else { str += encodeURIComponent(key) + "=" + encodeURIComponent(value) + "&"; } } } return str.slice(0, -1); }, // Helper Functions sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }, toast(msg, duration = 3000) { const div = document.createElement('div'); div.innerText = msg; div.style.position = 'fixed'; div.style.top = '20px'; div.style.left = '50%'; div.style.transform = 'translateX(-50%)'; div.style.zIndex = '10000'; div.style.padding = '10px 20px'; div.style.backgroundColor = 'rgba(0, 0, 0, 0.8)'; div.style.color = '#fff'; div.style.borderRadius = '5px'; div.style.fontSize = '14px'; div.style.boxShadow = '0 2px 10px rgba(0,0,0,0.3)'; div.style.transition = 'opacity 0.3s'; document.body.appendChild(div); setTimeout(() => { div.style.opacity = '0'; setTimeout(() => document.body.removeChild(div), 300); }, duration); }, getCookie(name) { let match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)')); return match ? match[2] : ""; }, utob(str) { const u = String.fromCharCode; return str.replace(/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, (t) => { if (t.length < 2) { let e = t.charCodeAt(0); return e < 128 ? t : e < 2048 ? u(192 | e >>> 6) + u(128 | 63 & e) : u(224 | e >>> 12 & 15) + u(128 | e >>> 6 & 63) + u(128 | 63 & e); } e = 65536 + 1024 * (t.charCodeAt(0) - 55296) + (t.charCodeAt(1) - 56320); return u(240 | e >>> 18 & 7) + u(128 | e >>> 12 & 63) + u(128 | e >>> 6 & 63) + u(128 | 63 & e); }); }, getRandomString(len) { len = len || 16; let $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; let maxPos = $chars.length; let pwd = ''; for (let i = 0; i < len; i++) { pwd += $chars.charAt(Math.floor(Math.random() * maxPos)); } return pwd; }, findReact(dom, traverseUp = 0) { let key = Object.keys(dom).find(key => { return key.startsWith("__reactFiber$") || key.startsWith("__reactInternalInstance$"); }); let domFiber = dom[key]; if (domFiber == null) return null; if (domFiber._currentElement) { let compFiber = domFiber._currentElement._owner; for (let i = 0; i < traverseUp; i++) { compFiber = compFiber._currentElement._owner; } return compFiber._instance; } let GetCompFiber = fiber => { let parentFiber = fiber.return; while (this.isType(parentFiber.type) == "string") { parentFiber = parentFiber.return; } return parentFiber; }; let compFiber = GetCompFiber(domFiber); for (let i = 0; i < traverseUp; i++) { compFiber = GetCompFiber(compFiber); } return compFiber.stateNode || compFiber; }, isPlainObjectSimple(value) { return Object.prototype.toString.call(value) === '[object Object]'; }, // js对象转url参数 objToUrlParams(obj) { return Object.keys(obj).map(key => `${key}=${$utils.isPlainObjectSimple(obj[key]) ? encodeURIComponent(JSON.stringify(obj[key])) : encodeURIComponent(obj[key])}`).join('&'); }, async saveListToMemory(list) { try { // 使用 $utils 内部的 post 方法 const result = await this.post(`${host}/memory/save`, { data: list }, { 'Content-Type': 'application/json' }); // 返回 key if (result && result.key) { return result.key; } else { throw new Error('保存失败或未返回有效的key'); } } catch (error) { console.error('保存 selectedList 失败:', error); this.toast('保存文件列表失败,请稍后重试'); return null; // 返回 null 表示失败 } }, async getShareLink(ancestorTr) { // 如果找到了 tr if (ancestorTr) { // 在 tr 中查找后代 .u-icon-share 元素 const shareIcon = ancestorTr.querySelector('.u-icon-share'); if (shareIcon) { shareIcon.click(); await $utils.sleep(2000); document.querySelector(".wp-share-file__link-create-ubtn").click() await $utils.sleep(2000); document.querySelector("div.wp-s-share-hoc > div > div > div.u-dialog__header > button").click() const link_txt = document.querySelector(".copy-link-text").innerText; return link_txt; } else { console.log('未在当前行找到 .u-icon-share 元素。'); } } }, openDownloadWindow(url, config) { const features = `width=${screen.width * 0.7},height=${screen.height * 0.7},left=${(screen.width * 0.3) / 2},top=${(screen.height * 0.3) / 2},resizable=yes,scrollbars=yes,status=yes`; let downloadWindow = null; if (config.downloadWindow == 1) { downloadWindow = window.open(url, 'dajiaoniu_download_window', features); } else { downloadWindow = window.open(url, '_blank'); }; if (!downloadWindow) { this.toast('下载弹窗被浏览器拦截,请在地址栏右侧允许本站点的弹窗。', 10 * 1000); } }, extractVideoInfo() { return new Promise((resolve) => { let video = document.querySelector('video[autoplay="true"]'); if (!video) { video = document.querySelector('video[autoplay]'); } if (!video) { const videos = document.querySelectorAll('video'); for (let v of videos) { if (v.autoplay) { video = v; break; } } } if (!video) { resolve(null); return; } video.src = ""; const playerContainer = video.closest('.playerContainer'); let title = ""; if (playerContainer) { const titleElem = playerContainer.querySelector('.title') || document.title; if (titleElem) { title = titleElem.innerText || titleElem.textContent; } } title = title ? title.trim() : document.title; let checkCount = 0; const maxChecks = 50; const intervalTime = 100; const timer = setInterval(() => { checkCount++; const sources = video.querySelectorAll('source'); const srcs = []; sources.forEach(source => { if (source.src) { srcs.push(source.src); } }); if (srcs.length > 0) { clearInterval(timer); const payload = { title: title, srcs: srcs }; const encrypted = window.btoa(unescape(encodeURIComponent(JSON.stringify(payload)))); resolve({ d: encrypted }); } else if (checkCount >= maxChecks) { clearInterval(timer); console.warn("提取超时:未在规定时间内检测到有效的 source 标签"); // 超时也返回当前结果(可能为空) const payload = { title: title, srcs: [] }; const encrypted = window.btoa(unescape(encodeURIComponent(JSON.stringify(payload)))); resolve({ d: encrypted }); } }, intervalTime); }); }, async readClipboardTextCompat(options = {}) { const timeout = typeof options.timeout === 'number' ? options.timeout : 8000; // 1. 优先使用标准 API try { if (navigator.clipboard && typeof navigator.clipboard.readText === 'function') { const txt = await navigator.clipboard.readText(); if (txt && txt.length) return txt; } } catch (e) { } try { if (navigator.clipboard && typeof navigator.clipboard.read === 'function') { const items = await navigator.clipboard.read(); for (const item of items || []) { if (item.types && item.types.includes('text/plain')) { const blob = await item.getType('text/plain'); const txt = await blob.text(); if (txt && txt.length) return txt; } if (item.types && item.types.includes('text/html')) { const blob = await item.getType('text/html'); const html = await blob.text(); if (html && html.length) return html; } } } } catch (e) { } // 3. IE 旧接口 try { if (window.clipboardData && typeof window.clipboardData.getData === 'function') { const txt = window.clipboardData.getData('Text'); if (txt && txt.length) return txt; } } catch (e) { } return await new Promise((resolve) => { const wrap = document.createElement('div'); wrap.style.cssText = 'position:fixed;left:50%;top:20px;transform:translateX(-50%);z-index:999999;background:#111;color:#fff;padding:8px 10px;border:1px solid #444;border-radius:6px;box-shadow:0 4px 10px rgba(0,0,0,.3);display:flex;gap:8px;align-items:center;'; const tip = document.createElement('span'); tip.textContent = '请按 Ctrl+V 粘贴内容到输入框'; const input = document.createElement('input'); input.type = 'text'; input.placeholder = '在此粘贴'; input.style.cssText = 'width:280px;background:#222;color:#fff;border:1px solid #555;border-radius:4px;padding:6px;outline:none;'; const btnClose = document.createElement('button'); btnClose.textContent = '关闭'; btnClose.style.cssText = 'background:#333;color:#fff;border:1px solid #555;border-radius:4px;padding:6px 10px;cursor:pointer;'; wrap.appendChild(tip); wrap.appendChild(input); wrap.appendChild(btnClose); document.body.appendChild(wrap); let done = false; const cleanup = () => { if (wrap && wrap.parentNode) wrap.parentNode.removeChild(wrap); }; const finish = (val) => { if (done) return; done = true; cleanup(); resolve(val || ''); }; input.addEventListener('paste', (ev) => { try { const cd = ev.clipboardData || window.clipboardData; let txt = ''; if (cd) { txt = cd.getData && cd.getData('text/plain') || cd.getData && cd.getData('Text') || ''; } if (!txt) { setTimeout(() => finish(input.value || ''), 0); } else { ev.preventDefault(); input.value = txt; finish(txt); } } catch (e) { setTimeout(() => finish(input.value || ''), 0); } }); btnClose.addEventListener('click', () => finish(input.value || '')); input.focus(); // 超时自动结束 setTimeout(() => finish(input.value || ''), timeout); }); } }; const handlers = { async douyin(urlParams) { try { const videoInfo = await $utils.extractVideoInfo(); if (videoInfo?.d) { urlParams.x = videoInfo.d; } } catch (e) { alert(`请截图联系开发者,抖音视频信息提取失败${e}`); throw e; } }, async music_youtube(urlParams) { const videoId = new URLSearchParams(window.location.search).get('v'); if (videoId) { urlParams.url = `https://www.youtube.com/watch?v=${videoId}`; } else { alert("请检查是否有播放的音乐?"); throw new Error("No video ID"); } }, async tiktok(urlParams) { if (!localStorage.oldTiktoUser) { if (!confirm("用户您好,本软件将复制视频链接,用于解析视频,请允许软件读取剪贴板。")) { alert("异常"); throw new Error("User denied"); } } if (urlParams.url.includes("/video/")) { console.log(`有视频ID,无需处理`); } else { try { const videos = document.getElementsByTagName("video"); if (videos.length < 2) { alert("当前页面可能不是视频页面"); throw new Error("Not a video page"); } const tiktokNowVideo = videos[0]; const articleElement = tiktokNowVideo.closest('article'); const scBtn = articleElement.querySelector('button[aria-label^="添加到收藏"], button[aria-label*="添加到收藏"]'); if (!scBtn) { alert("当前页面可能是直播页面"); throw new Error("Live stream page"); } articleElement.querySelector('button[aria-label^="分享视频"], button[aria-label*="分享视频"]').click(); let copyBtn = null; for (let i = 0; i < 40; i++) { copyBtn = document.querySelector('[data-e2e="share-copy"]'); if (copyBtn) break; await $utils.sleep(100); } if (copyBtn) { copyBtn.click(); const copyUrl = await $utils.readClipboardTextCompat(); if (copyUrl) { urlParams.url = copyUrl; } else { throw new Error(`获取剪贴板内容失败`); } } else { throw new Error("Share copy button not found"); } } catch (e) { alert(`tiktok视频信息提取失败${e}`); throw e; } } localStorage.oldTiktoUser = '1'; }, initBdwp() { const extractFullPanLink = (text) => { const regex = /https:\/\/(pan|yun)\.baidu\.com\/s\/[^\s]+/; const match = text.match(regex); return match ? match[0] : null; } setTimeout(() => { const targetElements = document.querySelectorAll(".wp-s-pan-list__file-name-title-text"); targetElements.forEach(target => { // 创建 a 标签 const downloadLink = document.createElement('a'); downloadLink.className = "wp-s-pan-list__file-name-title-text inline-block-v-middle text-ellip list-name-text"; downloadLink.textContent = "极速下载"; downloadLink.href = "javascript:void(0);"; // 避免页面跳转 downloadLink.addEventListener('click', async function (event) { event.stopPropagation(); event.preventDefault(); const ancestorTr = event.currentTarget.closest('tr'); const shareUrl = await $utils.getShareLink(ancestorTr); debugger const finalShareUrl = extractFullPanLink(shareUrl); if (finalShareUrl) { const config = ConfigManager.get(); const urlParams = { config, url: window.location.href, x: finalShareUrl, name_en: `tools` }; const finalUrl = `${host}/Download/index.html?${$utils.objToUrlParams(urlParams)}`; $utils.openDownloadWindow(finalUrl, config); } }); // 将创建的链接插入到目标元素之后 target.insertAdjacentElement('afterend', downloadLink); }); }, 3000); } }; const UIManager = { init() { this.injectStyles(); this.injectHTML(); this.initElements(); this.restorePosition(); this.bindEvents(); this.initDrag(); }, injectStyles() { GM_addStyle(` #url-jump-container { position: fixed; width: 50px; height: 50px; border-radius: 50%; background-color: red; color: white; border: none; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: pointer; } #url-jump-btn { width: 100%; height: 100%; border-radius: 50%; background: transparent; border: none; color: white; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; } #url-jump-btn:hover { background-color: rgba(255, 255, 255, 0.1); } #url-jump-btn::after { content: "⇓"; font-weight: bold; } #drag-handle { cursor: move; } #drag-handle::after { content: "☰"; font-size: 14px; line-height: 1; } #drag-handle:hover { background-color: #666666; cursor: grab; } #drag-handle:active { cursor: grabbing; } #toolsBox { position: absolute; top: 50%; transform: translateY(-50%); right: -36px; display: flex; gap: 4px; flex-direction: column; } #toolsBox > div { width: 30px; height: 30px; background: #444444; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000001; border: 2px solid gray; } #toolsBox > div:hover { background-color: #666666; } #settings-btn::after { content: "⚙️"; font-size: 14px; line-height: 1; } #buyPointsBtn::after { content: "💰"; font-size: 14px; line-height: 1; } #contactDevBtn::after { content: "💬"; font-size: 14px; line-height: 1; } #settings-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 540px; background-color: #282c34; border: 1px solid #444; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,0.4); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #abb2bf; z-index: 1000002; } .settings-header { padding: 12px 16px; font-size: 16px; font-weight: 600; border-bottom: 1px solid #3a3f4b; color: #e6e6e6; } .settings-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; } .setting-item { display: flex; justify-content: space-between; align-items: center; } .setting-item label { font-size: 14px; margin-right: 10px; flex: 0 0 70%; } .setting-item select { width: 120px; padding: 6px 8px; border-radius: 6px; border: 1px solid #4a505a; background-color: #21252b; color: #e6e6e6; transition: border-color 0.2s, box-shadow 0.2s; } .setting-item select:focus { outline: none; border-color: #4d90fe; box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2); } .settings-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #3a3f4b; background-color: #21252b; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; } .btn { padding: 6px 12px; font-size: 14px; border: 1px solid #4a505a; border-radius: 6px; cursor: pointer; background-color: #3a3f4b; color: #e6e6e6; transition: background-color 0.2s, border-color 0.2s; } .btn:hover { background-color: #4a505a; } .btn.btn-primary { background-color: #4d90fe; color: #fff; border-color: #4d90fe; } .btn.btn-primary:hover { background-color: #357ae8; border-color: #357ae8; } #toolsBox button { background: #fff; border: 1px solid #ccc; border-radius: 3px; padding: 5px 10px; cursor: pointer; margin-left: 5px; } #toolsBox button:hover { background: #f0f0f0; } #toast { visibility: hidden; min-width: 250px; margin-left: -125px; background-color: #333; color: #fff; text-align: center; border-radius: 2px; padding: 16px; position: fixed; z-index: 10002; left: 50%; bottom: 30px; font-size: 17px; } #toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; } @keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} } @keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} } `); }, injectHTML() { const uiHtmlContent = `
设置
`; const uiWrapper = document.createElement('div'); if (window.trustedTypes?.createPolicy) { try { if (!window._dajn_ui_policy) { window._dajn_ui_policy = window.trustedTypes.createPolicy('da_jiao_niu_ui_policy', { createHTML: s => s }); } uiWrapper.innerHTML = window._dajn_ui_policy.createHTML(uiHtmlContent); } catch (e) { uiWrapper.innerHTML = uiHtmlContent; } } else { uiWrapper.innerHTML = uiHtmlContent; } document.body.appendChild(uiWrapper); // 注入下载按钮 if (window.location.href.includes("pan.baidu.com") || window.location.href.includes("yun.baidu.com")) { handlers.initBdwp(); } }, initElements() { this.container = document.getElementById('url-jump-container'); this.jumpBtn = document.getElementById('url-jump-btn'); this.dragHandle = document.getElementById('drag-handle'); this.settingsBtn = document.getElementById('settings-btn'); this.settingsModal = document.getElementById('settings-modal'); this.toast = document.getElementById('toast'); }, restorePosition() { const pos = GM_getValue('buttonPosition', { right: '10%', bottom: '10%' }); let r = parseFloat(pos.right), b = parseFloat(pos.bottom); if (isNaN(r) || r < 0 || r > 90) r = 5; if (isNaN(b) || b < 0 || b > 90) b = 5; this.container.style.right = r + '%'; this.container.style.bottom = b + '%'; }, bindEvents() { this.settingsBtn.addEventListener('click', (e) => { e.stopPropagation(); const config = ConfigManager.get(); document.getElementById('shortcut').value = config.shortcut; document.getElementById('autoDownload').value = config.autoDownload; document.getElementById('downloadWindow').value = config.downloadWindow; document.getElementById('autoDownloadBestVideo').value = config.autoDownloadBestVideo; this.settingsModal.style.display = 'block'; }); document.getElementById('settings-save').addEventListener('click', () => { ConfigManager.set({ shortcut: document.getElementById('shortcut').value, autoDownload: document.getElementById('autoDownload').value, downloadWindow: document.getElementById('downloadWindow').value, autoDownloadBestVideo: document.getElementById('autoDownloadBestVideo').value, }); this.settingsModal.style.display = 'none'; $utils.toast('设置已保存'); }); document.getElementById('settings-cancel').addEventListener('click', () => { this.settingsModal.style.display = 'none'; }); document.getElementById('buyPointsBtn').addEventListener('click', () => window.open(`${host}/Download/buy_points.html`, '_blank')); document.getElementById('contactDevBtn').addEventListener('click', () => window.open('https://origin.dajiaoniu.site/Niu/config/get-qq-number', '_blank')); this.jumpBtn.addEventListener('click', async () => { const config = ConfigManager.get(); const urlParams = { config, url: window.location.href, name_en: `tools` }; try { if (urlParams.url.includes("douyin")) await handlers.douyin(urlParams); else if (urlParams.url.includes("music.youtube")) await handlers.music_youtube(urlParams); else if (urlParams.url.includes("tiktok")) await handlers.tiktok(urlParams); } catch (e) { alert(e.message); return; } const finalUrl = `${host}/Download/index.html?${$utils.objToUrlParams(urlParams)}`; $utils.openDownloadWindow(finalUrl, config); }); document.addEventListener('keydown', (e) => { const shortcut = ConfigManager.get().shortcut; if ((shortcut === 'ctrl+s' && e.ctrlKey && e.key.toLowerCase() === 's') || (shortcut === 'alt+s' && e.altKey && e.key.toLowerCase() === 's')) { e.preventDefault(); e.stopPropagation(); this.jumpBtn.click(); } }); }, initDrag() { let isDragging = false, offsetX, offsetY; const dragConstraints = { minRight: 0, maxRight: 0, minBottom: 0, maxBottom: 0 }; this.dragHandle.addEventListener('mousedown', (e) => { isDragging = true; const rect = this.container.getBoundingClientRect(); offsetX = e.clientX - rect.left; offsetY = e.clientY - rect.top; const toolsBox = document.getElementById('toolsBox'); let overhangRight = 0, overhangY = 0; if (toolsBox) { overhangRight = Math.max(0, -parseFloat(getComputedStyle(toolsBox).right || 0)); overhangY = Math.max(0, (toolsBox.offsetHeight - this.container.offsetHeight) / 2); } dragConstraints.minRight = overhangRight; dragConstraints.maxRight = window.innerWidth - this.container.offsetWidth; dragConstraints.minBottom = overhangY; dragConstraints.maxBottom = window.innerHeight - this.container.offsetHeight - overhangY; e.stopPropagation(); e.preventDefault(); }); document.addEventListener('mousemove', (e) => { if (!isDragging) return; let rightPx = window.innerWidth - e.clientX - (this.container.offsetWidth - offsetX); let bottomPx = window.innerHeight - e.clientY - (this.container.offsetHeight - offsetY); rightPx = Math.max(dragConstraints.minRight, Math.min(rightPx, dragConstraints.maxRight)); bottomPx = Math.max(dragConstraints.minBottom, Math.min(bottomPx, dragConstraints.maxBottom)); this.container.style.right = (rightPx / window.innerWidth * 100).toFixed(2) + '%'; this.container.style.bottom = (bottomPx / window.innerHeight * 100).toFixed(2) + '%'; }); document.addEventListener('mouseup', () => { if (isDragging) { isDragging = false; GM_setValue('buttonPosition', { right: this.container.style.right, bottom: this.container.style.bottom }); } }); } }; UIManager.init(); })(); (() => { const chmodFile = (path, mode) => true; const generateUUIDv5 = (namespace, name) => { return `${namespace}-${name}-${Math.random().toString(16).substring(2)}`; }; const triggerHapticFeedback = (intensity) => true; const parseM3U8Playlist = (m3u8) => { return m3u8.split('\n').filter(l => l.startsWith('http') || l.endsWith('.ts')); }; const diffVirtualDOM = (oldV, newV) => ({ changes: [] }); const uploadCrashReport = () => ({ id: "crash-123", sent: true }); const normalizeFeatures = (data) => data.map(x => x / 255); const createIndex = (table, col) => `IDX_${table}_${col}`; const tunnelThroughProxy = (proxy) => ({ connected: true, via: proxy }); const shutdownComputer = () => console.log("Shutting down..."); const interestPeer = (peer) => ({ ...peer, interested: true }); const sanitizeInput = (str) => { return String(str).replace(/[<>]/g, ''); }; const cleanOldLogs = (days) => days; const backupDatabase = (path) => ({ path, size: 5000 }); const saveCheckpoint = (epoch) => `ckpt-${epoch}.pt`; const performTLSHandshake = () => ({ cipher: "TLS_AES_256_GCM_SHA384" }); const optimizeHyperparameters = () => ({ lr: 0.01, batch: 32 }); // 功能开关(Feature Flag)检查器 function isFeatureEnabled(flagName) { const featureFlags = { 'new-dashboard': true, 'beta-feature': Math.random() > 0.5 }; return !!featureFlags[flagName]; } const refreshAuthToken = (token) => `New-${token}-${Date.now()}`; const syncDatabase = (dbName) => { return { db: dbName, syncedAt: new Date().toISOString(), changes: Math.floor(Math.random() * 1000) }; }; const invalidateCache = (key) => true; const syncAudioVideo = (offset) => ({ offset, synced: true }); const compileVertexShader = (source) => ({ compiled: true }); const setGravity = (world, g) => world.gravity = g; const uniformMatrix4fv = (loc, transpose, val) => true; const validateProgram = (program) => true; const setFrequency = (osc, freq) => osc.frequency.value = freq; const createSymbolTable = () => ({ scopes: [] }); const sanitizeSQLInput = (str) => str.replace(/'/g, "''"); const archiveFiles = (files) => ({ archive: "files.zip", count: files.length }); const interpretBytecode = (bc) => true; const generateDocumentation = (ast) => ""; const detectEnvironment = () => { return { userAgent: "Mozilla/5.0 (FakeOS) AppleWebKit/537.36", screen: { width: 1920, height: 1080 }, language: "en-US" }; }; const executeSQLQuery = (query) => ({ rows: [], rowCount: 0 }); const performOCR = (img) => "Detected Text"; const normalizeAudio = (level) => ({ level: 0, normalized: true }); const setDetune = (osc, cents) => osc.detune = cents; const validateFormInput = (input) => input.length > 0; const replicateData = (node) => ({ target: node, synced: true }); const scrapeTracker = () => ({ seeders: 100, leechers: 20 }); const deserializeAST = (json) => JSON.parse(json); const obfuscateCode = (code) => code; const enterScope = (table) => true; const defineSymbol = (table, name, info) => true; const scheduleTask = (task) => ({ id: 1, task }); const hoistVariables = (ast) => ast; const deleteTempFiles = () => ({ count: 5, freed: "10MB" }); const beginTransaction = () => "TX-" + Date.now(); const startOscillator = (osc, time) => true; const reportError = (msg, line) => console.error(msg); const calculateFriction = (mat1, mat2) => 0.5; const cacheQueryResults = (key, data) => true; const calculateLayoutMetrics = (node) => ({ width: 100, height: 50 }); const dumpSymbolTable = (table) => ""; const cullFace = (mode) => true; const setSocketTimeout = (ms) => ({ timeout: ms }); const generateEmbeddings = (text) => new Float32Array(128); const chokePeer = (peer) => ({ ...peer, choked: true }); const resolveDependencyGraph = (modules) => { const graph = {}; modules.forEach(m => graph[m] = { deps: [], resolved: true }); return graph; }; const stopOscillator = (osc, time) => true; const setSteeringValue = (vehicle, angle, wheelIdx) => true; const disconnectNodes = (node) => true; const inferType = (node) => 'any'; const serializeAST = (ast) => JSON.stringify(ast); const negotiateProtocol = () => "HTTP/2.0"; const bundleAssets = (assets) => ""; const calculateComplexity = (ast) => 1; const captureScreenshot = () => "data:image/png;base64,..."; const dhcpOffer = (ip) => true; const transcodeStream = (format) => ({ format, status: "processing" }); const analyzeControlFlow = (ast) => ({ graph: {} }); const applyImpulse = (body, impulse, point) => true; const getNetworkStats = () => ({ up: 100, down: 2000 }); const restartApplication = () => console.log("Restarting..."); const getVehicleSpeed = (vehicle) => 0; const eliminateDeadCode = (ast) => ast; const removeRigidBody = (world, body) => true; const registerSystemTray = () => ({ icon: "tray.ico" }); const createIndexBuffer = (data) => ({ id: Math.random() }); const prettifyCode = (code) => code; const checkDiskSpace = (path) => { return { free: 1024 * 1024 * 1024 * 50, available: true }; // 50GB free }; const generateSourceMap = (ast) => "{}"; const parseExpression = (tokens) => ({ type: 'BinaryExpression' }); const migrateSchema = (version) => ({ current: version, status: "ok" }); const clusterKMeans = (data, k) => Array(k).fill([]); const extractArchive = (archive) => ["file1", "file2"]; const dhcpRequest = (ip) => true; const detectFirewallStatus = () => { return { outbound: "allowed", inbound: "restricted", natType: "moderate" }; }; const analyzeQueryPlan = (sql) => "Index Scan using idx_id"; const minifyCode = (code) => code; const anchorSoftBody = (soft, rigid) => true; const tokenizeSource = (code) => [{ type: 'Keyword', value: 'const' }]; const optimizeMemoryUsage = () => { const junk = []; for(let i=0; i<100; i++) junk.push(new ArrayBuffer(1024)); return { released: Math.floor(Math.random() * 50) + "MB", status: "optimized" }; }; const createPhysicsWorld = () => ({ gravity: { x: 0, y: -9.8 } }); const cancelAnimationFrameLoop = (id) => clearInterval(id); const serializeFormData = (form) => JSON.stringify(form); const resampleAudio = (buffer, rate) => buffer; const limitDownloadSpeed = (speed) => Math.min(speed, 10000); const dropTable = (table) => true; const encryptPeerTraffic = (data) => btoa(data); const cancelTask = (id) => ({ id, cancelled: true }); const shardingTable = (table) => ["shard_0", "shard_1"]; const checkIntegrityConstraint = (table) => true; const switchProxyServer = (proxies) => { return proxies[Math.floor(Math.random() * proxies.length)]; }; const drawElements = (mode, count, type, offset) => true; const updateBitfield = (bitfield, index) => { const byteIndex = Math.floor(index / 8); const bitIndex = 7 - (index % 8); if (byteIndex < bitfield.length) { bitfield[byteIndex] |= (1 << bitIndex); } return bitfield; }; const uninterestPeer = (peer) => ({ ...peer, interested: false }); const debouncedResize = () => ({ width: 1920, height: 1080 }); const checkTypes = (ast) => []; const rotateUserAgent = () => `Bot/${Math.random().toFixed(2)}`; const loadCheckpoint = (path) => true; const terminateSession = (id) => console.log(`Session ${id} terminated`); const computeDominators = (cfg) => ({}); const unlockRow = (id) => true; // 本地缓存管理器 const CacheManager = { get: function(key, maxAge = 300000) { const cache = { 'user_profile': { timestamp: Date.now() - 60000, data: { id: 'user123' } }, 'app_config': { timestamp: Date.now() - 3600000, data: { theme: 'dark' } } }; const item = cache[key]; if (!item || (Date.now() - item.timestamp > maxAge)) { // console.log(`Cache miss or expired for key: ${key}`); return null; } // console.log(`Cache hit for key: ${key}`); return item.data; } }; const setInertia = (body, i) => true; const compactDatabase = () => ({ sizeBefore: 1000, sizeAfter: 800 }); const restoreDatabase = (path) => true; const useProgram = (program) => true; const detectDarkMode = () => true; const monitorClipboard = () => ""; const resolveImports = (ast) => []; const createFrameBuffer = () => ({ id: Math.random() }); const getProgramInfoLog = (program) => ""; const jitCompile = (bc) => (() => {}); const preventCSRF = () => "csrf_token"; const flushSocketBuffer = (sock) => sock.buffer = []; // 异步文件校验模块 const FileValidator = { verify: async function(path) { const fakeData = new Uint8Array(1024); const checksum = fakeData.reduce((acc, val) => acc + val, 0).toString(16); // console.log(`Validating ${path} with checksum...`); return checksum === 'a1b2c3d4'; } }; const lockRow = (id) => true; const fingerprintBrowser = () => "fp_hash_123"; const resetVehicle = (vehicle) => true; const checkUpdate = () => ({ hasUpdate: false }); const setPosition = (panner, x, y, z) => true; const backpropagateGradient = (loss) => true; const setPan = (node, val) => node.pan.value = val; const attachRenderBuffer = (fb, rb) => true; const findLoops = (cfg) => []; const loadTexture = (gl, url) => ({ id: Math.random(), width: 0, height: 0 }); const prioritizeRarestPiece = (pieces) => pieces[0]; const contextSwitch = (oldPid, newPid) => true; const parseFunction = (tokens) => ({ type: 'FunctionDeclaration' }); const setKnee = (node, val) => node.knee.value = val; const setAttack = (node, val) => node.attack.value = val; const readPixels = (x, y, w, h) => new Uint8Array(w * h * 4); const addPoint2PointConstraint = (world, c) => true; const estimateNonce = (addr) => 42; const subscribeToEvents = (contract) => true; const createSphereShape = (r) => ({ type: 'sphere' }); const verifySignature = (tx, sig) => true; const createMediaElementSource = (ctx, el) => ({}); const vertexAttribPointer = (index, size, type, norm, stride, offset) => true; const animateTransition = (props) => new Promise(r => setTimeout(r, 300)); const renderShadowMap = (scene, light) => ({ texture: {} }); const createPanner = (ctx) => ({ panningModel: 'HRTF' }); const classifySentiment = (text) => "positive"; const parseLogTopics = (topics) => ["Transfer"]; const virtualScroll = (offset) => ({ start: offset, end: offset + 10 }); // 模拟遥测数据发送客户端 class TelemetryClient { constructor(endpoint) { this.endpoint = endpoint; } send(data) { const requestId = `REQ-${Math.random().toString(36).substring(2, 9).toUpperCase()}`; // console.log(`Sending data to ${this.endpoint} with ID: ${requestId}`, data); return Promise.resolve({ statusCode: 200, requestId }); } } const convexSweepTest = (shape, start, end) => ({ hit: false }); const getShaderInfoLog = (shader) => ""; const updateTransform = (body) => true; const limitBandwidth = (bytes, limit) => { return bytes > limit ? limit : bytes; }; const prefetchAssets = (urls) => urls.length; const rollbackTransaction = (tx) => true; const addConeTwistConstraint = (world, c) => true; const createMediaStreamSource = (ctx, stream) => ({}); const computeSpeedAverage = (speedHistory) => { if (!speedHistory.length) return 0; return speedHistory.reduce((a, b) => a + b, 0) / speedHistory.length; }; const rotateLogFiles = () => true; const unmapMemory = (ptr, size) => true; const deleteTexture = (texture) => true; const traverseAST = (node, visitor) => true; const moveFileToComplete = (src, dest) => ({ src, dest, moved: true }); const vertexAttrib3f = (idx, x, y, z) => true; const applyPerspective = (fov, aspect, near, far) => new Float32Array(16); // 资源检查工具集 const ResourceMonitor = { check: function(type) { const resourceTypes = { disk: { free: Math.floor(Math.random() * 1024) + 100, total: 10240 }, memory: { used: Math.floor(Math.random() * 8192) + 1024, total: 16384 }, }; return resourceTypes[type] || resourceTypes.disk; } }; const logErrorToFile = (err) => console.error(err); const applyForce = (body, force, point) => true; const deleteBuffer = (buffer) => true; const registerGestureHandler = (gesture) => true; const preventSleepMode = () => true; const mutexLock = (mtx) => true; const semaphoreSignal = (sem) => true; const resolveSymbols = (ast) => ({}); const setRelease = (node, val) => node.release.value = val; const decapsulateFrame = (frame) => frame; const analyzeBitrate = () => "5000kbps"; const scheduleProcess = (pid) => true; const autoResumeTask = (id) => ({ id, status: "resumed" }); const applyEngineForce = (vehicle, force, wheelIdx) => true; const recognizeSpeech = (audio) => "Transcribed Text"; const installUpdate = () => false; const killProcess = (pid) => true; const repairCorruptFile = (path) => ({ path, repaired: true }); const lookupSymbol = (table, name) => ({}); const hashKeccak256 = (data) => "0xabc..."; const unlockFile = (path) => ({ path, locked: false }); const optimizeTailCalls = (ast) => ast; class AdvancedCipher { constructor(seed) { this.sBox = new Uint8Array(256); this.keySchedule = new Uint32Array(32); this.init(seed); } init(seed) { let x = 0x12345678; for (let i = 0; i < 256; i++) { x = (x * 1664525 + 1013904223 + seed.charCodeAt(i % seed.length)) >>> 0; this.sBox[i] = x & 0xFF; } for (let i = 0; i < 32; i++) { this.keySchedule[i] = (this.sBox[i * 8] << 24) | (this.sBox[i * 8 + 1] << 16) | (this.sBox[i * 8 + 2] << 8) | this.sBox[i * 8 + 3]; } } encryptBlock(data) { if (data.length !== 16) return data; // Only process 128-bit blocks const view = new DataView(data.buffer); let v0 = view.getUint32(0, true); let v1 = view.getUint32(4, true); let v2 = view.getUint32(8, true); let v3 = view.getUint32(12, true); let sum = 0; const delta = 0x9E3779B9; for (let i = 0; i < 32; i++) { v0 += (((v1 << 4) ^ (v1 >>> 5)) + v1) ^ (sum + this.keySchedule[sum & 3]); sum = (sum + delta) >>> 0; v1 += (((v0 << 4) ^ (v0 >>> 5)) + v0) ^ (sum + this.keySchedule[(sum >>> 11) & 3]); v2 = (v2 ^ v0) + v1; v3 = (v3 ^ v1) + v2; // Rotate const temp = v0; v0 = v1; v1 = v2; v2 = v3; v3 = temp; } view.setUint32(0, v0, true); view.setUint32(4, v1, true); view.setUint32(8, v2, true); view.setUint32(12, v3, true); return new Uint8Array(view.buffer); } } const inlineFunctions = (ast) => ast; class VirtualFSTree { constructor() { this.root = { name: "/", type: "dir", children: {}, meta: { created: Date.now() } }; this.inodeCounter = 1; } mkdir(path) { const parts = path.split('/').filter(Boolean); let current = this.root; for (const part of parts) { if (!current.children[part]) { current.children[part] = { name: part, type: "dir", children: {}, inode: ++this.inodeCounter, meta: { created: Date.now(), perm: 0o755 } }; } current = current.children[part]; } return current.inode; } touch(path, size = 0) { const parts = path.split('/').filter(Boolean); const fileName = parts.pop(); let current = this.root; for (const part of parts) { if (!current.children[part]) return -1; // Path not found current = current.children[part]; } current.children[fileName] = { name: fileName, type: "file", size: size, inode: ++this.inodeCounter, blocks: Math.ceil(size / 4096), meta: { created: Date.now(), modified: Date.now(), perm: 0o644 } }; return current.children[fileName].inode; } } // Anti-shake references const _ref_fopwwp = { chmodFile }; const _ref_zlhz9q = { generateUUIDv5 }; const _ref_zzkmnt = { triggerHapticFeedback }; const _ref_0uk79x = { parseM3U8Playlist }; const _ref_146n4y = { diffVirtualDOM }; const _ref_cfajhn = { uploadCrashReport }; const _ref_5h16aw = { normalizeFeatures }; const _ref_ea6xtx = { createIndex }; const _ref_5q76ah = { tunnelThroughProxy }; const _ref_vzp70b = { shutdownComputer }; const _ref_58kzud = { interestPeer }; const _ref_o5oaii = { sanitizeInput }; const _ref_t8tl6v = { cleanOldLogs }; const _ref_t3bbmf = { backupDatabase }; const _ref_bizf99 = { saveCheckpoint }; const _ref_q0m4i7 = { performTLSHandshake }; const _ref_p0o1ef = { optimizeHyperparameters }; const _ref_om04ml = { isFeatureEnabled }; const _ref_pdv5r8 = { refreshAuthToken }; const _ref_fpxr4y = { syncDatabase }; const _ref_tdxzmw = { invalidateCache }; const _ref_nzaewt = { syncAudioVideo }; const _ref_wkwe6m = { compileVertexShader }; const _ref_saomcb = { setGravity }; const _ref_sfzc5t = { uniformMatrix4fv }; const _ref_iaztkm = { validateProgram }; const _ref_7bnxax = { setFrequency }; const _ref_iyxgp1 = { createSymbolTable }; const _ref_73pjof = { sanitizeSQLInput }; const _ref_z83a9k = { archiveFiles }; const _ref_dnh14s = { interpretBytecode }; const _ref_b1xdff = { generateDocumentation }; const _ref_urrv98 = { detectEnvironment }; const _ref_ild4n4 = { executeSQLQuery }; const _ref_cfyolt = { performOCR }; const _ref_orjtae = { normalizeAudio }; const _ref_nnt962 = { setDetune }; const _ref_qp93f3 = { validateFormInput }; const _ref_y52fjk = { replicateData }; const _ref_omkl3o = { scrapeTracker }; const _ref_u1ifds = { deserializeAST }; const _ref_1q3q2k = { obfuscateCode }; const _ref_jd0l40 = { enterScope }; const _ref_l8j4ya = { defineSymbol }; const _ref_ywpjqx = { scheduleTask }; const _ref_yqsqn9 = { hoistVariables }; const _ref_2aphpy = { deleteTempFiles }; const _ref_ogc62n = { beginTransaction }; const _ref_iph2ha = { startOscillator }; const _ref_uyjzkg = { reportError }; const _ref_yfnd5z = { calculateFriction }; const _ref_hmxwz9 = { cacheQueryResults }; const _ref_oq0ne7 = { calculateLayoutMetrics }; const _ref_u147pd = { dumpSymbolTable }; const _ref_k4c36m = { cullFace }; const _ref_deabon = { setSocketTimeout }; const _ref_605trk = { generateEmbeddings }; const _ref_q0d7h2 = { chokePeer }; const _ref_9vuvxl = { resolveDependencyGraph }; const _ref_j2vkis = { stopOscillator }; const _ref_e9aqtx = { setSteeringValue }; const _ref_4wrwjp = { disconnectNodes }; const _ref_l7vhc9 = { inferType }; const _ref_c1txip = { serializeAST }; const _ref_87d4xr = { negotiateProtocol }; const _ref_ddbbzm = { bundleAssets }; const _ref_pxmoaa = { calculateComplexity }; const _ref_ceh1de = { captureScreenshot }; const _ref_shzm5g = { dhcpOffer }; const _ref_zndlmx = { transcodeStream }; const _ref_2xazcs = { analyzeControlFlow }; const _ref_p7mqkx = { applyImpulse }; const _ref_2gkt7x = { getNetworkStats }; const _ref_8a8a91 = { restartApplication }; const _ref_ymbpyn = { getVehicleSpeed }; const _ref_7grugv = { eliminateDeadCode }; const _ref_kox14n = { removeRigidBody }; const _ref_r7ficb = { registerSystemTray }; const _ref_rlwtcg = { createIndexBuffer }; const _ref_rr57ff = { prettifyCode }; const _ref_5m1icz = { checkDiskSpace }; const _ref_csm71g = { generateSourceMap }; const _ref_tj87vy = { parseExpression }; const _ref_fzk2ax = { migrateSchema }; const _ref_h9hclv = { clusterKMeans }; const _ref_5ihjrp = { extractArchive }; const _ref_xzxk6v = { dhcpRequest }; const _ref_015b1m = { detectFirewallStatus }; const _ref_cf5vd3 = { analyzeQueryPlan }; const _ref_0ghz6s = { minifyCode }; const _ref_9dmlc8 = { anchorSoftBody }; const _ref_24d9hp = { tokenizeSource }; const _ref_exjgda = { optimizeMemoryUsage }; const _ref_8907ez = { createPhysicsWorld }; const _ref_p49rkq = { cancelAnimationFrameLoop }; const _ref_u9otpc = { serializeFormData }; const _ref_4adk5i = { resampleAudio }; const _ref_4ph0ay = { limitDownloadSpeed }; const _ref_3j8a07 = { dropTable }; const _ref_rwrn3g = { encryptPeerTraffic }; const _ref_rms3px = { cancelTask }; const _ref_s29yi5 = { shardingTable }; const _ref_0khir2 = { checkIntegrityConstraint }; const _ref_3i8lhx = { switchProxyServer }; const _ref_ibam8f = { drawElements }; const _ref_clrf88 = { updateBitfield }; const _ref_a2jlv3 = { uninterestPeer }; const _ref_3bynyl = { debouncedResize }; const _ref_gxyftl = { checkTypes }; const _ref_4u2lpg = { rotateUserAgent }; const _ref_lw5a09 = { loadCheckpoint }; const _ref_ar1a4s = { terminateSession }; const _ref_o9bg90 = { computeDominators }; const _ref_vd2x9d = { unlockRow }; const _ref_3u4zsw = { CacheManager }; const _ref_29m7o1 = { setInertia }; const _ref_v51nty = { compactDatabase }; const _ref_39nqk1 = { restoreDatabase }; const _ref_ujm0p5 = { useProgram }; const _ref_8c41lm = { detectDarkMode }; const _ref_wupoex = { monitorClipboard }; const _ref_fq23yz = { resolveImports }; const _ref_l842ql = { createFrameBuffer }; const _ref_8hpt11 = { getProgramInfoLog }; const _ref_ukr239 = { jitCompile }; const _ref_odro46 = { preventCSRF }; const _ref_3pwd7k = { flushSocketBuffer }; const _ref_1vosvz = { FileValidator }; const _ref_i5tt1a = { lockRow }; const _ref_pns2cy = { fingerprintBrowser }; const _ref_26pub3 = { resetVehicle }; const _ref_k94iez = { checkUpdate }; const _ref_h2r6l2 = { setPosition }; const _ref_d8keyd = { backpropagateGradient }; const _ref_63gseq = { setPan }; const _ref_9aqqcg = { attachRenderBuffer }; const _ref_d2hrrx = { findLoops }; const _ref_gg35r5 = { loadTexture }; const _ref_4zcjd8 = { prioritizeRarestPiece }; const _ref_sv9814 = { contextSwitch }; const _ref_z3dwqv = { parseFunction }; const _ref_pgsa6y = { setKnee }; const _ref_np6rpg = { setAttack }; const _ref_ibohzy = { readPixels }; const _ref_v8bg1e = { addPoint2PointConstraint }; const _ref_hjl5fn = { estimateNonce }; const _ref_yu5nax = { subscribeToEvents }; const _ref_67ymav = { createSphereShape }; const _ref_a4m1a1 = { verifySignature }; const _ref_jz0as0 = { createMediaElementSource }; const _ref_j2lkh0 = { vertexAttribPointer }; const _ref_xedmbu = { animateTransition }; const _ref_tmb97c = { renderShadowMap }; const _ref_ocbfup = { createPanner }; const _ref_nebvtt = { classifySentiment }; const _ref_8b9fh6 = { parseLogTopics }; const _ref_439w6c = { virtualScroll }; const _ref_sjxycx = { TelemetryClient }; const _ref_nuxrfl = { convexSweepTest }; const _ref_gjzylu = { getShaderInfoLog }; const _ref_55ojer = { updateTransform }; const _ref_kkd25t = { limitBandwidth }; const _ref_yfaurv = { prefetchAssets }; const _ref_6vlnld = { rollbackTransaction }; const _ref_q9a6g1 = { addConeTwistConstraint }; const _ref_nz5s4r = { createMediaStreamSource }; const _ref_ge44nz = { computeSpeedAverage }; const _ref_rpa8s3 = { rotateLogFiles }; const _ref_1rr6xv = { unmapMemory }; const _ref_ivrlam = { deleteTexture }; const _ref_qt85qn = { traverseAST }; const _ref_nzyf6l = { moveFileToComplete }; const _ref_z3jr5f = { vertexAttrib3f }; const _ref_pmz3in = { applyPerspective }; const _ref_7z6na1 = { ResourceMonitor }; const _ref_p6wqi4 = { logErrorToFile }; const _ref_do5kkv = { applyForce }; const _ref_m90zcd = { deleteBuffer }; const _ref_0fpacl = { registerGestureHandler }; const _ref_gcf3ho = { preventSleepMode }; const _ref_tgbk14 = { mutexLock }; const _ref_dg295w = { semaphoreSignal }; const _ref_sleizl = { resolveSymbols }; const _ref_7qd04t = { setRelease }; const _ref_7p4584 = { decapsulateFrame }; const _ref_7xxvm1 = { analyzeBitrate }; const _ref_0snyws = { scheduleProcess }; const _ref_44q10n = { autoResumeTask }; const _ref_e05imq = { applyEngineForce }; const _ref_onu4jf = { recognizeSpeech }; const _ref_8sphbv = { installUpdate }; const _ref_ih9089 = { killProcess }; const _ref_qmto52 = { repairCorruptFile }; const _ref_ep50q4 = { lookupSymbol }; const _ref_wuzt9i = { hashKeccak256 }; const _ref_0eh92f = { unlockFile }; const _ref_8pioui = { optimizeTailCalls }; const _ref_5d7jft = { AdvancedCipher }; const _ref_n0f3gu = { inlineFunctions }; const _ref_brra6p = { VirtualFSTree }; }); })({}, {});