bookmarklet_--_open_all_image_links
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| bookmarklet_--_open_all_image_links [2011/04/24 21:44] – tkbletsc | bookmarklet_--_open_all_image_links [2011/04/24 21:56] (current) – tkbletsc | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| var doc = " | var doc = " | ||
| doc += "< | doc += "< | ||
| + | seen = {}; | ||
| for(var i = 0; i < document.links.length; | for(var i = 0; i < document.links.length; | ||
| link = document.links[i].href; | link = document.links[i].href; | ||
| - | if (link.match(regex)) { | + | if (link.match(regex) |
| doc += "< | doc += "< | ||
| doc += "<a href='" | doc += "<a href='" | ||
| + | seen[link] = 1; | ||
| } | } | ||
| } | } | ||
bookmarklet_--_open_all_image_links.1303706673.txt.gz · Last modified: by tkbletsc
