Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <JavaScript function called from XUL document>
- var content_1 = gBrowser.contentDocument;
- Application.activeWindow.activeTab.contentDocument = content_1;
- var targetDoc = Application.activeWindow.activeTab.contentDocument;
- var newRoot = targetDoc.importNode(content_1.documentElement, true);
- targetDoc.replaceChild(newRoot, targetDoc.documentElement);
Add Comment
Please, Sign In to add comment