Update pixnet album expander #1

Merged
merged 2 commits into from Mar 4, 2012
+4 −4
Split
@@ -14,20 +14,20 @@
var htmlCode = '';
- var contentBody = document.getElementById('contentBody');
+ var contentBody = document.getElementById('left-column-1');
var imageThumbs = contentBody.getElementsByClassName('thumb');
var imageThumbsLength = imageThumbs.length;
for (var i = 0; i < imageThumbsLength; i++) {
try {
var el = imageThumbs[i];
var imgLink = el.parentNode.href;
- var imgNewUrl = el.src.replace(/\/thumb_/, '/');
+ var imgNewUrl = el.src.replace(/_[qst]\./, '.');
- htmlCode += '<a href="' + imgLink + '"><img alt="" src="' + imgNewUrl + '"></a><br>';
+ htmlCode += '<a href="' + imgLink + '"><img style="max-width:100%" alt="" src="' + imgNewUrl + '"></a><br>';
} catch(err) {
}
}
contentBody.innerHTML = htmlCode;
-})();
+})();