Athlon1600 / php-proxy

A web proxy script written in PHP and built as an alternative to Glype.
https://www.php-proxy.com
MIT License
298 stars 158 forks source link

New function custom_src() to better proxify URLs #42

Closed webaddicto closed 7 years ago

webaddicto commented 7 years ago

Proxify images like this: <img data-thumb="//i.ytimg.com/i/lgRkhTL3_hImCAmdLfDE4g/1.jpg" And multiple URLs inside srcset="http://site.com/a.jpg 1x, http://site.com/b.jpg 2x" Added private function custom_src($matches) and more "string replace" rules. More info on the last commit.

webaddicto commented 7 years ago

Will make a new PR soon with a better function, closing this PR now.