Post Reply 
lazyload jsfail, data-href to img
Dec. 19, 2013, 01:38 AM
Post: #1
lazyload jsfail, data-href to img
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
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: