![](https://sh.itjust.works/pictrs/image/66609055-9a66-45c1-8a47-cd2e2b313629.png)
![](https://lemmy.world/pictrs/image/fe882c27-7ec3-429e-a086-03d5a3efb517.png)
I can also see the improvement too! The AI Text Plugin was writing prompts slower when I tested on this AI prompt generator, before the fix was implemented.
I make generators on Perchance.org and do a bunch of other cool things.
Links:
I can also see the improvement too! The AI Text Plugin was writing prompts slower when I tested on this AI prompt generator, before the fix was implemented.
A winter ski marathon where hundreds of people participate in the competition to get to the top of the breezing mountain. 🏂
Oh yep, I didn’t ever thought of that before.
Quick question on this topic… is localStorage “safe”?
The localStorage
is contained inside each generator, meaning that values set from one generator can only be accessible from that generator (like not tied within the localStorage
from the entire Perchance website), so it is safe. Basically, every generator has its own localStorage
container, and there’s an explanation to why.
Also, there should be a way to make the tester panel appear even while the left side of the editor collapses (e.g. a floating tester panel, possibly draggable too).
Yeah, this seems like a bug with Riot.js/Split.js thing that pretty much shapes the entire Perchance interface. I also stumbled upon the bug long days ago when I started discovering Perchance.
But interestingly enough, when I maximize my browser window the bug sort of disappears. I did try the bug on an unmaximized window like above.
Also pinging @wthit56@lemmy.world and @perchance@lemmy.world.
This is a cool idea. You mean a URL with the upload list on it? If so, I could make a “create bookmarklet” button that generates the URL with the upload list using user scripts like I did with the restore points feature. However, since the upload page is stored under an iframe, we first need a button that redirects the user into the iframe URL on the /upload page, and then we could just add some script directly into https://upload.perchance.org/ (the Perchance subdomain for the iframe in the /upload page) to add the feature right in (since user script injection doesn’t work when applied to iframes).
I might as well do a feature request here, @perchance@lemmy.world, maybe add an “import/export upload lists” feature on the page so this method could also be doable on mobile devices like phones and tablets that don’t have access to DevTools?
Here’s an updated progress bar.
This would be a good idea to add into my advanced comments plugin demo too! 😄
This is a good suggestion, this should be added as a (default) option in the generators page. In another note, the improved generators page already has that feature, along with some other interesting options, worth checking it out.
This should be an option available prior to saving the generator under the “settings” menu. (Basically a “make generators private on save by default” checkbox or something 😉) @perchance@lemmy.world
Feels good to hear! Also, in short, I will be taking a break from updating generators for a while due to the recent incident that happened to my personal device so I can take some time to restore/recover and get everything back up. (That also means no generator updates for this month xD)
I also want to talk about how the tester panel output’s height never adjusts with the panel’s height itself in the Perchance editor, leaving an empty space at the bottom when expanded big enough. @perchance@lemmy.world (this is a bug I’ve wanted to mention for a long while)
A simple, practical approach (for now) would be to put the function inside the $output()
like this:
$output() =>
if (!window.__onloadExecuted) {
onload(); window.__onloadExecuted = true;
}
// ...
// The homemade onload function
onload() =>
// ...
However, it only works when at least one instance of the plugin is being executed in the generator code.
That is a very neat explanation! Would be very useful for someone who wants to deep dive into the deepest sides of Perchance. And actually, I’d be interested in learning more on that, too.
You can check out the Perchance FAQ which talks about a question about open source Perchance and more, but here’s an explanation:
Will there be an open-source Perchance library for programmers? Ideally, yes. The only reason there isn’t one already is because Perchance was built in a very “MVP” manner. (Talking to the programmers here,) I’ve altered the prototypes of inbuilt objects (Array, String, etc.), inadvisably hacked together
Proxy
s andwith
statements to construct fake scopes and execution chains, simulated operator overloading by playing withvalueOf
and well-knownSymbols
, usedeval
unreservedly, and, in general, summoned every other JavaScript demon needed in order to get the Perchance DSL’s syntax to work nicely (all code inside square brackets is executed as plain JavaScript, for those who missed that). So currently Perchance isn’t in a state where it’s easy to pull out the engine, throw it into an NPM module and call it a day (until this proposal becomes a reality, that is). If you’re okay with the aforementioned mess, then you can pretty much just grab the.js
files that are used in the iframe, include them in your project and use them the same way they’re used in the iframe html (you just pass createPerchanceTree your a string of perchance code and it returns the “root” of the tree, which you can then use to call the sublists).
— Perchance FAQ
No problem! Don’t forget to mark your post as solved or answered by adding a tag [Solved] or [Answered] or something you like into the title.
This is an amazing update, would be very useful to put into some of my projects (especially my advanced comments plugin demo)! Love to see some neat Perchance updates coming out whilst on my recovery time! (see this post)
Also fun fact, this, along with the new favicon plugin, is one of the updates made in the Perchance Ad-Appreciation Day if you live in more-Western areas.