this post was submitted on 23 Aug 2024
4 points (100.0% liked)

Perchance - Create a Random Text Generator

434 readers
14 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 1 year ago
MODERATORS
 

I guess because you're always copying everything onto the window object?

So if you then call it yourself, because "you don't think it's been called automatically, because why would it? You haven't told it to do that"... it's actually being called twice.

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 2 months ago (1 children)

Thanks! This should be fixed now - let me know if not, or if there are any related / follow-on issues.

[–] [email protected] 0 points 2 months ago (1 children)
[–] [email protected] 1 points 1 month ago* (last edited 1 month ago) (1 children)

I guess because you’re always copying everything onto the window object?

Update: I've now added a more general fix so I don't need to do this copy-everything-to-window stuff anymore. Along with solving some miscellaneous bugs, it also fixes the annoying thing where the engine needed to overwrite inline onclick/etc resulting in them 'disappearing' when you look for them in DevTools. Hopefully this fix hasn't introduced any bugs. Please let me know if you spot any issues! @[email protected] @[email protected]

The overall goal here is to push the engine closer and closer to "It's just HTML/JS/CSS (plus some Perchance stuff on top)", instead of having all sorts of engine implementation details "getting in the way" of HTML/JS that should work fine.

Edit: Had to disable the new approach due to an issue, but will hopefully be able to re-enable it tomorrow if all goes well.

[–] [email protected] 1 points 1 month ago (1 children)

Ah great! Those were both pet peeves of mine, but I thought they're probably way too deeply embedded to change at this point. Thanks for this! I'll let you know if I find any new bugs from it. 👍

[–] [email protected] 1 points 1 month ago (1 children)

Heads up: Just found a critical issue with the new approach - had to disable it for now, so it's back to the old approach. Need to sleep soon so probably won't solve it today, but will hopefully get it solved tomorrow 🤞

[–] [email protected] 1 points 1 month ago

Cool cool. Do you have any sort of testing set up for perchance? Could be useful for making sure things like this don't break capabilities.