Release 4chan X v1.11.13.2.
This commit is contained in:
parent
ea0af4e815
commit
fa3ac4a04c
@ -4,6 +4,10 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
|
|||||||
|
|
||||||
### v1.11.13
|
### v1.11.13
|
||||||
|
|
||||||
|
**v1.11.13.2** *(2015-10-18)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.13.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.13.2/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
|
- Merge v1.11.12.8: Update to support MathJax on /sci/.
|
||||||
|
- Gallery bugfixes.
|
||||||
|
|
||||||
**v1.11.13.1** *(2015-10-16)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.13.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.13.1/builds/4chan-X-noupdate.crx "Chromium version")]
|
**v1.11.13.1** *(2015-10-16)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.13.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.13.1/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
- HTML/CSS tweaks for Mona font toggle button.
|
- HTML/CSS tweaks for Mona font toggle button.
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X beta
|
// @name 4chan X beta
|
||||||
// @version 1.11.13.1
|
// @version 1.11.13.2
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X beta
|
// @name 4chan X beta
|
||||||
// @version 1.11.13.1
|
// @version 1.11.13.2
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -415,7 +415,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.11.13.1',
|
VERSION: '1.11.13.2',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -9960,6 +9960,7 @@
|
|||||||
},
|
},
|
||||||
build: function(image) {
|
build: function(image) {
|
||||||
var candidate, cb, dialog, entry, file, k, key, len1, len2, menuButton, nodes, post, q, ref, ref1, ref2, ref3, thumb, value;
|
var candidate, cb, dialog, entry, file, k, key, len1, len2, menuButton, nodes, post, q, ref, ref1, ref2, ref3, thumb, value;
|
||||||
|
cb = Gallery.cb;
|
||||||
if (Conf['Fullscreen Gallery']) {
|
if (Conf['Fullscreen Gallery']) {
|
||||||
$.one(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', function() {
|
$.one(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', function() {
|
||||||
return $.on(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', cb.close);
|
return $.on(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', cb.close);
|
||||||
@ -9997,7 +9998,6 @@
|
|||||||
}
|
}
|
||||||
menuButton = $('.menu-button', dialog);
|
menuButton = $('.menu-button', dialog);
|
||||||
nodes.menu = new UI.Menu('gallery');
|
nodes.menu = new UI.Menu('gallery');
|
||||||
cb = Gallery.cb;
|
|
||||||
$.on(nodes.frame, 'click', cb.blank);
|
$.on(nodes.frame, 'click', cb.blank);
|
||||||
if (Conf['Mouse Wheel Volume']) {
|
if (Conf['Mouse Wheel Volume']) {
|
||||||
$.on(nodes.frame, 'wheel', Volume.wheel);
|
$.on(nodes.frame, 'wheel', Volume.wheel);
|
||||||
@ -10139,7 +10139,9 @@
|
|||||||
if (Conf['Scroll to Post'] && (post = g.posts[file.dataset.post])) {
|
if (Conf['Scroll to Post'] && (post = g.posts[file.dataset.post])) {
|
||||||
Header.scrollTo(post.nodes.root);
|
Header.scrollTo(post.nodes.root);
|
||||||
}
|
}
|
||||||
return Gallery.cache = Gallery.load(Gallery.images[(newID + 1) % Gallery.images.length], Gallery.cacheError);
|
if (isNaN(oldID) || newID === (oldID + 1) % Gallery.images.length) {
|
||||||
|
return Gallery.cache = Gallery.load(Gallery.images[(newID + 1) % Gallery.images.length], Gallery.cacheError);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
var ref;
|
var ref;
|
||||||
@ -10326,9 +10328,17 @@
|
|||||||
return (this.checked ? $.addClass : $.rmClass)(doc, "gal-" + (this.name.toLowerCase().replace(/\s+/g, '-')));
|
return (this.checked ? $.addClass : $.rmClass)(doc, "gal-" + (this.name.toLowerCase().replace(/\s+/g, '-')));
|
||||||
},
|
},
|
||||||
setHeight: function() {
|
setHeight: function() {
|
||||||
var current, dim, frame, height, ref, ref1, ref2, width;
|
var current, dim, frame, height, minHeight, ref, ref1, ref2, style, width;
|
||||||
ref = Gallery.nodes, current = ref.current, frame = ref.frame;
|
ref = Gallery.nodes, current = ref.current, frame = ref.frame;
|
||||||
return current.style.minHeight = Conf['Stretch to Fit'] && (dim = (ref1 = g.posts[current.dataset.post]) != null ? ref1.file.dimensions : void 0) ? ((ref2 = dim.split('x'), width = ref2[0], height = ref2[1], ref2), Math.min(doc.clientHeight - 25, height / width * frame.clientWidth) + 'px') : null;
|
style = current.style;
|
||||||
|
if (Conf['Stretch to Fit'] && (dim = (ref1 = g.posts[current.dataset.post]) != null ? ref1.file.dimensions : void 0)) {
|
||||||
|
ref2 = dim.split('x'), width = ref2[0], height = ref2[1];
|
||||||
|
minHeight = Math.min(doc.clientHeight - 25, height / width * frame.clientWidth);
|
||||||
|
style.minHeight = minHeight + 'px';
|
||||||
|
return style.minWidth = (width / height * minHeight) + 'px';
|
||||||
|
} else {
|
||||||
|
return style.minHeight = style.minWidth = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setDelay: function() {
|
setDelay: function() {
|
||||||
return Gallery.delay = +this.value;
|
return Gallery.delay = +this.value;
|
||||||
@ -15427,7 +15437,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (g.BOARD.ID === 'sci') {
|
if (g.BOARD.ID === 'sci') {
|
||||||
$.globalEval('window.addEventListener(\'jsmath\', function(e) {\n if (!jsMath) return;\n if (jsMath.loaded) {\n // process one post\n jsMath.ProcessBeforeShowing(e.target);\n } else if (jsMath.Autoload && jsMath.Autoload.checked) {\n // load jsMath and process whole document\n jsMath.Autoload.Script.Push(\'ProcessBeforeShowing\', [null]);\n jsMath.Autoload.LoadJsMath();\n }\n}, false);');
|
$.globalEval('window.addEventListener(\'mathjax\', function(e) {\n if (window.MathJax) {\n window.MathJax.Hub.Queue(function() {\n if (!e.target.querySelector(\'.MathJax\')) {\n window.MathJax.Hub.Typeset(e.target);\n }\n });\n } else {\n if (!document.querySelector(\'script[src^="//cdn.mathjax.org/"]\')) {\n window.loadMathJax();\n window.loadMathJax = function() {};\n }\n }\n}, false);');
|
||||||
Post.callbacks.push({
|
Post.callbacks.push({
|
||||||
name: 'Parse /sci/ math',
|
name: 'Parse /sci/ math',
|
||||||
cb: this.math
|
cb: this.math
|
||||||
@ -15463,18 +15473,21 @@
|
|||||||
})(this));
|
})(this));
|
||||||
},
|
},
|
||||||
math: function() {
|
math: function() {
|
||||||
if ((this.isClone && doc.contains(this.origin.nodes.root)) || !$('.math', this.nodes.comment)) {
|
var cb;
|
||||||
|
if (!(/\[(math|eqn)\]/.test(this.nodes.comment.textContent) || $('.math:not([id])', this.nodes.comment))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return $.asap(((function(_this) {
|
cb = (function(_this) {
|
||||||
return function() {
|
return function() {
|
||||||
return doc.contains(_this.nodes.comment);
|
if (!doc.contains(_this.nodes.comment)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$.off(d, 'PostsInserted', cb);
|
||||||
|
return $.event('mathjax', null, _this.nodes.comment);
|
||||||
};
|
};
|
||||||
})(this)), (function(_this) {
|
})(this);
|
||||||
return function() {
|
$.on(d, 'PostsInserted', cb);
|
||||||
return $.event('jsmath', null, _this.nodes.comment);
|
return cb();
|
||||||
};
|
|
||||||
})(this));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -18641,10 +18654,6 @@
|
|||||||
".current {\n" +
|
".current {\n" +
|
||||||
" font-weight: bold;\n" +
|
" font-weight: bold;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
":root.fixed.bottom-header #jsMath_button {\n" +
|
|
||||||
" bottom: auto;\n" +
|
|
||||||
" top: 1px;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"@media (min-width: 1300px) {\n" +
|
"@media (min-width: 1300px) {\n" +
|
||||||
" :root.fixed:not(.centered-links) #header-bar {\n" +
|
" :root.fixed:not(.centered-links) #header-bar {\n" +
|
||||||
" white-space: nowrap;\n" +
|
" white-space: nowrap;\n" +
|
||||||
@ -20601,9 +20610,6 @@
|
|||||||
" background-color: #282A2E;\n" +
|
" background-color: #282A2E;\n" +
|
||||||
" border-color: #111;\n" +
|
" border-color: #111;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
":root.tomorrow img[src*=\"//boards.4chan.org/js/jsMath/fonts/\"] {\n" +
|
|
||||||
" filter: invert(100%);\n" +
|
|
||||||
"}\n" +
|
|
||||||
"/* Header */\n" +
|
"/* Header */\n" +
|
||||||
":root.tomorrow #header-bar.dialog {\n" +
|
":root.tomorrow #header-bar.dialog {\n" +
|
||||||
" background-color: rgba(40,42,46,0.9);\n" +
|
" background-color: rgba(40,42,46,0.9);\n" +
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.11.13.1
|
// @version 1.11.13.2
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -415,7 +415,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.11.13.1',
|
VERSION: '1.11.13.2',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -9960,6 +9960,7 @@
|
|||||||
},
|
},
|
||||||
build: function(image) {
|
build: function(image) {
|
||||||
var candidate, cb, dialog, entry, file, k, key, len1, len2, menuButton, nodes, post, q, ref, ref1, ref2, ref3, thumb, value;
|
var candidate, cb, dialog, entry, file, k, key, len1, len2, menuButton, nodes, post, q, ref, ref1, ref2, ref3, thumb, value;
|
||||||
|
cb = Gallery.cb;
|
||||||
if (Conf['Fullscreen Gallery']) {
|
if (Conf['Fullscreen Gallery']) {
|
||||||
$.one(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', function() {
|
$.one(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', function() {
|
||||||
return $.on(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', cb.close);
|
return $.on(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', cb.close);
|
||||||
@ -9997,7 +9998,6 @@
|
|||||||
}
|
}
|
||||||
menuButton = $('.menu-button', dialog);
|
menuButton = $('.menu-button', dialog);
|
||||||
nodes.menu = new UI.Menu('gallery');
|
nodes.menu = new UI.Menu('gallery');
|
||||||
cb = Gallery.cb;
|
|
||||||
$.on(nodes.frame, 'click', cb.blank);
|
$.on(nodes.frame, 'click', cb.blank);
|
||||||
if (Conf['Mouse Wheel Volume']) {
|
if (Conf['Mouse Wheel Volume']) {
|
||||||
$.on(nodes.frame, 'wheel', Volume.wheel);
|
$.on(nodes.frame, 'wheel', Volume.wheel);
|
||||||
@ -10139,7 +10139,9 @@
|
|||||||
if (Conf['Scroll to Post'] && (post = g.posts[file.dataset.post])) {
|
if (Conf['Scroll to Post'] && (post = g.posts[file.dataset.post])) {
|
||||||
Header.scrollTo(post.nodes.root);
|
Header.scrollTo(post.nodes.root);
|
||||||
}
|
}
|
||||||
return Gallery.cache = Gallery.load(Gallery.images[(newID + 1) % Gallery.images.length], Gallery.cacheError);
|
if (isNaN(oldID) || newID === (oldID + 1) % Gallery.images.length) {
|
||||||
|
return Gallery.cache = Gallery.load(Gallery.images[(newID + 1) % Gallery.images.length], Gallery.cacheError);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
var ref;
|
var ref;
|
||||||
@ -10326,9 +10328,17 @@
|
|||||||
return (this.checked ? $.addClass : $.rmClass)(doc, "gal-" + (this.name.toLowerCase().replace(/\s+/g, '-')));
|
return (this.checked ? $.addClass : $.rmClass)(doc, "gal-" + (this.name.toLowerCase().replace(/\s+/g, '-')));
|
||||||
},
|
},
|
||||||
setHeight: function() {
|
setHeight: function() {
|
||||||
var current, dim, frame, height, ref, ref1, ref2, width;
|
var current, dim, frame, height, minHeight, ref, ref1, ref2, style, width;
|
||||||
ref = Gallery.nodes, current = ref.current, frame = ref.frame;
|
ref = Gallery.nodes, current = ref.current, frame = ref.frame;
|
||||||
return current.style.minHeight = Conf['Stretch to Fit'] && (dim = (ref1 = g.posts[current.dataset.post]) != null ? ref1.file.dimensions : void 0) ? ((ref2 = dim.split('x'), width = ref2[0], height = ref2[1], ref2), Math.min(doc.clientHeight - 25, height / width * frame.clientWidth) + 'px') : null;
|
style = current.style;
|
||||||
|
if (Conf['Stretch to Fit'] && (dim = (ref1 = g.posts[current.dataset.post]) != null ? ref1.file.dimensions : void 0)) {
|
||||||
|
ref2 = dim.split('x'), width = ref2[0], height = ref2[1];
|
||||||
|
minHeight = Math.min(doc.clientHeight - 25, height / width * frame.clientWidth);
|
||||||
|
style.minHeight = minHeight + 'px';
|
||||||
|
return style.minWidth = (width / height * minHeight) + 'px';
|
||||||
|
} else {
|
||||||
|
return style.minHeight = style.minWidth = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setDelay: function() {
|
setDelay: function() {
|
||||||
return Gallery.delay = +this.value;
|
return Gallery.delay = +this.value;
|
||||||
@ -15427,7 +15437,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (g.BOARD.ID === 'sci') {
|
if (g.BOARD.ID === 'sci') {
|
||||||
$.globalEval('window.addEventListener(\'jsmath\', function(e) {\n if (!jsMath) return;\n if (jsMath.loaded) {\n // process one post\n jsMath.ProcessBeforeShowing(e.target);\n } else if (jsMath.Autoload && jsMath.Autoload.checked) {\n // load jsMath and process whole document\n jsMath.Autoload.Script.Push(\'ProcessBeforeShowing\', [null]);\n jsMath.Autoload.LoadJsMath();\n }\n}, false);');
|
$.globalEval('window.addEventListener(\'mathjax\', function(e) {\n if (window.MathJax) {\n window.MathJax.Hub.Queue(function() {\n if (!e.target.querySelector(\'.MathJax\')) {\n window.MathJax.Hub.Typeset(e.target);\n }\n });\n } else {\n if (!document.querySelector(\'script[src^="//cdn.mathjax.org/"]\')) {\n window.loadMathJax();\n window.loadMathJax = function() {};\n }\n }\n}, false);');
|
||||||
Post.callbacks.push({
|
Post.callbacks.push({
|
||||||
name: 'Parse /sci/ math',
|
name: 'Parse /sci/ math',
|
||||||
cb: this.math
|
cb: this.math
|
||||||
@ -15463,18 +15473,21 @@
|
|||||||
})(this));
|
})(this));
|
||||||
},
|
},
|
||||||
math: function() {
|
math: function() {
|
||||||
if ((this.isClone && doc.contains(this.origin.nodes.root)) || !$('.math', this.nodes.comment)) {
|
var cb;
|
||||||
|
if (!(/\[(math|eqn)\]/.test(this.nodes.comment.textContent) || $('.math:not([id])', this.nodes.comment))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return $.asap(((function(_this) {
|
cb = (function(_this) {
|
||||||
return function() {
|
return function() {
|
||||||
return doc.contains(_this.nodes.comment);
|
if (!doc.contains(_this.nodes.comment)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$.off(d, 'PostsInserted', cb);
|
||||||
|
return $.event('mathjax', null, _this.nodes.comment);
|
||||||
};
|
};
|
||||||
})(this)), (function(_this) {
|
})(this);
|
||||||
return function() {
|
$.on(d, 'PostsInserted', cb);
|
||||||
return $.event('jsmath', null, _this.nodes.comment);
|
return cb();
|
||||||
};
|
|
||||||
})(this));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -18641,10 +18654,6 @@
|
|||||||
".current {\n" +
|
".current {\n" +
|
||||||
" font-weight: bold;\n" +
|
" font-weight: bold;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
":root.fixed.bottom-header #jsMath_button {\n" +
|
|
||||||
" bottom: auto;\n" +
|
|
||||||
" top: 1px;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"@media (min-width: 1300px) {\n" +
|
"@media (min-width: 1300px) {\n" +
|
||||||
" :root.fixed:not(.centered-links) #header-bar {\n" +
|
" :root.fixed:not(.centered-links) #header-bar {\n" +
|
||||||
" white-space: nowrap;\n" +
|
" white-space: nowrap;\n" +
|
||||||
@ -20601,9 +20610,6 @@
|
|||||||
" background-color: #282A2E;\n" +
|
" background-color: #282A2E;\n" +
|
||||||
" border-color: #111;\n" +
|
" border-color: #111;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
":root.tomorrow img[src*=\"//boards.4chan.org/js/jsMath/fonts/\"] {\n" +
|
|
||||||
" filter: invert(100%);\n" +
|
|
||||||
"}\n" +
|
|
||||||
"/* Header */\n" +
|
"/* Header */\n" +
|
||||||
":root.tomorrow #header-bar.dialog {\n" +
|
":root.tomorrow #header-bar.dialog {\n" +
|
||||||
" background-color: rgba(40,42,46,0.9);\n" +
|
" background-color: rgba(40,42,46,0.9);\n" +
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.11.13.1
|
// @version 1.11.13.2
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.11.13.1
|
// @version 1.11.13.2
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -415,7 +415,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.11.13.1',
|
VERSION: '1.11.13.2',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -9960,6 +9960,7 @@
|
|||||||
},
|
},
|
||||||
build: function(image) {
|
build: function(image) {
|
||||||
var candidate, cb, dialog, entry, file, k, key, len1, len2, menuButton, nodes, post, q, ref, ref1, ref2, ref3, thumb, value;
|
var candidate, cb, dialog, entry, file, k, key, len1, len2, menuButton, nodes, post, q, ref, ref1, ref2, ref3, thumb, value;
|
||||||
|
cb = Gallery.cb;
|
||||||
if (Conf['Fullscreen Gallery']) {
|
if (Conf['Fullscreen Gallery']) {
|
||||||
$.one(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', function() {
|
$.one(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', function() {
|
||||||
return $.on(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', cb.close);
|
return $.on(d, 'fullscreenchange mozfullscreenchange webkitfullscreenchange', cb.close);
|
||||||
@ -9997,7 +9998,6 @@
|
|||||||
}
|
}
|
||||||
menuButton = $('.menu-button', dialog);
|
menuButton = $('.menu-button', dialog);
|
||||||
nodes.menu = new UI.Menu('gallery');
|
nodes.menu = new UI.Menu('gallery');
|
||||||
cb = Gallery.cb;
|
|
||||||
$.on(nodes.frame, 'click', cb.blank);
|
$.on(nodes.frame, 'click', cb.blank);
|
||||||
if (Conf['Mouse Wheel Volume']) {
|
if (Conf['Mouse Wheel Volume']) {
|
||||||
$.on(nodes.frame, 'wheel', Volume.wheel);
|
$.on(nodes.frame, 'wheel', Volume.wheel);
|
||||||
@ -10139,7 +10139,9 @@
|
|||||||
if (Conf['Scroll to Post'] && (post = g.posts[file.dataset.post])) {
|
if (Conf['Scroll to Post'] && (post = g.posts[file.dataset.post])) {
|
||||||
Header.scrollTo(post.nodes.root);
|
Header.scrollTo(post.nodes.root);
|
||||||
}
|
}
|
||||||
return Gallery.cache = Gallery.load(Gallery.images[(newID + 1) % Gallery.images.length], Gallery.cacheError);
|
if (isNaN(oldID) || newID === (oldID + 1) % Gallery.images.length) {
|
||||||
|
return Gallery.cache = Gallery.load(Gallery.images[(newID + 1) % Gallery.images.length], Gallery.cacheError);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
var ref;
|
var ref;
|
||||||
@ -10326,9 +10328,17 @@
|
|||||||
return (this.checked ? $.addClass : $.rmClass)(doc, "gal-" + (this.name.toLowerCase().replace(/\s+/g, '-')));
|
return (this.checked ? $.addClass : $.rmClass)(doc, "gal-" + (this.name.toLowerCase().replace(/\s+/g, '-')));
|
||||||
},
|
},
|
||||||
setHeight: function() {
|
setHeight: function() {
|
||||||
var current, dim, frame, height, ref, ref1, ref2, width;
|
var current, dim, frame, height, minHeight, ref, ref1, ref2, style, width;
|
||||||
ref = Gallery.nodes, current = ref.current, frame = ref.frame;
|
ref = Gallery.nodes, current = ref.current, frame = ref.frame;
|
||||||
return current.style.minHeight = Conf['Stretch to Fit'] && (dim = (ref1 = g.posts[current.dataset.post]) != null ? ref1.file.dimensions : void 0) ? ((ref2 = dim.split('x'), width = ref2[0], height = ref2[1], ref2), Math.min(doc.clientHeight - 25, height / width * frame.clientWidth) + 'px') : null;
|
style = current.style;
|
||||||
|
if (Conf['Stretch to Fit'] && (dim = (ref1 = g.posts[current.dataset.post]) != null ? ref1.file.dimensions : void 0)) {
|
||||||
|
ref2 = dim.split('x'), width = ref2[0], height = ref2[1];
|
||||||
|
minHeight = Math.min(doc.clientHeight - 25, height / width * frame.clientWidth);
|
||||||
|
style.minHeight = minHeight + 'px';
|
||||||
|
return style.minWidth = (width / height * minHeight) + 'px';
|
||||||
|
} else {
|
||||||
|
return style.minHeight = style.minWidth = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
setDelay: function() {
|
setDelay: function() {
|
||||||
return Gallery.delay = +this.value;
|
return Gallery.delay = +this.value;
|
||||||
@ -15427,7 +15437,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (g.BOARD.ID === 'sci') {
|
if (g.BOARD.ID === 'sci') {
|
||||||
$.globalEval('window.addEventListener(\'jsmath\', function(e) {\n if (!jsMath) return;\n if (jsMath.loaded) {\n // process one post\n jsMath.ProcessBeforeShowing(e.target);\n } else if (jsMath.Autoload && jsMath.Autoload.checked) {\n // load jsMath and process whole document\n jsMath.Autoload.Script.Push(\'ProcessBeforeShowing\', [null]);\n jsMath.Autoload.LoadJsMath();\n }\n}, false);');
|
$.globalEval('window.addEventListener(\'mathjax\', function(e) {\n if (window.MathJax) {\n window.MathJax.Hub.Queue(function() {\n if (!e.target.querySelector(\'.MathJax\')) {\n window.MathJax.Hub.Typeset(e.target);\n }\n });\n } else {\n if (!document.querySelector(\'script[src^="//cdn.mathjax.org/"]\')) {\n window.loadMathJax();\n window.loadMathJax = function() {};\n }\n }\n}, false);');
|
||||||
Post.callbacks.push({
|
Post.callbacks.push({
|
||||||
name: 'Parse /sci/ math',
|
name: 'Parse /sci/ math',
|
||||||
cb: this.math
|
cb: this.math
|
||||||
@ -15463,18 +15473,21 @@
|
|||||||
})(this));
|
})(this));
|
||||||
},
|
},
|
||||||
math: function() {
|
math: function() {
|
||||||
if ((this.isClone && doc.contains(this.origin.nodes.root)) || !$('.math', this.nodes.comment)) {
|
var cb;
|
||||||
|
if (!(/\[(math|eqn)\]/.test(this.nodes.comment.textContent) || $('.math:not([id])', this.nodes.comment))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return $.asap(((function(_this) {
|
cb = (function(_this) {
|
||||||
return function() {
|
return function() {
|
||||||
return doc.contains(_this.nodes.comment);
|
if (!doc.contains(_this.nodes.comment)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$.off(d, 'PostsInserted', cb);
|
||||||
|
return $.event('mathjax', null, _this.nodes.comment);
|
||||||
};
|
};
|
||||||
})(this)), (function(_this) {
|
})(this);
|
||||||
return function() {
|
$.on(d, 'PostsInserted', cb);
|
||||||
return $.event('jsmath', null, _this.nodes.comment);
|
return cb();
|
||||||
};
|
|
||||||
})(this));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -18641,10 +18654,6 @@
|
|||||||
".current {\n" +
|
".current {\n" +
|
||||||
" font-weight: bold;\n" +
|
" font-weight: bold;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
":root.fixed.bottom-header #jsMath_button {\n" +
|
|
||||||
" bottom: auto;\n" +
|
|
||||||
" top: 1px;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"@media (min-width: 1300px) {\n" +
|
"@media (min-width: 1300px) {\n" +
|
||||||
" :root.fixed:not(.centered-links) #header-bar {\n" +
|
" :root.fixed:not(.centered-links) #header-bar {\n" +
|
||||||
" white-space: nowrap;\n" +
|
" white-space: nowrap;\n" +
|
||||||
@ -20601,9 +20610,6 @@
|
|||||||
" background-color: #282A2E;\n" +
|
" background-color: #282A2E;\n" +
|
||||||
" border-color: #111;\n" +
|
" border-color: #111;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
":root.tomorrow img[src*=\"//boards.4chan.org/js/jsMath/fonts/\"] {\n" +
|
|
||||||
" filter: invert(100%);\n" +
|
|
||||||
"}\n" +
|
|
||||||
"/* Header */\n" +
|
"/* Header */\n" +
|
||||||
":root.tomorrow #header-bar.dialog {\n" +
|
":root.tomorrow #header-bar.dialog {\n" +
|
||||||
" background-color: rgba(40,42,46,0.9);\n" +
|
" background-color: rgba(40,42,46,0.9);\n" +
|
||||||
|
|||||||
Binary file not shown.
@ -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.11.13.1' />
|
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.11.13.2' />
|
||||||
</app>
|
</app>
|
||||||
</gupdate>
|
</gupdate>
|
||||||
|
|
||||||
|
|||||||
@ -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.11.13.1' />
|
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.11.13.2' />
|
||||||
</app>
|
</app>
|
||||||
</gupdate>
|
</gupdate>
|
||||||
|
|
||||||
|
|||||||
@ -4,8 +4,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"name": "4chan X",
|
"name": "4chan X",
|
||||||
"fork": "ccd0",
|
"fork": "ccd0",
|
||||||
"version": "1.11.13.1",
|
"version": "1.11.13.2",
|
||||||
"date": "2015-10-17T03:43:21.599Z",
|
"date": "2015-10-18T07:48:28.182Z",
|
||||||
"page": "https://www.4chan-x.net/",
|
"page": "https://www.4chan-x.net/",
|
||||||
"downloads": "https://www.4chan-x.net/builds/",
|
"downloads": "https://www.4chan-x.net/builds/",
|
||||||
"oldVersions": "https://raw.githubusercontent.com/ccd0/4chan-x/",
|
"oldVersions": "https://raw.githubusercontent.com/ccd0/4chan-x/",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user