// ==UserScript==
// @name Image Snipper
// @version 0.1
// @description Finds duplicate images posted and resizes them.
// @author Kingdaro
// @match *forum.blockland.us/index.php?topic=*
// @require
http://code.jquery.com/jquery-1.11.1.min.js// ==/UserScript==
$(function() {
var images = []
$('.post img').each(function(i, img) {
if (images.indexOf(img.src) < 0) {
images.push(img.src)
} else {
console.log(img.src + " is a duplicate! Will resize.")
var resized = $("<a href='" + img.src + "' target='_blank'><img style='width: auto; height: auto; max-width: 200px; max-height: 200px;' src='" + img.src + "' /></a>")
$(img).replaceWith(resized)
}
})
})
Oh. Well then.