XF 1.4 Edit autolink function


Is there any way I can edit the autolink function so that when a link contains certain words to become plain text and not linkable?

I've tried editing /library/XenForo/BbCode/Formatter/BbCode/AutoLink.php but it seems that it doesn't have any effect.

I'd like this to have effect on existing posts. Basically strip certain links before they are outputted.