Board Thread:General Coding Help/@comment-24014422-20170214113521/@comment-27345308-20170214142903

That would most likely be a Terms of Use violation if implemented through JavaScript. You can use MediaWiki:Titleblacklist or AbuseFilter extension for that, both of which can more easily accomplish what you're seeking for than JS and also aren't Terms of Use violations.