Remove updater from the master branch

This commit is contained in:
Nicolas Stepien 2011-09-18 03:31:57 +02:00
parent 0e76ea9eac
commit e9a68b85b2
3 changed files with 2 additions and 22 deletions

View File

@ -60,7 +60,7 @@
*/
(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;
config = {
main: {
@ -73,8 +73,7 @@
'Comment Expansion': [true, 'Expand too long comments'],
'Thread Expansion': [true, 'View all replies'],
'Index Navigation': [true, 'Navigate to previous / next thread'],
'Reply Navigation': [false, 'Navigate to top / bottom of thread'],
'Check for Updates': [true, 'Check for updated versions of 4chan x (disabled on master)']
'Reply Navigation': [false, 'Navigate to top / bottom of thread']
},
Hiding: {
'Reply Hiding': [true, 'Hide single replies'],
@ -188,7 +187,6 @@
}
})(null, config);
NAMESPACE = 'AEOS.4chan_x.';
VERSION = 'master';
SECOND = 1000;
MINUTE = 60 * SECOND;
HOUR = 60 * MINUTE;
@ -2847,11 +2845,6 @@
now = Date.now();
if (lastChecked < now - 1 * DAY) {
$.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;
hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {});
for (id in hiddenThreads) {
@ -3007,10 +3000,6 @@
origin = e.origin, data = e.data;
if (origin === 'http://sys.4chan.org') {
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: '\

View File

@ -1 +0,0 @@
window.postMessage('master', '*');

View File

@ -10,7 +10,6 @@ config =
'Thread Expansion': [true, 'View all replies']
'Index Navigation': [true, 'Navigate to previous / next 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:
'Reply Hiding': [true, 'Hide single replies']
'Thread Hiding': [true, 'Hide entire threads']
@ -112,7 +111,6 @@ conf = {}
) null, config
NAMESPACE = 'AEOS.4chan_x.'
VERSION = 'master'
SECOND = 1000
MINUTE = 60*SECOND
HOUR = 60*MINUTE
@ -2216,9 +2214,6 @@ Main =
if lastChecked < now - 1*DAY
$.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
hiddenThreads = $.get "hiddenThreads/#{g.BOARD}/", {}
@ -2357,9 +2352,6 @@ Main =
{origin, data} = e
if origin is 'http://sys.4chan.org'
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: '
/* dialog styling */