VioneT
Doing Perchance.org things…
Links
- Perchance: vionet20-gens
- Mastodon: VioneT20@mastodon.social
- Reddit: /u/VioneT20
- 10 Posts
- 224 Comments
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Is it possible to hyperlink generated output?English1·3 months agoYou can set the
href
through your code, not directly on the HTML e.g.:// function generateMisquote() ... // Select quote from array if necessary const original = selectQuote(quoteEntry.original); const misquoted = selectQuote(quoteEntry.misquoted); const source = selectQuote(quoteEntry.source); const url = quoteEntry.url // get the url link ... // Update after a short delay for the fade-out effect setTimeout(function() { // Display the misquoted quote and source quoteTextEl.textContent = misquoted.text; quoteSourceEl.textContent = `— ${source.text}`; quoteSourceEl.href = url; // set the href based on the url link ...
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•how to use [l=list.pickOne] across html and list editor?English2·3 months agoWhat you can do is this:
// Lists Editor movieTitlePrompt instruction = Make a title for a [g = genre.selectOne] movie with a length of [l = length.selectOne] and an age rating of [ar = ageRating.selectOne]. Only include the title, nothing else. No subtitle. title [ai(movieTitlePrompt)] // --- // HTML <p>Title: [title]</p> <p>Genre: [g]</p> <p>Length: [l]</p> <p>Rating: [ar]</p>
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Perchance Ai GalleryEnglish1·3 months agoHaving the generator ‘private’ only delists them from the
/generators
page. If someone else knows what the URL is (or has saved the URL before you’ve privated the generator), they can access it. The gallery is also quite buggy in which some images aren’t saved, and some images just pop up of nowhere. Can’t really tell what problem is occurring there.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•hide Feedback buttonEnglish2·3 months agoWell, the purpose of the
showFeedback
property is to ‘show’ the actual comments sent on the feedback comments section, not to ‘hide’ the button. On the fork that you mentioned, the feedback button is deliberately commented out, which is why it is hidden.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•[Question] AI Text Generator - Which uncensored LLM?English2·3 months agoAlmost all AI Text on Perchance uses the same model. Some are calling other through external API. But based on both that you’ve linked, yes, they are using the same LLM. From what we know from the plugin page ai-text-plugin it is a LLaMa based model, but the specific model is unknown.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Unable to sign upEnglish3·3 months ago@perchance@lemmy.world pinging dev.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Perchance Ai GalleryEnglish2·3 months agoOn the edit generator screen, you can click the ‘settings’ on the top right, and you can change the URL. Images are bound to the URL of the page, meaning if you change the URL, then those images are also gone, but you can revert the URL back to get back the images.
By private gallery do you mean the gallery below the generator (I’m assuming that you are using a generator using the
t2i-framework-plugin-v2
based generator like ai-text-to-image-generator), then it isn’t a private gallery, it is the public gallery. If you changed the gallery destination, into a different name (other thanpublic
), there might be a case in which other people are also using the same gallery e.g. even if you changed the gallery name intoprivate
it wouldn’t be private, it would just be sent to the gallery namedprivate
.You cannot perma delete images from the gallery by yourself, you need to block and have other people block that specific poster for their images to not display on the public gallery (see this related thread).
I would recommend using the actual ‘private’ gallery option that saves the data in your local storage. This is enabled with by adding the following on your settings (assuming you are using the
t2i-framework
):settings // This is the main settings list that is passed to `t2i-framework-plugin-v2` to generate the interface. ... imageButtons personality = true privateSave = true // Make sure to have this line.
Then you can click the
🛡️💾
to save it locally on your browser.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Need one more syntax helpEnglish3·3 months agoYou can have each of the suits into a single list, then control that parent list. E.g.
Uniform https://user.uploads.dev/file/53321b33603b8f9f386fb870db73ad65.png [Top] ^[camera.includes("top") && actor != "dryad"] [Mid] ^[camera.includes("mid") && actor != "angel"] [Low] ^[camera.includes("low") && !["mermaid", "minotaur"].includes(actor)] [Rear] ^[camera.includes("rear") && actor != "angel"] [TopMidLow] ^[["top", "mid", "low"].some(a => camera.includes(a))] Top batman mask ^[specificCostume == "batman"] ... Mid batman suit with batman logo on the chest, batman gloves, batman belt ^[specificCostume == "batman"] ...
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Need Syntax help for functionsEnglish1·3 months agoIf you are using HTML inputs, you can easily access their values like
checkbox.checked
for checkboxes and radio buttons,textinput.value
for input values and select dropdowns, in which you can also set their default values for each one natively, unless the function that you’ve made is for ‘resetting’ to default values.I would also go with the way that you have a single global object for all of your variables, just for organizing and ease of access.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Need one more syntax helpEnglish3·3 months agoYou should select the
actor
first, to filter the clothes that it can wear. Then, select the camera to further filter the clothes that would be displayed that depends on the framing.EDIT: Here is a test gen for it: https://perchance.org/ho5e2n0vwt
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Need Syntax help for functionsEnglish2·3 months agoI think I see the idea you have. What is the scope of the variable you are trying to set it to? You currently have it as:
for (const [key, value] of Object.entries(variablesMapping)) { if (this[key] === undefined || this[key] === null) { this[key] = value; } }
You are using
this
, which refers to the function. It should probably be set into what you have your initial variables, e.g. if you have your variables as properties in a variable calledinputs
, then it should be:for (const [key, value] of Object.entries(variablesMapping)) { if (inputs[key] === undefined || inputs[key] === null) { inputs[key] = value; } }
So that if you use it like
inputs.charNum
, it would be set to the default that you have set with thedefining()
method.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Is it possible to hyperlink generated output?English1·3 months agoOn how you have your data, you can probably just add a
url
property for each instance of the source e.g.:{ name: "original", label: "Original", placeholder: "Click the button below to generate an original quote.", data: [ { quote: "Happiness beckons you once you forget you were looking for it.", source: "Eleanor Trent, 'Where's Joy?'", url: "link here" }, { quote: "Memory is just the past asking for a permanent residence permit.", source: "Dr. Selim Farouk, 'The Mind's Archive'", url: "another link here" }, { quote: "No one knows how Sentience is born, but we sure know how to kill it.", source: "Dr. Marcus Webb, 'The Philosophy of Consciousness'", url: "link here" }, ...
Then you can access it with
.url
(quoteEntry.url
) and set it as thehref
of thequoteSourceEl
.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•“I’m Not Asking for Magic — Just Consistency, Like Before” bring the old model back pleaseEnglish1·3 months agoThe Automatic1111 link should have installation procedures on how to install it (and automatic installations) for your device. Here is for NVidia GPUs: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-NVidia-GPUs
As for the other one, here is the steps on how to install it: https://github.com/Raxephion/Old-Perchance-Revival-WebUI/tree/main?tab=readme-ov-file#-easy-setup-windows---download--run
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•Is it possible to hyperlink generated output?English2·3 months agoYou need to make the
quoteSourceEl
to be an<a>
tag e.g.<a id="quoteSourceEl" class="source" href="#"></a>
, then after you add ahref
value, it would be a hyperlink.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•[solved] using emoji packs by JSEnglish3·3 months agoThere should be no problem with linking the
defaultCommentOptions
on JavaScript, it would be on this part of your code on the HTML:... let othersChatDiv = document.createElement('div'); othersChatDiv.id = 'others-chat-container'; othersChatDiv.style.display = 'none'; // Hide others chat by default let mainChatOptions = defaultCommentOptions.createClone; mainChatOptions.channel = "qine-main-chat"; mainChatOptions.commentPlaceholderText = "Casual talk, memes, fun — all here!"; mainChatOptions.onComment = function (comment) { // Handle new comments in Main Chat console.log("New comment in Main Chat:", comment); } let mainChatPlugin = commentsPlugin(mainChatOptions); ...
The problem is
bannedUsersList
is not in the generator, so it gives errors. Removing that from thedefaultCommentOptions
makes it work.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•The backslash didn't work for wavy lineEnglish1·3 months agoConsecutive
~
will do that e.g.~~Test~~
, you can maybe just add a space or reduce the number of~
.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•The backslash didn't work for wavy lineEnglish2·3 months agoIf you want
~
you can just use it as is e.g.~Testing~
no need for escape.
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•[solved] using emoji packs by JSEnglish2·3 months agoBest way I would think is use the default comment options that you have on the Perchance lists:
defaultCommentOptions // for comments plugin: https://perchance.org/comments-plugin width = 100% height = 350 commentPlaceholderText = Leave friendly comments.. submitButtonText = submit comment bannedUsers = [bannedUsersList] customEmojis = {import:huge-emoji-list} adminFlair = 👑 Creator adminPasswordHash = 4b7a8a671d949baf24756f731091d13018de5c2ab4dd2cc1c1612a6643986933
As the base options like so:
let mainChatOptions = defaultCommentOptions.createClone; mainChatOptions.channel = "qine-main-chat"; mainChatOptions.commentPlaceholderText = "Casual talk, memes, fun — all here!"; mainChatOptions.onComment = function (comment) { // Handle new comments in Main Chat console.log("New comment in Main Chat:", comment); } let mainChatPlugin = commentsPlugin(mainChatOptions);
VioneT@lemmy.worldMto Perchance - Create a Random Text Generator@lemmy.world•[solved] using emoji packs by JSEnglish1·3 months agoCan you link the page you are working with?
There is no “Image to Image” or “AI Image Editor” working in Perchance.
Looking at the code, it is generated through the AI code helper in which there are these sections:
// AI Remove Object removeBtn.addEventListener('click', async function() { showLoading('Removing objects with AI...'); // Simulate AI processing setTimeout(() => { if (selectedArea.isActive && selectedArea.width !== 0 && selectedArea.height !== 0) { // For demo: fill selection with a gradient (simulating AI inpainting) const gradient = ctx.createLinearGradient( selectedArea.x, selectedArea.y, selectedArea.x + selectedArea.width, selectedArea.y + selectedArea.height ); ... // Simulate AI object extraction setTimeout(() => { const img = new Image(); img.onload = function() { // Scale the image
Which is why it doesn’t work.