{"action":"created","issue":{"url":"https://api.github.com/repos/ProximaNova/Booru-mass-editor/issues/18","repository_url":"https://api.github.com/repos/ProximaNova/Booru-mass-editor","labels_url":"https://api.github.com/repos/ProximaNova/Booru-mass-editor/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/ProximaNova/Booru-mass-editor/issues/18/comments","events_url":"https://api.github.com/repos/ProximaNova/Booru-mass-editor/issues/18/events","html_url":"https://github.com/ProximaNova/Booru-mass-editor/issues/18","id":150343718,"number":18,"title":"Conditionals for different software versions","user":{"login":"ProximaNova","id":4917546,"avatar_url":"https://avatars.githubusercontent.com/u/4917546?v=3","gravatar_id":"","url":"https://api.github.com/users/ProximaNova","html_url":"https://github.com/ProximaNova","followers_url":"https://api.github.com/users/ProximaNova/followers","following_url":"https://api.github.com/users/ProximaNova/following{/other_user}","gists_url":"https://api.github.com/users/ProximaNova/gists{/gist_id}","starred_url":"https://api.github.com/users/ProximaNova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProximaNova/subscriptions","organizations_url":"https://api.github.com/users/ProximaNova/orgs","repos_url":"https://api.github.com/users/ProximaNova/repos","events_url":"https://api.github.com/users/ProximaNova/events{/privacy}","received_events_url":"https://api.github.com/users/ProximaNova/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-22T11:26:05Z","updated_at":"2016-05-05T23:08:54Z","closed_at":null,"body":"````javascript\r\nif (\"Gelbooru Beta 0.1.11\") {\r\n    use: \"Booru-mass-editor.user.js\"\r\n} else if (\"Gelbooru Beta 0.2\") {\r\n    use: \"Booru-mass-editor-for-gelbooru-beta-0.2.user.js\"\r\n}\r\n````"},"comment":{"url":"https://api.github.com/repos/ProximaNova/Booru-mass-editor/issues/comments/217305781","html_url":"https://github.com/ProximaNova/Booru-mass-editor/issues/18#issuecomment-217305781","issue_url":"https://api.github.com/repos/ProximaNova/Booru-mass-editor/issues/18","id":217305781,"user":{"login":"ProximaNova","id":4917546,"avatar_url":"https://avatars.githubusercontent.com/u/4917546?v=3","gravatar_id":"","url":"https://api.github.com/users/ProximaNova","html_url":"https://github.com/ProximaNova","followers_url":"https://api.github.com/users/ProximaNova/followers","following_url":"https://api.github.com/users/ProximaNova/following{/other_user}","gists_url":"https://api.github.com/users/ProximaNova/gists{/gist_id}","starred_url":"https://api.github.com/users/ProximaNova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProximaNova/subscriptions","organizations_url":"https://api.github.com/users/ProximaNova/orgs","repos_url":"https://api.github.com/users/ProximaNova/repos","events_url":"https://api.github.com/users/ProximaNova/events{/privacy}","received_events_url":"https://api.github.com/users/ProximaNova/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T23:08:54Z","updated_at":"2016-05-05T23:08:54Z","body":"Issues with this script on Gelbooru Beta 0.2:\r\n````\r\n// close tab 10 sec. after the form is submitted `windows.close()` after 10 seconds doesn't always work for some shit reason:\r\n\r\n@@ -89,12 +89,10 @@ function simulateClickSubmit(element)\r\n      element.dispatchEvent(oEvent);\r\n  }\r\n  if (document.getElementById(\"my-tags\").textContent.match(/op:onload;op;/g)) {\r\n -    var myTagsSubmitOnLoadInfo = \"<li><span style='font-size:400%;position:relative;top:-15px;'>&#9758;</span> \" +\r\n -                                  \"<span style='position:relative;top:-30px;'>Submitting tag<br>\" +\r\n -                                  \"operation(s) on page load</li>\";\r\n      if (htmlDecode(document.getElementById(\"tags\").innerHTML) !== document.getElementById(\"tags\").value) {\r\n          simulateClickSubmit(document.getElementById(\"SubmitButton\"));\r\n +        setTimeout(function() {\r\n +            window.close();\r\n +        }, 10000);\r\n      }\r\n -} else {\r\n -    var myTagsSubmitOnLoadInfo = \"\";\r\n  }\r\n````"}}