The TJ plug looks to be a bit different though.
maybe TJ is different, i was talking about 95YJ vs earlier style electronic senders -the early ones were a signal gen adapter that was screwing in where the speedo cable used to go, the one i had on the Jeep was 1 piece. seemed to me that the connector was the same but didn't look close enough to see if they are keyed differently or not.
EDIT:
this is the earlier style, don't have pics of the one that was on my np231, i swapped the one in the pics below with the one that was on the Jeep as it is shorter so never had a chance to check if the connectors are the same (the green gear is the one that was in the D300 - disregard it).