Sleazy Fork is available in English.
Skripti, joka on tehty uusien työkalujen lisäämiseksi Sexy.ai:iin.
Tästä skriptistä on versioita, joissa koodia päivitettiin. Näytä kaikki versiot.
I recently bought a better graphics card that can run Stable Diffusion locally, so future updates to this script may take a while or not happen at all, I'll be focusing on other projects.❤️
Changelogs:
try
catch
Wow, this new sexyai update took me by surprise, I'll have to adapt my script to this new interface. 🤡 "Ah shit, here we go again"
Change Logs:
Set_Text()
promptarea
negpromptarea
DataList_Bkp
Unlock Pro features
Replace_Prompt_Tag()
FB_start
FB_end
getResults()
selectedarea
_filter
Replace_Prompt_Tag
Tag List Box
{-2$$chocolate|vanilla|strawberry}
{1-$$chocolate|vanilla|strawberry}
This version of the script is where I worked a lot on the Dynamics Prompts function, making it more complete
Change logs
Main Config
Random Prompt Box
"text string".dynamicPrompts();
<h1>
title
<select>
Replace Prompt Tag()
Tag list Box
I used the wrong event in the notepad lol, it was supposed to be `oninput` instead of `onchange`
Keep Images
Prompt Tools
Dynamic Prompts
<textarea>
The options to enable/disable the script UI has been removed, you can do this in the "⚙️Manage Script Interface" option
I recommend you clear the local script storage in tampermonkey
Build_Ui_PromptTools()
Build_Ui_MainConfig()
event.target
Image
UIs
navigate
Build_Ui_Viewer()
Just a code correction in the menu command. I didn't change anything in the script overall
Initialize_TagList()
Build_Ui_TagListBox()
setTimeout
Load()
setInterval
MutationObserver
Save_Config()
Build_Ui_Viewer
modelsarray
switch
Just a correction to one line of my code, it was not deleting the temporary prompt when it was applied🤷
I recommend users reset the storage of this script to empty "{}", so that it doesn't load the old storage.
- I used the `Config` variable to also store the temporary prompt when you change pages- I changed the `SetInterval` function to the `navigate` navigation event to detect page changes- In the `load()` function: I used `startsWith` instead of the `==` operator as I intend to add new functionality to this in the future- NEW TOOL: Added add and remove weight tools in the prompt like () [] {}, with keyword strength values- The Minifier button will be a check box, because each time the prompt was changed it would reset the spacing. Now when you enable minifier, there will be no whitespace even if you change the prompt- on Mobile: I added `blur` when there are changes to the prompt made in the script, so as not to show the keyboard bar appearing on the screen suddenly- I changed the way it gets script settings from local storage- Command menu has been added to activate and deactivate script features with 3 options > Enable/Disable prompt toolbox > Activate/Deactivate tag list > Activate/Deactivate the keyword bypass box > Set script loading delay > Define the number of tags to be shown in the list- I removed "-----------" characters in the option to choose the list, I want to leave it clean- NEW TOOL: A button has been added to the SexyAI image viewer that transfers to the generated image prompt in the generation settings
- I also fixed the link in the function that detects page changes- I removed the 'windows.load' function in the script, because I realized that you can start the script without it.- I made an improvement to the syntax filter function- The "(gore)" method filter was removed and no longer works- Fixed the error that makes the selection in the wrong position in the prompt- I organized my functions to keep them organized- I made some small improvements to my script to make fewer possible errors- Improved the function of loading and saving script settings- Added a button to clear stored images
- I had to correct the page link so it could identify the page that generates the images. Now it's "https://sexy.ai/generate"- fixed a bug when selecting an empty item in the list.- The name and description of this script has been translated into 121 languages
Just a bug fix
I changed most of my code so...- I made the tag list, bypass word option and move word option also apply to the negative prompt, when you select the negative prompt, the script functions will be applied to the negative prompt- I changed the functions for bypassing the word filter, now the methods are '(gore)' and '()' parentheses- I improved the syntax filter when selecting the word- I fixed the error where it didn't find the tags when there was a white space at the end- I put the ' character to be ignored when searching for tags, these are the characters that are ignored when searching "_", "-", "'", "+"- Now when you activate the check box to keep images, it will hide the sexyai image grid elements and also that slider that changes the image size, everything will be shown below.- Image storage will be in grid format with the slider option to increase the grid columns- The "Keep images" option will no longer delete images from the current page, it will just hide them
- I literally changed the code that stored the images on the current page. Now I added the function that detects the generation batch in the queue. When a batch is in the queue, a button called "Generate..." will appear below. When finished, the finished image will be shown on the current page. It is useful to generate 1 batch in each generation, your previous batch is not discarded.- The save button will no longer show that "Everything Saved" message, I improved the code, and now the button text will show that it has been saved.- Kaboom!!! Using fetch, I managed to create the code that searches the images in the library by index. A very useful tool for you to see your old works hehe.
Wow, mega update- Firstly I had to remove the labels that show the length of the positive and negative prompt, sexyai himself already made this label- I added the interface class to my script, so it fits with the sexyai theme. In other words, the interfaces of my buttons will be the same as sexy.ai, it will be beautiful- I removed the randomize button from the prompt, because it goes very badly when there are parentheses- The Sort List buttons and the Change List View button have been changed to drop-down menus- Now you can choose the list of tags you want to display, you can also add a custom link to load the custom list- One interesting thing I added: Option to keep images when you click the Generate button. You would no longer need to go to the library to see your images - Yes, I removed the "New generate" button, now the main button will always be activated, so you can generate as many images as you want even if they are in the queue😎
- I added the click event in the prompt text box to load the tags- I fixed some bugs... such as the list not being able to search for a specific tag- I removed the background color from the word filter box, because of sexy.ai's white theme- I added the button to load the positive and negative prompt saved in storage- I added a variable in the script to change the size of the list to show the tags- the method of cheating words has been changed, now it is the "Blood" method.
- I stopped supporting the old sexy.ai, because it was becoming obsolete, the developers no longer updated it, and the image library is giving an error when zooming. Version 1.5 of the script is stable if you still want to use the old sexy.ai- I removed the 4 buttons to bypass the word because they were no longer working, the developers improved the filter... I found a way to bypass this which is the 'tone' and 'blood' method, basically it adds the "(tom)" in any character and "blood" where there are spaces, thus making it undetectable by the sexy.ai filter- I placed the cursor point where you point to the tag list to look like a button
- Improved the way the script detects the page link to implement the script interface.- The button to change the tag list view has been added.- I changed some parts of the CSS to improve the visualization of the script interface, such as the cursor pointing to the buttons.- Now you can click on the phrase in the "Loaded Tag List" and it will disappear instantly- I added the "X" button to the word filter bypass box so you can close the box and never go back. (Unless you refresh the page)- Fixed the error where the tag was not being applied when the word was capitalized.- Fixed the interface error where the box was going beyond the buttons (Former SexyAI)
- I placed variables that can configure the execution of the script- Added the button to sort the tag list- I removed the checkbox that freezes the seed, because the sexyai developer reverted the function.- I added a label that shows the total number of images you generated- I optimized some script functions a little
- Added seed freeze button. (A recent update to sexyai was that the seed is always reset and set to random for each generation you make.)- I improved the button script to randomize the prompt order
Ignore versions 1.21 and 1.20, there were small errors in my code that I forgot to correct.
- I don't know what happened, but there was a bug recently that was adding the interface many times that ruined my code and its previous versions, I fixed it.- I added a new tool which is Prompt Minifier Button, it saves the prompt size so you can put more words- I also added the button to force new image generation. It just does that action of that "Generate" button.- I improved the detection on the links, the interface is just injected into the main link which is "sexy.ai", if you open sexy in the library or videos tab first, it would not execute the script, the script was made to inject the interface in the main link.- I fixed some bugs in the code.
- A new model entered sexy.ai and messed up my variable that had model indexes, I corrected that.
- fixed the negative prompt label that was 'undefined'- I added the label that showed that the autocomplete is loading, when it finished, the label notifies that it was loaded- A new model was added to sexy.ai, I had to add it to the model index list as well- I fixed some bugs.- A new level of word cheating has been added- I had to put the autocomplete interface closer to the prompt to make it quicker to see.
- I made some changes to the script interface- I added the tool to move words left and right.- I added the tool to bypass filtered words. 3 levels in the new interface and 1 level in the old interface- I optimized my code a little- I improved the function that loads the settings, it does everything automatically now, closing the model window and the negative prompt is set automatically (You don't need to open the advanced box to load the negative prompt)- I improved autocomplete, now it detects if the word is equal to the tag, thus making that tag appear first in yellow (even if it is out of the list order)
- I made a small correction to the code, which identified an element that can trigger the click event in the model list. Previously, it did not trigger the click event when loading the saved model from your local storage. I fixed this- I changed part of the final code a little... instead of using the '==' operator I used 'includes'.
I had to correct a small error in the code... on the last line
- I changed the structure of autocomplete, now you can select any word and modify it and it already suggests words to replace.- I also added the filter in autocompletion, for example, it preserves stable diffusion syntaxes, such as "()", "[]", "{}" and the weights ":x.x" when completing your word.- I added the "Show More" button to see more tags- In the old interface, I added an execution interval for the blur and image size, so when a new image appears, everything goes back to normal. I fixed this- I optimized my code, separating more functions and organizing- I fixed the error where when you changed pages, for example to the sexy.ai "library" and returned to the "Images" page, the autocomplete box disappeared
- My code now supports the new sexy.ai interface- I added borders to the autocomplete tags to identify the button borders and not make the mistake of clicking two buttons at the same time- I moved the autocomplete inside the prompt size labels box.- I increased the autocomplete height to show more tags-
- I had to remove the auto-save from the prompt because it was being annoying oWo. Then I put the button- Added button to randomize prompt order- Autocomplete tag list