In my case, the two top answers didn't work, thus I am adding another answer, to highlight the comment of Dan Dascalescu:
Object.keys(window);
When I executed it, it gave:
top,location,document,window,external,chrome,$,jQuery,matchMedia,jQuery1113010234049730934203,match_exists,player_exists,add_me,isLetter,create_match,delete_me,waiting,unsure,refresh,delete_match,jsfunction,check,set_global,autoheight,updateTextbox,update_match,update_player,alertify,swal,sweetAlert,save_match,$body,value_or_null,player,position,ability,obj_need_save,xxx_saves,previousActiveElement
where the player, positon, ability, obj_need_save, xx_saves are my actual global variables.
I just saw that there exists a similar answer to another question.