{"action":"opened","issue":{"url":"https://api.github.com/repos/raffjones/chrome-admin-menu-fix/issues/4","labels_url":"https://api.github.com/repos/raffjones/chrome-admin-menu-fix/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/raffjones/chrome-admin-menu-fix/issues/4/comments","events_url":"https://api.github.com/repos/raffjones/chrome-admin-menu-fix/issues/4/events","html_url":"https://github.com/raffjones/chrome-admin-menu-fix/issues/4","id":104554499,"number":4,"title":"Fast one liner to replace the plugin.","user":{"login":"Otto42","id":889736,"avatar_url":"https://avatars.githubusercontent.com/u/889736?v=3","gravatar_id":"","url":"https://api.github.com/users/Otto42","html_url":"https://github.com/Otto42","followers_url":"https://api.github.com/users/Otto42/followers","following_url":"https://api.github.com/users/Otto42/following{/other_user}","gists_url":"https://api.github.com/users/Otto42/gists{/gist_id}","starred_url":"https://api.github.com/users/Otto42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otto42/subscriptions","organizations_url":"https://api.github.com/users/Otto42/orgs","repos_url":"https://api.github.com/users/Otto42/repos","events_url":"https://api.github.com/users/Otto42/events{/privacy}","received_events_url":"https://api.github.com/users/Otto42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-02T19:24:19Z","updated_at":"2015-09-02T19:24:19Z","closed_at":null,"body":"Loading a separate file and an HTTP roundtrip is slightly overkill. Also, the JS could be much simpler.\r\n\r\nThis seems to do the job for me. \r\n\r\n     if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Chrome/45' ) !== false ) add_action('admin_head', create_function('', \"echo \\\"<script type='text/javascript'>jQuery(window).load(function(){jQuery('#adminmenuwrap').hide().show(0);});</script>\\\";\") );"}}