Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Do you really need to add this to the view? Why not add it to a JS file that loads after jquery and target your selector using a css class or data attribute?
Please add further details to clarify your question. At the moment it is unclear what you are trying to do. What are the user defined settings? Who is the user, the content author or a site user? Which settings are you trying to override?
Try inheriting from Sitecore.Links.UrlBuilders.ItemUrlBuilder and override the Build(item, options) method. BaseUrlBuilder doesn't appear to be registered in Services Config so this still does not appear to be using the IOC container.
Try moving the config to a zzz.Last folder and check if the patching order is correct. It will let you know if it's an issue with the config or load order.