diff --git a/src/General/Config.coffee b/src/General/Config.coffee index e654ff910..82ead9651 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -64,11 +64,6 @@ Config = true 'Reformat the file information.' ] - 'Remove Original Link': [ - false - 'Remove the original file link rather than hiding it. May cause incompatibilities with other scripts.' - 1 - ] 'Thread Expansion': [ true 'Add buttons to expand threads.' diff --git a/src/General/css/style.css b/src/General/css/style.css index 8806af8a5..2dc0e4769 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -946,6 +946,7 @@ span.hide-announcement { } /* File */ +.original-file-info, .fnswitch:hover > .fntrunc, .fnswitch:not(:hover) > .fnfull, .expanded-image > .post > .file > .fileThumb > video[data-md5], diff --git a/src/Miscellaneous/FileInfo.coffee b/src/Miscellaneous/FileInfo.coffee index 29a738fc5..daca6f626 100755 --- a/src/Miscellaneous/FileInfo.coffee +++ b/src/Miscellaneous/FileInfo.coffee @@ -9,21 +9,13 @@ FileInfo = node: -> return if !@file or @isClone - info = $.el 'span', className: 'file-info' - FileInfo.format Conf['fileInfo'], @, info + oldInfo = $.el 'span', {className: 'original-file-info'} + $.prepend @file.link.parentNode, oldInfo + $.add oldInfo, [@file.link.previousSibling, @file.link, @file.link.nextSibling] - if Conf['Remove Original Link'] and not (@board.ID is 'f' and Conf['Enable Native Flash Embedding']) - {parentNode} = @file.link - $.rmAll parentNode - $.add parentNode, info - else - @file.link.previousSibling.nodeValue = '' - @file.link.hidden = true - {nextSibling} = @file.link - wrapper = $.el 'span', {hidden: true} - $.replace nextSibling, wrapper - $.add wrapper, nextSibling - $.after wrapper, info + info = $.el 'span', {className: 'file-info'} + FileInfo.format Conf['fileInfo'], @, info + $.prepend @file.text, info format: (formatString, post, outputNode) -> output = []