petar_bonov

ad referer fix -- change

May 12th, 2025
216
0
253 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // BEFORE
  2.  
  3. divElement.innerHTML = `${parsedDocument.head.innerHTML}${parsedDocument.body.innerHTML}`;
  4.  
  5. // AFTER
  6.  
  7. const fragment = document.createRange().createContextualFragment(`${parsedDocument.head.innerHTML}${parsedDocument.body.innerHTML}`);
  8. divElement.appendChild(fragment);
Advertisement
Add Comment
Please, Sign In to add comment