@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.

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.

[Suggestion] Adding a note to any of the generator items in the accounts > generators menu (sh.itjust.works)

Sometimes when I save generators while it was still unfinished or, in a case, it’s still under development, I’d like to add a note into any of these generators that it’s unfinished on under development while I can keep them private for a long time. Or you could write anything you want as a note to any generator in the...

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,
@BluePower@sh.itjust.works avatar

Nice!! 🔥 I’ll also think of new features created specifically with this very feature.

BluePower,
@BluePower@sh.itjust.works avatar

I’ve got a question: When there’s a lot of comments that even the comments plugin can’t capable of loading all of them even when the load more button is pressed over, do the comments also get affected on that kind of overload? Also, @VioneT @Alllo if you’re able to test this it’d be very appreciated!

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

Worth to note that if the search feature would’ve searched the entire generators page, it’d only search through the generators that were last edited at most approximately 1 day ago (as per the set limit of generators that the generators page can show). The Google search pretty much searches through all indexed generators throughout the entire platform that aren’t even listed on the generators page.

But @perchance I think you should change the search bar’s search button to look like this: https://sh.itjust.works/pictrs/image/9b7dd222-a998-4a60-951b-94309b8bd502.png

And then the search box could be used for searching across the generators page directly (kind of the same functionality as my generator hub collection page).

BluePower,
@BluePower@sh.itjust.works avatar

I think so. Though it might need some mass-fetching of generator databases in the searching process (or we could use a search API built into the page so it could search all generators).

Getting Relative Time in the Date Plugin

There was one missing functionality in the Date Plugin, which is an ability to get relative times which you can do by passing the parameters into the function in the Moment.js library. But it looks like you can’t do that in the plugin itself, which is simply a part of writing mistake in the plugin’s source....

BluePower,
@BluePower@sh.itjust.works avatar
BluePower,
@BluePower@sh.itjust.works avatar

Here’s my temporary fork of the plugin that can actually accept arguments, while the change hasn’t been made to the official yet:

perchance.org/vkauhn2zdw#edit

BluePower,
@BluePower@sh.itjust.works avatar

Coincidentally I am also having another crash issue just recently, but with a different reason. Also going to open an issue for that.

BluePower,
@BluePower@sh.itjust.works avatar

Updated to 2.8.1 and that issue has finally fixed! Not only coincidental, but also apparently related to my issue. 😁

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

Yeah, the TCP connections limit makes more sense now. I don’t have any time to find out the cause, but I suspect that’s the issue.

BluePower,
@BluePower@sh.itjust.works avatar

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

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
  • Leos
  • khanakhh
  • Youngstown
  • everett
  • Durango
  • slotface
  • rosin
  • hgfsjryuu7
  • InstantRegret
  • kavyap
  • PowerRangers
  • tacticalgear
  • tsrsr
  • DreamBathrooms
  • normalnudes
  • magazineikmin
  • mdbf
  • osvaldo12
  • thenastyranch
  • ngwrru68w68
  • vwfavf
  • cubers
  • modclub
  • GTA5RPClips
  • ethstaker
  • cisconetworking
  • tester
  • anitta
  • All magazines