Database: vimp copy
Item Details: selected img alt
label | selimgalt |
---|---|
value | %HTMLSEL% |
custom | function(v, v2) { var m; var doc = window.content.document; while ((m = /(<img.[^>]+>)/ig(v2)) != null) { try { let dom = (new DOMParser()).parseFromString(m[1], "text/xml"); if (dom.firstChild && dom.firstChild.getAttribute("alt")) return dom.firstChild.getAttribute("alt"); } catch (e) {}} } |
History
- Update 2009-02-05T00:59:56+09:00 by suVene
- Create 2009-02-05T00:38:13+09:00 by suVene