Skip to content

Instantly share code, notes, and snippets.

@misterburton
Last active September 18, 2023 13:44
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misterburton/8184eb30ed98475600d44ca9384f7af5 to your computer and use it in GitHub Desktop.
Save misterburton/8184eb30ed98475600d44ca9384f7af5 to your computer and use it in GitHub Desktop.
How to Delete All Tumblr Posts via JavaScript & the Browser Console
/*
Navitage to your mass post editor:
https://www.tumblr.com/mega-editor/[blog-name]
Open your browser's JavaScript Console and paste either of the following code snippets
*/
// delete 100 tumblr posts at a time (h/t Louis Lee: http://louisrli.github.io/blog/2013/05/11/how-to-delete-all-tumblr-posts/)
javascript:$('.overlay').slice(0, 100).click(); // you must now manually hit the 'delete' button at the top-right of the page
// delete all tumblr posts (h/t Hendry Sadrak [@hendrysadrak] a commenter on Li's above-linked post)
javascript:function z(){var a=$(".overlay");console.log("Overlays: "+a.length);250>a.length&&$(window).scrollTop($(document).height());a.slice(0,100).click();$("#nav_archive > div.editor_navigation > div:nth-child(1)").click()}window.alert=console.log.bind(console);window.confirm=function(a){return console.log(a),!0};z();setInterval(z,3E3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment