bookmarklet_--_open_all_image_links
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
bookmarklet_--_open_all_image_links [2011/04/24 21:43] – created tkbletsc | bookmarklet_--_open_all_image_links [2011/04/24 21:56] (current) – tkbletsc | ||
---|---|---|---|
Line 6: | Line 6: | ||
</ | </ | ||
- | You can read or modify the current page by referring to '' | + | You can read or modify the current page by referring to '' |
< | < | ||
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.1303706628.txt.gz · Last modified: by tkbletsc