Remove also sticky-positioned elements with click+DEL on scriptless pages (thanks skriptimaahinen for RFE).
This commit is contained in:
parent
2c0ce093e2
commit
9a41297f44
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue