@BluePower@sh.itjust.works avatar

BluePower

@BluePower@sh.itjust.works

I make generators on Perchance.org and do a bunch of other cool things.

Links:

This profile is from a federated server and may be incomplete. Browse more on the original instance.

[Request] Enable/disable auto-reload through a keyboard shortcut

I’ve been enabling/disabling the auto-reload pretty frequently now for many reasons and doing that with a move of the mouse sometimes annoys me when I had to move my cursor away from the left side of my screen. Will there be a dedicated keyboard shortcut for that rather than having to click on the checkbox in the editor every...

A more "synthetic" sentence generator that shuffles words on the generated sentences (perchance.org)

I have just made this quick fork of the sentence generator from the useful generators page and released it as a new Small Generator on my Generator Manager. And on this I’ve added a mechanism that replaces certain words on the generated sentence with a different one pulled from a bunch of other useful generators (i.e. you...

BluePower, (edited )
@BluePower@sh.itjust.works avatar

Nice bug report! @perchance pinging dev. Tried on the comments on the comments-plugin page and also didn’t work as expected.

BluePower,
@BluePower@sh.itjust.works avatar

I remember this one using only the localStorage thing and I think I’m actually using this in some of my generators. After trying this a bit, I found a benefit from using this method, that the data will stay in the input even if the generator is reloaded through the auto-reload feature when editing the generator’s code.

Using the remember plugin, in normal circumstances, that would reset the value when it’s auto-reloading. And I’d also like this kind of behavior to be implemented right into the plugin so that remembered variables (and not just the user inputs) can retain its value even when auto-reloading generators.

Super Fetch Plugin does not work with `user-uploads.perchance.org`

So, after a bit of testing with the example from the super-fetch-plugin, I’ve tried different kinds of websites and it worked, including a URL from comments-plugin.perchance.org, which I got from inspecting a comments plugin iframe from the DevTools. But in this case, not from user-uploads.perchance.org, it kept having the...

BluePower,
@BluePower@sh.itjust.works avatar

I still got the CORS error on my Edge browser, but it did end up fetching successfully on Firefox without any errors.

https://sh.itjust.works/pictrs/image/a2856473-9b96-4d2b-9df9-81ccebd0a9be.png

https://sh.itjust.works/pictrs/image/c09d597b-83d7-478e-8376-ea9b8b3cfd08.png

BluePower, (edited )
@BluePower@sh.itjust.works avatar

I also once tried it on Edge on mobile and a private window on Edge on PC and both did fetch successfully.

BluePower,
@BluePower@sh.itjust.works avatar

Thanks! The CORS error is still happening on my primary Edge profile, but now the fetching worked out anyways.

https://sh.itjust.works/pictrs/image/43f32de7-bbad-4b2d-acf3-e7ffb2dc77bd.jpeg

BluePower,
@BluePower@sh.itjust.works avatar

No, that’d be impractical, unless the server is stored somewhere on space and there was a technology that makes the server accessible from the ground, without any sort of latency or slow connection. But I guess the reason is that the perchance upload server would be guaranteed to be maintained forever so it’s very, very unlikely that a file would randomly disappear from the server.

Generators can also influence to be shown by their content, not just the meta title and the description

I’ve found today that search engines not only index generators by their descriptions, but also the contents of the page and sometimes the source code of the generator to make them somewhat easier to find on the search page. (I’m also speculating that this might be the cause my generator manager performed much faster than it...

BluePower,
@BluePower@sh.itjust.works avatar

Bonus error: Misspelled “There in an error in your pattern: …” in the alert dialog. Pinging dev @perchance

Another example of adding a comments section from a different generator into another generator (Comments Plugin External Sourcing Example) (perchance.org)

I’ve made another example where you can make a comments section from a generator with the comments plugin to properly “grab” comments from another generator besides yours (e.g., comments from generators on my power-generator-manager), even ones that don’t even have the comments-plugin built into it, without without using...

[Request] Putting direct input text to the Markdown plugin directly instead of a list

Is there a way to make the plugin accept a direct input of a text instead of putting it into a separate list and then reference the plugin for it? Or if not, could there be a possibility for it? So, when e.g. when I want to format just a few pieces of text, we’d just write this:...

A little "teaser" project of a huge project I'll be making (before the big Generator Manager update) (perchance.org)

I’ve recently been motivated to work on this little project that I’ve been working for about a day in total. But my fears for the bad comments to be thrown over the experiment generator again and considering of some complexities to move it there have decided me to not put it up on that generator page and keeping it on this...

BluePower, (edited )
@BluePower@sh.itjust.works avatar

Same 😄

I’ll complete and share the project possibly (and hopefully) as an actual plugin after the post-announcement update of my generator hub page, but I’ll be releasing the “early implementations” somewhere in my experiment generator so everyone can try it right now and give some feedback on it.

AI bots in your comments, and more: `c = commentsPlugin(options), c.submit("hello world!")` (perchance.org)

(To be clear, since I realized just now that to non-devs the title might be misleading: This feature does not add AI bots to your comments plugin by default! The comments plugin and the AI plugins are completely distinct. But plugins can of course interact with one another, and this new feature of the comments plugin allows for...

BluePower, (edited )
@BluePower@sh.itjust.works avatar

I think up to 2000 comments on first visit is fine for me, I’ll be using the comments feature along with the programmatical submitting one to do parsing the contents so that each of them has a unique property, as well as doing a lot more stuff with it. Unless if it only loads comments that are initially displayed on the comments plugin (or only a few hundred on first visit), that would be a problem for me. 😁

And then from there the comments array will start filling up as new comments come in, with practically no limit to the size.

That is really important to me because of those behavior I described earlier.

I just went back from a meeting and somehow saw this posted seconds ago when opening the community tab. Thank you for the answer! I haven’t had an opportunity to try these features yet, I am still working on other more important generator updates stuff.

BluePower,
@BluePower@sh.itjust.works avatar

In my advanced comments plugin demo, the upper input text (the one outside of the comments plugin box) doesn’t seem to immediately put the text into the lower comments (inside the frame) using the “send green box text to comment input box” method that fires every time someone types on the upper one. Is there something wrong with the code or something? It’s a textarea, though, not an input element.

BluePower,
@BluePower@sh.itjust.works avatar

Oh, I tried that, and it actually did, I definitely didn’t see that before. 😆 But I only assign the com variable to the first instance of the commentsPlugin(), so this could be kind of a strange bug. @perchance

Also a feature request, would there be a special event when the user clicks on the submit button? It’s like onComment() except it works only for the person who submits their own comment.

BluePower,
@BluePower@sh.itjust.works avatar

Okay thanks!

BluePower,
@BluePower@sh.itjust.works avatar

Feature request: How can I determine whether a comment is made “programatically” with some variable like comment.isBot or something?

BluePower,
@BluePower@sh.itjust.works avatar

@perchance Another one: What if you could just set the nickname for yourself only by using a single function, and not with the com.submit() method?

BluePower, (edited )
@BluePower@sh.itjust.works avatar

Thank you! These are really great features for me to use in my advanced comments section demo. 😄

Problems with saving and loading generators on Perchance (sh.itjust.works)

Recently I was hit by the problem where the saving process just stuck in the background, and when I checked the DevTools Network, there’s a lot of stalled connections when fetching a few resources required for the generator page to fully load. The stall eventually ends for a short time (1-30 min), but sometimes even longer...

BluePower,
@BluePower@sh.itjust.works avatar

Thanks! I’ll check it on my PC later.

BluePower, (edited )
@BluePower@sh.itjust.works avatar

Some suggestion before I go to nighttime - is there a way to remove entries completely through leaderboard.remove()? The reason why is because the leaderboards in my Complete the Number Blocktrains game gets “wiped out” gradually every time an entry gets added in the “core engine” of the leaderboard when someone completes a round, and to remedy that issue, I instead want the previous entry to be then replaced with the new one with the new score from the same player. Also, each entry should have its unique ID so you know which ones have to be removed (can be through an index too).

The suggestion applies to the Leaderboard v1 plugin which I use for the game (and v2 as well if you want to).

BluePower,
@BluePower@sh.itjust.works avatar

I made an early implementation of an upcoming huge project I’ll make after the 2.0.20.1 update business, utilizing the onComment and onLoad features from the example page, described here:

lemmy.world/post/15230747

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • GTA5RPClips
  • provamag3
  • InstantRegret
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • lostlight
  • All magazines