Release 4chan X v1.10.13.4.

This commit is contained in:
ccd0 2015-06-05 15:11:11 -07:00
parent 905f6173c1
commit 6bc844bba1
13 changed files with 72 additions and 60 deletions

View File

@ -4,6 +4,9 @@ The links to individual versions below are to copies of the script with the upda
### v1.10.13 ### v1.10.13
**v1.10.13.4** *(2015-06-05)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.13.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.13.4/builds/4chan-X-noupdate.crx "Chromium version")]
- Support selecting images in the image captcha with the space bar in addition to the enter key.
**v1.10.13.3** *(2015-06-03)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.13.3/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.13.3/builds/4chan-X-noupdate.crx "Chromium version")] **v1.10.13.3** *(2015-06-03)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.13.3/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.13.3/builds/4chan-X-noupdate.crx "Chromium version")]
- Merge v1.10.12.10: Revert workaround for scrolling to top as it seems to have been fixed on Google's end. - Merge v1.10.12.10: Revert workaround for scrolling to top as it seems to have been fixed on Google's end.

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.10.13.3 // @version 1.10.13.4
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript // Generated by CoffeeScript
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.10.13.3 // @version 1.10.13.4
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -396,7 +396,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.10.13.3', VERSION: '1.10.13.4',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -7732,7 +7732,11 @@
} }
x = d.activeElement === verify ? 11 : 9; x = d.activeElement === verify ? 11 : 9;
} }
if (!(dx = { if (e.keyCode === 32 && x < 9) {
this.images[x].click();
e.preventDefault();
return e.stopPropagation();
} else if (dx = {
38: 9, 38: 9,
40: 3, 40: 3,
37: 11, 37: 11,
@ -7741,19 +7745,18 @@
75: 3, 75: 3,
74: 11, 74: 11,
76: 1 76: 1
}[e.keyCode])) { }[e.keyCode]) {
return; x = (x + dx) % 12;
if (x === 10) {
x = dx === 11 ? 9 : 11;
}
(this.images[x] || {
9: reload,
11: verify
}[x]).focus();
e.preventDefault();
return e.stopPropagation();
} }
x = (x + dx) % 12;
if (x === 10) {
x = dx === 11 ? 9 : 11;
}
(this.images[x] || {
9: reload,
11: verify
}[x]).focus();
e.preventDefault();
return e.stopPropagation();
} }
}; };
@ -9357,7 +9360,7 @@
return $.add(Gallery.nodes.thumbs, thumb); return $.add(Gallery.nodes.thumbs, thumb);
}, },
open: function(thumb) { open: function(thumb) {
var el, elType, file, name, newID, nodes, oldID, post, ref, slideshow; var el, elType, file, name, newID, nodes, oldID, post, slideshow;
nodes = Gallery.nodes; nodes = Gallery.nodes;
name = nodes.name; name = nodes.name;
oldID = +nodes.current.dataset.id; oldID = +nodes.current.dataset.id;
@ -9397,8 +9400,8 @@
} else { } else {
Gallery.cb.stop(); Gallery.cb.stop();
} }
if (Conf['Scroll to Post'] && (post = (ref = (post = g.posts[file.dataset.post])) != null ? ref.nodes.root : void 0)) { if (Conf['Scroll to Post'] && (post = g.posts[file.dataset.post])) {
Header.scrollTo(post); Header.scrollTo(post.nodes.root);
} }
return nodes.thumbs.scrollTop = thumb.offsetTop + thumb.offsetHeight / 2 - nodes.thumbs.clientHeight / 2; return nodes.thumbs.scrollTop = thumb.offsetTop + thumb.offsetHeight / 2 - nodes.thumbs.clientHeight / 2;
}, },

