Skip to content

Instantly share code, notes, and snippets.

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 GingerBear/36efef9b179bb79ec6b551fed6e6fc99 to your computer and use it in GitHub Desktop.
Save GingerBear/36efef9b179bb79ec6b551fed6e6fc99 to your computer and use it in GitHub Desktop.
inject js to ios that put catch
document.querySelector('#printLink').addEventListener('click', function() {
var iframe = document.querySelector('.printLink-iframe');
if (!iframe) {
iframe = document.createElement('div');
iframe.style.display = 'none';
iframe.classList.add('printLink-iframe');
}
iframe.innerHTML = '<iframe src="/printLink-iframe"></iframe>';
document.body.appendChild(iframe);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment