The Un-Official Proxomitron Forum
Add cache links to Google cache results page - 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: Add cache links to Google cache results page (/showthread.php?tid=1120)



Add cache links to Google cache results page - whenever - Oct. 11, 2008 12:17 PM

This is a filter discussed and developed in this topic, I post it here in case other people may find it useful.

Thanks z12 and lnminente for their help. Smile!

Code:
[Patterns]
Name = "Add cache links to Google cache results page {whenever,ln}081011"
Active = TRUE
URL = "$TYPE(htm)[^/]+/search\?*q=cache"
Bounds = "<a\s*</a>"
Limit = 256
Match = "$URL(*cache(:|%3a)(http(://|%3a%2f%2f)|)([^/&]+)\1*)"
        "(*href=$AV(http://$TST(\1)/\2|/\2)*)\3"
Replace = "\3<a href="http://www.google.com/search?q=cache:http://\1/\2"><img src="http://www.google.com/favicon.ico" style="border: none;" /></a>"