diff --git a/4chan_x.user.js b/4chan_x.user.js index 61c5203a2..e03ece502 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan x -// @version 2.29.4 +// @version 2.29.5 // @namespace aeosynth // @description Adds various features. // @copyright 2009-2011 James Campos @@ -19,7 +19,7 @@ * Copyright (c) 2009-2011 James Campos * Copyright (c) 2012 Nicolas Stepien * http://mayhemydg.github.com/4chan-x/ - * 4chan X 2.29.4 + * 4chan X 2.29.5 * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation @@ -1900,7 +1900,7 @@ }); ta.style.cssText = $.get('QR.size', ''); } - mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+)/)[1].toLowerCase().replace(/\w+/g, function(type) { + mimeTypes = $('ul.rules').firstElementChild.textContent.trim().match(/: (.+)/)[1].toLowerCase().replace(/\w+/g, function(type) { switch (type) { case 'jpg': return 'image/jpeg'; @@ -4201,7 +4201,7 @@ } }, namespace: '4chan_x.', - version: '2.29.4', + version: '2.29.5', callbacks: [], css: '\ /* dialog styling */\ diff --git a/Cakefile b/Cakefile index 42e212fe7..8e46204e8 100644 --- a/Cakefile +++ b/Cakefile @@ -2,7 +2,7 @@ {exec} = require 'child_process' fs = require 'fs' -VERSION = '2.29.4' +VERSION = '2.29.5' HEADER = """ // ==UserScript== diff --git a/changelog b/changelog index 544e8c44e..60e0b3096 100644 --- a/changelog +++ b/changelog @@ -2,6 +2,10 @@ master - Mayhem Add Spoiler indicator option in File Info Formatting +2.29.5 +- Mayhem + Fix QR filetype checking on /w/. + 2.29.4 - Mayhem Auto-GIF will not run in /gif/. diff --git a/latest.js b/latest.js index a287f3eca..c56c3a3b4 100644 --- a/latest.js +++ b/latest.js @@ -1 +1 @@ -postMessage({version:'2.29.4'},'*') \ No newline at end of file +postMessage({version:'2.29.5'},'*') \ No newline at end of file diff --git a/script.coffee b/script.coffee index a7a853392..d4b3d814d 100644 --- a/script.coffee +++ b/script.coffee @@ -1451,7 +1451,7 @@ QR = ta.style.cssText = $.get 'QR.size', '' # Allow only this board's supported files. - mimeTypes = $('ul.rules').firstElementChild.textContent.match(/: (.+)/)[1].toLowerCase().replace /\w+/g, (type) -> + mimeTypes = $('ul.rules').firstElementChild.textContent.trim().match(/: (.+)/)[1].toLowerCase().replace /\w+/g, (type) -> switch type when 'jpg' 'image/jpeg' @@ -3202,7 +3202,7 @@ Main = Main.node [Main.preParse target] namespace: '4chan_x.' - version: '2.29.4' + version: '2.29.5' callbacks: [] css: ' /* dialog styling */