Tampermonkey scripts run in a separate area. This means that in order to make the feature available around the world, you will need to do something as follows:
window.updateGUI = function () {...}
, . , .
var myFunctions = window.myFunctions = {};
myFunctions.updateGUI = function () {...};
myFunctions.updateGUI();.