Fix Opera. Release 2.21.1.

This commit is contained in:
Nicolas Stepien 2011-11-27 02:30:42 +01:00
parent a334f76054
commit 970fea92bb
5 changed files with 14 additions and 10 deletions

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan x
// @version 2.21.0
// @version 2.21.1
// @namespace aeosynth
// @description Adds various features.
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
@ -15,7 +15,7 @@
*
* Copyright (c) 2009-2011 James Campos <james.r.campos@gmail.com>
* http://mayhemydg.github.com/4chan-x/
* 4chan x 2.21.0
* 4chan x 2.21.1
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
@ -211,7 +211,7 @@
NAMESPACE = '4chan_x.';
VERSION = '2.21.0';
VERSION = '2.21.1';
SECOND = 1000;
@ -1753,7 +1753,7 @@
el = _ref[_i];
el.tabIndex = 1;
}
return $.bind($('#recaptcha_response_field'), 'keydown', Recaptcha.listener);
return $.on($('#recaptcha_response_field'), 'keydown', Recaptcha.listener);
},
listener: function(e) {
if (e.keyCode === 8 && this.value === '') return Recaptcha.reload();
@ -2976,7 +2976,7 @@
if ((form = $('form[name=post]')) && (canPost = !!$('#recaptcha_response_field'))) {
Recaptcha.init();
if (g.REPLY && conf['Auto Watch Reply'] && conf['Thread Watcher']) {
$.bind(form, 'submit', function() {
$.on(form, 'submit', function() {
if ($('img.favicon').src === Favicon.empty) {
return watcher.watch(null, g.THREAD_ID);
}

View File

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

View File

@ -1,5 +1,9 @@
master
2.21.1
- mayhem
fix Opera
2.21.0
- mayhem
initiate 4chan X earlier

View File

@ -1 +1 @@
postMessage({version:'2.21.0'},'*');
postMessage({version:'2.21.1'},'*');

View File

@ -122,7 +122,7 @@ conf = {}
) null, config
NAMESPACE = '4chan_x.'
VERSION = '2.21.0'
VERSION = '2.21.1'
SECOND = 1000
MINUTE = 60*SECOND
HOUR = 60*MINUTE
@ -1372,7 +1372,7 @@ Recaptcha =
#hack to tab from comment straight to recaptcha
for el in $$ '#recaptcha_table a'
el.tabIndex = 1
$.bind $('#recaptcha_response_field'), 'keydown', Recaptcha.listener
$.on $('#recaptcha_response_field'), 'keydown', Recaptcha.listener
listener: (e) ->
if e.keyCode is 8 and @value is '' # backspace to reload
Recaptcha.reload()
@ -2328,7 +2328,7 @@ Main =
if (form = $ 'form[name=post]') and (canPost = !!$ '#recaptcha_response_field')
Recaptcha.init()
if g.REPLY and conf['Auto Watch Reply'] and conf['Thread Watcher']
$.bind form, 'submit', -> if $('img.favicon').src is Favicon.empty
$.on form, 'submit', -> if $('img.favicon').src is Favicon.empty
watcher.watch null, g.THREAD_ID
#major features