Return ASAP in images.4chan.org
This commit is contained in:
parent
5452d7f46b
commit
b877f47b00
@ -3096,6 +3096,14 @@
|
|||||||
$.onLoad(qr.sys);
|
$.onLoad(qr.sys);
|
||||||
return;
|
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);
|
$.onLoad(options.init);
|
||||||
$.on(window, 'message', Main.message);
|
$.on(window, 'message', Main.message);
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
@ -3146,7 +3154,7 @@
|
|||||||
redirect.init();
|
redirect.init();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!$('#navtopr') || location.hostname === 'images.4chan.org') return;
|
if (!$.id('navtopr')) return;
|
||||||
$.addClass(d.body, engine);
|
$.addClass(d.body, engine);
|
||||||
$.addStyle(Main.css);
|
$.addStyle(Main.css);
|
||||||
threading.init();
|
threading.init();
|
||||||
|
|||||||
@ -2397,6 +2397,10 @@ Main =
|
|||||||
if location.hostname is 'sys.4chan.org'
|
if location.hostname is 'sys.4chan.org'
|
||||||
$.onLoad qr.sys
|
$.onLoad qr.sys
|
||||||
return
|
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
|
$.onLoad options.init
|
||||||
|
|
||||||
@ -2476,7 +2480,7 @@ Main =
|
|||||||
if conf['404 Redirect'] and d.title is '4chan - 404'
|
if conf['404 Redirect'] and d.title is '4chan - 404'
|
||||||
redirect.init()
|
redirect.init()
|
||||||
return
|
return
|
||||||
if not $('#navtopr') or location.hostname is 'images.4chan.org'
|
if not $.id 'navtopr'
|
||||||
return
|
return
|
||||||
$.addClass d.body, engine
|
$.addClass d.body, engine
|
||||||
$.addStyle Main.css
|
$.addStyle Main.css
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user