U.S.-traded shares Research In Motion rallied in after-hours trading on Thursday after the BlackBerry maker posted a smaller-than-expected quarterly loss excluding one-time items.

The company's Nasdaq-listed shares were last up 8 percent at $15.25, extending a 3.6-percent gain in regular trading hours. They are also on track to close with a fourth straight month of gains.

The stock has more than doubled since the start of September, including a more than 46 percent gain in November, but was still negative for the year at the close on Thursday.

(Reporting by Rodrigo Campos)