How to determine whether a given JavaScript action has been initiated by user | Dark Hacker News