The Un-Official Proxomitron Forum
lazyload jsfail, data-href to 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: lazyload jsfail, data-href to img (/showthread.php?tid=2137)



lazyload jsfail, data-href to img - sbk - Dec. 19, 2013 01:38 AM

The filter now includes an url match, but other websites might use data-href
Code:
Name = "ClnLnkDatahref[Sbk20130613RT1a9"
Active = TRUE
Multi = TRUE
URL = "([^/]++.|)howtogeek.com[:/]"
Bounds = "<img[^>]++data\-href\=[^>]+>"
Limit = 512
Match = "(<img\s(^(data\-href|src))++)\1(*data\-href\=$AV(\3)&*src\=$AV(\5))+(*>)\7"
Replace = "\1src="$UESC(\3)" title="\5 ClnLnkDatahref" style="height:auto;width:auto;" \7\n\n"

0.015-0.032ms in test window

Works at http://www.howtogeek.com/ and article pages