Release 4chan X v1.13.0.21.

This commit is contained in:
ccd0 2016-11-06 15:14:34 -08:00
parent 0d09c63d7c
commit 12df13cc31
13 changed files with 66 additions and 15 deletions

View File

@ -4,6 +4,9 @@
## v1.13.0 ## v1.13.0
**v1.13.0.21** *(2016-11-06)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.21/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.21/builds/4chan-X-noupdate.crx)]
- Prevent hovered catalog threads from going offscreen if the extra padding on `.board` is removed.
**v1.13.0.20** *(2016-11-05)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.20/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.20/builds/4chan-X-noupdate.crx)] **v1.13.0.20** *(2016-11-05)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.20/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.20/builds/4chan-X-noupdate.crx)]
- Bugfix: Don't add embedding window to error pages. - Bugfix: Don't add embedding window to error pages.
- Hide EXIF data in /p/ catalog except on hover. - Hide EXIF data in /p/ catalog except on hover.

Binary file not shown.

View File

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

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.13.0.20 // @version 1.13.0.21
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -147,7 +147,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.13.0.20', VERSION: '1.13.0.21',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -1898,7 +1898,7 @@ div[data-checked=\"false\"] > .suboption-list {\n\
/* Catalog */\n\ /* Catalog */\n\
:root.catalog-mode .board {\n\ :root.catalog-mode .board {\n\
text-align: center;\n\ text-align: center;\n\
padding: 0 50px;\n\ padding: 0 51px;\n\
}\n\ }\n\
.catalog-thread {\n\ .catalog-thread {\n\
display: inline-block;\n\ display: inline-block;\n\
@ -9608,6 +9608,21 @@ Index = (function() {
return; return;
} }
return Index.buildCatalogReplies(Get.threadFromRoot(this)); return Index.buildCatalogReplies(Get.threadFromRoot(this));
},
hoverAdjust: function() {
var rect, style, x;
if (!Conf['Catalog Hover Expand']) {
return;
}
rect = this.post.getBoundingClientRect();
if ((x = $.minmax(0, -rect.left, doc.clientWidth - rect.right))) {
style = this.post.style;
style.left = x + "px";
style.right = (-x) + "px";
return $.one(this.root, 'mouseleave', function() {
return style.left = style.right = null;
});
}
} }
}, },
scrollToIndex: function() { scrollToIndex: function() {
@ -10347,6 +10362,7 @@ Index = (function() {
if (Conf['Show Replies'] && Conf['Catalog Hover Expand']) { if (Conf['Show Replies'] && Conf['Catalog Hover Expand']) {
$.on(thread.catalogView.nodes.root, 'mouseover', Index.cb.catalogReplies); $.on(thread.catalogView.nodes.root, 'mouseover', Index.cb.catalogReplies);
} }
$.on(thread.OP.nodes.root, 'mouseenter', Index.cb.hoverAdjust.bind(thread.OP.nodes));
} }
$.add(Index.root, nodes); $.add(Index.root, nodes);
return nodes; return nodes;

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.13.0.20 // @version 1.13.0.21
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -147,7 +147,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.13.0.20', VERSION: '1.13.0.21',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -1898,7 +1898,7 @@ div[data-checked=\"false\"] > .suboption-list {\n\
/* Catalog */\n\ /* Catalog */\n\
:root.catalog-mode .board {\n\ :root.catalog-mode .board {\n\
text-align: center;\n\ text-align: center;\n\
padding: 0 50px;\n\ padding: 0 51px;\n\
}\n\ }\n\
.catalog-thread {\n\ .catalog-thread {\n\
display: inline-block;\n\ display: inline-block;\n\
@ -9608,6 +9608,21 @@ Index = (function() {
return; return;
} }
return Index.buildCatalogReplies(Get.threadFromRoot(this)); return Index.buildCatalogReplies(Get.threadFromRoot(this));
},
hoverAdjust: function() {
var rect, style, x;
if (!Conf['Catalog Hover Expand']) {
return;
}
rect = this.post.getBoundingClientRect();
if ((x = $.minmax(0, -rect.left, doc.clientWidth - rect.right))) {
style = this.post.style;
style.left = x + "px";
style.right = (-x) + "px";
return $.one(this.root, 'mouseleave', function() {
return style.left = style.right = null;
});
}
} }
}, },
scrollToIndex: function() { scrollToIndex: function() {
@ -10347,6 +10362,7 @@ Index = (function() {
if (Conf['Show Replies'] && Conf['Catalog Hover Expand']) { if (Conf['Show Replies'] && Conf['Catalog Hover Expand']) {
$.on(thread.catalogView.nodes.root, 'mouseover', Index.cb.catalogReplies); $.on(thread.catalogView.nodes.root, 'mouseover', Index.cb.catalogReplies);
} }
$.on(thread.OP.nodes.root, 'mouseenter', Index.cb.hoverAdjust.bind(thread.OP.nodes));
} }
$.add(Index.root, nodes); $.add(Index.root, nodes);
return nodes; return nodes;

Binary file not shown.

View File

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

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.13.0.20 // @version 1.13.0.21
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -147,7 +147,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.13.0.20', VERSION: '1.13.0.21',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -1898,7 +1898,7 @@ div[data-checked=\"false\"] > .suboption-list {\n\
/* Catalog */\n\ /* Catalog */\n\
:root.catalog-mode .board {\n\ :root.catalog-mode .board {\n\
text-align: center;\n\ text-align: center;\n\
padding: 0 50px;\n\ padding: 0 51px;\n\
}\n\ }\n\
.catalog-thread {\n\ .catalog-thread {\n\
display: inline-block;\n\ display: inline-block;\n\
@ -9608,6 +9608,21 @@ Index = (function() {
return; return;
} }
return Index.buildCatalogReplies(Get.threadFromRoot(this)); return Index.buildCatalogReplies(Get.threadFromRoot(this));
},
hoverAdjust: function() {
var rect, style, x;
if (!Conf['Catalog Hover Expand']) {
return;
}
rect = this.post.getBoundingClientRect();
if ((x = $.minmax(0, -rect.left, doc.clientWidth - rect.right))) {
style = this.post.style;
style.left = x + "px";
style.right = (-x) + "px";
return $.one(this.root, 'mouseleave', function() {
return style.left = style.right = null;
});
}
} }
}, },
scrollToIndex: function() { scrollToIndex: function() {
@ -10347,6 +10362,7 @@ Index = (function() {
if (Conf['Show Replies'] && Conf['Catalog Hover Expand']) { if (Conf['Show Replies'] && Conf['Catalog Hover Expand']) {
$.on(thread.catalogView.nodes.root, 'mouseover', Index.cb.catalogReplies); $.on(thread.catalogView.nodes.root, 'mouseover', Index.cb.catalogReplies);
} }
$.on(thread.OP.nodes.root, 'mouseenter', Index.cb.hoverAdjust.bind(thread.OP.nodes));
} }
$.add(Index.root, nodes); $.add(Index.root, nodes);
return nodes; return nodes;

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://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.13.0.20' /> <updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.13.0.21' />
</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://www.4chan-x.net/builds/4chan-X.crx' version='1.13.0.20' /> <updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.13.0.21' />
</app> </app>
</gupdate> </gupdate>

View File

@ -1,4 +1,4 @@
{ {
"version": "1.13.0.20", "version": "1.13.0.21",
"date": "2016-11-05T00:00:58.595Z" "date": "2016-11-06T23:12:41.993Z"
} }