The Un-Official Proxomitron Forum
jsfail, link to amazon item img - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Website Customization (/forumdisplay.php?fid=9)
+--- Thread: jsfail, link to amazon item img (/showthread.php?tid=2138)



jsfail, link to amazon item img - sbk - Dec. 19, 2013 03:33 AM

Code:
Name = "ImgLnkFullAmaz[Sbk20131218T1b mrg"
Active = TRUE
Multi = TRUE
URL = "(amzn|www.amazon).[^/]+/"
Bounds = "(<img [^>]++src\=)\1($AV(\3+._[^.]++{2,80}_.(jpg|png)\4)[^>]+>((\&nbsp;| )(</button>|</div> </a>)|))\9"
Limit = 800
Match = "*"
Replace = "\1\9<a href="\3.\4" title="ImgLnkFullAmaz" style="position:static!important;">&omega;</a>"

Filter matches the column of thumbnails at left edge.
Filter matches some other locations and pages, such as grid view.

I tested on a product/images page,
http://www.amazon.co.uk/gp/product/images/{ASIN NUMBER}
and filter works, but at least one item page lacked a link to /product/images/. I text searched for a link in view-source
so maybe amazon is phasing out the product image pages


Amazon's button html element made Replace's omega link unclickable.
I tried styling with z-index, but the w3 "stacking" rules says that cannot force z-index for children of sibling parents (or something like that)
So, Replace has to add the <a href..>omega</a> link outside the matched stuff. I chose to add the this link after the matched stuff.