Release 4chan X v1.11.18.1.
This commit is contained in:
parent
d53a1905b4
commit
e511e7e8d3
@ -4,6 +4,10 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
|
|||||||
|
|
||||||
### v1.11.18
|
### v1.11.18
|
||||||
|
|
||||||
|
**v1.11.18.1** *(2015-11-22)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.1/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
|
- Shorten the text of some menu items and show the Alt/Shift+click shortcuts to watch/hide threads in the catalog thread menu.
|
||||||
|
- Minor bugfixes.
|
||||||
|
|
||||||
**v1.11.18.0** *(2015-11-21)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.0/builds/4chan-X-noupdate.crx "Chromium version")]
|
**v1.11.18.0** *(2015-11-21)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.0/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
- Based on v1.11.17.8.
|
- Based on v1.11.17.8.
|
||||||
- The `Force Noscript Captcha` option now works on the original post form, report form, /banned, and /feedback. For consistency, `Force Noscript Captcha` now overrides `Use Recaptcha v1`.
|
- The `Force Noscript Captcha` option now works on the original post form, report form, /banned, and /feedback. For consistency, `Force Noscript Captcha` now overrides `Use Recaptcha v1`.
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X beta
|
// @name 4chan X beta
|
||||||
// @version 1.11.18.0
|
// @version 1.11.18.1
|
||||||
// @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.18.0
|
// @version 1.11.18.1
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -432,7 +432,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.11.18.0',
|
VERSION: '1.11.18.1',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -688,15 +688,16 @@
|
|||||||
|
|
||||||
$.addStyle = function(css, id, test) {
|
$.addStyle = function(css, id, test) {
|
||||||
var style;
|
var style;
|
||||||
|
if (test == null) {
|
||||||
|
test = 'head';
|
||||||
|
}
|
||||||
style = $.el('style', {
|
style = $.el('style', {
|
||||||
textContent: css
|
textContent: css
|
||||||
});
|
});
|
||||||
if (id != null) {
|
if (id != null) {
|
||||||
style.id = id;
|
style.id = id;
|
||||||
}
|
}
|
||||||
$.asap((function() {
|
$.onExists(doc, test, true, function() {
|
||||||
return d.head && ((test == null) || test());
|
|
||||||
}), function() {
|
|
||||||
return $.add(d.head, style);
|
return $.add(d.head, style);
|
||||||
});
|
});
|
||||||
return style;
|
return style;
|
||||||
@ -787,12 +788,15 @@
|
|||||||
return root.parentNode.replaceChild($.nodes(el), root);
|
return root.parentNode.replaceChild($.nodes(el), root);
|
||||||
};
|
};
|
||||||
|
|
||||||
$.el = function(tag, properties) {
|
$.el = function(tag, properties, properties2) {
|
||||||
var el;
|
var el;
|
||||||
el = d.createElement(tag);
|
el = d.createElement(tag);
|
||||||
if (properties) {
|
if (properties) {
|
||||||
$.extend(el, properties);
|
$.extend(el, properties);
|
||||||
}
|
}
|
||||||
|
if (properties2) {
|
||||||
|
$.extend(el, properties2);
|
||||||
|
}
|
||||||
return el;
|
return el;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3422,7 +3426,10 @@
|
|||||||
}
|
}
|
||||||
return Menu.menu.addEntry({
|
return Menu.menu.addEntry({
|
||||||
el: $.el('a', {
|
el: $.el('a', {
|
||||||
href: 'javascript:;'
|
href: 'javascript:;',
|
||||||
|
className: 'has-shortcut-text'
|
||||||
|
}, {
|
||||||
|
innerHTML: "<span></span><span class=\"shortcut-text\">Shift+click</span>"
|
||||||
}),
|
}),
|
||||||
order: 20,
|
order: 20,
|
||||||
open: function(arg) {
|
open: function(arg) {
|
||||||
@ -3431,7 +3438,7 @@
|
|||||||
if (Conf['Index Mode'] !== 'catalog') {
|
if (Conf['Index Mode'] !== 'catalog') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.el.textContent = thread.isHidden ? 'Unhide thread' : 'Hide thread';
|
this.el.firstElementChild.textContent = thread.isHidden ? 'Unhide' : 'Hide';
|
||||||
if (this.cb) {
|
if (this.cb) {
|
||||||
$.off(this.el, 'click', this.cb);
|
$.off(this.el, 'click', this.cb);
|
||||||
}
|
}
|
||||||
@ -4453,7 +4460,7 @@
|
|||||||
className: 'catalog-thread'
|
className: 'catalog-thread'
|
||||||
});
|
});
|
||||||
$.extend(root, {
|
$.extend(root, {
|
||||||
innerHTML: "<a href=\"/" + E(thread.board) + "/thread/" + E(thread.ID) + "\"><img src=\"" + E(src) + "\"" + (imgClass ? " class=\"catalog-thumb " + E(imgClass) + "\"" : " class=\"catalog-thumb\" data-width=\"" + E(data.tn_w) + "\" data-height=\"" + E(data.tn_h) + "\"") + "></a><div class=\"catalog-stats\" title=\"Post count / File count / Page count\"><span class=\"post-count\">" + E(postCount) + "</span> / <span class=\"file-count\">" + E(fileCount) + "</span> / <span class=\"page-count\">" + E(pageCount) + "</span><span class=\"catalog-icons\"></span></div>" + (thread.OP.info.subject ? "<div class=\"subject\">" + E(thread.OP.info.subject) + "</div>" : "") + "<div class=\"comment\">" + comment.innerHTML + "</div>"
|
innerHTML: "<a href=\"/" + E(thread.board) + "/thread/" + E(thread.ID) + "\"><img src=\"" + E(src) + "\"" + (imgClass ? " class=\"catalog-thumb " + E(imgClass) + "\"" : " class=\"catalog-thumb\" data-width=\"" + E(data.tn_w) + "\" data-height=\"" + E(data.tn_h) + "\"") + "></a><div class=\"catalog-stats\"><span title=\"Posts / Files / Page\"><span class=\"post-count\">" + E(postCount) + "</span> / <span class=\"file-count\">" + E(fileCount) + "</span> / <span class=\"page-count\">" + E(pageCount) + "</span></span><span class=\"catalog-icons\"></span></div>" + (thread.OP.info.subject ? "<div class=\"subject\">" + E(thread.OP.info.subject) + "</div>" : "") + "<div class=\"comment\">" + comment.innerHTML + "</div>"
|
||||||
});
|
});
|
||||||
root.dataset.fullID = thread.fullID;
|
root.dataset.fullID = thread.fullID;
|
||||||
if (thread.OP.highlights) {
|
if (thread.OP.highlights) {
|
||||||
@ -5535,7 +5542,7 @@
|
|||||||
}
|
}
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'hide-reply-link',
|
className: 'hide-reply-link',
|
||||||
textContent: 'Hide reply'
|
textContent: 'Hide'
|
||||||
});
|
});
|
||||||
apply = $.el('a', {
|
apply = $.el('a', {
|
||||||
textContent: 'Apply',
|
textContent: 'Apply',
|
||||||
@ -5569,7 +5576,7 @@
|
|||||||
});
|
});
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'show-reply-link',
|
className: 'show-reply-link',
|
||||||
textContent: 'Show reply'
|
textContent: 'Show'
|
||||||
});
|
});
|
||||||
apply = $.el('a', {
|
apply = $.el('a', {
|
||||||
textContent: 'Apply',
|
textContent: 'Apply',
|
||||||
@ -5953,7 +5960,7 @@
|
|||||||
}
|
}
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'hide-thread-link',
|
className: 'hide-thread-link',
|
||||||
textContent: 'Hide thread'
|
textContent: 'Hide'
|
||||||
});
|
});
|
||||||
apply = $.el('a', {
|
apply = $.el('a', {
|
||||||
textContent: 'Apply',
|
textContent: 'Apply',
|
||||||
@ -5983,7 +5990,7 @@
|
|||||||
});
|
});
|
||||||
div = $.el('a', {
|
div = $.el('a', {
|
||||||
className: 'show-thread-link',
|
className: 'show-thread-link',
|
||||||
textContent: 'Show thread',
|
textContent: 'Show',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(div, 'click', ThreadHiding.menu.show);
|
$.on(div, 'click', ThreadHiding.menu.show);
|
||||||
@ -12836,7 +12843,7 @@
|
|||||||
order: 10,
|
order: 10,
|
||||||
open: function(post) {
|
open: function(post) {
|
||||||
if (!(post.isDead || (post.thread.isDead && !post.thread.isArchived))) {
|
if (!(post.isDead || (post.thread.isDead && !post.thread.isArchived))) {
|
||||||
a.textContent = 'Report this post';
|
a.textContent = 'Report';
|
||||||
ReportLink.url = "//sys.4chan.org/" + post.board + "/imgboard.php?mode=report&no=" + post;
|
ReportLink.url = "//sys.4chan.org/" + post.board + "/imgboard.php?mode=report&no=" + post;
|
||||||
ReportLink.height = 180;
|
ReportLink.height = 180;
|
||||||
} else if (Conf['Archive Report']) {
|
} else if (Conf['Archive Report']) {
|
||||||
@ -13576,7 +13583,10 @@
|
|||||||
if (g.VIEW === 'index' && Conf['JSON Navigation'] && Conf['Menu'] && g.BOARD.ID !== 'f') {
|
if (g.VIEW === 'index' && Conf['JSON Navigation'] && Conf['Menu'] && g.BOARD.ID !== 'f') {
|
||||||
Menu.menu.addEntry({
|
Menu.menu.addEntry({
|
||||||
el: $.el('a', {
|
el: $.el('a', {
|
||||||
href: 'javascript:;'
|
href: 'javascript:;',
|
||||||
|
className: 'has-shortcut-text'
|
||||||
|
}, {
|
||||||
|
innerHTML: "<span></span><span class=\"shortcut-text\">Alt+click</span>"
|
||||||
}),
|
}),
|
||||||
order: 6,
|
order: 6,
|
||||||
open: function(arg) {
|
open: function(arg) {
|
||||||
@ -13585,7 +13595,7 @@
|
|||||||
if (Conf['Index Mode'] !== 'catalog') {
|
if (Conf['Index Mode'] !== 'catalog') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.el.textContent = ThreadWatcher.isWatched(thread) ? 'Unwatch thread' : 'Watch thread';
|
this.el.firstElementChild.textContent = ThreadWatcher.isWatched(thread) ? 'Unwatch' : 'Watch';
|
||||||
if (this.cb) {
|
if (this.cb) {
|
||||||
$.off(this.el, 'click', this.cb);
|
$.off(this.el, 'click', this.cb);
|
||||||
}
|
}
|
||||||
@ -15133,9 +15143,7 @@
|
|||||||
return this.addStyle();
|
return this.addStyle();
|
||||||
},
|
},
|
||||||
addStyle: function() {
|
addStyle: function() {
|
||||||
return this.style = $.addStyle(Conf['usercss'], 'custom-css', function() {
|
return this.style = $.addStyle(Conf['usercss'], 'custom-css', '#fourchanx-css');
|
||||||
return $.id('fourchanx-css');
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
rmStyle: function() {
|
rmStyle: function() {
|
||||||
if (this.style) {
|
if (this.style) {
|
||||||
@ -19394,6 +19402,11 @@
|
|||||||
":root.float #updater {\n" +
|
":root.float #updater {\n" +
|
||||||
" padding: 0px 3px;\n" +
|
" padding: 0px 3px;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
|
":root:not(.float) #updater {\n" +
|
||||||
|
" display: inline-block;\n" +
|
||||||
|
" min-width: 12pt;\n" +
|
||||||
|
" text-align: right;\n" +
|
||||||
|
"}\n" +
|
||||||
".new {\n" +
|
".new {\n" +
|
||||||
" color: limegreen;\n" +
|
" color: limegreen;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
@ -20261,6 +20274,16 @@
|
|||||||
" position: relative;\n" +
|
" position: relative;\n" +
|
||||||
" top: 2px;\n" +
|
" top: 2px;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
|
".entry.has-shortcut-text {\n" +
|
||||||
|
" display: flex;\n" +
|
||||||
|
" justify-content: space-between;\n" +
|
||||||
|
" align-items: center;\n" +
|
||||||
|
"}\n" +
|
||||||
|
".entry .shortcut-text {\n" +
|
||||||
|
" opacity: 0.5;\n" +
|
||||||
|
" font-size: 70%;\n" +
|
||||||
|
" margin-left: 5px;\n" +
|
||||||
|
"}\n" +
|
||||||
".has-submenu::after {\n" +
|
".has-submenu::after {\n" +
|
||||||
" content: \"\";\n" +
|
" content: \"\";\n" +
|
||||||
" border-left: .5em solid;\n" +
|
" border-left: .5em solid;\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.18.0
|
// @version 1.11.18.1
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -432,7 +432,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.11.18.0',
|
VERSION: '1.11.18.1',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -688,15 +688,16 @@
|
|||||||
|
|
||||||
$.addStyle = function(css, id, test) {
|
$.addStyle = function(css, id, test) {
|
||||||
var style;
|
var style;
|
||||||
|
if (test == null) {
|
||||||
|
test = 'head';
|
||||||
|
}
|
||||||
style = $.el('style', {
|
style = $.el('style', {
|
||||||
textContent: css
|
textContent: css
|
||||||
});
|
});
|
||||||
if (id != null) {
|
if (id != null) {
|
||||||
style.id = id;
|
style.id = id;
|
||||||
}
|
}
|
||||||
$.asap((function() {
|
$.onExists(doc, test, true, function() {
|
||||||
return d.head && ((test == null) || test());
|
|
||||||
}), function() {
|
|
||||||
return $.add(d.head, style);
|
return $.add(d.head, style);
|
||||||
});
|
});
|
||||||
return style;
|
return style;
|
||||||
@ -787,12 +788,15 @@
|
|||||||
return root.parentNode.replaceChild($.nodes(el), root);
|
return root.parentNode.replaceChild($.nodes(el), root);
|
||||||
};
|
};
|
||||||
|
|
||||||
$.el = function(tag, properties) {
|
$.el = function(tag, properties, properties2) {
|
||||||
var el;
|
var el;
|
||||||
el = d.createElement(tag);
|
el = d.createElement(tag);
|
||||||
if (properties) {
|
if (properties) {
|
||||||
$.extend(el, properties);
|
$.extend(el, properties);
|
||||||
}
|
}
|
||||||
|
if (properties2) {
|
||||||
|
$.extend(el, properties2);
|
||||||
|
}
|
||||||
return el;
|
return el;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3422,7 +3426,10 @@
|
|||||||
}
|
}
|
||||||
return Menu.menu.addEntry({
|
return Menu.menu.addEntry({
|
||||||
el: $.el('a', {
|
el: $.el('a', {
|
||||||
href: 'javascript:;'
|
href: 'javascript:;',
|
||||||
|
className: 'has-shortcut-text'
|
||||||
|
}, {
|
||||||
|
innerHTML: "<span></span><span class=\"shortcut-text\">Shift+click</span>"
|
||||||
}),
|
}),
|
||||||
order: 20,
|
order: 20,
|
||||||
open: function(arg) {
|
open: function(arg) {
|
||||||
@ -3431,7 +3438,7 @@
|
|||||||
if (Conf['Index Mode'] !== 'catalog') {
|
if (Conf['Index Mode'] !== 'catalog') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.el.textContent = thread.isHidden ? 'Unhide thread' : 'Hide thread';
|
this.el.firstElementChild.textContent = thread.isHidden ? 'Unhide' : 'Hide';
|
||||||
if (this.cb) {
|
if (this.cb) {
|
||||||
$.off(this.el, 'click', this.cb);
|
$.off(this.el, 'click', this.cb);
|
||||||
}
|
}
|
||||||
@ -4453,7 +4460,7 @@
|
|||||||
className: 'catalog-thread'
|
className: 'catalog-thread'
|
||||||
});
|
});
|
||||||
$.extend(root, {
|
$.extend(root, {
|
||||||
innerHTML: "<a href=\"/" + E(thread.board) + "/thread/" + E(thread.ID) + "\"><img src=\"" + E(src) + "\"" + (imgClass ? " class=\"catalog-thumb " + E(imgClass) + "\"" : " class=\"catalog-thumb\" data-width=\"" + E(data.tn_w) + "\" data-height=\"" + E(data.tn_h) + "\"") + "></a><div class=\"catalog-stats\" title=\"Post count / File count / Page count\"><span class=\"post-count\">" + E(postCount) + "</span> / <span class=\"file-count\">" + E(fileCount) + "</span> / <span class=\"page-count\">" + E(pageCount) + "</span><span class=\"catalog-icons\"></span></div>" + (thread.OP.info.subject ? "<div class=\"subject\">" + E(thread.OP.info.subject) + "</div>" : "") + "<div class=\"comment\">" + comment.innerHTML + "</div>"
|
innerHTML: "<a href=\"/" + E(thread.board) + "/thread/" + E(thread.ID) + "\"><img src=\"" + E(src) + "\"" + (imgClass ? " class=\"catalog-thumb " + E(imgClass) + "\"" : " class=\"catalog-thumb\" data-width=\"" + E(data.tn_w) + "\" data-height=\"" + E(data.tn_h) + "\"") + "></a><div class=\"catalog-stats\"><span title=\"Posts / Files / Page\"><span class=\"post-count\">" + E(postCount) + "</span> / <span class=\"file-count\">" + E(fileCount) + "</span> / <span class=\"page-count\">" + E(pageCount) + "</span></span><span class=\"catalog-icons\"></span></div>" + (thread.OP.info.subject ? "<div class=\"subject\">" + E(thread.OP.info.subject) + "</div>" : "") + "<div class=\"comment\">" + comment.innerHTML + "</div>"
|
||||||
});
|
});
|
||||||
root.dataset.fullID = thread.fullID;
|
root.dataset.fullID = thread.fullID;
|
||||||
if (thread.OP.highlights) {
|
if (thread.OP.highlights) {
|
||||||
@ -5535,7 +5542,7 @@
|
|||||||
}
|
}
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'hide-reply-link',
|
className: 'hide-reply-link',
|
||||||
textContent: 'Hide reply'
|
textContent: 'Hide'
|
||||||
});
|
});
|
||||||
apply = $.el('a', {
|
apply = $.el('a', {
|
||||||
textContent: 'Apply',
|
textContent: 'Apply',
|
||||||
@ -5569,7 +5576,7 @@
|
|||||||
});
|
});
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'show-reply-link',
|
className: 'show-reply-link',
|
||||||
textContent: 'Show reply'
|
textContent: 'Show'
|
||||||
});
|
});
|
||||||
apply = $.el('a', {
|
apply = $.el('a', {
|
||||||
textContent: 'Apply',
|
textContent: 'Apply',
|
||||||
@ -5953,7 +5960,7 @@
|
|||||||
}
|
}
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'hide-thread-link',
|
className: 'hide-thread-link',
|
||||||
textContent: 'Hide thread'
|
textContent: 'Hide'
|
||||||
});
|
});
|
||||||
apply = $.el('a', {
|
apply = $.el('a', {
|
||||||
textContent: 'Apply',
|
textContent: 'Apply',
|
||||||
@ -5983,7 +5990,7 @@
|
|||||||
});
|
});
|
||||||
div = $.el('a', {
|
div = $.el('a', {
|
||||||
className: 'show-thread-link',
|
className: 'show-thread-link',
|
||||||
textContent: 'Show thread',
|
textContent: 'Show',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(div, 'click', ThreadHiding.menu.show);
|
$.on(div, 'click', ThreadHiding.menu.show);
|
||||||
@ -12836,7 +12843,7 @@
|
|||||||
order: 10,
|
order: 10,
|
||||||
open: function(post) {
|
open: function(post) {
|
||||||
if (!(post.isDead || (post.thread.isDead && !post.thread.isArchived))) {
|
if (!(post.isDead || (post.thread.isDead && !post.thread.isArchived))) {
|
||||||
a.textContent = 'Report this post';
|
a.textContent = 'Report';
|
||||||
ReportLink.url = "//sys.4chan.org/" + post.board + "/imgboard.php?mode=report&no=" + post;
|
ReportLink.url = "//sys.4chan.org/" + post.board + "/imgboard.php?mode=report&no=" + post;
|
||||||
ReportLink.height = 180;
|
ReportLink.height = 180;
|
||||||
} else if (Conf['Archive Report']) {
|
} else if (Conf['Archive Report']) {
|
||||||
@ -13576,7 +13583,10 @@
|
|||||||
if (g.VIEW === 'index' && Conf['JSON Navigation'] && Conf['Menu'] && g.BOARD.ID !== 'f') {
|
if (g.VIEW === 'index' && Conf['JSON Navigation'] && Conf['Menu'] && g.BOARD.ID !== 'f') {
|
||||||
Menu.menu.addEntry({
|
Menu.menu.addEntry({
|
||||||
el: $.el('a', {
|
el: $.el('a', {
|
||||||
href: 'javascript:;'
|
href: 'javascript:;',
|
||||||
|
className: 'has-shortcut-text'
|
||||||
|
}, {
|
||||||
|
innerHTML: "<span></span><span class=\"shortcut-text\">Alt+click</span>"
|
||||||
}),
|
}),
|
||||||
order: 6,
|
order: 6,
|
||||||
open: function(arg) {
|
open: function(arg) {
|
||||||
@ -13585,7 +13595,7 @@
|
|||||||
if (Conf['Index Mode'] !== 'catalog') {
|
if (Conf['Index Mode'] !== 'catalog') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.el.textContent = ThreadWatcher.isWatched(thread) ? 'Unwatch thread' : 'Watch thread';
|
this.el.firstElementChild.textContent = ThreadWatcher.isWatched(thread) ? 'Unwatch' : 'Watch';
|
||||||
if (this.cb) {
|
if (this.cb) {
|
||||||
$.off(this.el, 'click', this.cb);
|
$.off(this.el, 'click', this.cb);
|
||||||
}
|
}
|
||||||
@ -15133,9 +15143,7 @@
|
|||||||
return this.addStyle();
|
return this.addStyle();
|
||||||
},
|
},
|
||||||
addStyle: function() {
|
addStyle: function() {
|
||||||
return this.style = $.addStyle(Conf['usercss'], 'custom-css', function() {
|
return this.style = $.addStyle(Conf['usercss'], 'custom-css', '#fourchanx-css');
|
||||||
return $.id('fourchanx-css');
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
rmStyle: function() {
|
rmStyle: function() {
|
||||||
if (this.style) {
|
if (this.style) {
|
||||||
@ -19394,6 +19402,11 @@
|
|||||||
":root.float #updater {\n" +
|
":root.float #updater {\n" +
|
||||||
" padding: 0px 3px;\n" +
|
" padding: 0px 3px;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
|
":root:not(.float) #updater {\n" +
|
||||||
|
" display: inline-block;\n" +
|
||||||
|
" min-width: 12pt;\n" +
|
||||||
|
" text-align: right;\n" +
|
||||||
|
"}\n" +
|
||||||
".new {\n" +
|
".new {\n" +
|
||||||
" color: limegreen;\n" +
|
" color: limegreen;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
@ -20261,6 +20274,16 @@
|
|||||||
" position: relative;\n" +
|
" position: relative;\n" +
|
||||||
" top: 2px;\n" +
|
" top: 2px;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
|
".entry.has-shortcut-text {\n" +
|
||||||
|
" display: flex;\n" +
|
||||||
|
" justify-content: space-between;\n" +
|
||||||
|
" align-items: center;\n" +
|
||||||
|
"}\n" +
|
||||||
|
".entry .shortcut-text {\n" +
|
||||||
|
" opacity: 0.5;\n" +
|
||||||
|
" font-size: 70%;\n" +
|
||||||
|
" margin-left: 5px;\n" +
|
||||||
|
"}\n" +
|
||||||
".has-submenu::after {\n" +
|
".has-submenu::after {\n" +
|
||||||
" content: \"\";\n" +
|
" content: \"\";\n" +
|
||||||
" border-left: .5em solid;\n" +
|
" border-left: .5em solid;\n" +
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.11.18.0
|
// @version 1.11.18.1
|
||||||
// @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.18.0
|
// @version 1.11.18.1
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -432,7 +432,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.11.18.0',
|
VERSION: '1.11.18.1',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -688,15 +688,16 @@
|
|||||||
|
|
||||||
$.addStyle = function(css, id, test) {
|
$.addStyle = function(css, id, test) {
|
||||||
var style;
|
var style;
|
||||||
|
if (test == null) {
|
||||||
|
test = 'head';
|
||||||
|
}
|
||||||
style = $.el('style', {
|
style = $.el('style', {
|
||||||
textContent: css
|
textContent: css
|
||||||
});
|
});
|
||||||
if (id != null) {
|
if (id != null) {
|
||||||
style.id = id;
|
style.id = id;
|
||||||
}
|
}
|
||||||
$.asap((function() {
|
$.onExists(doc, test, true, function() {
|
||||||
return d.head && ((test == null) || test());
|
|
||||||
}), function() {
|
|
||||||
return $.add(d.head, style);
|
return $.add(d.head, style);
|
||||||
});
|
});
|
||||||
return style;
|
return style;
|
||||||
@ -787,12 +788,15 @@
|
|||||||
return root.parentNode.replaceChild($.nodes(el), root);
|
return root.parentNode.replaceChild($.nodes(el), root);
|
||||||
};
|
};
|
||||||
|
|
||||||
$.el = function(tag, properties) {
|
$.el = function(tag, properties, properties2) {
|
||||||
var el;
|
var el;
|
||||||
el = d.createElement(tag);
|
el = d.createElement(tag);
|
||||||
if (properties) {
|
if (properties) {
|
||||||
$.extend(el, properties);
|
$.extend(el, properties);
|
||||||
}
|
}
|
||||||
|
if (properties2) {
|
||||||
|
$.extend(el, properties2);
|
||||||
|
}
|
||||||
return el;
|
return el;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3422,7 +3426,10 @@
|
|||||||
}
|
}
|
||||||
return Menu.menu.addEntry({
|
return Menu.menu.addEntry({
|
||||||
el: $.el('a', {
|
el: $.el('a', {
|
||||||
href: 'javascript:;'
|
href: 'javascript:;',
|
||||||
|
className: 'has-shortcut-text'
|
||||||
|
}, {
|
||||||
|
innerHTML: "<span></span><span class=\"shortcut-text\">Shift+click</span>"
|
||||||
}),
|
}),
|
||||||
order: 20,
|
order: 20,
|
||||||
open: function(arg) {
|
open: function(arg) {
|
||||||
@ -3431,7 +3438,7 @@
|
|||||||
if (Conf['Index Mode'] !== 'catalog') {
|
if (Conf['Index Mode'] !== 'catalog') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.el.textContent = thread.isHidden ? 'Unhide thread' : 'Hide thread';
|
this.el.firstElementChild.textContent = thread.isHidden ? 'Unhide' : 'Hide';
|
||||||
if (this.cb) {
|
if (this.cb) {
|
||||||
$.off(this.el, 'click', this.cb);
|
$.off(this.el, 'click', this.cb);
|
||||||
}
|
}
|
||||||
@ -4453,7 +4460,7 @@
|
|||||||
className: 'catalog-thread'
|
className: 'catalog-thread'
|
||||||
});
|
});
|
||||||
$.extend(root, {
|
$.extend(root, {
|
||||||
innerHTML: "<a href=\"/" + E(thread.board) + "/thread/" + E(thread.ID) + "\"><img src=\"" + E(src) + "\"" + (imgClass ? " class=\"catalog-thumb " + E(imgClass) + "\"" : " class=\"catalog-thumb\" data-width=\"" + E(data.tn_w) + "\" data-height=\"" + E(data.tn_h) + "\"") + "></a><div class=\"catalog-stats\" title=\"Post count / File count / Page count\"><span class=\"post-count\">" + E(postCount) + "</span> / <span class=\"file-count\">" + E(fileCount) + "</span> / <span class=\"page-count\">" + E(pageCount) + "</span><span class=\"catalog-icons\"></span></div>" + (thread.OP.info.subject ? "<div class=\"subject\">" + E(thread.OP.info.subject) + "</div>" : "") + "<div class=\"comment\">" + comment.innerHTML + "</div>"
|
innerHTML: "<a href=\"/" + E(thread.board) + "/thread/" + E(thread.ID) + "\"><img src=\"" + E(src) + "\"" + (imgClass ? " class=\"catalog-thumb " + E(imgClass) + "\"" : " class=\"catalog-thumb\" data-width=\"" + E(data.tn_w) + "\" data-height=\"" + E(data.tn_h) + "\"") + "></a><div class=\"catalog-stats\"><span title=\"Posts / Files / Page\"><span class=\"post-count\">" + E(postCount) + "</span> / <span class=\"file-count\">" + E(fileCount) + "</span> / <span class=\"page-count\">" + E(pageCount) + "</span></span><span class=\"catalog-icons\"></span></div>" + (thread.OP.info.subject ? "<div class=\"subject\">" + E(thread.OP.info.subject) + "</div>" : "") + "<div class=\"comment\">" + comment.innerHTML + "</div>"
|
||||||
});
|
});
|
||||||
root.dataset.fullID = thread.fullID;
|
root.dataset.fullID = thread.fullID;
|
||||||
if (thread.OP.highlights) {
|
if (thread.OP.highlights) {
|
||||||
@ -5535,7 +5542,7 @@
|
|||||||
}
|
}
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'hide-reply-link',
|
className: 'hide-reply-link',
|
||||||
textContent: 'Hide reply'
|
textContent: 'Hide'
|
||||||
});
|
});
|
||||||
apply = $.el('a', {
|
apply = $.el('a', {
|
||||||
textContent: 'Apply',
|
textContent: 'Apply',
|
||||||
@ -5569,7 +5576,7 @@
|
|||||||
});
|
});
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'show-reply-link',
|
className: 'show-reply-link',
|
||||||
textContent: 'Show reply'
|
textContent: 'Show'
|
||||||
});
|
});
|
||||||
apply = $.el('a', {
|
apply = $.el('a', {
|
||||||
textContent: 'Apply',
|
textContent: 'Apply',
|
||||||
@ -5953,7 +5960,7 @@
|
|||||||
}
|
}
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
className: 'hide-thread-link',
|
className: 'hide-thread-link',
|
||||||
textContent: 'Hide thread'
|
textContent: 'Hide'
|
||||||
});
|
});
|
||||||
apply = $.el('a', {
|
apply = $.el('a', {
|
||||||
textContent: 'Apply',
|
textContent: 'Apply',
|
||||||
@ -5983,7 +5990,7 @@
|
|||||||
});
|
});
|
||||||
div = $.el('a', {
|
div = $.el('a', {
|
||||||
className: 'show-thread-link',
|
className: 'show-thread-link',
|
||||||
textContent: 'Show thread',
|
textContent: 'Show',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(div, 'click', ThreadHiding.menu.show);
|
$.on(div, 'click', ThreadHiding.menu.show);
|
||||||
@ -12836,7 +12843,7 @@
|
|||||||
order: 10,
|
order: 10,
|
||||||
open: function(post) {
|
open: function(post) {
|
||||||
if (!(post.isDead || (post.thread.isDead && !post.thread.isArchived))) {
|
if (!(post.isDead || (post.thread.isDead && !post.thread.isArchived))) {
|
||||||
a.textContent = 'Report this post';
|
a.textContent = 'Report';
|
||||||
ReportLink.url = "//sys.4chan.org/" + post.board + "/imgboard.php?mode=report&no=" + post;
|
ReportLink.url = "//sys.4chan.org/" + post.board + "/imgboard.php?mode=report&no=" + post;
|
||||||
ReportLink.height = 180;
|
ReportLink.height = 180;
|
||||||
} else if (Conf['Archive Report']) {
|
} else if (Conf['Archive Report']) {
|
||||||
@ -13576,7 +13583,10 @@
|
|||||||
if (g.VIEW === 'index' && Conf['JSON Navigation'] && Conf['Menu'] && g.BOARD.ID !== 'f') {
|
if (g.VIEW === 'index' && Conf['JSON Navigation'] && Conf['Menu'] && g.BOARD.ID !== 'f') {
|
||||||
Menu.menu.addEntry({
|
Menu.menu.addEntry({
|
||||||
el: $.el('a', {
|
el: $.el('a', {
|
||||||
href: 'javascript:;'
|
href: 'javascript:;',
|
||||||
|
className: 'has-shortcut-text'
|
||||||
|
}, {
|
||||||
|
innerHTML: "<span></span><span class=\"shortcut-text\">Alt+click</span>"
|
||||||
}),
|
}),
|
||||||
order: 6,
|
order: 6,
|
||||||
open: function(arg) {
|
open: function(arg) {
|
||||||
@ -13585,7 +13595,7 @@
|
|||||||
if (Conf['Index Mode'] !== 'catalog') {
|
if (Conf['Index Mode'] !== 'catalog') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.el.textContent = ThreadWatcher.isWatched(thread) ? 'Unwatch thread' : 'Watch thread';
|
this.el.firstElementChild.textContent = ThreadWatcher.isWatched(thread) ? 'Unwatch' : 'Watch';
|
||||||
if (this.cb) {
|
if (this.cb) {
|
||||||
$.off(this.el, 'click', this.cb);
|
$.off(this.el, 'click', this.cb);
|
||||||
}
|
}
|
||||||
@ -15133,9 +15143,7 @@
|
|||||||
return this.addStyle();
|
return this.addStyle();
|
||||||
},
|
},
|
||||||
addStyle: function() {
|
addStyle: function() {
|
||||||
return this.style = $.addStyle(Conf['usercss'], 'custom-css', function() {
|
return this.style = $.addStyle(Conf['usercss'], 'custom-css', '#fourchanx-css');
|
||||||
return $.id('fourchanx-css');
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
rmStyle: function() {
|
rmStyle: function() {
|
||||||
if (this.style) {
|
if (this.style) {
|
||||||
@ -19394,6 +19402,11 @@
|
|||||||
":root.float #updater {\n" +
|
":root.float #updater {\n" +
|
||||||
" padding: 0px 3px;\n" +
|
" padding: 0px 3px;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
|
":root:not(.float) #updater {\n" +
|
||||||
|
" display: inline-block;\n" +
|
||||||
|
" min-width: 12pt;\n" +
|
||||||
|
" text-align: right;\n" +
|
||||||
|
"}\n" +
|
||||||
".new {\n" +
|
".new {\n" +
|
||||||
" color: limegreen;\n" +
|
" color: limegreen;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
@ -20261,6 +20274,16 @@
|
|||||||
" position: relative;\n" +
|
" position: relative;\n" +
|
||||||
" top: 2px;\n" +
|
" top: 2px;\n" +
|
||||||
"}\n" +
|
"}\n" +
|
||||||
|
".entry.has-shortcut-text {\n" +
|
||||||
|
" display: flex;\n" +
|
||||||
|
" justify-content: space-between;\n" +
|
||||||
|
" align-items: center;\n" +
|
||||||
|
"}\n" +
|
||||||
|
".entry .shortcut-text {\n" +
|
||||||
|
" opacity: 0.5;\n" +
|
||||||
|
" font-size: 70%;\n" +
|
||||||
|
" margin-left: 5px;\n" +
|
||||||
|
"}\n" +
|
||||||
".has-submenu::after {\n" +
|
".has-submenu::after {\n" +
|
||||||
" content: \"\";\n" +
|
" content: \"\";\n" +
|
||||||
" border-left: .5em solid;\n" +
|
" border-left: .5em solid;\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.18.0' />
|
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.11.18.1' />
|
||||||
</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.18.0' />
|
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.11.18.1' />
|
||||||
</app>
|
</app>
|
||||||
</gupdate>
|
</gupdate>
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"version": "1.11.18.0",
|
"version": "1.11.18.1",
|
||||||
"date": "2015-11-21T09:40:59.277Z"
|
"date": "2015-11-23T02:19:39.661Z"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user