« Return to Thread: Change href of external links

Re: Change href of external links

by agent2026 :: Rate this Message:

Reply to Author | View in Thread

Thanks guys, excellent solutions and points.  I've gone with Dave's solution, as it allows some tag flexibility without adding much code.

One question: is it not possible to combine .not arguments?  Tried playing with the quotes, but it only seems to work if they are separated.

.not("[@href*='internal.com/']")
.not("[@class*='thickbox']")

vs

.not("[@href*='internal.com/']" || "[@class*='thickbox']")  // or some variation


Adam

 « Return to Thread: Change href of external links

LightInTheBox - Buy quality products at wholesale price