Skip to content

Instantly share code, notes, and snippets.

@szmeku
Created June 13, 2020 14:39
Show Gist options
  • Select an option

  • Save szmeku/f81e5f7e4e967c09abe16aca8b42c972 to your computer and use it in GitHub Desktop.

Select an option

Save szmeku/f81e5f7e4e967c09abe16aca8b42c972 to your computer and use it in GitHub Desktop.
// this could be injected to every page by Safe JS Injector
function sendToKindle(){
// copy here instapaper send to kindle bookmarklet code
}
const button = document.createElement('div');
button.onclick = sendToKindle;
button.style.display= 'block';
button.style.position= 'absolute';
button.style.background= 'red';
button.style.width= '30px';
button.style.height= '20px';
button.style.top= '0';
button.style.left= '0';
button.style.zIndex= '10000';
window.addEventListener('load', () => {
document.body.appendChild(button);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment