Section 18. In a municipality that has accepted this chapter, this chapter shall supersede any local ordinances or by-laws to the contrary.