Remove also sticky-positioned elements with click+DEL on scriptless pages (thanks skriptimaahinen for RFE).

This commit is contained in:
hackademix 2021-05-04 09:19:44 +02:00
parent 2c0ce093e2
commit 9a41297f44
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ function onScriptDisabled() {
let w = doc.defaultView;
if (w.getSelection().isCollapsed) {
let root = doc.body || doc.documentElement;
let posRx = /^(?:absolute|fixed)$/;
let posRx = /^(?:absolute|fixed|sticky)$/;
do {
if (posRx.test(w.getComputedStyle(el, '').position)) {
(eraser.tapped = el.parentNode).removeChild(el);