{"issue":{"created_at":"2011-12-08T09:23:26Z","state":"closed","updated_at":"2011-12-08T09:23:30Z","comments":0,"user":{"gravatar_id":"5ba9f77b20f8ee7f7bab04ca792a5ea7","id":306256,"url":"https://api.github.com/users/passbe","avatar_url":"https://secure.gravatar.com/avatar/5ba9f77b20f8ee7f7bab04ca792a5ea7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"passbe"},"body":"Add a function to the beefjs api (/modules/beefjs/browser.js) called hasPopups() to detect if popup windows are allowed. When the function is executed the hooked browser user must not notice. \n\nThe below code snipped was copied from: http://www.jguru.com/faq/view.jsp?EID=1157429\n\nfunction IsPopupBlocker() {\n\tvar oWin = window.open(&quot;&quot;,&quot;testpopupblocker&quot;,&quot;width=100,height=50,top=5000,left=5000&quot;);\n\tif (oWin==null || typeof(oWin)==&quot;undefined&quot;) {\n\t\treturn true;\n\t} else {\n\t\toWin.close();\n\t\treturn false;\n\t}\n}\n\nif (IsPopupBlocker()) {\n\tdocument.write(&quot;You HAVE A POPUP BLOCKER&quot;);\n} else {\n\tdocument.write(&quot;Popup blocker NOT detected.&quot;);\n}<br><br><em>Google Code Issue: http://code.google.com/p/beef/issues/detail?id=159</em>","assignee":null,"id":2485234,"number":8,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"GC Imported Issue","color":"ededed","url":"https://api.github.com/repos/passbe/beef-migration-test-2/labels/GC+Imported+Issue"}],"title":"Add beefjs API Function: Popup Blocker","html_url":"https://github.com/passbe/beef-migration-test-2/issues/8","closed_at":"2011-12-08T09:23:30Z","url":"https://api.github.com/repos/passbe/beef-migration-test-2/issues/8","milestone":null},"action":"closed"}