$ show tampermonkeyStorage/Self-use
This repository is a collection of Tampermonkey userscripts for Chinese cloud storage services: Baidu Pan, Aliyun/AliDrive, Quark, Tianyi/189, LanZou, Xunlei, Weiyun, Caiyun, and 123Pan. In practice, the scripts do much more than the README's vague description of "resource search": they inject download-link buttons into cloud-drive pages, resolve private API endpoints to expose direct download URLs, auto-fill share passwords from local cache or a remote LeanCloud backend, generate Aria2 RPC pushes and BitComet bc:// links, and replace native web players with APlayer/ArtPlayer-based audio/video players. The įŽĄåŽļåŠ script additionally maintains a local cache of visited share links/passwords and provides a search dialog pointing at many third-party resource-search sites.
The LLM identified 2 files worth highlighting for reuse:
A standalone ES6 class that connects the Web Audio API AnalyserNode to a canvas and renders 12 visualization modes (bars, doubleBars, waves, circular, terrain, plasma, lightning, waveform, etc.). It supports media element and binary audio sources, configurable FFT size/smoothing, random or scheme-based color generation, throttled requestAnimationFrame rendering, and correct lifecycle cleanup via destroy(). It has no internal imports and only depends on browser APIs, so it can be extracted into any new project requiring audio visualization with minimal modification.
The readyNodeInserted helper resolves a Promise as soon as a CSS selector appears in the DOM, using a MutationObserver with subtree observation, matching both added nodes and descendant queries, and disconnecting cleanly after success. It is duplicated in multiple scripts but is a self-contained generic utility that can be extracted as a SPA DOM-readiness helper for waiting on dynamically rendered Vue/React components.