I would think one way to get around this 30 day rule would be to borrow short term to buy shares in one's TFSA, purchase the shares for the TFSA, then sell the equivalent number of shares (at a loss) in the investment account to pay back the loan if a loan is required. Because the purchase preceeded the sale, I believe this doesn't make the capital loss superficial.