The scripts deletes one item at a time, waiting for its node removal and 1 second.
It will wait for new items to load in the page, so there is no need to preload the whole list.
Actually, if you preload the whole list before, it will make things slower and worse because every delete request contains all your displayed item list…
Usage:
-
Drop the content of cleaner.js in the browser console while in the cart page
-
Execute
cleaner.startDelete()
-
If needed, stop the script with
cleaner.stopDelete()
or reload the page