add options at the end of main
makes bug-finding easier - if the options show up, we know that main completed successfully.
This commit is contained in:
parent
0cea48c48b
commit
dfb80ef16a
13
4chan_x.js
13
4chan_x.js
@ -2013,7 +2013,7 @@
|
|||||||
};
|
};
|
||||||
main = {
|
main = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var DAY, callback, cutoff, hiddenThreads, id, lastChecked, navtopr, now, pathname, temp, timestamp, tzOffset, _i, _len, _ref2, _ref3;
|
var DAY, callback, cutoff, hiddenThreads, id, lastChecked, now, pathname, temp, timestamp, tzOffset, _i, _len, _ref2, _ref3;
|
||||||
pathname = location.pathname.substring(1).split('/');
|
pathname = location.pathname.substring(1).split('/');
|
||||||
g.BOARD = pathname[0], temp = pathname[1];
|
g.BOARD = pathname[0], temp = pathname[1];
|
||||||
if (temp === 'res') {
|
if (temp === 'res') {
|
||||||
@ -2026,11 +2026,11 @@
|
|||||||
qr.sys();
|
qr.sys();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (navtopr = $('#navtopr')) {
|
if ($.config('404 Redirect') && d.title === '4chan - 404' && /^\d+$/.test(g.THREAD_ID)) {
|
||||||
options.init();
|
|
||||||
} else if ($.config('404 Redirect') && d.title === '4chan - 404' && /^\d+$/.test(g.THREAD_ID)) {
|
|
||||||
redirect();
|
redirect();
|
||||||
} else {
|
return;
|
||||||
|
}
|
||||||
|
if (!$('#navtopr')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Favicon.halo = /ws/.test(Favicon["default"]) ? Favicon.haloSFW : Favicon.haloNSFW;
|
Favicon.halo = /ws/.test(Favicon["default"]) ? Favicon.haloSFW : Favicon.haloNSFW;
|
||||||
@ -2138,7 +2138,8 @@
|
|||||||
callback = _ref3[_i];
|
callback = _ref3[_i];
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
return $.bind(d.body, 'DOMNodeInserted', nodeInserted);
|
$.bind(d.body, 'DOMNodeInserted', nodeInserted);
|
||||||
|
return options.init();
|
||||||
},
|
},
|
||||||
css: '\
|
css: '\
|
||||||
/* dialog styling */\
|
/* dialog styling */\
|
||||||
|
|||||||
@ -1551,11 +1551,10 @@ main =
|
|||||||
if location.hostname is 'sys.4chan.org'
|
if location.hostname is 'sys.4chan.org'
|
||||||
qr.sys()
|
qr.sys()
|
||||||
return
|
return
|
||||||
if navtopr = $ '#navtopr'
|
if $.config('404 Redirect') and d.title is '4chan - 404' and /^\d+$/.test g.THREAD_ID
|
||||||
options.init()
|
|
||||||
else if $.config('404 Redirect') and d.title is '4chan - 404' and /^\d+$/.test g.THREAD_ID
|
|
||||||
redirect()
|
redirect()
|
||||||
else
|
return
|
||||||
|
if not $ '#navtopr'
|
||||||
return
|
return
|
||||||
|
|
||||||
Favicon.halo = if /ws/.test Favicon.default then Favicon.haloSFW else Favicon.haloNSFW
|
Favicon.halo = if /ws/.test Favicon.default then Favicon.haloSFW else Favicon.haloNSFW
|
||||||
@ -1660,6 +1659,7 @@ main =
|
|||||||
|
|
||||||
callback() for callback in g.callbacks
|
callback() for callback in g.callbacks
|
||||||
$.bind d.body, 'DOMNodeInserted', nodeInserted
|
$.bind d.body, 'DOMNodeInserted', nodeInserted
|
||||||
|
options.init()
|
||||||
|
|
||||||
css: '
|
css: '
|
||||||
/* dialog styling */
|
/* dialog styling */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user