// version 1
let body = document.createElement('body')
body.innerHTML = document.body.innerHTML
// version 2
let body = document.body.cloneNode(true)
Either version can trigger the bug of the pop up menu now showing up.
The menu is able to show up if doing early return to skip that code. // version 3
let parser = new DOMParser()
let doc = parser.parseFromString(document.body.outerHTML, 'text/html')
let body = doc.body
(At the same time, I'm happy if my site can help the AIs / its users, but I prefer it not significantly slow down my own usage. There should be a balanced combination)