add missing semicolons
replace tabs with spaces
remove spurious whitespace
fix indentation in block
add missing variable declaration
remove unnecessary declaration of menuItem
simplify setting of myPromo
remove duplicate requires
move common required features to top
simplify
break out callWithSelection script snippet
move shared text formatting function to THT module
let formatText expect a URL as well
use shared formatText function
add missing THT prefix
more consistent indentation
use contextMenu variable instead of require
use shared formatText function