適用於奇怪的文字網站會把圖片弄成這樣:
http://mlwmlw.org/wp-content/uploads/2012/03/risk.png
1 2 3 4 5 6 7 | ( function ($) { $( 'a' ).each( function () { if ( /jpg|jpeg|png/.test($( this ).text())) { $( this ).append( '<img src="' +$( this ).text()+ '" />' ); } }); })(jQuery); |