Release 4chan X v1.10.11.5.

This commit is contained in:
ccd0 2015-04-26 18:02:29 -07:00
parent a1921ddc4e
commit 80af390b59
13 changed files with 63 additions and 48 deletions

View File

@ -4,6 +4,9 @@ The links to individual versions below are to copies of the script with the upda
### v1.10.11 ### v1.10.11
**v1.10.11.5** *(2015-04-26)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.11.5/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.11.5/builds/4chan-X-noupdate.crx "Chromium version")]
- Reduce unwanted scrolling from captcha.
**v1.10.11.4** *(2015-04-26)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.11.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.11.4/builds/4chan-X-noupdate.crx "Chromium version")] **v1.10.11.4** *(2015-04-26)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.11.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.11.4/builds/4chan-X-noupdate.crx "Chromium version")]
- Don't apply filters to the unread post count in the thread watcher, but do apply them to unread posts quoting you. - Don't apply filters to the unread post count in the thread watcher, but do apply them to unread posts quoting you.

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.10.11.4 // @version 1.10.11.5
// @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.11.4 // @version 1.10.11.5
// @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.11.4', VERSION: '1.10.11.5',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -6858,26 +6858,30 @@
return QR.captcha.destroy(); return QR.captcha.destroy();
}, },
focus: function() { focus: function() {
$.queueTask(function() { return $.queueTask(function() {
var focus; if (!QR.inBubble()) {
if (!$$('.goog-bubble-content > iframe').some(function(el) { QR.hasFocus = d.activeElement && QR.nodes.el.contains(d.activeElement);
return el.getBoundingClientRect().top >= 0; QR.nodes.el.classList.toggle('focus', QR.hasFocus);
})) {
focus = d.activeElement && QR.nodes.el.contains(d.activeElement);
return $[focus ? 'addClass' : 'rmClass'](QR.nodes.el, 'focus');
} }
}); if (QR.inCaptcha()) {
if (typeof chrome !== "undefined" && chrome !== null) {
if (d.activeElement && QR.nodes.el.contains(d.activeElement) && d.activeElement.nodeName === 'IFRAME') {
QR.scrollY = window.scrollY; QR.scrollY = window.scrollY;
return $.on(d, 'scroll', QR.scrollLock); return $.on(d, 'scroll', QR.scrollLock);
} else { } else {
return $.off(d, 'scroll', QR.scrollLock); return $.off(d, 'scroll', QR.scrollLock);
} }
} });
},
inBubble: function() {
return $$('.goog-bubble-content > iframe').some(function(el) {
return el.getBoundingClientRect().bottom > 0;
});
},
inCaptcha: function() {
var ref;
return (((ref = d.activeElement) != null ? ref.nodeName : void 0) === 'IFRAME' && QR.nodes.el.contains(d.activeElement)) || (QR.hasFocus && QR.inBubble());
}, },
scrollLock: function() { scrollLock: function() {
if (d.activeElement && QR.nodes.el.contains(d.activeElement) && d.activeElement.nodeName === 'IFRAME') { if (QR.inCaptcha()) {
return window.scroll(window.scrollX, QR.scrollY); return window.scroll(window.scrollX, QR.scrollY);
} else { } else {
return $.off(d, 'scroll', QR.scrollLock); return $.off(d, 'scroll', QR.scrollLock);

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.11.4 // @version 1.10.11.5
// @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.11.4', VERSION: '1.10.11.5',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -6857,26 +6857,30 @@
return QR.captcha.destroy(); return QR.captcha.destroy();
}, },
focus: function() { focus: function() {
$.queueTask(function() { return $.queueTask(function() {
var focus; if (!QR.inBubble()) {
if (!$$('.goog-bubble-content > iframe').some(function(el) { QR.hasFocus = d.activeElement && QR.nodes.el.contains(d.activeElement);
return el.getBoundingClientRect().top >= 0; QR.nodes.el.classList.toggle('focus', QR.hasFocus);
})) {
focus = d.activeElement && QR.nodes.el.contains(d.activeElement);
return $[focus ? 'addClass' : 'rmClass'](QR.nodes.el, 'focus');
} }
}); if (QR.inCaptcha()) {
if (typeof chrome !== "undefined" && chrome !== null) {
if (d.activeElement && QR.nodes.el.contains(d.activeElement) && d.activeElement.nodeName === 'IFRAME') {
QR.scrollY = window.scrollY; QR.scrollY = window.scrollY;
return $.on(d, 'scroll', QR.scrollLock); return $.on(d, 'scroll', QR.scrollLock);
} else { } else {
return $.off(d, 'scroll', QR.scrollLock); return $.off(d, 'scroll', QR.scrollLock);
} }
} });
},
inBubble: function() {
return $$('.goog-bubble-content > iframe').some(function(el) {
return el.getBoundingClientRect().bottom > 0;
});
},
inCaptcha: function() {
var ref;
return (((ref = d.activeElement) != null ? ref.nodeName : void 0) === 'IFRAME' && QR.nodes.el.contains(d.activeElement)) || (QR.hasFocus && QR.inBubble());
}, },
scrollLock: function() { scrollLock: function() {
if (d.activeElement && QR.nodes.el.contains(d.activeElement) && d.activeElement.nodeName === 'IFRAME') { if (QR.inCaptcha()) {
return window.scroll(window.scrollX, QR.scrollY); return window.scroll(window.scrollX, QR.scrollY);
} else { } else {
return $.off(d, 'scroll', QR.scrollLock); return $.off(d, 'scroll', QR.scrollLock);

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.10.11.4 // @version 1.10.11.5
// @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.11.4 // @version 1.10.11.5
// @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.11.4', VERSION: '1.10.11.5',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -6858,26 +6858,30 @@
return QR.captcha.destroy(); return QR.captcha.destroy();
}, },
focus: function() { focus: function() {
$.queueTask(function() { return $.queueTask(function() {
var focus; if (!QR.inBubble()) {
if (!$$('.goog-bubble-content > iframe').some(function(el) { QR.hasFocus = d.activeElement && QR.nodes.el.contains(d.activeElement);
return el.getBoundingClientRect().top >= 0; QR.nodes.el.classList.toggle('focus', QR.hasFocus);
})) {
focus = d.activeElement && QR.nodes.el.contains(d.activeElement);
return $[focus ? 'addClass' : 'rmClass'](QR.nodes.el, 'focus');
} }
}); if (QR.inCaptcha()) {
if (typeof chrome !== "undefined" && chrome !== null) {
if (d.activeElement && QR.nodes.el.contains(d.activeElement) && d.activeElement.nodeName === 'IFRAME') {
QR.scrollY = window.scrollY; QR.scrollY = window.scrollY;
return $.on(d, 'scroll', QR.scrollLock); return $.on(d, 'scroll', QR.scrollLock);
} else { } else {
return $.off(d, 'scroll', QR.scrollLock); return $.off(d, 'scroll', QR.scrollLock);
} }
} });
},
inBubble: function() {
return $$('.goog-bubble-content > iframe').some(function(el) {
return el.getBoundingClientRect().bottom > 0;
});
},
inCaptcha: function() {
var ref;
return (((ref = d.activeElement) != null ? ref.nodeName : void 0) === 'IFRAME' && QR.nodes.el.contains(d.activeElement)) || (QR.hasFocus && QR.inBubble());
}, },
scrollLock: function() { scrollLock: function() {
if (d.activeElement && QR.nodes.el.contains(d.activeElement) && d.activeElement.nodeName === 'IFRAME') { if (QR.inCaptcha()) {
return window.scroll(window.scrollX, QR.scrollY); return window.scroll(window.scrollX, QR.scrollY);
} else { } else {
return $.off(d, 'scroll', QR.scrollLock); return $.off(d, 'scroll', QR.scrollLock);

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.11.4' /> <updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.10.11.5' />
</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.11.4' /> <updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.10.11.5' />
</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.11.4", "version": "1.10.11.5",
"date": "2015-04-26T18:27:45.404Z", "date": "2015-04-27T01:01:04.114Z",
"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/",