PluginProbe
Remove Broken Images / trunk
Remove Broken Images vtrunk
trunk 1.1.0 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2-beta-1 1.5.0 1.5.1
remove-broken-images / assets / script.min.js

script.min.js in Remove Broken Images trunk, at assets/script.min.js

1 lines 761 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 function r34rbi(e){jQuery(document).trigger("r34rbi_missing_image");var r=e.closest(".wp-caption"),t=e.parent("a");r.length>0?r.remove():t.length>0?t.remove():e.length>0&&e.remove(),jQuery(document).find('meta[property="og:image"][content="'+e.attr("src")+'"], meta[property="twitter:image"][content="'+e.attr("src")+'"]').remove()}jQuery(function(){jQuery("img").on("error",function(){r34rbi(jQuery(this))}),jQuery(document).ajaxComplete(function(){jQuery("img").on("error",function(){r34rbi(jQuery(this))})}),"undefined"!=typeof r34rbi_redirect_on_missing_image&&""!=r34rbi_redirect_on_missing_image&&r34rbi_redirect_on_missing_image!=location.href&&jQuery(document).on("r34rbi_missing_image",function(){location.replace(r34rbi_redirect_on_missing_image)})});