Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Last active December 7, 2020 09:58
Show Gist options
  • Save gmolveau/ca235eebd6abee45f7f0835db8d935d1 to your computer and use it in GitHub Desktop.
Save gmolveau/ca235eebd6abee45f7f0835db8d935d1 to your computer and use it in GitHub Desktop.
threader app reader-view clean export

Snippet to clean the threader app reader view to print-it easily to PDF

Method 1 : paste this code in the console

document.querySelector("#readability-page-1 > div > div > div > div:last-child").style.display = "none";
document.querySelector("#readability-page-1 > div > div > div p:last-child").style.display = "none";
document.querySelector("#readability-page-1 > div > div > div ul").style.display = "none";
document.querySelector("#modalsignup").style.display = "none";
document.querySelector("#modalaction").style.display = "none";

Method 2 : add the following code in the URL field of a bookmark, and click on it while on threader_app :

javascript:document.querySelector(%22%23readability-page-1%20%3E%20div%20%3E%20div%20%3E%20div%20%3E%20div%3Alast-child%22).style.display%3D%22none%22%3Bdocument.querySelector(%22%23readability-page-1%20%3E%20div%20%3E%20div%20%3E%20div%20p%3Alast-child%22).style.display%3D%22none%22%3Bdocument.querySelector(%22%23readability-page-1%20%3E%20div%20%3E%20div%20%3E%20div%20ul%22).style.display%3D%22none%22%3Bdocument.querySelector(%22%23modalsignup%22).style.display%3D%22none%22%3Bdocument.querySelector(%22%23modalaction%22).style.display%3D%22none%22%3Bvoid+0
@Sushant199
Copy link

where am i supposed to add all this ? please guide a little.

@gmolveau
Copy link
Author

gmolveau commented Dec 7, 2020

I've updated the gist with more context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment