Guest User

Untitled

a guest
Jul 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <JavaScript function called from XUL document>
  2. var content_1 = gBrowser.contentDocument;
  3.  
  4. Application.activeWindow.activeTab.contentDocument = content_1;
  5.  
  6. var targetDoc = Application.activeWindow.activeTab.contentDocument;
  7. var newRoot = targetDoc.importNode(content_1.documentElement, true);
  8. targetDoc.replaceChild(newRoot, targetDoc.documentElement);
Add Comment
Please, Sign In to add comment