SHARE
TWEET

Untitled

a guest Oct 17th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function deleteSavedItems() {
  2.     var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]")
  3.     if (query.length) {
  4.         query[query.length -1].click();
  5.     }
  6.     if (query.length > 1) {
  7.         setTimeout(deleteSavedItems,100);
  8.     }
  9.     else {
  10.         console.log('Finished');
  11.     }
  12. }
  13. deleteSavedItems();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top