Revert "Revert "Redirect native catalog to 4chan X catalog if 'Use 4chan X Catalog' is on. #247""

This reverts commit 11f38e14f82facc67f3770a89357fd56fadb156d.
This commit is contained in:
ccd0 2015-01-01 21:52:54 -08:00
parent 98d26d7191
commit 9ff7e7c1fd

View File

@ -65,6 +65,10 @@ Main =
ImageCommon.addControls video
return
if Conf['JSON Navigation'] and Conf['Use 4chan X Catalog'] and g.VIEW is 'catalog'
location.replace "//boards.4chan.org/#{g.BOARD}#catalog"
return
if Conf['Normalize URL'] and g.VIEW is 'thread'
pathname = location.pathname.split '/'
if pathname[2] isnt 'thread' or pathname.length > 4