{"action":"created","issue":{"url":"https://api.github.com/repos/violentmonkey/violentmonkey/issues/349","repository_url":"https://api.github.com/repos/violentmonkey/violentmonkey","labels_url":"https://api.github.com/repos/violentmonkey/violentmonkey/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/violentmonkey/violentmonkey/issues/349/comments","events_url":"https://api.github.com/repos/violentmonkey/violentmonkey/issues/349/events","html_url":"https://github.com/violentmonkey/violentmonkey/issues/349","id":296898611,"number":349,"title":"GM_xmlhttpRequest does not work in synchronous mode","user":{"login":"soviet-man","id":33825590,"avatar_url":"https://avatars0.githubusercontent.com/u/33825590?v=4","gravatar_id":"","url":"https://api.github.com/users/soviet-man","html_url":"https://github.com/soviet-man","followers_url":"https://api.github.com/users/soviet-man/followers","following_url":"https://api.github.com/users/soviet-man/following{/other_user}","gists_url":"https://api.github.com/users/soviet-man/gists{/gist_id}","starred_url":"https://api.github.com/users/soviet-man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soviet-man/subscriptions","organizations_url":"https://api.github.com/users/soviet-man/orgs","repos_url":"https://api.github.com/users/soviet-man/repos","events_url":"https://api.github.com/users/soviet-man/events{/privacy}","received_events_url":"https://api.github.com/users/soviet-man/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-13T21:52:46Z","updated_at":"2018-02-14T11:46:32Z","closed_at":"2018-02-14T03:11:56Z","author_association":"NONE","body":"It works in asynchronous mode only which is by default.\r\n[GM wiki](https://wiki.greasespot.net/GM.xmlHttpRequest) says I can run this function in sync mode to obtain response right to the variable like this\r\n\r\n```\r\nvar response = GM.xmlHttpRequest({\r\n  method: \"GET\",\r\n  url: \"http://www.example.com/\",\r\n  synchronous: true,\r\n});\r\n```\r\nWhy cant I use sync mode in VM?\r\n\r\n**Second**. Why your method is called **GM_xmlhttpRequest**, when GM's one is **GM.xmlHttpRequest**? (with 'Http' starts with capital letter as it should if we use camelCase)\r\n\r\n**Third**. Why not making aliases for GM's functions like this\r\n**GM.method** --> **GM_method**"},"comment":{"url":"https://api.github.com/repos/violentmonkey/violentmonkey/issues/comments/365580481","html_url":"https://github.com/violentmonkey/violentmonkey/issues/349#issuecomment-365580481","issue_url":"https://api.github.com/repos/violentmonkey/violentmonkey/issues/349","id":365580481,"user":{"login":"soviet-man","id":33825590,"avatar_url":"https://avatars0.githubusercontent.com/u/33825590?v=4","gravatar_id":"","url":"https://api.github.com/users/soviet-man","html_url":"https://github.com/soviet-man","followers_url":"https://api.github.com/users/soviet-man/followers","following_url":"https://api.github.com/users/soviet-man/following{/other_user}","gists_url":"https://api.github.com/users/soviet-man/gists{/gist_id}","starred_url":"https://api.github.com/users/soviet-man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soviet-man/subscriptions","organizations_url":"https://api.github.com/users/soviet-man/orgs","repos_url":"https://api.github.com/users/soviet-man/repos","events_url":"https://api.github.com/users/soviet-man/events{/privacy}","received_events_url":"https://api.github.com/users/soviet-man/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T11:46:32Z","updated_at":"2018-02-14T11:46:32Z","author_association":"NONE","body":"What about synchronous mode?"}}
{"actor":{"display_login":"soviet-man"}}