Added Random Strings

Added Random Strings
This commit is contained in:
bigplayer-ai 2023-12-25 15:10:08 +02:00 committed by GitHub
parent 2af2363553
commit 5dfc7703e6

View file

@ -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,