Midnight Rx/References

General

 * This episode reveals that Lisa takes Xanax and Zoloft for stress problems.
 * When Homer, Grandpa, Flanders, and Apu go to Winnipeg a sign can be seen as they enter the city. It reads: Welcome to Winnipeg. We were born here, what's your excuse?
 * The couch gag features Lisa saying "What, can't we sit on the couch without something happening?". This references the couch gag in "The Call of the Simpsons", where the family run onto the couch and nothing happens.

Broadcast

 * Ironically, with part of the episode taking place in Winnipeg, CKND, the Winnipeg station that airs first-run episodes of The Simpsons, aired an NFL playoff game on January 16, 2005 in place of this episode.
 * Krusty the Clown mentions that he needs lithium dibromide (LiBr) to treat his bipolar disorder. Lithium dibromide appears to be a reference to either lithium bromide, which is used in air-conditioning systems, or lithium carbonate which is commonly used to treat bipolar disorder. Lithium dibromide is also incorrectly named using the system of IUPAC nomenclature of inorganic chemistry. This line was cut from the episode when it aired on Sky One. What is heard on the UK airing is the end of his speech which is "Nobody likes a bipolar clown." Krusty does his trademark laugh, then begins to cry. He repeats this laugh-cry pattern a few times.

Goofs

 * When the Canadian Ned offers Flanders a "reeferino" and says that "it's legal here", this is somewhat incorrect as non-medicinal marijuana is still technically illegal in Canada, but punishment for possession of the drug in small amounts is relatively minor, and jail time for possession is very unlikely. This scene makes reference to the ongoing debate about the de-criminalization of marijuana in Canada.
 * When Homer, Grandpa, Ned and Apu are returning to the United States, they encounter an RCMP officer at the border, in full uniform. In actuality, RCMP officers only wear the Red Serge on special occasions; as well, the CBSA is responsible for patrolling the border on the Canadian side, not the RCMP. Additionally, in reality when crossing the Canada - United States border, people only need to check in with the country they are entering, not the one they are leaving. These three exact errors also happened in an episode of That 70's Show. One more small issue is when one RCMP officer asks the other if Homer had a passport, when in reality passports at the time were not required to cross the border.
 * Earlier in the show Mr. Burns mentions that rain makes the Plywood Pelican catch fire. Later, it is shown in a dock.

Cultural references

 * The title is a parody of the film .
 * The drug store is called "Dudley Do Drugs" a parody of Dudley Do-Right.
 * Huey Lewis' single "I Want a New Drug" was used in the Pharmaceutical Ad. The video was a modified cartoon version of the band's actual music video.
 * During their last drug run, when Homer asks Johnny how he can repay him, Johnny responded by saying that he would like to see someone "with an IQ of a child get executed by the state" because they "don't get that up here." Canada officially abolished the death penalty in 1976.
 * The man at the employment agency plays a game clearly modelled after .
 * The scene in which Mr. Burns revives Smithers is a parody of the Disney movies Snow White and the Seven Dwarves (the glass coffin) and Sleeping Beauty (Smithers being locked in a palace room).
 * The banner at the U.S.-Canadian border reads that Canada is now " Free", a reference to Canadian singer Celine Dion moving to Las Vegas to perform nightly at Caesars Palace.
 * The song that is playing when Homer and Grandpa are getting the drugs is "White Rabbit" by Jefferson Airplane, a song with thinly veiled drug references.
 * The Springfield Air and Space Museum is a parody of the National Air and Space Museum in Washington, D.C.
 * Burns and Smithers flying by the moon in a makeshift aircraft while Burns says "Next stop...Pirate Island!" is a parody of .
 * When the 4 men drive to Canada a road sign can be seen that points to Gimli, Manitoba.

Aerospace References
This episode contains many references to aerospace and its history.
 * Spirit of Shelbyville (Parody of the )
 * The Plywood Pelican, which is an obvious reference to Howard Hughes', which in turn also references the Simpsons episode "$pringfield (Or, How I Learned to Stop Worrying and Love Legalized Gambling)" in which Mr Burns has a similar plane named the Spruce Moose.
 * The Plywood Pelican, which is an obvious reference to Howard Hughes', which in turn also references the Simpsons episode "$pringfield (Or, How I Learned to Stop Worrying and Love Legalized Gambling)" in which Mr Burns has a similar plane named the Spruce Moose.
 * The Plywood Pelican, which is an obvious reference to Howard Hughes', which in turn also references the Simpsons episode "$pringfield (Or, How I Learned to Stop Worrying and Love Legalized Gambling)" in which Mr Burns has a similar plane named the Spruce Moose.
 * The Plywood Pelican, which is an obvious reference to Howard Hughes', which in turn also references the Simpsons episode "$pringfield (Or, How I Learned to Stop Worrying and Love Legalized Gambling)" in which Mr Burns has a similar plane named the Spruce Moose.
 * The Plywood Pelican, which is an obvious reference to Howard Hughes', which in turn also references the Simpsons episode "$pringfield (Or, How I Learned to Stop Worrying and Love Legalized Gambling)" in which Mr Burns has a similar plane named the Spruce Moose.
 * The Plywood Pelican, which is an obvious reference to Howard Hughes', which in turn also references the Simpsons episode "$pringfield (Or, How I Learned to Stop Worrying and Love Legalized Gambling)" in which Mr Burns has a similar plane named the Spruce Moose.

Continuity

 * On the Canadian News, Homer is referred to as a former U.S. astronaut. ("Deep Space Homer")
 * Homer being restricted from entering Canada is a reference to the episode "Kill the Alligator and Run" which involves the whole Simpson family being banned from Florida.