Internals & Matching Process
The script continuously monitors mouse and image elements on the page, executing rule matching and image address resolution.
Core Process
- Match Site: Determine whether to enable the rule based on the
urlin the rule. - Match Image: Resolve the original image address based on
src,r/s, orgetImage. - Handle Non-Image Elements: Use
extorgetExtSrcto find nearby images. - Inner Page Fetch: Use
xhrto fetch inner pages and extract images when necessary. - Return Result: Pass the resolved URL to the float bar and gallery.
Lazy Loading Handling
The script has built-in scanning for various lazy loading attributes and can automatically extract real image addresses from data-* attributes. If the target site uses special fields, you can specify lazyAttr in the rule.
Result Reuse
Resolved addresses are reused in subsequent operations, such as gallery collection, batch download, and search by image.