smarter redirect. closes #10

This commit is contained in:
James Campos 2011-04-24 17:39:22 -07:00
parent 978d2a3d5e
commit 2ebbc743bf
2 changed files with 2 additions and 2 deletions

View File

@ -2022,7 +2022,7 @@
}
if (navtopr = $('#navtopr')) {
options.init();
} else if ($.config('404 Redirect') && d.title === '4chan - 404') {
} else if ($.config('404 Redirect') && d.title === '4chan - 404' && /^\d+$/.test(g.THREAD_ID)) {
redirect();
} else {
return;

View File

@ -1555,7 +1555,7 @@ main =
return
if navtopr = $ '#navtopr'
options.init()
else if $.config('404 Redirect') and d.title is '4chan - 404'
else if $.config('404 Redirect') and d.title is '4chan - 404' and /^\d+$/.test g.THREAD_ID
redirect()
else
return