Merge branch 'master' of git://github.com/MayhemYDG/4chan-x

This commit is contained in:
ahodesuka 2012-05-09 03:44:59 -05:00
commit 15cefe6e73
5 changed files with 12 additions and 8 deletions

View File

@ -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 <james.r.campos@gmail.com>
@ -19,7 +19,7 @@
* Copyright (c) 2009-2011 James Campos <james.r.campos@gmail.com>
* Copyright (c) 2012 Nicolas Stepien <stepien.nicolas@gmail.com>
* 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
@ -1841,7 +1841,7 @@
});
ta.style.cssText = $.get('QR.size', '');
}
mimeTypes = $('.rules').firstElementChild.textContent.match(/: (.+)/)[1].toLowerCase().replace(/\w+/g, function(type) {
mimeTypes = $('.rules').firstElementChild.textContent.trim().match(/: (.+)/)[1].toLowerCase().replace(/\w+/g, function(type) {
switch (type) {
case 'jpg':
return 'image/jpeg';
@ -4251,7 +4251,7 @@
}
},
namespace: '4chan_x.',
version: '2.29.4',
version: '2.29.5',
callbacks: [],
css: '\
/* dialog styling */\

View File

@ -2,7 +2,7 @@
{exec} = require 'child_process'
fs = require 'fs'
VERSION = '2.29.4'
VERSION = '2.29.5'
HEADER = """
// ==UserScript==

View File

@ -1,5 +1,9 @@
master
2.29.5
- Mayhem
Fix QR filetype checking on /w/.
2.29.4
- Mayhem
Auto-GIF will not run in /gif/.

View File

@ -1 +1 @@
postMessage({version:'2.29.4'},'*')
postMessage({version:'2.29.5'},'*')

View File

@ -1405,7 +1405,7 @@ QR =
ta.style.cssText = $.get 'QR.size', ''
# Allow only this board's supported files.
mimeTypes = $('.rules').firstElementChild.textContent.match(/: (.+)/)[1].toLowerCase().replace /\w+/g, (type) ->
mimeTypes = $('.rules').firstElementChild.textContent.trim().match(/: (.+)/)[1].toLowerCase().replace /\w+/g, (type) ->
switch type
when 'jpg'
'image/jpeg'
@ -3268,7 +3268,7 @@ Main =
Main.node [Main.preParse target] if target.nodeName is 'TABLE'
namespace: '4chan_x.'
version: '2.29.4'
version: '2.29.5'
callbacks: []
css: '
/* dialog styling */