    delete itm[search];
        }else{
            itm[search] = replacedobject;
        }
    }

    contentsDiv.innerText = `Processed ${selids.length} selected elements`;
    contentsDiv.scrollTop = 0;

}

function replacetextinsel()
{
    let search = document.getElementById('match_input').value;
    let searchreplace = document.getElementById('match_replace').value;
    const contentsDiv = document.getElementById('contents');

    let selids = [];
    for(let i=0;i<currdbidxs.length;+