4 ms·
In Firefox, right click on popups and bring up "Inspect Element". Then find the top level element of the popup in the inspector, and Delete Node. The modal disa
by Animats 10y ago
In Firefox, right click on popups and bring up "Inspect Element". Then find the top level element of the popup in the inspector, and Delete Node. The modal disappears. This even bypasses some paywalls. Some sites won't then scroll, though.
An add-on to dismiss modals should be possible. Most people do ad-removal add-ons by looking for explicit HTML text, but there are more general approaches. Look for a big box that has a high Z index. That's the modal. Then proceed up the tree until you rejoin with the main document text. Delete the subtree with the modal. Then force scrolling behavior to return to the default.
- radley 10y agoHiding the element doesn't work in more than half the cases. Some plug-ins randomize the modal ids. Others hide the page scollbar unless you interact with the modal.
- techsupporter 10y agoDo you know of a way, say in the JavaScript console (I'm guessing?), to reset scroll behaviors? I'm not clever enough with JS or CSS to have figured it out. Deleting the modal using the inspector is what I do but I can't get around the scrolling...
- timdavila 10y agoThis will solve the problem for you on most sites: document.getElementsByTagName('html')[0].style.overflow = "scroll"; The css property you're looking for is "overflow," usually on the body or html tag.
- techsupporter 10y agoThank you, I didn't know the property name and it wasn't obvious (to me). :)
- Animats 10y agoI tried that on a page. The scroll bars reappeared, but were not draggable. Trying to drag them activated some mechanism which scrolled part of the screen. It may also be necessary to remove event listeners.