Dont get screwed like I did, know your tops. The pics show the obvious differences but other differences are there as well. Note the door frame on the YJ has a slight slant to it. Click on the link below ....
CJ, note no vent rear and straight front where top meets windshield.
YJ, note small vent rear and straight frontwhere top meets windshield.
TJ, large vent and 45 deg. angle on front where top meets windshield.