From 0d388a6b4d16adc644bc4b2e6a3277f0c5f5bcfe Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 18 Feb 2013 19:55:20 +0100 Subject: [PATCH] Some post building update. --- 4chan_x.user.js | 6 ++++-- src/features.coffee | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index d6c63d668..c00d12a0c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2827,7 +2827,9 @@ file.twidth = file.theight = 100; } } - imgSrc = ("") + ("" + fileSize + ""); + if (board !== 'f') { + imgSrc = ("") + ("" + fileSize + ""); + } a = $.el('a', { innerHTML: file.name }); @@ -2848,7 +2850,7 @@ container = $.el('div', { id: "pc" + postID, className: "postContainer " + (isOP ? 'op' : 'reply') + "Container", - innerHTML: (isOP ? '' : "
>>
") + ("
") + ("' + (isOP ? fileHTML : '') + ("' + (isOP ? '' : fileHTML) + ("
" + (comment || '') + "
") + '
' + innerHTML: (isOP ? '' : "
>>
") + ("
") + ("' + (isOP ? fileHTML : '') + ("' + (isOP ? '' : fileHTML) + ("
" + (comment || '') + "
") + '
' }); _ref = $$('.quotelink', container); for (_i = 0, _len = _ref.length; _i < _len; _i++) { diff --git a/src/features.coffee b/src/features.coffee index 4d6253c98..7ca6ec6cf 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -1495,10 +1495,11 @@ Build = fileThumb += '.png' file.twidth = file.theight = 100 - imgSrc = "" + - "#{fileSize}" + if board isnt 'f' + imgSrc = "" + + "#{fileSize}" - # Ha Ha filenames. + # Ha ha, filenames! # html -> text, translate WebKit's %22s into "s a = $.el 'a', innerHTML: file.name filename = a.textContent.replace /%22/g, '"' @@ -1559,7 +1560,6 @@ Build = capcodeStart + capcode + userID + flag + sticky + closed + "
#{subject}" + "#{date}" + - '
' + "No." + "#{postID}" + - '
' + + '' + '' + (if isOP then fileHTML else '') +