diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 826e52b20..7b5d5cd39 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -6892,7 +6892,7 @@ return range; }, makeLink: function(range) { - var a, char, i, text; + var a, i, t, text; text = range.toString(); i = 0; @@ -6909,8 +6909,8 @@ } } i = 0; - while (/[)\]}>.,]/.test(char = text.charAt(text.length - (1 + i)))) { - if (!(/[.,]/.test(char) || (text.match(/[()\[\]{}<>]/g)).length % 2)) { + while (/[)\]}>.,]/.test(t = text.charAt(text.length - (1 + i)))) { + if (!(/[.,]/.test(t) || (text.match(/[()\[\]{}<>]/g)).length % 2)) { break; } i++; @@ -8145,14 +8145,14 @@ }; _Class.prototype.updateFilename = function() { - var long; + var title; - long = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear."; - this.nodes.el.title = long; + title = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear."; + this.nodes.el.title = title; if (this !== QR.selected) { return; } - return QR.nodes.fileContainer.title = long; + return QR.nodes.fileContainer.title = title; }; _Class.prototype.showFileData = function() { @@ -8945,13 +8945,13 @@ return nodes.total.textContent = --i; }, generateThumb: function(file) { - var double, post, thumb, title; + var dupe, post, thumb, title; post = Get.postFromNode(file); title = ($('.fileText a', file)).textContent; thumb = post.file.thumb.parentNode.cloneNode(true); - if (double = $('img + img', thumb)) { - $.rm(double); + if (dupe = $('img + img', thumb)) { + $.rm(dupe); } thumb.className = 'gal-thumb'; thumb.title = title; diff --git a/builds/crx/script.js b/builds/crx/script.js index 1703404d0..5ad2604b8 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6902,7 +6902,7 @@ return range; }, makeLink: function(range) { - var a, char, i, text; + var a, i, t, text; text = range.toString(); i = 0; @@ -6919,8 +6919,8 @@ } } i = 0; - while (/[)\]}>.,]/.test(char = text.charAt(text.length - (1 + i)))) { - if (!(/[.,]/.test(char) || (text.match(/[()\[\]{}<>]/g)).length % 2)) { + while (/[)\]}>.,]/.test(t = text.charAt(text.length - (1 + i)))) { + if (!(/[.,]/.test(t) || (text.match(/[()\[\]{}<>]/g)).length % 2)) { break; } i++; @@ -8152,14 +8152,14 @@ }; _Class.prototype.updateFilename = function() { - var long; + var title; - long = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear."; - this.nodes.el.title = long; + title = "" + this.filename + " (" + this.filesize + ")\nCtrl+click to edit filename. Shift+click to clear."; + this.nodes.el.title = title; if (this !== QR.selected) { return; } - return QR.nodes.fileContainer.title = long; + return QR.nodes.fileContainer.title = title; }; _Class.prototype.showFileData = function() { @@ -8933,13 +8933,13 @@ return nodes.total.textContent = --i; }, generateThumb: function(file) { - var double, post, thumb, title; + var dupe, post, thumb, title; post = Get.postFromNode(file); title = ($('.fileText a', file)).textContent; thumb = post.file.thumb.parentNode.cloneNode(true); - if (double = $('img + img', thumb)) { - $.rm(double); + if (dupe = $('img + img', thumb)) { + $.rm(dupe); } thumb.className = 'gal-thumb'; thumb.title = title; diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index ea484eaa0..a3a1d7386 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -109,8 +109,8 @@ Gallery = post = Get.postFromNode file title = ($ '.fileText a', file).textContent thumb = post.file.thumb.parentNode.cloneNode true - if double = $ 'img + img', thumb - $.rm double + if dupe = $ 'img + img', thumb + $.rm dupe thumb.className = 'gal-thumb' thumb.title = title diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index f0cb67553..f886e3b5c 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -115,8 +115,8 @@ Linkify = # Clean hanging brackets, commas, periods i = 0 - while /[)\]}>.,]/.test char = text.charAt text.length - (1 + i) - break unless /[.,]/.test(char) or (text.match /[()\[\]{}<>]/g).length % 2 + while /[)\]}>.,]/.test t = text.charAt text.length - (1 + i) + break unless /[.,]/.test(t) or (text.match /[()\[\]{}<>]/g).length % 2 i++ if i diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index 220c92fda..026218ccb 100644 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -722,10 +722,10 @@ QR = URL.revokeObjectURL @URL updateFilename: -> - long = "#{@filename} (#{@filesize})\nCtrl+click to edit filename. Shift+click to clear." - @nodes.el.title = long + title = "#{@filename} (#{@filesize})\nCtrl+click to edit filename. Shift+click to clear." + @nodes.el.title = title return unless @ is QR.selected - QR.nodes.fileContainer.title = long + QR.nodes.fileContainer.title = title showFileData: -> if @file