++img-src
@@ -18,7 +18,7 @@
var link = img.parentElement;
- if (/\.(?:jpe?g|png|gif)$/i.test(link.href)) {
+ if (/\.(?:jpe?g|png|gif)(?:\?|$)/i.test(link.href)) {
img.src = link.href;
}
});
(function() {
'use strict';
Array.prototype.slice.call(document.body.querySelectorAll([
'a[href] > img[src]'
])).forEach(function(img) {
if (!img.src) return;
var link = img.parentElement;
if (/\.(?:jpe?g|png|gif)(?:\?|$)/i.test(link.href)) {
img.src = link.href;
}
});
})();
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。