Skip to content

Instantly share code, notes, and snippets.

@micromaomao
Created June 1, 2019 13:25
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 micromaomao/a1a2135586718364c9aede447b2091ab to your computer and use it in GitHub Desktop.
Save micromaomao/a1a2135586718364c9aede447b2091ab to your computer and use it in GitHub Desktop.
Mass delete stuff from repl.it
setInterval(() => {try {let ele=Array.prototype.slice.call(document.querySelectorAll('.jsx-2732537345.options-image-wrapper'),-1)[0];ele.click();ele.remove();document.querySelector('.contextMenu-menuItem-delete').dispatchEvent(new MouseEvent('mousedown', {bubbles: true}));
document.querySelector('.button-base-kind-danger').click()} catch (e) {}}, 200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment