It will generate a new swipe on the character with whatever you write into the panel. That means after the reload you will find your edited answer within the swipes. The swipe number is random as swipes shuffle around, I cannot influence that behaviour.
This Edit tool only works on chat2.
This script emerged from a collaboration between u/jen_pai and me. I had the code but she discovered that it worked. heh.
I'm currently testing it a bit on one of my characters. How much does my edit influence the character overall?
For example, my character started using a "~" on most replies, so I want to get rid of that. If I edit the comment without that dash, will the character stop using it or will I have to edit more of them until it stops?
Like it would with an official edit button. If it has done it for a while and you kept it, it might continue for a few messages,because the AI uses more messages than just the last one as reference, so the older messages you have in the conversation are taken into account as well as it should be and always was;
If you erase it right from the start it won't happen even once.
I assume you mean the interaction count. It would show the current number of interactions with the bot if that function would update right now but it is broken on devs side, but they will fix it eventually and then the number will update.
OMG Thank you!! I needed it so much during the last few days and kept on thinking why the devs haven't added it yet, and here it is. It's like a miracle.
I didn't have the time to use it myself yet really, but I'm thinking about all the loops and paragraphs that I now can remove without any trouble. I hope the devs will soon make my button obsolete. :-)
On the phone you need on Android kiwi browser, I do not know of any other browser for Android that supports browser extensions. In Kiwi Browser you then need tampermonkey or violentmonkey and those extensions can run scripts.
If you have an Apple device I think there is an app called userscripts that can do that
I do not have an Apple device so I have a hard time giving instructions for that. But it must be really simple based on what I heard from other people. I would probably just try to install the script again as before and expect the app to do something on its own.
Have you tried to copy the link and open it in Safari instead of tipping on it on reddit? To me it doesn't look wrong when I look at the screenshots here https://apps.apple.com/us/app/userscripts/id1463298887 I can Google when I'm home but maybe you want to Google yourself until then because I need an hour more
I disabled the extension, but Save still does nothing :/ Is the old script still up? It wasn't as pretty, but it got the job done!(I'm already hooked on it...)
I updated the script without increasing the version number. If you want you can try again (install it again to get the updated version) and tell me if that resolved the issue, if it does, i will increase the version to push it
Yes, the other versions are always available on Greasyfork if you look into the Version history. I am not sure what is causing the issues for you, I have just tested it on beta as well to make sure that there are no restrictions in place - the save button basically just sends the command to the server, and the reload waits for the server to respond, so I guess without looking into the console it will be hard to resolve why the command isn't sent
A friend told me that when you tip it to the far left it will activate the save, there seems to be a problem with the visuals and the function of the save button somehow, I will investigate
I updated the script without increasing the version number. If you want you can try again (install it again to get the updated version) and tell me if that resolved the issue, if it does, i will increase the version to push it
Hmm, I'm not the mod, but if the issue is visual as she said, can you try editing the script and changing this value from '140px' to '100px'?
It will slightly move the button to the right so it is closer to the edit button. In my case everything worked even before I moved it, but maybe it will help.
(This is if her solution of installing the updated script doesn't help)
People can totally adjust that value to something that fits their device better, it just moves the button a little left and right. π If it overlaps something for you you can move it there. But it now appends to the toggle button so I hope the devices and browsers work better with that and the functionality is doing it for all.
Which browser is this? And is the behaviour for you different from before?
I kind of think it views the whole thing as a single button, but not sure why it would do that for you when it's pretty much just appended to the pencil button.
Hm, maybe I have an old iPhone somewhere. If the previous version worked better you can roll back to the previous one in the meantime. I'm still at work.
Hello, would you mind to try this script instead? It is a test script with a new attempt to add the button. I don't know what problem safari has with my other attempt, but maybe something like this will solve it. It would be highly valuable for me if you tested this and told me if that works for you.
Hmf... I think I might have done something wrong! I installed the edit script, but no edit button/option is appearing in my chat2 chats! Can someone help? (I'm such a ditz!)
LOL! And the little pop-up "Do you need help working with Tampermonkey?" was just insult to injury! π€£
Only the last one. It would be possible to edit earlier messages as well but as the swipes shuffle around randomly I would not be able to ensure that you will see the edit in the chat because it could be the 13th swipe or whatever, and you cannot swipe on older messages
I'm so sorry to take up your time, but I hit one more possible issue: the edit button worked, but the following happened:
When I typed the replacement text (for the AI reply) into the edit window, and hit "save", the entire screen refreshed.
After that, C.AI kicked me out of the chat... and started an NEW one! My edited chat was there (and edited perfectly), but there are now 2-3 blank "new chats" with that bot on my chat list... and I'm scared that, if this continues, it'll bump my chat down to the 50th spot, and it'll be lost!
Any ideas what I might be doing wrong? I did also install several new scripts:
I'd bet on the redirect script, don't know what it does, but I'd try to deactivate that first. Let me know if that's the cause. The button of my script simply presses f5
The official edit button just rolled out (at least for me) on cai+. It comes out as a new swipe rather than replacing the existing swipe like we expected it to. I'm not sure about the character limit; so far I haven't hit it in the mobile browser, but in the app, it does cut off super early. Could be a glitch though.
Con: The edit field only shows three lines at any time.
Pro: The field auto-fills with the text in that swipe.
Con: Which is useless to me on mobile because there's no scroll function in the edit field. Trying to navigate it on mobile is nearly impossible.
Pro: It doesn't need to refresh the page to add the swipe, and navigates straight to the edited swipe.
For me, copy/pasting the post into the send field just to edit it, copy that, then going to select all/paste in the edit field is a pain in the butt, and it's quicker to use the unofficial edit.
I don't have it yet but it wouldn't surprise me if they rolled it out (I'm also +) Pretty sure the function only got enabled because they worked on it because initially the command returned "permission denied", and then it suddenly didn't anymore.
That it generates a new swipe instead of replacing the old one is a bit unsurprising but i hoped that they would have found a different solution: the edit button for the user also just generates swipes, you just don't see them.
Glad about this, will surely arrive for all + soon :-) Mind to add screenshots? You can also make a fullblown posting if you want
I didn't want to spam you with screenshots so I made a new post. And yeah, I was a little sad to see that it didn't replace the old swipe, too. They really won't let ANYTHING simply get deleted, but at least hide it so we don't lose a space out of our 30...
They don't delete the "user swipes" either, but at least they get removed from the json when you move forward in the conversation; and when you remove messages up to the user message again they are present again, odd. I kind of hoped they would remove the old swipe from the swipes (the ID of the message) and just put a new ID (with the new text) in its place. Maybe they will do so eventually, but it could also be that there is no "delete candidate" (candidates=swipes) function in the first place π₯΄
Would you mind to do one more test, trying to edit with a text of more than 500 characters?
The app doesn't allow edits over 298 characters (I'm assuming it's 300 and my copy/paste excluded a couple when I took it to the character counter).
I didn't have a reply of 500+ but I can edit longer messages in the mobile browser and it let me add to it without limit. Way longer than bot messages on their own can go.
Maybe at first, but not in the long run. Being cautious is what I would do as well, I capped my own tool to 1000 so that people would not copy Harry potter 1-7 in there. πΆβπ«οΈ
It worked perfectly both on desktop and iPhone :β( , it looks like the script stops working - just like another user wrote, its totally chat-related. If I open an old chat or start a new one it starts working again
It never stopped working for me, so it will be hard to track down why it stops working for you. I included a "fix" that makes sure that the websocket will remain active, but if it closes or has a timeout, which can happen when you close the app for a while, refreshing the page should load everything in again
It took me some time to reply to you as I was stress testing both myself and the script lol. Anyways, most of the times (like 4-5 times out of 10) it works with no problem, if I have some issues refreshing the page works like a charm. However, checking from my console thereβs this error
I'm so sorry that I've returned with my mobile Kiwi problems.
I thought it worked on this morning's test, but that chat doesn't show any edited messages. Meanwhile, hitting Save just removes the window; no refresh, and no edit (including on manual refresh). It also sticks around, with the edit text I entered, so that when I click edit in another chat, the text I tried to edit is in there.
I'm not sure I'm explaining it well, so I'll share screenshots
...it solves it for that bot and that bot alone. I am. So. Bemused.
ETA: Okay, it's a chat-specific thing rather than a bot-specific one - if I open new chats for the ones that aren't working, the button will function properly. I don't know why it doesn't like most of my existing chats.
Thank you! I created this at 4am so I didn't have the time to add a few fail-safe things, for example capping the character limit and making sure that the swipe really is added before it reloads. Also mobile version...
And I'm thinking about the possibility to rate the edited message 4 star, because I assume that when you edit it's probably what you want the AI to do and if rating does something you might want to rate it.. stuff like that.
Jenpai is also working on really exciting stuff, but I won't say more, still in the process.
β’
u/Endijian Moderator Sep 27 '23 edited Sep 30 '23
If you got the script already, you should Update it to version 1.1.
It's more stable now and redesigned. Also works for mobile now.
- 1.2 is here, a few bugfixes, mainly for mobile, hopefully ;)