{"action":"created","issue":{"url":"https://api.github.com/repos/gorhill/uBlock/issues/1013","labels_url":"https://api.github.com/repos/gorhill/uBlock/issues/1013/labels{/name}","comments_url":"https://api.github.com/repos/gorhill/uBlock/issues/1013/comments","events_url":"https://api.github.com/repos/gorhill/uBlock/issues/1013/events","html_url":"https://github.com/gorhill/uBlock/issues/1013","id":61682228,"number":1013,"title":"Unable to block browser take-over scripts in malware/phishing sites, or at least block redirects to such sites","user":{"login":"vasvasvas","id":2830093,"avatar_url":"https://avatars.githubusercontent.com/u/2830093?v=3","gravatar_id":"","url":"https://api.github.com/users/vasvasvas","html_url":"https://github.com/vasvasvas","followers_url":"https://api.github.com/users/vasvasvas/followers","following_url":"https://api.github.com/users/vasvasvas/following{/other_user}","gists_url":"https://api.github.com/users/vasvasvas/gists{/gist_id}","starred_url":"https://api.github.com/users/vasvasvas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasvasvas/subscriptions","organizations_url":"https://api.github.com/users/vasvasvas/orgs","repos_url":"https://api.github.com/users/vasvasvas/repos","events_url":"https://api.github.com/users/vasvasvas/events{/privacy}","received_events_url":"https://api.github.com/users/vasvasvas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-03-14T19:23:15Z","updated_at":"2015-03-26T13:38:21Z","closed_at":"2015-03-25T23:28:29Z","body":"An evil and ever more common phishing trick is to redirect a search result to a site that throws up an impossible to dismiss popup window warning that your system is comprimised by viruses. For example:\r\n\r\n(warning, do not click on these unless you're prepared to kill your browser)\r\nhttp://mac-system-alert.com/warning.html\r\nhttp://informationdoc.com/rr/\r\n\r\nI've made many attempts to craft custom filters and dynamic filters to prevent these. I'm pretty sure there is no way to do so. NoScript would do the trick, but it doesn't exist for Safari. It seems like this is something that uBlock could or should do. \r\n\r\nThis article describes the problem and maintains a list of such sites:\r\nhttps://sites.google.com/site/appleclubfhs/support/advice-and-articles/browser-popup-hijack-safari"},"comment":{"url":"https://api.github.com/repos/gorhill/uBlock/issues/comments/86516718","html_url":"https://github.com/gorhill/uBlock/issues/1013#issuecomment-86516718","issue_url":"https://api.github.com/repos/gorhill/uBlock/issues/1013","id":86516718,"user":{"login":"gorhill","id":585534,"avatar_url":"https://avatars.githubusercontent.com/u/585534?v=3","gravatar_id":"","url":"https://api.github.com/users/gorhill","html_url":"https://github.com/gorhill","followers_url":"https://api.github.com/users/gorhill/followers","following_url":"https://api.github.com/users/gorhill/following{/other_user}","gists_url":"https://api.github.com/users/gorhill/gists{/gist_id}","starred_url":"https://api.github.com/users/gorhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorhill/subscriptions","organizations_url":"https://api.github.com/users/gorhill/orgs","repos_url":"https://api.github.com/users/gorhill/repos","events_url":"https://api.github.com/users/gorhill/events{/privacy}","received_events_url":"https://api.github.com/users/gorhill/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T13:38:20Z","updated_at":"2015-03-26T13:38:20Z","body":"@Deathamns Thanks, it worked (just added a check for `type === 'main_frame')`). "}}