Release 4chan X v1.14.1.0.
This commit is contained in:
parent
343c6224a6
commit
4d9b64f2be
@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
-Sometimes the changelog has notes (not comprehensive) acknowledging people's work. This does not mean the changes are their fault, only that their code was used. All changes to the script are chosen by and the fault of the maintainer (ccd0).
|
-Sometimes the changelog has notes (not comprehensive) acknowledging people's work. This does not mean the changes are their fault, only that their code was used. All changes to the script are chosen by and the fault of the maintainer (ccd0).
|
||||||
|
|
||||||
|
### v1.14.1
|
||||||
|
|
||||||
|
**v1.14.1.0** *(2018-05-17)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.1.0/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.1.0/builds/4chan-X-noupdate.crx)]
|
||||||
|
- Based on v1.14.0.15.
|
||||||
|
- Allow the Quick Reply to be used on pages without an original post form such as archived threads. #242
|
||||||
|
- Only autorefresh thread watcher from current tab.
|
||||||
|
|
||||||
## v1.14.0
|
## v1.14.0
|
||||||
|
|
||||||
**v1.14.0.15** *(2018-05-05)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.15/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.15/builds/4chan-X-noupdate.crx)]
|
**v1.14.0.15** *(2018-05-05)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.15/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.15/builds/4chan-X-noupdate.crx)]
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X beta
|
// @name 4chan X beta
|
||||||
// @version 1.14.0.15
|
// @version 1.14.1.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X beta
|
// @name 4chan X beta
|
||||||
// @version 1.14.0.15
|
// @version 1.14.1.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -157,7 +157,7 @@ docSet = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.14.0.15',
|
VERSION: '1.14.1.0',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -7516,13 +7516,12 @@ Redirect = (function() {
|
|||||||
{ "uid": 8, "name": "Rebecca Black Tech", "domain": "archive.rebeccablacktech.com", "http": false, "https": true, "software": "foolfuuka", "boards": [ "cgl", "g", "mu" ], "files": [ "cgl", "g", "mu" ], "reports": true },
|
{ "uid": 8, "name": "Rebecca Black Tech", "domain": "archive.rebeccablacktech.com", "http": false, "https": true, "software": "foolfuuka", "boards": [ "cgl", "g", "mu" ], "files": [ "cgl", "g", "mu" ], "reports": true },
|
||||||
{ "uid": 10, "name": "warosu", "domain": "warosu.org", "http": false, "https": true, "software": "fuuka", "boards": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ], "files": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ] },
|
{ "uid": 10, "name": "warosu", "domain": "warosu.org", "http": false, "https": true, "software": "fuuka", "boards": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ], "files": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ] },
|
||||||
{ "uid": 23, "name": "Desuarchive", "domain": "desuarchive.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "files": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "reports": true },
|
{ "uid": 23, "name": "Desuarchive", "domain": "desuarchive.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "files": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "reports": true },
|
||||||
{ "uid": 24, "name": "fireden.net", "domain": "boards.fireden.net", "http": false, "https": true, "software": "foolfuuka", "boards": [ "a", "cm", "ic", "sci", "tg", "v", "vg", "y" ], "files": [ "a", "cm", "ic", "sci", "tg", "v", "vg", "y" ] },
|
{ "uid": 24, "name": "fireden.net", "domain": "boards.fireden.net", "http": false, "https": true, "software": "foolfuuka", "boards": [ "a", "cm", "co", "ic", "sci", "tg", "v", "vg", "vip", "y" ], "files": [ "a", "cm", "co", "ic", "sci", "tg", "v", "vg", "vip", "y" ] },
|
||||||
{ "uid": 25, "name": "arch.b4k.co", "domain": "arch.b4k.co", "http": true, "https": true, "software": "foolfuuka", "boards": [ "g", "jp", "mlp", "v" ], "files": [] },
|
{ "uid": 25, "name": "arch.b4k.co", "domain": "arch.b4k.co", "http": true, "https": true, "software": "foolfuuka", "boards": [ "g", "jp", "mlp", "v" ], "files": [] },
|
||||||
{ "uid": 28, "name": "bstats", "domain": "archive.b-stats.org", "http": false, "https": true, "software": "foolfuuka", "boards": [ "f", "cm", "hm", "lgbt", "news", "qst", "trash", "y" ], "files": [] },
|
{ "uid": 28, "name": "bstats", "domain": "archive.b-stats.org", "http": false, "https": true, "software": "foolfuuka", "boards": [ "f", "cm", "hm", "lgbt", "news", "qst", "trash", "y" ], "files": [] },
|
||||||
{ "uid": 29, "name": "Archived.Moe", "domain": "archived.moe", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "can", "cock", "fap", "fitlit", "gd", "mlpol", "mo", "mtv", "outsoc", "po", "qst", "spa", "vint", "vip" ], "search": [ "aco", "adv", "an", "asp", "b", "bant", "c", "can", "cgl", "ck", "cm", "cock", "con", "d", "diy", "e", "f", "fap", "fitlit", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "lgbt", "lit", "mlpol", "mo", "mtv", "n", "news", "o", "out", "outsoc", "p", "po", "q", "qa", "qst", "r", "s", "soc", "spa", "trv", "u", "vint", "vip", "w", "wg", "wsg", "wsr", "x", "y" ], "reports": true },
|
{ "uid": 29, "name": "Archived.Moe", "domain": "archived.moe", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "can", "cock", "fap", "fitlit", "gd", "mlpol", "mo", "mtv", "outsoc", "po", "qst", "spa", "vint", "vip" ], "search": [ "aco", "adv", "an", "asp", "b", "bant", "c", "can", "cgl", "ck", "cm", "cock", "con", "d", "diy", "e", "f", "fap", "fitlit", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "lgbt", "lit", "mlpol", "mo", "mtv", "n", "news", "o", "out", "outsoc", "p", "po", "q", "qa", "qst", "r", "s", "soc", "spa", "trv", "u", "vint", "vip", "w", "wg", "wsg", "wsr", "x", "y" ], "reports": true },
|
||||||
{ "uid": 30, "name": "TheBArchive.com", "domain": "thebarchive.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "b", "bant" ], "files": [ "b", "bant" ], "reports": true },
|
{ "uid": 30, "name": "TheBArchive.com", "domain": "thebarchive.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "b", "bant" ], "files": [ "b", "bant" ], "reports": true },
|
||||||
{ "uid": 31, "name": "Archive Of Sins", "domain": "archiveofsins.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "h", "hc", "hm", "r", "s", "soc" ], "files": [ "h", "hc", "hm", "r", "s", "soc" ], "reports": true },
|
{ "uid": 31, "name": "Archive Of Sins", "domain": "archiveofsins.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "h", "hc", "hm", "i", "lgbt", "r", "s", "soc", "t", "u" ], "files": [ "h", "hc", "hm", "i", "lgbt", "r", "s", "soc", "t", "u" ], "reports": true }
|
||||||
{ "uid": 33, "name": "YEET Archive", "domain": "archive.yeet.net", "http": true, "https": true, "software": "foolfuuka", "boards": [ "g", "k", "qa", "s4s" ] }
|
|
||||||
],
|
],
|
||||||
init: function() {
|
init: function() {
|
||||||
var now, ref;
|
var now, ref;
|
||||||
@ -19520,6 +19519,9 @@ ThreadWatcher = (function() {
|
|||||||
}
|
}
|
||||||
Header.addShortcut('watcher', sc, 510);
|
Header.addShortcut('watcher', sc, 510);
|
||||||
ThreadWatcher.fetchAuto();
|
ThreadWatcher.fetchAuto();
|
||||||
|
$.on(window, 'visibilitychange focus', function() {
|
||||||
|
return $.queueTask(ThreadWatcher.fetchAuto);
|
||||||
|
});
|
||||||
if (Conf['Menu'] && Index.enabled) {
|
if (Conf['Menu'] && Index.enabled) {
|
||||||
Menu.menu.addEntry({
|
Menu.menu.addEntry({
|
||||||
el: $.el('a', {
|
el: $.el('a', {
|
||||||
@ -19777,7 +19779,7 @@ ThreadWatcher = (function() {
|
|||||||
db = ThreadWatcher.db;
|
db = ThreadWatcher.db;
|
||||||
interval = ThreadWatcher.unreadEnabled && Conf['Show Unread Count'] ? 5 * $.MINUTE : 2 * $.HOUR;
|
interval = ThreadWatcher.unreadEnabled && Conf['Show Unread Count'] ? 5 * $.MINUTE : 2 * $.HOUR;
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
if (!((now - interval < (ref = db.data.lastChecked || 0) && ref <= now))) {
|
if (!((now - interval < (ref = db.data.lastChecked || 0) && ref <= now) || d.hidden || !d.hasFocus())) {
|
||||||
ThreadWatcher.fetchAllStatus();
|
ThreadWatcher.fetchAllStatus();
|
||||||
db.setLastChecked();
|
db.setLastChecked();
|
||||||
}
|
}
|
||||||
@ -20940,7 +20942,7 @@ Captcha = {};
|
|||||||
if (d.cookie.indexOf('pass_enabled=1') >= 0) {
|
if (d.cookie.indexOf('pass_enabled=1') >= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!(this.isEnabled = !!$('#g-recaptcha, #captcha-forced-noscript'))) {
|
if (!(this.isEnabled = !!$('#g-recaptcha, #captcha-forced-noscript') || !$.id('postForm'))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((this.noscript = Conf['Force Noscript Captcha'] || !Main.jsEnabled)) {
|
if ((this.noscript = Conf['Force Noscript Captcha'] || !Main.jsEnabled)) {
|
||||||
@ -21063,7 +21065,7 @@ Captcha = {};
|
|||||||
},
|
},
|
||||||
setupJS: function() {
|
setupJS: function() {
|
||||||
return $.global(function() {
|
return $.global(function() {
|
||||||
var cbNative, render;
|
var cbNative, render, script;
|
||||||
render = function() {
|
render = function() {
|
||||||
var classList, container;
|
var classList, container;
|
||||||
classList = document.documentElement.classList;
|
classList = document.documentElement.classList;
|
||||||
@ -21082,10 +21084,15 @@ Captcha = {};
|
|||||||
return render();
|
return render();
|
||||||
} else {
|
} else {
|
||||||
cbNative = window.onRecaptchaLoaded;
|
cbNative = window.onRecaptchaLoaded;
|
||||||
return window.onRecaptchaLoaded = function() {
|
window.onRecaptchaLoaded = function() {
|
||||||
render();
|
render();
|
||||||
return cbNative();
|
return cbNative();
|
||||||
};
|
};
|
||||||
|
if (!document.head.querySelector('script[src^="https://www.google.com/recaptcha/api.js"]')) {
|
||||||
|
script = document.createElement('script');
|
||||||
|
script.src = 'https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoaded&render=explicit';
|
||||||
|
return document.head.appendChild(script);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -21305,9 +21312,6 @@ QR = (function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.posts = [];
|
this.posts = [];
|
||||||
if (g.VIEW === 'archive') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.captcha = Captcha.v2;
|
this.captcha = Captcha.v2;
|
||||||
$.on(d, '4chanXInitFinished', function() {
|
$.on(d, '4chanXInitFinished', function() {
|
||||||
return BoardConfig.ready(QR.initReady);
|
return BoardConfig.ready(QR.initReady);
|
||||||
@ -21337,10 +21341,7 @@ QR = (function() {
|
|||||||
},
|
},
|
||||||
initReady: function() {
|
initReady: function() {
|
||||||
var config, link, linkBot, navLinksBot, origToggle, prop;
|
var config, link, linkBot, navLinksBot, origToggle, prop;
|
||||||
QR.postingIsEnabled = !!$.id('postForm');
|
QR.postingIsEnabled = true;
|
||||||
if (!QR.postingIsEnabled) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
config = g.BOARD.config;
|
config = g.BOARD.config;
|
||||||
prop = function(key, def) {
|
prop = function(key, def) {
|
||||||
var ref;
|
var ref;
|
||||||
@ -21356,17 +21357,21 @@ QR = (function() {
|
|||||||
QR.max_duration_video = prop('max_webm_duration', 120);
|
QR.max_duration_video = prop('max_webm_duration', 120);
|
||||||
QR.forcedAnon = !!config.forced_anon;
|
QR.forcedAnon = !!config.forced_anon;
|
||||||
QR.spoiler = !!config.spoilers;
|
QR.spoiler = !!config.spoilers;
|
||||||
link = $.el('h1', {
|
if ((origToggle = $.id('togglePostFormLink'))) {
|
||||||
className: "qr-link-container"
|
link = $.el('h1', {
|
||||||
});
|
className: "qr-link-container"
|
||||||
$.extend(link, {
|
});
|
||||||
innerHTML: "<a href=\"javascript:;\" class=\"qr-link\">" + ((g.VIEW === "thread") ? "Reply to Thread" : "Start a Thread") + "</a>"
|
$.extend(link, {
|
||||||
});
|
innerHTML: "<a href=\"javascript:;\" class=\"qr-link\">" + ((g.VIEW === "thread") ? "Reply to Thread" : "Start a Thread") + "</a>"
|
||||||
QR.link = link.firstElementChild;
|
});
|
||||||
$.on(link.firstChild, 'click', function() {
|
QR.link = link.firstElementChild;
|
||||||
QR.open();
|
$.on(link.firstChild, 'click', function() {
|
||||||
return QR.nodes.com.focus();
|
QR.open();
|
||||||
});
|
return QR.nodes.com.focus();
|
||||||
|
});
|
||||||
|
$.before(origToggle, link);
|
||||||
|
origToggle.firstElementChild.textContent = 'Original Form';
|
||||||
|
}
|
||||||
if (g.VIEW === 'thread') {
|
if (g.VIEW === 'thread') {
|
||||||
linkBot = $.el('div', {
|
linkBot = $.el('div', {
|
||||||
className: "brackets-wrap qr-link-container-bottom"
|
className: "brackets-wrap qr-link-container-bottom"
|
||||||
@ -21382,9 +21387,6 @@ QR = (function() {
|
|||||||
$.prepend(navLinksBot, linkBot);
|
$.prepend(navLinksBot, linkBot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
origToggle = $.id('togglePostFormLink');
|
|
||||||
$.before(origToggle, link);
|
|
||||||
origToggle.firstElementChild.textContent = 'Original Form';
|
|
||||||
$.on(d, 'QRGetFile', QR.getFile);
|
$.on(d, 'QRGetFile', QR.getFile);
|
||||||
$.on(d, 'QRSetFile', QR.setFile);
|
$.on(d, 'QRSetFile', QR.setFile);
|
||||||
$.on(d, 'paste', QR.paste);
|
$.on(d, 'paste', QR.paste);
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.14.0.15
|
// @version 1.14.1.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -157,7 +157,7 @@ docSet = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.14.0.15',
|
VERSION: '1.14.1.0',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -7516,13 +7516,12 @@ Redirect = (function() {
|
|||||||
{ "uid": 8, "name": "Rebecca Black Tech", "domain": "archive.rebeccablacktech.com", "http": false, "https": true, "software": "foolfuuka", "boards": [ "cgl", "g", "mu" ], "files": [ "cgl", "g", "mu" ], "reports": true },
|
{ "uid": 8, "name": "Rebecca Black Tech", "domain": "archive.rebeccablacktech.com", "http": false, "https": true, "software": "foolfuuka", "boards": [ "cgl", "g", "mu" ], "files": [ "cgl", "g", "mu" ], "reports": true },
|
||||||
{ "uid": 10, "name": "warosu", "domain": "warosu.org", "http": false, "https": true, "software": "fuuka", "boards": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ], "files": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ] },
|
{ "uid": 10, "name": "warosu", "domain": "warosu.org", "http": false, "https": true, "software": "fuuka", "boards": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ], "files": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ] },
|
||||||
{ "uid": 23, "name": "Desuarchive", "domain": "desuarchive.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "files": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "reports": true },
|
{ "uid": 23, "name": "Desuarchive", "domain": "desuarchive.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "files": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "reports": true },
|
||||||
{ "uid": 24, "name": "fireden.net", "domain": "boards.fireden.net", "http": false, "https": true, "software": "foolfuuka", "boards": [ "a", "cm", "ic", "sci", "tg", "v", "vg", "y" ], "files": [ "a", "cm", "ic", "sci", "tg", "v", "vg", "y" ] },
|
{ "uid": 24, "name": "fireden.net", "domain": "boards.fireden.net", "http": false, "https": true, "software": "foolfuuka", "boards": [ "a", "cm", "co", "ic", "sci", "tg", "v", "vg", "vip", "y" ], "files": [ "a", "cm", "co", "ic", "sci", "tg", "v", "vg", "vip", "y" ] },
|
||||||
{ "uid": 25, "name": "arch.b4k.co", "domain": "arch.b4k.co", "http": true, "https": true, "software": "foolfuuka", "boards": [ "g", "jp", "mlp", "v" ], "files": [] },
|
{ "uid": 25, "name": "arch.b4k.co", "domain": "arch.b4k.co", "http": true, "https": true, "software": "foolfuuka", "boards": [ "g", "jp", "mlp", "v" ], "files": [] },
|
||||||
{ "uid": 28, "name": "bstats", "domain": "archive.b-stats.org", "http": false, "https": true, "software": "foolfuuka", "boards": [ "f", "cm", "hm", "lgbt", "news", "qst", "trash", "y" ], "files": [] },
|
{ "uid": 28, "name": "bstats", "domain": "archive.b-stats.org", "http": false, "https": true, "software": "foolfuuka", "boards": [ "f", "cm", "hm", "lgbt", "news", "qst", "trash", "y" ], "files": [] },
|
||||||
{ "uid": 29, "name": "Archived.Moe", "domain": "archived.moe", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "can", "cock", "fap", "fitlit", "gd", "mlpol", "mo", "mtv", "outsoc", "po", "qst", "spa", "vint", "vip" ], "search": [ "aco", "adv", "an", "asp", "b", "bant", "c", "can", "cgl", "ck", "cm", "cock", "con", "d", "diy", "e", "f", "fap", "fitlit", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "lgbt", "lit", "mlpol", "mo", "mtv", "n", "news", "o", "out", "outsoc", "p", "po", "q", "qa", "qst", "r", "s", "soc", "spa", "trv", "u", "vint", "vip", "w", "wg", "wsg", "wsr", "x", "y" ], "reports": true },
|
{ "uid": 29, "name": "Archived.Moe", "domain": "archived.moe", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "can", "cock", "fap", "fitlit", "gd", "mlpol", "mo", "mtv", "outsoc", "po", "qst", "spa", "vint", "vip" ], "search": [ "aco", "adv", "an", "asp", "b", "bant", "c", "can", "cgl", "ck", "cm", "cock", "con", "d", "diy", "e", "f", "fap", "fitlit", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "lgbt", "lit", "mlpol", "mo", "mtv", "n", "news", "o", "out", "outsoc", "p", "po", "q", "qa", "qst", "r", "s", "soc", "spa", "trv", "u", "vint", "vip", "w", "wg", "wsg", "wsr", "x", "y" ], "reports": true },
|
||||||
{ "uid": 30, "name": "TheBArchive.com", "domain": "thebarchive.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "b", "bant" ], "files": [ "b", "bant" ], "reports": true },
|
{ "uid": 30, "name": "TheBArchive.com", "domain": "thebarchive.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "b", "bant" ], "files": [ "b", "bant" ], "reports": true },
|
||||||
{ "uid": 31, "name": "Archive Of Sins", "domain": "archiveofsins.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "h", "hc", "hm", "r", "s", "soc" ], "files": [ "h", "hc", "hm", "r", "s", "soc" ], "reports": true },
|
{ "uid": 31, "name": "Archive Of Sins", "domain": "archiveofsins.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "h", "hc", "hm", "i", "lgbt", "r", "s", "soc", "t", "u" ], "files": [ "h", "hc", "hm", "i", "lgbt", "r", "s", "soc", "t", "u" ], "reports": true }
|
||||||
{ "uid": 33, "name": "YEET Archive", "domain": "archive.yeet.net", "http": true, "https": true, "software": "foolfuuka", "boards": [ "g", "k", "qa", "s4s" ] }
|
|
||||||
],
|
],
|
||||||
init: function() {
|
init: function() {
|
||||||
var now, ref;
|
var now, ref;
|
||||||
@ -19520,6 +19519,9 @@ ThreadWatcher = (function() {
|
|||||||
}
|
}
|
||||||
Header.addShortcut('watcher', sc, 510);
|
Header.addShortcut('watcher', sc, 510);
|
||||||
ThreadWatcher.fetchAuto();
|
ThreadWatcher.fetchAuto();
|
||||||
|
$.on(window, 'visibilitychange focus', function() {
|
||||||
|
return $.queueTask(ThreadWatcher.fetchAuto);
|
||||||
|
});
|
||||||
if (Conf['Menu'] && Index.enabled) {
|
if (Conf['Menu'] && Index.enabled) {
|
||||||
Menu.menu.addEntry({
|
Menu.menu.addEntry({
|
||||||
el: $.el('a', {
|
el: $.el('a', {
|
||||||
@ -19777,7 +19779,7 @@ ThreadWatcher = (function() {
|
|||||||
db = ThreadWatcher.db;
|
db = ThreadWatcher.db;
|
||||||
interval = ThreadWatcher.unreadEnabled && Conf['Show Unread Count'] ? 5 * $.MINUTE : 2 * $.HOUR;
|
interval = ThreadWatcher.unreadEnabled && Conf['Show Unread Count'] ? 5 * $.MINUTE : 2 * $.HOUR;
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
if (!((now - interval < (ref = db.data.lastChecked || 0) && ref <= now))) {
|
if (!((now - interval < (ref = db.data.lastChecked || 0) && ref <= now) || d.hidden || !d.hasFocus())) {
|
||||||
ThreadWatcher.fetchAllStatus();
|
ThreadWatcher.fetchAllStatus();
|
||||||
db.setLastChecked();
|
db.setLastChecked();
|
||||||
}
|
}
|
||||||
@ -20940,7 +20942,7 @@ Captcha = {};
|
|||||||
if (d.cookie.indexOf('pass_enabled=1') >= 0) {
|
if (d.cookie.indexOf('pass_enabled=1') >= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!(this.isEnabled = !!$('#g-recaptcha, #captcha-forced-noscript'))) {
|
if (!(this.isEnabled = !!$('#g-recaptcha, #captcha-forced-noscript') || !$.id('postForm'))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((this.noscript = Conf['Force Noscript Captcha'] || !Main.jsEnabled)) {
|
if ((this.noscript = Conf['Force Noscript Captcha'] || !Main.jsEnabled)) {
|
||||||
@ -21063,7 +21065,7 @@ Captcha = {};
|
|||||||
},
|
},
|
||||||
setupJS: function() {
|
setupJS: function() {
|
||||||
return $.global(function() {
|
return $.global(function() {
|
||||||
var cbNative, render;
|
var cbNative, render, script;
|
||||||
render = function() {
|
render = function() {
|
||||||
var classList, container;
|
var classList, container;
|
||||||
classList = document.documentElement.classList;
|
classList = document.documentElement.classList;
|
||||||
@ -21082,10 +21084,15 @@ Captcha = {};
|
|||||||
return render();
|
return render();
|
||||||
} else {
|
} else {
|
||||||
cbNative = window.onRecaptchaLoaded;
|
cbNative = window.onRecaptchaLoaded;
|
||||||
return window.onRecaptchaLoaded = function() {
|
window.onRecaptchaLoaded = function() {
|
||||||
render();
|
render();
|
||||||
return cbNative();
|
return cbNative();
|
||||||
};
|
};
|
||||||
|
if (!document.head.querySelector('script[src^="https://www.google.com/recaptcha/api.js"]')) {
|
||||||
|
script = document.createElement('script');
|
||||||
|
script.src = 'https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoaded&render=explicit';
|
||||||
|
return document.head.appendChild(script);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -21305,9 +21312,6 @@ QR = (function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.posts = [];
|
this.posts = [];
|
||||||
if (g.VIEW === 'archive') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.captcha = Captcha.v2;
|
this.captcha = Captcha.v2;
|
||||||
$.on(d, '4chanXInitFinished', function() {
|
$.on(d, '4chanXInitFinished', function() {
|
||||||
return BoardConfig.ready(QR.initReady);
|
return BoardConfig.ready(QR.initReady);
|
||||||
@ -21337,10 +21341,7 @@ QR = (function() {
|
|||||||
},
|
},
|
||||||
initReady: function() {
|
initReady: function() {
|
||||||
var config, link, linkBot, navLinksBot, origToggle, prop;
|
var config, link, linkBot, navLinksBot, origToggle, prop;
|
||||||
QR.postingIsEnabled = !!$.id('postForm');
|
QR.postingIsEnabled = true;
|
||||||
if (!QR.postingIsEnabled) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
config = g.BOARD.config;
|
config = g.BOARD.config;
|
||||||
prop = function(key, def) {
|
prop = function(key, def) {
|
||||||
var ref;
|
var ref;
|
||||||
@ -21356,17 +21357,21 @@ QR = (function() {
|
|||||||
QR.max_duration_video = prop('max_webm_duration', 120);
|
QR.max_duration_video = prop('max_webm_duration', 120);
|
||||||
QR.forcedAnon = !!config.forced_anon;
|
QR.forcedAnon = !!config.forced_anon;
|
||||||
QR.spoiler = !!config.spoilers;
|
QR.spoiler = !!config.spoilers;
|
||||||
link = $.el('h1', {
|
if ((origToggle = $.id('togglePostFormLink'))) {
|
||||||
className: "qr-link-container"
|
link = $.el('h1', {
|
||||||
});
|
className: "qr-link-container"
|
||||||
$.extend(link, {
|
});
|
||||||
innerHTML: "<a href=\"javascript:;\" class=\"qr-link\">" + ((g.VIEW === "thread") ? "Reply to Thread" : "Start a Thread") + "</a>"
|
$.extend(link, {
|
||||||
});
|
innerHTML: "<a href=\"javascript:;\" class=\"qr-link\">" + ((g.VIEW === "thread") ? "Reply to Thread" : "Start a Thread") + "</a>"
|
||||||
QR.link = link.firstElementChild;
|
});
|
||||||
$.on(link.firstChild, 'click', function() {
|
QR.link = link.firstElementChild;
|
||||||
QR.open();
|
$.on(link.firstChild, 'click', function() {
|
||||||
return QR.nodes.com.focus();
|
QR.open();
|
||||||
});
|
return QR.nodes.com.focus();
|
||||||
|
});
|
||||||
|
$.before(origToggle, link);
|
||||||
|
origToggle.firstElementChild.textContent = 'Original Form';
|
||||||
|
}
|
||||||
if (g.VIEW === 'thread') {
|
if (g.VIEW === 'thread') {
|
||||||
linkBot = $.el('div', {
|
linkBot = $.el('div', {
|
||||||
className: "brackets-wrap qr-link-container-bottom"
|
className: "brackets-wrap qr-link-container-bottom"
|
||||||
@ -21382,9 +21387,6 @@ QR = (function() {
|
|||||||
$.prepend(navLinksBot, linkBot);
|
$.prepend(navLinksBot, linkBot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
origToggle = $.id('togglePostFormLink');
|
|
||||||
$.before(origToggle, link);
|
|
||||||
origToggle.firstElementChild.textContent = 'Original Form';
|
|
||||||
$.on(d, 'QRGetFile', QR.getFile);
|
$.on(d, 'QRGetFile', QR.getFile);
|
||||||
$.on(d, 'QRSetFile', QR.setFile);
|
$.on(d, 'QRSetFile', QR.setFile);
|
||||||
$.on(d, 'paste', QR.paste);
|
$.on(d, 'paste', QR.paste);
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.14.0.15
|
// @version 1.14.1.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.14.0.15
|
// @version 1.14.1.0
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -157,7 +157,7 @@ docSet = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.14.0.15',
|
VERSION: '1.14.1.0',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -7516,13 +7516,12 @@ Redirect = (function() {
|
|||||||
{ "uid": 8, "name": "Rebecca Black Tech", "domain": "archive.rebeccablacktech.com", "http": false, "https": true, "software": "foolfuuka", "boards": [ "cgl", "g", "mu" ], "files": [ "cgl", "g", "mu" ], "reports": true },
|
{ "uid": 8, "name": "Rebecca Black Tech", "domain": "archive.rebeccablacktech.com", "http": false, "https": true, "software": "foolfuuka", "boards": [ "cgl", "g", "mu" ], "files": [ "cgl", "g", "mu" ], "reports": true },
|
||||||
{ "uid": 10, "name": "warosu", "domain": "warosu.org", "http": false, "https": true, "software": "fuuka", "boards": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ], "files": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ] },
|
{ "uid": 10, "name": "warosu", "domain": "warosu.org", "http": false, "https": true, "software": "fuuka", "boards": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ], "files": [ "3", "biz", "cgl", "ck", "diy", "fa", "g", "ic", "jp", "lit", "sci", "tg", "vr" ] },
|
||||||
{ "uid": 23, "name": "Desuarchive", "domain": "desuarchive.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "files": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "reports": true },
|
{ "uid": 23, "name": "Desuarchive", "domain": "desuarchive.org", "http": true, "https": true, "software": "foolfuuka", "boards": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "files": [ "a", "aco", "an", "c", "co", "d", "fit", "gif", "his", "int", "k", "m", "mlp", "qa", "r9k", "tg", "trash", "vr", "wsg" ], "reports": true },
|
||||||
{ "uid": 24, "name": "fireden.net", "domain": "boards.fireden.net", "http": false, "https": true, "software": "foolfuuka", "boards": [ "a", "cm", "ic", "sci", "tg", "v", "vg", "y" ], "files": [ "a", "cm", "ic", "sci", "tg", "v", "vg", "y" ] },
|
{ "uid": 24, "name": "fireden.net", "domain": "boards.fireden.net", "http": false, "https": true, "software": "foolfuuka", "boards": [ "a", "cm", "co", "ic", "sci", "tg", "v", "vg", "vip", "y" ], "files": [ "a", "cm", "co", "ic", "sci", "tg", "v", "vg", "vip", "y" ] },
|
||||||
{ "uid": 25, "name": "arch.b4k.co", "domain": "arch.b4k.co", "http": true, "https": true, "software": "foolfuuka", "boards": [ "g", "jp", "mlp", "v" ], "files": [] },
|
{ "uid": 25, "name": "arch.b4k.co", "domain": "arch.b4k.co", "http": true, "https": true, "software": "foolfuuka", "boards": [ "g", "jp", "mlp", "v" ], "files": [] },
|
||||||
{ "uid": 28, "name": "bstats", "domain": "archive.b-stats.org", "http": false, "https": true, "software": "foolfuuka", "boards": [ "f", "cm", "hm", "lgbt", "news", "qst", "trash", "y" ], "files": [] },
|
{ "uid": 28, "name": "bstats", "domain": "archive.b-stats.org", "http": false, "https": true, "software": "foolfuuka", "boards": [ "f", "cm", "hm", "lgbt", "news", "qst", "trash", "y" ], "files": [] },
|
||||||
{ "uid": 29, "name": "Archived.Moe", "domain": "archived.moe", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "can", "cock", "fap", "fitlit", "gd", "mlpol", "mo", "mtv", "outsoc", "po", "qst", "spa", "vint", "vip" ], "search": [ "aco", "adv", "an", "asp", "b", "bant", "c", "can", "cgl", "ck", "cm", "cock", "con", "d", "diy", "e", "f", "fap", "fitlit", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "lgbt", "lit", "mlpol", "mo", "mtv", "n", "news", "o", "out", "outsoc", "p", "po", "q", "qa", "qst", "r", "s", "soc", "spa", "trv", "u", "vint", "vip", "w", "wg", "wsg", "wsr", "x", "y" ], "reports": true },
|
{ "uid": 29, "name": "Archived.Moe", "domain": "archived.moe", "http": true, "https": true, "software": "foolfuuka", "boards": [ "3", "a", "aco", "adv", "an", "asp", "b", "bant", "biz", "c", "can", "cgl", "ck", "cm", "co", "cock", "d", "diy", "e", "f", "fa", "fap", "fit", "fitlit", "g", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "int", "jp", "k", "lgbt", "lit", "m", "mlp", "mlpol", "mo", "mtv", "mu", "n", "news", "o", "out", "outsoc", "p", "po", "pol", "qa", "qst", "r", "r9k", "s", "s4s", "sci", "soc", "sp", "spa", "t", "tg", "toy", "trash", "trv", "tv", "u", "v", "vg", "vint", "vip", "vp", "vr", "w", "wg", "wsg", "wsr", "x", "y" ], "files": [ "can", "cock", "fap", "fitlit", "gd", "mlpol", "mo", "mtv", "outsoc", "po", "qst", "spa", "vint", "vip" ], "search": [ "aco", "adv", "an", "asp", "b", "bant", "c", "can", "cgl", "ck", "cm", "cock", "con", "d", "diy", "e", "f", "fap", "fitlit", "gd", "gif", "h", "hc", "his", "hm", "hr", "i", "ic", "lgbt", "lit", "mlpol", "mo", "mtv", "n", "news", "o", "out", "outsoc", "p", "po", "q", "qa", "qst", "r", "s", "soc", "spa", "trv", "u", "vint", "vip", "w", "wg", "wsg", "wsr", "x", "y" ], "reports": true },
|
||||||
{ "uid": 30, "name": "TheBArchive.com", "domain": "thebarchive.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "b", "bant" ], "files": [ "b", "bant" ], "reports": true },
|
{ "uid": 30, "name": "TheBArchive.com", "domain": "thebarchive.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "b", "bant" ], "files": [ "b", "bant" ], "reports": true },
|
||||||
{ "uid": 31, "name": "Archive Of Sins", "domain": "archiveofsins.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "h", "hc", "hm", "r", "s", "soc" ], "files": [ "h", "hc", "hm", "r", "s", "soc" ], "reports": true },
|
{ "uid": 31, "name": "Archive Of Sins", "domain": "archiveofsins.com", "http": true, "https": true, "software": "foolfuuka", "boards": [ "h", "hc", "hm", "i", "lgbt", "r", "s", "soc", "t", "u" ], "files": [ "h", "hc", "hm", "i", "lgbt", "r", "s", "soc", "t", "u" ], "reports": true }
|
||||||
{ "uid": 33, "name": "YEET Archive", "domain": "archive.yeet.net", "http": true, "https": true, "software": "foolfuuka", "boards": [ "g", "k", "qa", "s4s" ] }
|
|
||||||
],
|
],
|
||||||
init: function() {
|
init: function() {
|
||||||
var now, ref;
|
var now, ref;
|
||||||
@ -19520,6 +19519,9 @@ ThreadWatcher = (function() {
|
|||||||
}
|
}
|
||||||
Header.addShortcut('watcher', sc, 510);
|
Header.addShortcut('watcher', sc, 510);
|
||||||
ThreadWatcher.fetchAuto();
|
ThreadWatcher.fetchAuto();
|
||||||
|
$.on(window, 'visibilitychange focus', function() {
|
||||||
|
return $.queueTask(ThreadWatcher.fetchAuto);
|
||||||
|
});
|
||||||
if (Conf['Menu'] && Index.enabled) {
|
if (Conf['Menu'] && Index.enabled) {
|
||||||
Menu.menu.addEntry({
|
Menu.menu.addEntry({
|
||||||
el: $.el('a', {
|
el: $.el('a', {
|
||||||
@ -19777,7 +19779,7 @@ ThreadWatcher = (function() {
|
|||||||
db = ThreadWatcher.db;
|
db = ThreadWatcher.db;
|
||||||
interval = ThreadWatcher.unreadEnabled && Conf['Show Unread Count'] ? 5 * $.MINUTE : 2 * $.HOUR;
|
interval = ThreadWatcher.unreadEnabled && Conf['Show Unread Count'] ? 5 * $.MINUTE : 2 * $.HOUR;
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
if (!((now - interval < (ref = db.data.lastChecked || 0) && ref <= now))) {
|
if (!((now - interval < (ref = db.data.lastChecked || 0) && ref <= now) || d.hidden || !d.hasFocus())) {
|
||||||
ThreadWatcher.fetchAllStatus();
|
ThreadWatcher.fetchAllStatus();
|
||||||
db.setLastChecked();
|
db.setLastChecked();
|
||||||
}
|
}
|
||||||
@ -20940,7 +20942,7 @@ Captcha = {};
|
|||||||
if (d.cookie.indexOf('pass_enabled=1') >= 0) {
|
if (d.cookie.indexOf('pass_enabled=1') >= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!(this.isEnabled = !!$('#g-recaptcha, #captcha-forced-noscript'))) {
|
if (!(this.isEnabled = !!$('#g-recaptcha, #captcha-forced-noscript') || !$.id('postForm'))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((this.noscript = Conf['Force Noscript Captcha'] || !Main.jsEnabled)) {
|
if ((this.noscript = Conf['Force Noscript Captcha'] || !Main.jsEnabled)) {
|
||||||
@ -21063,7 +21065,7 @@ Captcha = {};
|
|||||||
},
|
},
|
||||||
setupJS: function() {
|
setupJS: function() {
|
||||||
return $.global(function() {
|
return $.global(function() {
|
||||||
var cbNative, render;
|
var cbNative, render, script;
|
||||||
render = function() {
|
render = function() {
|
||||||
var classList, container;
|
var classList, container;
|
||||||
classList = document.documentElement.classList;
|
classList = document.documentElement.classList;
|
||||||
@ -21082,10 +21084,15 @@ Captcha = {};
|
|||||||
return render();
|
return render();
|
||||||
} else {
|
} else {
|
||||||
cbNative = window.onRecaptchaLoaded;
|
cbNative = window.onRecaptchaLoaded;
|
||||||
return window.onRecaptchaLoaded = function() {
|
window.onRecaptchaLoaded = function() {
|
||||||
render();
|
render();
|
||||||
return cbNative();
|
return cbNative();
|
||||||
};
|
};
|
||||||
|
if (!document.head.querySelector('script[src^="https://www.google.com/recaptcha/api.js"]')) {
|
||||||
|
script = document.createElement('script');
|
||||||
|
script.src = 'https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoaded&render=explicit';
|
||||||
|
return document.head.appendChild(script);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -21305,9 +21312,6 @@ QR = (function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.posts = [];
|
this.posts = [];
|
||||||
if (g.VIEW === 'archive') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.captcha = Captcha.v2;
|
this.captcha = Captcha.v2;
|
||||||
$.on(d, '4chanXInitFinished', function() {
|
$.on(d, '4chanXInitFinished', function() {
|
||||||
return BoardConfig.ready(QR.initReady);
|
return BoardConfig.ready(QR.initReady);
|
||||||
@ -21337,10 +21341,7 @@ QR = (function() {
|
|||||||
},
|
},
|
||||||
initReady: function() {
|
initReady: function() {
|
||||||
var config, link, linkBot, navLinksBot, origToggle, prop;
|
var config, link, linkBot, navLinksBot, origToggle, prop;
|
||||||
QR.postingIsEnabled = !!$.id('postForm');
|
QR.postingIsEnabled = true;
|
||||||
if (!QR.postingIsEnabled) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
config = g.BOARD.config;
|
config = g.BOARD.config;
|
||||||
prop = function(key, def) {
|
prop = function(key, def) {
|
||||||
var ref;
|
var ref;
|
||||||
@ -21356,17 +21357,21 @@ QR = (function() {
|
|||||||
QR.max_duration_video = prop('max_webm_duration', 120);
|
QR.max_duration_video = prop('max_webm_duration', 120);
|
||||||
QR.forcedAnon = !!config.forced_anon;
|
QR.forcedAnon = !!config.forced_anon;
|
||||||
QR.spoiler = !!config.spoilers;
|
QR.spoiler = !!config.spoilers;
|
||||||
link = $.el('h1', {
|
if ((origToggle = $.id('togglePostFormLink'))) {
|
||||||
className: "qr-link-container"
|
link = $.el('h1', {
|
||||||
});
|
className: "qr-link-container"
|
||||||
$.extend(link, {
|
});
|
||||||
innerHTML: "<a href=\"javascript:;\" class=\"qr-link\">" + ((g.VIEW === "thread") ? "Reply to Thread" : "Start a Thread") + "</a>"
|
$.extend(link, {
|
||||||
});
|
innerHTML: "<a href=\"javascript:;\" class=\"qr-link\">" + ((g.VIEW === "thread") ? "Reply to Thread" : "Start a Thread") + "</a>"
|
||||||
QR.link = link.firstElementChild;
|
});
|
||||||
$.on(link.firstChild, 'click', function() {
|
QR.link = link.firstElementChild;
|
||||||
QR.open();
|
$.on(link.firstChild, 'click', function() {
|
||||||
return QR.nodes.com.focus();
|
QR.open();
|
||||||
});
|
return QR.nodes.com.focus();
|
||||||
|
});
|
||||||
|
$.before(origToggle, link);
|
||||||
|
origToggle.firstElementChild.textContent = 'Original Form';
|
||||||
|
}
|
||||||
if (g.VIEW === 'thread') {
|
if (g.VIEW === 'thread') {
|
||||||
linkBot = $.el('div', {
|
linkBot = $.el('div', {
|
||||||
className: "brackets-wrap qr-link-container-bottom"
|
className: "brackets-wrap qr-link-container-bottom"
|
||||||
@ -21382,9 +21387,6 @@ QR = (function() {
|
|||||||
$.prepend(navLinksBot, linkBot);
|
$.prepend(navLinksBot, linkBot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
origToggle = $.id('togglePostFormLink');
|
|
||||||
$.before(origToggle, link);
|
|
||||||
origToggle.firstElementChild.textContent = 'Original Form';
|
|
||||||
$.on(d, 'QRGetFile', QR.getFile);
|
$.on(d, 'QRGetFile', QR.getFile);
|
||||||
$.on(d, 'QRSetFile', QR.setFile);
|
$.on(d, 'QRSetFile', QR.setFile);
|
||||||
$.on(d, 'paste', QR.paste);
|
$.on(d, 'paste', QR.paste);
|
||||||
|
|||||||
Binary file not shown.
@ -3,7 +3,7 @@
|
|||||||
"4chan-x@4chan-x.net": {
|
"4chan-x@4chan-x.net": {
|
||||||
"updates": [
|
"updates": [
|
||||||
{
|
{
|
||||||
"version": "1.14.0.15",
|
"version": "1.14.1.0",
|
||||||
"update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx"
|
"update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -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.14.0.15' />
|
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.1.0' />
|
||||||
</app>
|
</app>
|
||||||
</gupdate>
|
</gupdate>
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
"4chan-x@4chan-x.net": {
|
"4chan-x@4chan-x.net": {
|
||||||
"updates": [
|
"updates": [
|
||||||
{
|
{
|
||||||
"version": "1.14.0.15",
|
"version": "1.14.1.0",
|
||||||
"update_link": "https://www.4chan-x.net/builds/4chan-X.crx"
|
"update_link": "https://www.4chan-x.net/builds/4chan-X.crx"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -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.14.0.15' />
|
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.14.1.0' />
|
||||||
</app>
|
</app>
|
||||||
</gupdate>
|
</gupdate>
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"version": "1.14.0.15",
|
"version": "1.14.1.0",
|
||||||
"date": "2018-05-05T22:44:48.373Z"
|
"date": "2018-05-17T06:35:55.533Z"
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user