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

A quick example demonstrating how you can get rid of the error message (without using a "private" function in the engine) (perchance.org)

I’ve just found another pretty cool way to get rid of the error box in a generator without using the __clearPerchanceErrors() function that you can run on the testing panel to get a similar effect (as mentioned by @perchance that it’s probably a “private function” as well along with other alike properties in the...

BluePower,
@BluePower@sh.itjust.works avatar

Okay, I now understand there’s now a clear documented window.ignorePerchanceErrors and clearPerchanceErrors() function in the advanced generator, the last time I took a look at the page, it wasn’t there (here’s a snapshot of the page from 2022). Overall, the alternative method only hides the error box out of the generator and does not clear the errors, whilst it does with clearPerchanceErrors() so you cannot see them when you programatically open the error dialog (as in the example).

BluePower,
@BluePower@sh.itjust.works avatar

I logged in to my Perchance account on Firefox and that also displays the user option in the settings menu

https://sh.itjust.works/pictrs/image/a55ede6f-2de0-4433-a415-4f3121c96551.png

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

@perchance Just saw a typo in the sentence generator! Also, if the generator has somehow been updated with new sentences or so, please let me know so I can add them into my generator.

BluePower,
@BluePower@sh.itjust.works avatar

Ideally I’d replace the letters with a dingbat font or something so there’s more visual distinction between the tags.

I’ve also had a similar kind of idea by having an auto-generated nickname based on the user’s tag in my advanced comments plugin demo. For example: B134 becomes BtereHariman34 (though the tag-to-nickname system is still in underlying development, and I might change the names on the database so it looks less like nonsense to read on)

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

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

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

BluePower,
@BluePower@sh.itjust.works avatar

Also the current user’s username and other data, i.e. com.user.name would output bluepower81 and com.user.nickName would output Polygonal and so on.

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

Okay, so I got some more reports today. I woke up and opened my browser with a tab heading to the Comments Plugin page, with all the comments sections already loaded up. Then, I opened my Generator Manager, and it loaded just as usual, but when I saved it, it took a really long time, up to around 30 minutes, with usual long-stalling requests initiated by the /api/cv request. It even spit out a Couldn’t get generator dependencies error midway. I left only the Comments Plugin tab and the Generator Manager tab open for the rest of the time in the same browser while doing some outside work.

After trying to save it again after a couple of minutes though, it did save pretty well.

https://sh.itjust.works/pictrs/image/99544c42-a420-48c7-b275-af4ef1ccc708.png

https://sh.itjust.works/pictrs/image/998a38f9-b508-494b-92ba-4060b0da7d41.png

Update: Now, almost every time I opened and saved my Generator Manager, the other generators I’ve opened seems to start loading for a very long time, while the saving requests from the generator hub page also clogs out of nowhere. It’s in the 30-minute mark again.

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

The Comments Plugin's notifications feature + additional caveats, tips, how to enable them and other things

Remember when the Dev @perchance made a post months ago - lemmy.world/post/5716741, where they had just announced that feature for the comments-plugin? I was about to reply to that post, but I can’t find it on my home instance, so I decided to make a new post to address something about that feature....

BluePower,
@BluePower@sh.itjust.works avatar

Updated the body post, added instructions and some major changes.

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