You can solder some resistor to the wire to get stock optical endstops working.
http://www.soliforum.com/topic/15273/ho … -ramps-14/
I would recommend use mechanic endstops because they are easier to wire. you can 3d print an adaptor to get it fit if you buy one with large PCB board.
I solder resistor according to the instruction to the wire and get stock optical endstops worked except z-axis endstop burned. and I see other people followed the instruction also get the z-axis endstop burned, so keep that in mind.
I did not buy optical endstops, I teared apart some old inject printer that neighbor throw away looking for step motors with no luck(they only got DC motor). But i found optical endstops in it and it works for my Jr.
(Da Vinci 1.0, Jr. 1.0 RAMPS, miniMaker) X4, (Creality CR-10S, CR-10 mini, Ender-3) X4, Anycubic MEGA X4, Anycubic Chrion X1, ADMILAB Gantry X2 (MonoPrice Maker Select V2, Plus, Ultimate)X4--Select mini X1, Anycubic photon X4, Wanhao duplicate D7 X1.
iNSTONE Inventor Pro X2, CTC Dual X2, ANET-A8, Hictop 3DP-11, Solidoodle Press, FLSUN I3 2017X1