{"action":"created","issue":{"url":"https://api.github.com/repos/gorhill/uBlock/issues/2252","repository_url":"https://api.github.com/repos/gorhill/uBlock","labels_url":"https://api.github.com/repos/gorhill/uBlock/issues/2252/labels{/name}","comments_url":"https://api.github.com/repos/gorhill/uBlock/issues/2252/comments","events_url":"https://api.github.com/repos/gorhill/uBlock/issues/2252/events","html_url":"https://github.com/gorhill/uBlock/issues/2252","id":196477663,"number":2252,"title":"Ability to remove DOM element instead of hiding? ","user":{"login":"kasper93","id":1126053,"avatar_url":"https://avatars0.githubusercontent.com/u/1126053?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper93","html_url":"https://github.com/kasper93","followers_url":"https://api.github.com/users/kasper93/followers","following_url":"https://api.github.com/users/kasper93/following{/other_user}","gists_url":"https://api.github.com/users/kasper93/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper93/subscriptions","organizations_url":"https://api.github.com/users/kasper93/orgs","repos_url":"https://api.github.com/users/kasper93/repos","events_url":"https://api.github.com/users/kasper93/events{/privacy}","received_events_url":"https://api.github.com/users/kasper93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-12-19T17:44:26Z","updated_at":"2017-05-16T20:35:46Z","closed_at":null,"body":"I know that it is canonical way to hide blocked elements. But sometimes it might be useful to actually remove DOM element. At least I don't have any other idea for the following testcase. \r\n\r\n1. Go to http://www.wykop.pl/\r\n666. Switch view mode to \"grid\". (button on right hand side - marked with red circle on screenshot)\r\n1337. You will see that ads are properly hidden, but this leave blank items in grid. When I manually remove hidden element, grid is properly shown - without blank spaces.\r\n\r\nTo reproduce those filters are needed. \r\n```\r\nwykop.pl##li.link:has(a[href*='wykop.pl/reklama'])\r\nwykop.pl##li.link:has(a[href*='wykop.pl/paylink'])\r\nwykop.pl##li.link:has(a[href*='wykop.pl/market'])\r\nwykop.pl##li.link:has(.adsbygoogle)\r\n```\r\n\r\nAny ideas how we can work this out? I know leftovers are not that bad, but still would be nice if we could remove them :)\r\n\r\n![wykop_leftovers](https://cloud.githubusercontent.com/assets/1126053/21322585/1c8088e4-c61a-11e6-90bb-b4866e60cc9c.png)\r\n"},"comment":{"url":"https://api.github.com/repos/gorhill/uBlock/issues/comments/301907633","html_url":"https://github.com/gorhill/uBlock/issues/2252#issuecomment-301907633","issue_url":"https://api.github.com/repos/gorhill/uBlock/issues/2252","id":301907633,"user":{"login":"kasper93","id":1126053,"avatar_url":"https://avatars0.githubusercontent.com/u/1126053?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper93","html_url":"https://github.com/kasper93","followers_url":"https://api.github.com/users/kasper93/followers","following_url":"https://api.github.com/users/kasper93/following{/other_user}","gists_url":"https://api.github.com/users/kasper93/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper93/subscriptions","organizations_url":"https://api.github.com/users/kasper93/orgs","repos_url":"https://api.github.com/users/kasper93/repos","events_url":"https://api.github.com/users/kasper93/events{/privacy}","received_events_url":"https://api.github.com/users/kasper93/received_events","type":"User","site_admin":false},"created_at":"2017-05-16T20:35:46Z","updated_at":"2017-05-16T20:35:46Z","body":"Another case where hiding leave blank space. When node is removed layout is properly calculated.\r\n\r\nhttps://userstyles.org/styles/browse"}}
{"actor":{"display_login":"kasper93"}}