diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index f706c1ce8..89c098359 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5795,7 +5795,7 @@ dialog: function() { var check, dialog, elm, event, flagSelector, i, items, key, mimeTypes, name, node, nodes, save, value, _ref; QR.nodes = nodes = { - el: dialog = UI.dialog('qr', 'top:0;right:0;', "
×
+
No selected file
") + el: dialog = UI.dialog('qr', 'top:0;right:0;', "
×
+
No selected file
") }; _ref = { move: '.move', @@ -6748,7 +6748,7 @@ _Class.prototype.setFile = function(file) { this.file = file; - this.filename = file.name || "File from url"; + this.filename = file.name; this.filesize = $.bytesToString(file.size); if (QR.spoiler) { this.nodes.label.hidden = false; diff --git a/builds/crx/script.js b/builds/crx/script.js index becefefb1..f9c6f7091 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5796,7 +5796,7 @@ dialog: function() { var check, dialog, elm, event, flagSelector, i, items, key, mimeTypes, name, node, nodes, save, value, _ref; QR.nodes = nodes = { - el: dialog = UI.dialog('qr', 'top:0;right:0;', "
×
+
No selected file
") + el: dialog = UI.dialog('qr', 'top:0;right:0;', "
×
+
No selected file
") }; _ref = { move: '.move', @@ -6732,7 +6732,7 @@ _Class.prototype.setFile = function(file) { this.file = file; - this.filename = file.name || "File from url"; + this.filename = file.name; this.filesize = $.bytesToString(file.size); if (QR.spoiler) { this.nodes.label.hidden = false; diff --git a/src/General/html/Features/QuickReply.html b/src/General/html/Features/QuickReply.html index ad5c48f46..1a49438a7 100755 --- a/src/General/html/Features/QuickReply.html +++ b/src/General/html/Features/QuickReply.html @@ -21,7 +21,6 @@
+ -
@@ -42,4 +41,4 @@ - \ No newline at end of file + diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 6774be36e..f156d0a12 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -334,6 +334,12 @@ Linkify = div = $.el 'iframe', src: "http://pastebin.com/embed_iframe.php?i=#{a.dataset.uid}" + gfycat: + regExp: /.*gfycat.com\/(?:iframe\/)?(\S*)/ + el: (a) -> + div = $.el 'iframe', + src: "http://gfycat.com/iframe/#{a.dataset.uid}" + SoundCloud: regExp: /.*(?:soundcloud.com\/|snd.sc\/)([^#\&\?]*).*/ style: 'height: auto; width: 500px; display: inline-block;' diff --git a/src/Posting/QR.post.coffee b/src/Posting/QR.post.coffee index d501af99c..a6239e57f 100644 --- a/src/Posting/QR.post.coffee +++ b/src/Posting/QR.post.coffee @@ -157,7 +157,7 @@ QR.post = class return setFile: (@file) -> - @filename = file.name || "File from url" + @filename = file.name @filesize = $.bytesToString file.size @nodes.label.hidden = false if QR.spoiler URL.revokeObjectURL @URL @@ -262,4 +262,4 @@ QR.post = class (if oldIndex < newIndex then $.after else $.before) @, el post = QR.posts.splice(oldIndex, 1)[0] QR.posts.splice newIndex, 0, post - QR.status() \ No newline at end of file + QR.status()