This script in place of the original will insert a 2 second delay between actions and prevent many of the HTTP errors seen when batch deleting posts and comments. I was having a ton of retries using the original script and being locked out of reddit for 5 minutes at a time. After several failures I injected this 2s delay which so far appears to be working much better.
javascript:(function(){window.bookmarkver="1.4";var isReddit=document.location.hostname.split(".").slice(-2).join(".")==="reddit.com";var isOverview=document.location.href.match(//overview\b/);if(isReddit&&isOverview){var cachBustUrl='https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?%27+(new Date().getDate());fetch(cachBustUrl).then(function(r){return r.text();}).then(function(data){var throttledData=data.replace(/item.action((.?))/g,%27setTimeout(()=>item.action($1),i2000)%27);var script=document.createElement("script");script.id="pd-script";script.innerHTML=throttledData;document.getElementsByTagName("head")[0].appendChild(script);}).catch(function(){alert("Error retrieving PowerDeleteSuite");});}else if(confirm("Go to your reddit profile to run this?")){document.location="https://old.reddit.com/u/me/overview";}else{alert("Please go to your profile first.");}})();
This script in place of the original will insert a 2 second delay between actions and prevent many of the HTTP errors seen when batch deleting posts and comments. I was having a ton of retries using the original script and being locked out of reddit for 5 minutes at a time. After several failures I injected this 2s delay which so far appears to be working much better.
javascript:(function(){window.bookmarkver="1.4";var isReddit=document.location.hostname.split(".").slice(-2).join(".")==="reddit.com";var isOverview=document.location.href.match(//overview\b/);if(isReddit&&isOverview){var cachBustUrl='https://raw.githubusercontent.com/j0be/PowerDeleteSuite/master/powerdeletesuite.js?%27+(new Date().getDate());fetch(cachBustUrl).then(function(r){return r.text();}).then(function(data){var throttledData=data.replace(/item.action((.?))/g,%27setTimeout(()=>item.action($1),i2000)%27);var script=document.createElement("script");script.id="pd-script";script.innerHTML=throttledData;document.getElementsByTagName("head")[0].appendChild(script);}).catch(function(){alert("Error retrieving PowerDeleteSuite");});}else if(confirm("Go to your reddit profile to run this?")){document.location="https://old.reddit.com/u/me/overview";}else{alert("Please go to your profile first.");}})();