From 5dfc7703e6fc28e5ee731d1ce0db0a6a97ce9039 Mon Sep 17 00:00:00 2001 From: bigplayer-ai <119108387+bigplayer-ai@users.noreply.github.com> Date: Mon, 25 Dec 2023 15:10:08 +0200 Subject: [PATCH] Added Random Strings Added Random Strings --- powerdeletesuite.js | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/powerdeletesuite.js b/powerdeletesuite.js index be05a73..1ccfcb9 100644 --- a/powerdeletesuite.js +++ b/powerdeletesuite.js @@ -1,6 +1,28 @@ var pd = { - version: "1.4.8", + version: "1.4.9", bookmarkver: "1.4", + editStrings: [ + "I love ice cream.", + "I hate beer.", + "My favorite color is blue.", + "I enjoy reading books.", + "I like to go hiking.", + "My favorite movie is Inception.", + "I enjoy playing video games.", + "I like to travel.", + "I'm learning to play the guitar.", + "I enjoy cooking.", + "I love listening to music.", + "I enjoy watching the sunset.", + "I like to explore new places.", + "I find joy in reading a good book.", + "I appreciate a good cup of coffee.", + "I enjoy spending time with my friends.", + "I like learning new things.", + "I find peace in long walks.", + "I enjoy the sound of rain.", + "I love the smell of fresh bread.", + ], init: function () { pd.checks.versions(); if (window.pd_processing !== true) { @@ -699,12 +721,14 @@ var pd = { edit: function (item) { setTimeout(() => { if (pd.performActions) { + var randomEditString = + pd.editStrings[Math.floor(Math.random() * pd.editStrings.length)]; $.ajax({ url: "/api/editusertext", method: "post", data: { thing_id: item.data.name, - text: pd.task.config.editText, + text: randomEditString, id: "#form-" + item.data.name, r: item.data.subreddit, uh: pd.config.uh,