Remove updater from the master branch
This commit is contained in:
parent
0e76ea9eac
commit
e9a68b85b2
@ -60,7 +60,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var $, $$, DAY, Favicon, HOUR, MINUTE, Main, NAMESPACE, Recaptcha, SECOND, Time, VERSION, anonymize, conf, config, cooldown, d, expandComment, expandThread, firstRun, g, getTitle, imgExpand, imgGif, imgHover, imgPreloading, key, keybinds, log, nav, nodeInserted, options, qr, quoteBacklink, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, threadHiding, threadStats, threading, titlePost, ui, unread, updater, val, watcher;
|
var $, $$, DAY, Favicon, HOUR, MINUTE, Main, NAMESPACE, Recaptcha, SECOND, Time, anonymize, conf, config, cooldown, d, expandComment, expandThread, firstRun, g, getTitle, imgExpand, imgGif, imgHover, imgPreloading, key, keybinds, log, nav, nodeInserted, options, qr, quoteBacklink, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, revealSpoilers, sauce, threadHiding, threadStats, threading, titlePost, ui, unread, updater, val, watcher;
|
||||||
var __slice = Array.prototype.slice;
|
var __slice = Array.prototype.slice;
|
||||||
config = {
|
config = {
|
||||||
main: {
|
main: {
|
||||||
@ -73,8 +73,7 @@
|
|||||||
'Comment Expansion': [true, 'Expand too long comments'],
|
'Comment Expansion': [true, 'Expand too long comments'],
|
||||||
'Thread Expansion': [true, 'View all replies'],
|
'Thread Expansion': [true, 'View all replies'],
|
||||||
'Index Navigation': [true, 'Navigate to previous / next thread'],
|
'Index Navigation': [true, 'Navigate to previous / next thread'],
|
||||||
'Reply Navigation': [false, 'Navigate to top / bottom of thread'],
|
'Reply Navigation': [false, 'Navigate to top / bottom of thread']
|
||||||
'Check for Updates': [true, 'Check for updated versions of 4chan x (disabled on master)']
|
|
||||||
},
|
},
|
||||||
Hiding: {
|
Hiding: {
|
||||||
'Reply Hiding': [true, 'Hide single replies'],
|
'Reply Hiding': [true, 'Hide single replies'],
|
||||||
@ -188,7 +187,6 @@
|
|||||||
}
|
}
|
||||||
})(null, config);
|
})(null, config);
|
||||||
NAMESPACE = 'AEOS.4chan_x.';
|
NAMESPACE = 'AEOS.4chan_x.';
|
||||||
VERSION = 'master';
|
|
||||||
SECOND = 1000;
|
SECOND = 1000;
|
||||||
MINUTE = 60 * SECOND;
|
MINUTE = 60 * SECOND;
|
||||||
HOUR = 60 * MINUTE;
|
HOUR = 60 * MINUTE;
|
||||||
@ -2847,11 +2845,6 @@
|
|||||||
now = Date.now();
|
now = Date.now();
|
||||||
if (lastChecked < now - 1 * DAY) {
|
if (lastChecked < now - 1 * DAY) {
|
||||||
$.set('lastChecked', now);
|
$.set('lastChecked', now);
|
||||||
if (conf['Check for Updates'] && VERSION !== 'master') {
|
|
||||||
$.add(d.head, $.el('script', {
|
|
||||||
src: 'https://raw.github.com/aeosynth/4chan-x/stable/latest.js'
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
cutoff = now - 7 * DAY;
|
cutoff = now - 7 * DAY;
|
||||||
hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {});
|
hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {});
|
||||||
for (id in hiddenThreads) {
|
for (id in hiddenThreads) {
|
||||||
@ -3007,10 +3000,6 @@
|
|||||||
origin = e.origin, data = e.data;
|
origin = e.origin, data = e.data;
|
||||||
if (origin === 'http://sys.4chan.org') {
|
if (origin === 'http://sys.4chan.org') {
|
||||||
return qr.message(data);
|
return qr.message(data);
|
||||||
} else {
|
|
||||||
if (data !== VERSION && confirm('a newer version of 4chan x is available, would you like to install it now?')) {
|
|
||||||
return window.location = 'https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
css: '\
|
css: '\
|
||||||
|
|||||||
@ -10,7 +10,6 @@ config =
|
|||||||
'Thread Expansion': [true, 'View all replies']
|
'Thread Expansion': [true, 'View all replies']
|
||||||
'Index Navigation': [true, 'Navigate to previous / next thread']
|
'Index Navigation': [true, 'Navigate to previous / next thread']
|
||||||
'Reply Navigation': [false, 'Navigate to top / bottom of thread']
|
'Reply Navigation': [false, 'Navigate to top / bottom of thread']
|
||||||
'Check for Updates': [true, 'Check for updated versions of 4chan x (disabled on master)']
|
|
||||||
Hiding:
|
Hiding:
|
||||||
'Reply Hiding': [true, 'Hide single replies']
|
'Reply Hiding': [true, 'Hide single replies']
|
||||||
'Thread Hiding': [true, 'Hide entire threads']
|
'Thread Hiding': [true, 'Hide entire threads']
|
||||||
@ -112,7 +111,6 @@ conf = {}
|
|||||||
) null, config
|
) null, config
|
||||||
|
|
||||||
NAMESPACE = 'AEOS.4chan_x.'
|
NAMESPACE = 'AEOS.4chan_x.'
|
||||||
VERSION = 'master'
|
|
||||||
SECOND = 1000
|
SECOND = 1000
|
||||||
MINUTE = 60*SECOND
|
MINUTE = 60*SECOND
|
||||||
HOUR = 60*MINUTE
|
HOUR = 60*MINUTE
|
||||||
@ -2216,9 +2214,6 @@ Main =
|
|||||||
if lastChecked < now - 1*DAY
|
if lastChecked < now - 1*DAY
|
||||||
$.set 'lastChecked', now
|
$.set 'lastChecked', now
|
||||||
|
|
||||||
if conf['Check for Updates'] and VERSION isnt 'master'
|
|
||||||
$.add d.head, $.el 'script', src: 'https://raw.github.com/aeosynth/4chan-x/stable/latest.js'
|
|
||||||
|
|
||||||
cutoff = now - 7*DAY
|
cutoff = now - 7*DAY
|
||||||
hiddenThreads = $.get "hiddenThreads/#{g.BOARD}/", {}
|
hiddenThreads = $.get "hiddenThreads/#{g.BOARD}/", {}
|
||||||
|
|
||||||
@ -2357,9 +2352,6 @@ Main =
|
|||||||
{origin, data} = e
|
{origin, data} = e
|
||||||
if origin is 'http://sys.4chan.org'
|
if origin is 'http://sys.4chan.org'
|
||||||
qr.message data
|
qr.message data
|
||||||
else
|
|
||||||
if data isnt VERSION and confirm 'a newer version of 4chan x is available, would you like to install it now?'
|
|
||||||
window.location = 'https://github.com/aeosynth/4chan-x/raw/stable/4chan_x.user.js'
|
|
||||||
|
|
||||||
css: '
|
css: '
|
||||||
/* dialog styling */
|
/* dialog styling */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user