Return ASAP in images.4chan.org

This commit is contained in:
Nicolas Stepien 2012-01-04 16:24:04 +01:00
parent 5452d7f46b
commit b877f47b00
2 changed files with 14 additions and 2 deletions

View File

@ -3096,6 +3096,14 @@
$.onLoad(qr.sys);
return;
}
if (location.hostname === 'images.4chan.org') {
if (conf['404 Redirect']) {
$.onLoad(function() {
if (d.title === '4chan - 404') return redirect.init();
});
}
return;
}
$.onLoad(options.init);
$.on(window, 'message', Main.message);
now = Date.now();
@ -3146,7 +3154,7 @@
redirect.init();
return;
}
if (!$('#navtopr') || location.hostname === 'images.4chan.org') return;
if (!$.id('navtopr')) return;
$.addClass(d.body, engine);
$.addStyle(Main.css);
threading.init();

View File

@ -2397,6 +2397,10 @@ Main =
if location.hostname is 'sys.4chan.org'
$.onLoad qr.sys
return
if location.hostname is 'images.4chan.org'
if conf['404 Redirect']
$.onLoad -> redirect.init() if d.title is '4chan - 404'
return
$.onLoad options.init
@ -2476,7 +2480,7 @@ Main =
if conf['404 Redirect'] and d.title is '4chan - 404'
redirect.init()
return
if not $('#navtopr') or location.hostname is 'images.4chan.org'
if not $.id 'navtopr'
return
$.addClass d.body, engine
$.addStyle Main.css