In the Red Dwarf 1997 episode "Tikka to Ride", the characters accidentally knock Lee Harvey Oswald out of the fifth-floor window of the Book Depository when they travel back in time to 1963 by mistake, creating an alternate timeline where Kennedy is impeached in 1965 for sharing a mistress with a mafia boss. Jumping forward in time to 1966, the crew learn that, due to Kennedy's impeachment, J. Edgar Hoover was blackmailed into running for president by the mob and allows Russia to establish nuclear missiles in Cuba, while Kennedy's impeachment traumatised the nation and allowed the USSR to win the space race while the southern states flee due to the fear of missiles from Cuba. Fearing the repercussions of this timeline, the crew go back to 1963 and redirect Oswald up to the sixth floor before their past selves can kill him, but realise that at that angle Oswald's trajectory is now too steep for him to do more than wound Kennedy. Unwilling to kill Kennedy themselves, the characters travel to 1965 and convince the alternate John F. Kennedy to go back in time and shoot his past self from the grassy knoll, arguing that this action will restore his historical position as a liberal icon ("Timeslides", an earlier episode of Red Dwarf, also jokingly mentions the possibility of preventing the assassination).
