Merge pull request #52 from bigplayer-ai/patch-1

It randomize strings for editing comments/posts, the UI needs to be updated.
This commit is contained in:
Wadie 2023-12-25 19:35:41 +01:00 committed by GitHub
commit f32845f721

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,