Greasy Fork is available in English.

Reddit History Sanitizer

Obfuscate and Delete Reddit Comments Older than User Specified Time

< Feedback on Reddit History Sanitizer

Review: चांगली - स्क्रिप्ट चालते

Whitelisting subreddits

Add this after the age declaration:

// Whitelisted subs -- enter the names in lowercase!
var whiteList = ["somesub", "anothersub", "someothersub"];

Then add this around the "toDelete" push:

var subreddit = comments[i].querySelector("p.parent > a.subreddit").textContent;
if (whiteList.indexOf(subreddit.toLowerCase()) == -1)
{
    if (daysSincePost > age) toDelete.push(comments[i].getAttribute("id"));
}

That will prevent comments from those subs from being deleted.

उत्तर पोस्ट करा

उत्तर पोस्ट करण्यासाठी साइन इन करा.