Obfuscate and Delete Reddit Comments Older than User Specified Time
< 脚本 Reddit History Sanitizer 的反馈
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.
登录(不可用)以发布留言。
土豆服务器,请按需使用
镜像地址随时可能被墙,建议加群获取最新地址
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址
Whitelisting subreddits
Add this after the age declaration:
Then add this around the "toDelete" push:
That will prevent comments from those subs from being deleted.