Merge branch 'master' into html

Conflicts:
	4chan_x.user.js
	script.coffee
This commit is contained in:
Nicolas Stepien 2012-05-07 10:44:28 +02:00
commit af9b5139d0
5 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan x // @name 4chan x
// @version 2.29.4 // @version 2.29.5
// @namespace aeosynth // @namespace aeosynth
// @description Adds various features. // @description Adds various features.
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com> // @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) 2009-2011 James Campos <james.r.campos@gmail.com>
* Copyright (c) 2012 Nicolas Stepien <stepien.nicolas@gmail.com> * Copyright (c) 2012 Nicolas Stepien <stepien.nicolas@gmail.com>
* http://mayhemydg.github.com/4chan-x/ * 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 * Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation * obtaining a copy of this software and associated documentation
@ -1900,7 +1900,7 @@
}); });
ta.style.cssText = $.get('QR.size', ''); 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) { switch (type) {
case 'jpg': case 'jpg':
return 'image/jpeg'; return 'image/jpeg';
@ -4201,7 +4201,7 @@
} }
}, },
namespace: '4chan_x.', namespace: '4chan_x.',
version: '2.29.4', version: '2.29.5',
callbacks: [], callbacks: [],
css: '\ css: '\
/* dialog styling */\ /* dialog styling */\

View File

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

View File

@ -2,6 +2,10 @@ master
- Mayhem - Mayhem
Add Spoiler indicator option in File Info Formatting Add Spoiler indicator option in File Info Formatting
2.29.5
- Mayhem
Fix QR filetype checking on /w/.
2.29.4 2.29.4
- Mayhem - Mayhem
Auto-GIF will not run in /gif/. Auto-GIF will not run in /gif/.

View File

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

View File

@ -1451,7 +1451,7 @@ QR =
ta.style.cssText = $.get 'QR.size', '' ta.style.cssText = $.get 'QR.size', ''
# Allow only this board's supported files. # 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 switch type
when 'jpg' when 'jpg'
'image/jpeg' 'image/jpeg'
@ -3202,7 +3202,7 @@ Main =
Main.node [Main.preParse target] Main.node [Main.preParse target]
namespace: '4chan_x.' namespace: '4chan_x.'
version: '2.29.4' version: '2.29.5'
callbacks: [] callbacks: []
css: ' css: '
/* dialog styling */ /* dialog styling */