>>328
ああごめん。
これを普通にはりつけたらできたけど。
なんでだろうね。


// ==UserScript==
// @name Links2Images
// @include http://*
// @include https://*
// @exclude http://*.2chan.net/b/*
// ==/UserScript==

(function(){
var links = document.getElementsByTagName( "a" );
for ( var i = links.length; --i >= 0; ){
// search for all links with href to image file
if ( links[i].href
&& links[i].href.match( /^.*\.(jpe?g|png|bmp|gif)$/i )
&& links[i].getElementsByTagName( "img" ).length == 0
){
var img = document.createElement( "img" );
img.setAttribute( "src", links[i].href );
img.setAttribute( "class", "image-link" );
img.setAttribute( "alt", links[i].getAttribute( "title" ) ) ;
img.setAttribute( "height", 100 ) ;
links[i].appendChild( img );
links[i].setAttribute( "target", "_blank" );
}
}
})();


なお
https://i.imgur.com/RB95qvy.png
https://i.imgur.com/27wA4cY.png