Binary file not shown.

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript // Generated by CoffeeScript
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.10.13.3 // @version 1.10.13.4
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -395,7 +395,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.10.13.3', VERSION: '1.10.13.4',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -7731,7 +7731,11 @@
} }
x = d.activeElement === verify ? 11 : 9; x = d.activeElement === verify ? 11 : 9;
} }
if (!(dx = { if (e.keyCode === 32 && x < 9) {
this.images[x].click();
e.preventDefault();
return e.stopPropagation();
} else if (dx = {
38: 9, 38: 9,
40: 3, 40: 3,
37: 11, 37: 11,
@ -7740,19 +7744,18 @@
75: 3, 75: 3,
74: 11, 74: 11,
76: 1 76: 1
}[e.keyCode])) { }[e.keyCode]) {
return; x = (x + dx) % 12;
if (x === 10) {
x = dx === 11 ? 9 : 11;
}
(this.images[x] || {
9: reload,
11: verify
}[x]).focus();
e.preventDefault();
return e.stopPropagation();
} }
x = (x + dx) % 12;
if (x === 10) {
x = dx === 11 ? 9 : 11;
}
(this.images[x] || {
9: reload,
11: verify
}[x]).focus();
e.preventDefault();
return e.stopPropagation();
} }
}; };
@ -9356,7 +9359,7 @@
return $.add(Gallery.nodes.thumbs, thumb); return $.add(Gallery.nodes.thumbs, thumb);
}, },
open: function(thumb) { open: function(thumb) {
var el, elType, file, name, newID, nodes, oldID, post, ref, slideshow; var el, elType, file, name, newID, nodes, oldID, post, slideshow;
nodes = Gallery.nodes; nodes = Gallery.nodes;
name = nodes.name; name = nodes.name;
oldID = +nodes.current.dataset.id; oldID = +nodes.current.dataset.id;
@ -9396,8 +9399,8 @@
} else { } else {
Gallery.cb.stop(); Gallery.cb.stop();
} }
if (Conf['Scroll to Post'] && (post = (ref = (post = g.posts[file.dataset.post])) != null ? ref.nodes.root : void 0)) { if (Conf['Scroll to Post'] && (post = g.posts[file.dataset.post])) {
Header.scrollTo(post); Header.scrollTo(post.nodes.root);
} }
return nodes.thumbs.scrollTop = thumb.offsetTop + thumb.offsetHeight / 2 - nodes.thumbs.clientHeight / 2; return nodes.thumbs.scrollTop = thumb.offsetTop + thumb.offsetHeight / 2 - nodes.thumbs.clientHeight / 2;
}, },

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.10.13.3 // @version 1.10.13.4
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript // Generated by CoffeeScript
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.10.13.3 // @version 1.10.13.4
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -396,7 +396,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.10.13.3', VERSION: '1.10.13.4',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -7732,7 +7732,11 @@
} }
x = d.activeElement === verify ? 11 : 9; x = d.activeElement === verify ? 11 : 9;
} }
if (!(dx = { if (e.keyCode === 32 && x < 9) {
this.images[x].click();
e.preventDefault();
return e.stopPropagation();
} else if (dx = {
38: 9, 38: 9,
40: 3, 40: 3,
37: 11, 37: 11,
@ -7741,19 +7745,18 @@
75: 3, 75: 3,
74: 11, 74: 11,
76: 1 76: 1
}[e.keyCode])) { }[e.keyCode]) {
return; x = (x + dx) % 12;
if (x === 10) {
x = dx === 11 ? 9 : 11;
}
(this.images[x] || {
9: reload,
11: verify
}[x]).focus();
e.preventDefault();
return e.stopPropagation();
} }
x = (x + dx) % 12;
if (x === 10) {
x = dx === 11 ? 9 : 11;
}
(this.images[x] || {
9: reload,
11: verify
}[x]).focus();
e.preventDefault();
return e.stopPropagation();
} }
}; };
@ -9357,7 +9360,7 @@
return $.add(Gallery.nodes.thumbs, thumb); return $.add(Gallery.nodes.thumbs, thumb);
}, },
open: function(thumb) { open: function(thumb) {
var el, elType, file, name, newID, nodes, oldID, post, ref, slideshow; var el, elType, file, name, newID, nodes, oldID, post, slideshow;
nodes = Gallery.nodes; nodes = Gallery.nodes;
name = nodes.name; name = nodes.name;
oldID = +nodes.current.dataset.id; oldID = +nodes.current.dataset.id;
@ -9397,8 +9400,8 @@
} else { } else {
Gallery.cb.stop(); Gallery.cb.stop();
} }
if (Conf['Scroll to Post'] && (post = (ref = (post = g.posts[file.dataset.post])) != null ? ref.nodes.root : void 0)) { if (Conf['Scroll to Post'] && (post = g.posts[file.dataset.post])) {
Header.scrollTo(post); Header.scrollTo(post.nodes.root);
} }
return nodes.thumbs.scrollTop = thumb.offsetTop + thumb.offsetHeight / 2 - nodes.thumbs.clientHeight / 2; return nodes.thumbs.scrollTop = thumb.offsetTop + thumb.offsetHeight / 2 - nodes.thumbs.clientHeight / 2;
}, },

Binary file not shown.

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lacclbnghgdicfifcamcmcnilckjamag'> <app appid='lacclbnghgdicfifcamcmcnilckjamag'>
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.10.13.3' /> <updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.10.13.4' />
</app> </app>
</gupdate> </gupdate>

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lacclbnghgdicfifcamcmcnilckjamag'> <app appid='lacclbnghgdicfifcamcmcnilckjamag'>
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.10.13.3' /> <updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.10.13.4' />
</app> </app>
</gupdate> </gupdate>

View File

@ -3,8 +3,8 @@
"description": "Cross-browser userscript for maximum lurking on 4chan.", "description": "Cross-browser userscript for maximum lurking on 4chan.",
"meta": { "meta": {
"name": "4chan X", "name": "4chan X",
"version": "1.10.13.3", "version": "1.10.13.4",
"date": "2015-06-04T02:56:03.644Z", "date": "2015-06-05T22:09:56.541Z",
"repo": "https://github.com/ccd0/4chan-x/", "repo": "https://github.com/ccd0/4chan-x/",
"page": "https://github.com/ccd0/4chan-x", "page": "https://github.com/ccd0/4chan-x",
"downloads": "https://ccd0.github.io/4chan-x/builds/", "downloads": "https://ccd0.github.io/4chan-x/builds/",