diff --git a/CHANGELOG.md b/CHANGELOG.md index 99c242174..40db0690b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +**MayhemYDG** +- Bugfixes + ### v2.9.16 *2014-04-19* diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 3e8c7bd07..ce0ba47e1 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -138,7 +138,7 @@ Config = { main: { 'Miscellaneous': { - 'JSON Navigation': [false, 'Use JSON for loading the Board Index and Threads. Also allows searching and sorting the board index and infinite scolling.'], + 'JSON Navigation': [true, 'Use JSON for loading the Board Index and Threads. Also allows searching and sorting the board index and infinite scolling.'], 'Catalog Links': [true, 'Add toggle link in header menu to turn Navigation links into links to each board\'s catalog.'], 'External Catalog': [false, 'Link to external catalog instead of the internal one.'], 'Desktop Notifications': [false, 'Enables desktop notifications across various appchan x features.'], @@ -3399,7 +3399,7 @@ } this.file.sizeInBytes = size; this.file.thumbURL = that.isArchived ? thumb.src : "" + location.protocol + "//t.4cdn.org/" + this.board + "/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg"; - this.file.name = (nameNode = $('span', fileText)) ? nameNode.title || nameNode.textContent : fileText.title; + this.file.name = !this.file.isSpoiler && (nameNode = $('a', fileText)) ? nameNode.title || nameNode.textContent : fileText.title; this.file.isImage = /(jpg|png|gif)$/i.test(this.file.name); this.file.isVideo = /webm$/i.test(this.file.name); if (this.file.isImage || this.file.isVideo) { @@ -5875,7 +5875,7 @@ a.textContent = filename; filename = a.innerHTML.replace(/'/g, '''); fileDims = file.name.slice(-3) === 'pdf' ? 'PDF' : "" + file.width + "x" + file.height; - fileInfo = ("
File: " + file.timestamp + "") + ("-(" + fileSize + ", " + fileDims + (file.isSpoiler ? '' : ", " + shortFilename + "")) + ")
"; + fileInfo = ("
File: ") + ("" + (file.isSpoiler ? 'Spoiler Image' : shortFilename) + "") + (" (" + fileSize + ", " + fileDims + ")
"); fileHTML = "
" + fileInfo + imgSrc + "
"; } else { fileHTML = ''; diff --git a/builds/crx/script.js b/builds/crx/script.js index 03d6b47e8..1ad646a09 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -113,7 +113,7 @@ Config = { main: { 'Miscellaneous': { - 'JSON Navigation': [false, 'Use JSON for loading the Board Index and Threads. Also allows searching and sorting the board index and infinite scolling.'], + 'JSON Navigation': [true, 'Use JSON for loading the Board Index and Threads. Also allows searching and sorting the board index and infinite scolling.'], 'Catalog Links': [true, 'Add toggle link in header menu to turn Navigation links into links to each board\'s catalog.'], 'External Catalog': [false, 'Link to external catalog instead of the internal one.'], 'Desktop Notifications': [false, 'Enables desktop notifications across various appchan x features.'], @@ -3454,7 +3454,7 @@ } this.file.sizeInBytes = size; this.file.thumbURL = that.isArchived ? thumb.src : "" + location.protocol + "//t.4cdn.org/" + this.board + "/" + (this.file.URL.match(/(\d+)\./)[1]) + "s.jpg"; - this.file.name = (nameNode = $('span', fileText)) ? nameNode.title || nameNode.textContent : fileText.title; + this.file.name = !this.file.isSpoiler && (nameNode = $('a', fileText)) ? nameNode.title || nameNode.textContent : fileText.title; this.file.name = this.file.name.replace(/%22/g, '"'); this.file.isImage = /(jpg|png|gif)$/i.test(this.file.name); this.file.isVideo = /webm$/i.test(this.file.name); @@ -5933,7 +5933,7 @@ a.textContent = filename; filename = a.innerHTML.replace(/'/g, '''); fileDims = file.name.slice(-3) === 'pdf' ? 'PDF' : "" + file.width + "x" + file.height; - fileInfo = ("
File: " + file.timestamp + "") + ("-(" + fileSize + ", " + fileDims + (file.isSpoiler ? '' : ", " + shortFilename + "")) + ")
"; + fileInfo = ("
File: ") + ("" + (file.isSpoiler ? 'Spoiler Image' : shortFilename) + "") + (" (" + fileSize + ", " + fileDims + ")
"); fileHTML = "
" + fileInfo + imgSrc + "
"; } else { fileHTML = ''; diff --git a/css/style.css b/css/style.css index 323abf62f..70416a561 100644 --- a/css/style.css +++ b/css/style.css @@ -105,6 +105,7 @@ a[href="javascript:;"] { :root.bottom-header body { margin-bottom: 2em; } +body > .desktop, :root.fourchan-x #navtopright, :root.fourchan-x #navbotright, :root.fourchan-x:not(.show-original-top-board-list) #boardNavDesktop, @@ -1061,6 +1062,7 @@ a.remove { /* Other */ .linkified { + text-decoration: underline; word-break: break-all; } .posteruid.painted { diff --git a/src/General/Build.coffee b/src/General/Build.coffee index 23acd8b7d..a8395002a 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -160,13 +160,9 @@ Build = filename = a.innerHTML.replace /'/g, ''' fileDims = if file.name[-3..] is 'pdf' then 'PDF' else "#{file.width}x#{file.height}" - fileInfo = "
File: #{file.timestamp}" + - "-(#{fileSize}, #{fileDims}#{ - if file.isSpoiler - '' - else - ", #{shortFilename}" - }" + ")
" + fileInfo = "
File: " + + "#{if file.isSpoiler then 'Spoiler Image' else shortFilename}" + + " (#{fileSize}, #{fileDims})
" fileHTML = "
#{fileInfo}#{imgSrc}
" else diff --git a/src/General/Config.coffee b/src/General/Config.coffee index d9db9b44a..6144350b5 100644 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -2,7 +2,7 @@ Config = main: 'Miscellaneous': 'JSON Navigation' : [ - false + true 'Use JSON for loading the Board Index and Threads. Also allows searching and sorting the board index and infinite scolling.' ] 'Catalog Links': [ diff --git a/src/General/lib/post.class b/src/General/lib/post.class index a54818122..f1e8e0b00 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -135,7 +135,7 @@ class Post thumb.src else "#{location.protocol}//t.4cdn.org/#{@board}/#{@file.URL.match(/(\d+)\./)[1]}s.jpg" - @file.name = if nameNode = $ 'span', fileText + @file.name = if !@file.isSpoiler and nameNode = $ 'a', fileText nameNode.title or nameNode.textContent else fileText.title