Skip to content

Instantly share code, notes, and snippets.

@romasan
Last active December 13, 2020 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romasan/5696fd4e253e8d6d2c78daf35866fb05 to your computer and use it in GitHub Desktop.
Save romasan/5696fd4e253e8d6d2c78daf35866fb05 to your computer and use it in GitHub Desktop.
(() => {
let e = document.createElement('button');
e.innerText = 'split';
e.style = `
position: absolute;
right: 0px;
bottom: 0px;
z-index: 1;
border: 1px solid #000000;
`;
e.onclick = () => {
document.documentElement.innerHTML = `\
<frameset cols="50,50">
<frame src="${document.location.href}">
<frame src="${document.location.href}">
</frameset>`;
}
document.body.appendChild(e);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment