Board Thread:General Coding Help/@comment-9605025-20180428232938/@comment-27958705-20180501223708

does ur console say about undefined functions? if yes, then probably mw.util is not defined yet. use mw.loader.using('mediawiki.util').then(function { //place whole code here });