The earliest known version of the format appeared in a comment by FunnyJunk user killerblue on a May 11th, 2011. The image shows the character Mikan from the 2006 Japanese eroge visual novel Wanko to Kuraso with the caption “Every time you repost / She gets raped” (shown below).
The meme is a derivative of Every time you masturbate, God kills a kitten, an old meme in which masturbation is said to result in God killing a kitten. An early example of the meme was posted in Barfly magazine in the year 2000 (shown below).
Over the next decade, memers reposed the Mikan image numerous times.
On June 28th, 2011, FunnyJunk user charliesheenwinn posted a screenshot of a comment chain featuring the Mikan image, received more than likes in less than 10 years (shown below, left). User hauntzor posted an edit of the Mikan version with the Okay Guy rage comic character, earming more than 30 likes in the same period (shown below, right).
The format experienced a comeback in early 2019. On February 15th, 2019, a variant of the Mikan image was posted to r/Animemes (shown below).
Variants of the catchphrase using different images and targeting other groups soon began to circulate. A popular derivative is the catchphrase, “Every time this gets reposted, X dies/gets beaten to death.”