Skip Navigation
BluePower BluePower @sh.itjust.works

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

Links:

Posts 86
Comments 289
Pro tip: make a private dev copy of your plugin/generator
  • Same with me too, I appended -preview at the top of my preview versions of the projects, although this only applies to my generator hub page and my name generator at the moment.

    A little bit of story, I have planned to make an "alpha" version of these generator projects, which is like a lively updated version (frequently saved, typically as soon as I edit the code and go AFK mode). The reason for this is because, in Preview versions, I've wanted to bring the freshly-served experimental features and updates to be then tested, all in one update, to be later released into the stable version through some updates, whereas the alpha version will be a place where the newest experimental features are being progressively built to be then transferred into the preview version, so that I don't have to very frequently put them into a text file to come back to it later.

    In other notes, I also never wanted to bring these preview, unfinished versions directly into the stable version so that things keep well-organized. I might not explain it very well, because I'm still largely heading into the recovery time (see this post). I'll make it clear in the 30.0k views milestone special coming this month (or next month, followed by the huge update) though.

    Here's what I wrote from the big revival announcement page:

    • Third, the new Alpha versions I've mentioned in the 5.0k announcement before is now more of like the in-progress versions of the Preview updates of the generator, so I'll constantly saving and updating the generator while I'm working on an actual Preview update!
      • However, this version will not be discoverable anywhere, in fact I will not going to mention any links to the alpha version, since this version is mostly a little "secret" space where I build new features of the generator, and so that I can spare less time in a day working on the generator (in other words, no need to spend more time finishing on a new Preview version in a single day).

    I've also planned to create an alpha version of my name generator, but haven't done so to this day:

    So I've finally planned to continue the active development of the generator when the generator reaches its 1st anniversary (that's on March 25th). Also, there will be a new development stage for the generator, mainly called Alpha/Dev. The releases of this stage will be on the "stepping stone system" on top of the Preview releases, so it'll contain smaller packs of new features and improvements and expect more of the non-functional features! Still, feel free to hop in the preview version and let me know what's your experience! Oh, and the generator will soon use the new font within the next big update!

    (here's an old copy of my Generator Manager that I've still left the old announcement on, mentioning above text)

    What do you think of this concept? @[email protected]


    Also, I'm planning to remove the canvas in the big revival announcement page very soon, just to close up the potential holes of people putting the bad things into the generator page. The drawings there will stay intact, just the canvas frame being removed.

  • [Bug] Very odd things going on with [code block] giving objects
  • Also fun fact, lists on Perchance are actually made of custom objects, and so every single type of JavaScript objects is treated by the Perchance engine as "lists". And since arrays are of objects, evaluating them directly will output a random item from the array, as if they're lists, if you don't know yet.

    In addition, [ ({}) ] and [ [{}] ] gives the same result as e = [ x = {} ].

  • [Request] Put all the usual loading/init etc. messages under console.debug()
  • console.debug()? Hmm, never heard of this before. Thanks to this post I immediately learnt what it does.

    I am unlocking many new JavaScript capabilities this month! 😄

  • The dynamic import plugin now recursively imports dependencies, so now it's just like a normal ('static') import. This unlocks a handy use case:
  • 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.

  • ai-character-chat slowed down
  • 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.

  • [Community Event] Ai Image Challenge for August ~ Unexpected Crossover or Cold
  • A winter ski marathon where hundreds of people participate in the competition to get to the top of the breezing mountain. 🏂

  • Dropdown menus don't show up when refreshing after choosing an art style in ai-text-to-image-generator (and other t2i-based image generators)

    So in https://perchance.org/ai-text-to-image-generator (and other t2i-based image generators) you could choose an art style and then a few dropdowns come below the prompt description textbox allowing you to choose any additional effects (or built-in modifiers, I should say) to be added to the prompt.

    !

    Well, I've found a bug on these. When I choose one that has a dropdown menu (for example, "Professional Photo"), the dropdowns did come out, but when I reload the page, the option I chose earlier retained, however the dropdowns did not come out as if the default option was selected.

    !

    I also tested if this bug happened on other t2i-based AI image generators too, such as https://perchance.org/furry-ai and https://perchance.org/ai-image-lab, and it also did the same, so this is most likely a bug within the t2i framework.

    6
    [Tip] A cute way to remember text inputs (without the `remember-plugin`)
  • 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.

  • [Bug] Editor: dragging middle separator all the way to the left hides the panes on the right
  • 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).

  • [Bug] Editor: dragging middle separator all the way to the left hides the panes on the right
  • 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 @[email protected] and @[email protected].

  • A way to transfer your uploads list from the perchance.org/upload page from a computer into another computer
  • 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).

  • A way to transfer your uploads list from the perchance.org/upload page from a computer into another computer
  • I might as well do a feature request here, @[email protected], 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?

  • A way to transfer your uploads list from the perchance.org/upload page from a computer into another computer

    Haven't been posting in this community for a while, but I'm here just to share a tip (I think there hasn't been anybody asking for this here yet) that someone on Discord has suggested on. This only works on computers with developer tools though, and I think you could do this in Firefox too.

    Here's how to do it:

    1. In https://perchance.org/upload, open DevTools Console (Ctrl+Shift+I > Console tab) and then select "embed" in the dropdown at the top of the console:

    !

    1. And then type in localStorage.previouslyUploadedFiles. It'll then give you a JSON of the upload list that you can copy the given string provided to a text file and transfer it to another computer you'd want to access the uploads for.

    !

    1. Right click and select "Copy string contents" ("Copy Message" in Firefox). Then, paste it into a text file somewhere that you can transfer through a media like a USB to be transferred into the other computer.

    2. In another computer, repeat the first two steps above, and then write this:

    javascript localStorage.previouslyUploadedFiles = [upload list content from the text file]

    1. Replace the [upload list content from the text file] part with the contents from the text file you've just transferred, and then hit Enter. This will magically set the upload list to the one you have in your primary computer.

    And that's it! The upload list isn't synced though, but at least could be useful for keeping stuff in. Feel free to add something missing here if you like! 😊

    6
    Latest BluePower news
  • Here's an updated progress bar.

  • [Request] Show $meta.title in generators listing
  • 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.

  • [Request] Make generators private by default
  • 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 😉) @[email protected]

  • Latest BluePower news
  • 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)

  • [UX/UI Improvements] Grand List of UX/UI Improvements Suggestions
  • 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. @[email protected] (this is a bug I've wanted to mention for a long while)

  • Latest BluePower news

    So I've been inactive for a full week, but at least I'm back here for now! There are some serious things I want to talk about just to keep your eyes out on the generator updating journey, especially with the ongoing huge 2.0.20.1 Generator Manager update development.

    Last week I've just experienced one of the most devastating events of my entire journey with my personal device I usually use to work on the managing and updating generators and also off-Perchance side projects. A big incident happened where my personal device somehow got blue-screened for a while and then after turning it back on, after a while, it just bricked up and stopped working while I was working on the Preview update (coincidentally with the mass worldwide Windows outage that happened at the time) and had to be repaired for several days. I wasn't able to do much other than constantly checking and updating the generator hub page on mobile during that time.

    Sadly, all the data inside was lost for good, and was pretty much unrecoverable, including all the off-Perchance side projects that I've been working for many days on. I then became disappointed and demotivated for a while knowing all the data on the old hard drive on the device was lost due to the event.

    That's when I decided to spend most of my time with the repaired device to restore and rebuild everything to a state used to be before it was lost, even though it'll not be exactly 100%. And that's where I'm going to spend most of the time doing that, going onto the big recovery business, using most of my mind on rebuilding all the side projects I've ever spent my time on and doing other important stuff for a couple weeks.

    Luckily enough, I've already backed up my unfinished Generator Manager update code, so I don't have to struggle re-writing each of the lines ever again! I've also backed up some of the raw files for the generator trailers, so I don't have to create the trailers from scratch. But once everything's back to normal again, I can finally spend more time exploring some good stuff on Perchance and continue working on the huge 2.0.20.1 update (I'll be posting a new trailer once I'm ready for that).

    But don't worry, I'll not going to fully go out of Perchance, I'll still be revisiting the site whenever I wanted to. And see the moments my generator hub page reaching 30.0k views and congratulating it, speaking of which, I'll be planning something else for the milestone... (here's a progress bar for now!)

    !

    So that's all I have to say! I hope this goes well and quick enough that I can start working on the Preview update again in no time. 😌

    Bonus question: Has everything changed on Perchance recently during my full-week break? I've wanted to check actually, but I was too lazy to do it because of the business.

    3

    Creating custom Perchance errors

    So I've just been working for the huge update for the Generator Manager since a couple days and I wanted to share one thing I've been working on in the middle of the making, that is the new error handling method on the generator hub page. Instead of just throwing the error onto the DevTools Console, it also throws the error into the Perchance error box inside the generator hub page, so it is much more convenient to see what's wrong with that feature in case I'm changing on something. And that is a custom Perchance error I just created.

    !

    This is accomplised using __perchanceError(), and I understand this is likely a "private" function or something that isn't guaranteed to be "backwards compatible" for long (as I understand that), but I wonder if this function was available for wide use and documented somewhere in the advanced tutorial, it'd be very good for someone to learn about. You can also put HTML into the custom error text to add some neat formatting to it.

    This will be limited to the handling of generator cards and the recently updated section for now but in future updates these will be expanded to pretty much every single feature on the generator hub page.

    1

    Building blocks and streams of changes for the huge update...

    Time for another trailer about the big Generator Manager 2.0.20.1 update! I have just started planning and getting to work on building the changes for the big update very soon, from the latest Preview update, and I hope that this goes well enough so that I could finish it in basically a few days from now. But there are three more off-Preview changes I want to mention here: new backgrounds and accent colors (of course), new sidebar items, and finally, the introduction of dark mode for the very first time ever!

    And there's just so many more coming out for the huge update...

    0

    Backups/restore points for unowned generators and logged-out sessions

    Since the new backups feature was released, which adds an ability to create restore points of generators in a case I accidentally closed a tab while the generator isn't saved yet. But I sometimes work on updating generators through a logged-out session or, when creating a new generator (hitting the new button in the navigation bar and it opens up the minimal template), which is in an unowned generators session (only save and account buttons in the top-right).

    And so, I'd need that feature to work on these kinds of environments, so I don't ever have to worry losing all the work there, especially when creating new generators.

    1

    Has anyone tried to update their generators without actually changing the content (inside of the lists or HTML) whatsoever?

    This is a pretty interesting topic to talk about. Whenever I feel want to bring a generator to the top of the generators page, hoping for a few people to click on them through the page, I always feel like the only way is to save the generator and made some tiny changes if possible. But, what if I don't want to actually change any of the content in a generator, and still be able to save it?

    Well, I know there's now a system where if you edit a generator and then undo/edit it back to its exact original/saved state (basically reverting it) Perchance will auto-detect that and the save button will go back to the saved state. This is a great feature honestly, but it's still possible to do the trick but the generator's content needs to be different from the original state, at least a character off. For example, adding an unobtrusive space around the lists code, or moving the list items up or down (Ctrl+Shift+Up/Ctrl+Shift+Down) and then saving right away.

    But what do you think about this?

    2

    There are a total of 34 mini custom/abstract flags scattered across the entire canvas - can you find them all?

    After I finished working on my drawing, I spent some extra time on the event drawing small custom/abstract flags inspired from generated flags from my flag generator, placed on random locations of tiny available spaces on the canvas. Mainly just to help fill the canvas, but overall, that was a cool and fun idea.

    I drew a total of 40 flags, but not all of them managed to survive until the end of the event. So, I double-checked and counted all the survived flags, and in total, there are 34 survived flags on the canvas. If you managed to find all of them, I'll reveal a huge list of locations in the comments!

    These are some of the mini flags, for a bit of a hint.

    ! ! !

    1

    The BluePower stuff drawing is finally done!

    cross-posted from: https://sh.itjust.works/post/22277134

    > 📍 Canvas location > > I'm happy I could finish a 158-pixel-wide drawing mostly (if not all) by myself ever since the time when the canvas was expanded (took around 2 days to finish). At the time the canvas had much more space to build in that I instantly got an idea to build a template incorporating the two URLs of my most popular Perchance projects (Power Generator Manager and Power Flag Generator (a.k.a. Random Custom Flag)) and some references. > > There was a bit of an adjustment when someone was drawing overlapping on my template, but it was fine, I then planned to move some parts around. > > Now, while I look around the canvas, I wanted to draw more custom/abstract flags scattered around the entire canvas (in tiny available spaces of course) during the remaining time of the event, just to help fill more pixels around the flag layouts/models will be grabbed from my flag generator. Here's a group of the blank versions for a reference. What do you think?

    1

    The BluePower stuff drawing is finally done!

    📍 Canvas location

    I'm happy I could finish a 158-pixel-wide drawing mostly (if not all) by myself ever since the time when the canvas was expanded (took around 2 days to finish). At the time the canvas had much more space to build in that I instantly got an idea to build a template incorporating the two URLs of my most popular Perchance projects (Power Generator Manager and Power Flag Generator (a.k.a. Random Custom Flag)) and some references.

    There was a bit of an adjustment when someone was drawing overlapping on my template, but it was fine, I then planned to move some parts around.

    Now, while I look around the canvas, I wanted to draw more custom/abstract flags scattered around the entire canvas (in tiny available spaces of course) during the remaining time of the event, just to help fill more pixels around the flag layouts/models will be grabbed from my flag generator. Here's a group of the blank versions for a reference. What do you think?

    3

    Power Generator Manager and the Power Flag Generator's going on the Canvas Event!

    In case you haven't heard yet, there's an ongoing Canvas event inclusive to the entire Fediverse, similar to Reddit's r/place, that encourages people to place pixels one at a time and draw some cool pixel arts. I participated in the event, and eventually made my own template and started working on it. It is still in progress, though I wanted to post something like this to the community.

    Here's a link to the template if you want to look around or would like to help.

    Btw, there's a reference about the upcoming huge Generator Manager update!

    0

    Embedding comments and galleries from multiple different generators at once

    I just discovered another interesting feature utilizing the generatorName altering solution but it is even more powerful. You can basically pull comments and text to image galleries from multiple generators in a single generator page, simply by putting multiple [generatorName = "<generator name>", ""] blocks inside the comments plugin/text to image gallery block calls, according to the left-to-right Perchance code reading mechanism (see the "Execution Order" section in the examples page).

    For example, I can have two comments sections, one from my generator hub page and the other from the generators page, and then put an ai-text-to-image-generator gallery, all in one single generator.

    Currently didn't have much time to explain it better (but feel free to do so!) Here's a very simple example I made demonstrating the feature.

    0

    Empty/Blank Generators

    I've discovered a number of blank/empty generators that have zero lines of code on both the list and HTML panels. Here's a compiled list of them that I could find:

    • https://perchance.org/blank
    • https://perchance.org/empty
    • https://perchance.org/null
    • https://perchance.org/preprocessor
    • https://perchance.org/perchance
    • https://perchance.org/generator
    • https://perchance.org/chat

    If you happen to find another one of these, please let me know!

    1

    The huge Generator Manager 2.0.20.1 update is almost here, and I'll be bringing back the unlisted generators...

    mastodon.social BluePower (@[email protected])

    Attached: 1 image Be prepared, because there will be EVEN more trailers coming out as I'll start recalling all the plans and working on it, which is the sign that the release date for the big 2.0.20.1 update is coming closer (this month)! And beware, the Generator Manager event is about to end in ...

    BluePower (@BluePower@mastodon.social)

    After revisiting, recalling and reevaluating my plans about the big update, so many times, I think it's time for a new trailer about the huge update!

    Remember these small, interesting test generators I made that I've been pulling out from the generator hub page over a year ago? Chances are, if you've stumbled upon my page since a very long time ago, you might remember some of them, like Typewriter Speed Test, Fake Error Generator, and The Computer Based Story. And this time, with the huge update, I'll be bringing back those generators with a little bit of twist - they will only be accessible with a special URL parameter you can put in the link, like ?enableRawStats=true.

    And this will not only be one of the notable changes I'll make in the update - there's a lot more to come!

    0

    Remove traditional Markdown styling generated with the Markdown plugin

    This is a trick I've stumbled upon several days ago, and I haven't seen it documented anywhere in the examples or advanced tutorial page. If you don't feel like the traditional Markdown style when using the Markdown plugin and simply wanted to use the usual HTML style, you can simply do this:

    ```javascript markdown = {import:markdown-plugin}

    output = [markdown(text).replace("markdown-body", "")] ```

    The .replace("markdown-body", "") part is what makes the formatted text loses the Markdown style and goes into the regular HTML style which then you can stylize yourself using CSS to whatever you want. It essentially removes the markdown-body class in the body of the entire markdown text (or that's what I could explain).

    1

    Happy 20.0k to the flag generator 🚩

    mastodon.social BluePower (@[email protected])

    Attached: 1 image I didn't see that the flag generator *already* reached the big 20.0k views milestone?! I can't believe that have gone so fast, considering on how much attraction the generator has gained compared to my other ones, but we pretty much did it!! 🥳 The NEW refreshed interface is comi...

    BluePower (@BluePower@mastodon.social)

    Forget to revisit the generator the moment it reached that since I've been on a long trip, but the flag generator has finally reached the second big milestone that the Generator Manager has done about two months ago. I don't have much to say about this one, but still, that's an incredible milestone! 🙂

    (Btw, this is a trailer I did months ago about the huge UI revamp update)

    0

    Did you notice something in the Generator Manager Preview page?

    Yes, the generator hub page view counter at the top is now merged from the stable Generator Manager release! I didn't know that happened while busy doing implementing some hot patch fixes to the preview page (which includes re-ordering all the wires for all the generator stats, including on the generator cards^[Yes I now refer those as "generator cards", not "generator items" anymore], to work) so it'll be much more cooked to be ready to just efficiently ship all the components into the stable + implementing some additional features.

    0

    Fun fact: There's a very, very slim chance that a user tag in the comments display exactly as ABCD.

    This would happen only in two ways, either the user ID is unique enough that when converted without being caught as a "bad" word in the process it turns into the ABCD visual tag, or after converted, the visual tag deemed to have bad words (or look exactly like a bad word), even after checking it more than one time, resulting in the tag falling back to the ABCD format.

    I just deep dived into the comments plugin's user ID into visual ID converting algorithm behind the scenes, that's why I'm making a post related on this topic. Also, have you ever seen actual occurrences of tags like this happening on comments of generators? Share if you have one!

    3

    URL Params Plugin doesn't work on some of my generators

    While updating an in-event generator for the ongoing Generator Manager Event, A Venture Poem Generator, I have tried to add the url-params-plugin to add a feature so users could disable glows on the poem for performance reasons. But when testing out the generator after saving, it doesn't work at all. Even when I test if that URL parameter exists at all, it still won't show the expected output. Whatever parameter I put into the URL, when I run [url.anyurlname], it outputs undefined instead.

    I've done the same with my view counter experiment generator, and had the same issue. (Try visiting https://perchance.org/the-view-counter-experiment?name=Example, the greeting text above the tabs thing should output Hello, Example!)

    This is more likely a bug with the plugin that for some reason fails to cache those URL parameters into the generator. When I try setting the url value to [Object.fromEntries([...new URL(window.location.href).searchParams.entries()])] in place of importing the plugin in that generator, that worked. And since I use two different browsers, both didn't work with the plugin imported.

    3

    Hosting my first ever Generator Manager Event to spark up the moment before shipping the big 2.0.20.1 update to release 🚀

    cross-posted from: https://sh.itjust.works/post/21543982

    > Hello and welcome to the first Generator Manager Event ever hosted! > > This is going to be a casual event that will be ongoing mostly during the times of my preparation for the huge 2.0.20.1 update, created in favor to increase the "spirit" and uprising interest in those kind of stuff to a point where I could finally be energetic enough to release the update, unlike the past few weeks where I planned the update much earlier and ended up getting delayed a lot due to massive business stuff struck around in real life. The big update turned out to be even more massive than I think would be because that's when I was aware that I wasn't going to release the update as planned and I'm going to have to set up lots and lots of things and re-wirings prior to the actual release of the update. > > As the name implies, it's about an adventure, so go make some adventure/space themed generators to be submitted into this event! > > Starts: 30 June 2024, 12:00:00 UTC > > Ends: 14 July 2024, 12:00:00 UTC > > ## Generator Rules: > - Make any adventure/space themed generators, as long as it's not explicit or adult content > - It's recommended to add some color in your generator! Maybe simply make the background colored, add some decorations or whatever you like to further glow up the generator. > - You can submit your generators to this community as well. Make sure to submit after the event started and before it ended. > > To add some spark into the preparation event, I want to mention a bit of thought I have left for the changelog of the big update: We'll be back regularly releasing some improvement updates to the generator hub page a few times every single month, and that'll happen right after we release this very exciting update! These follow-up updates will often star some massive improvements and rollouts of features planned to be in the 2.0.20.1 update that wasn't in the update afterwards, including the long-awaited dark mode and the re-aligned Home page, in the follow-up Generator Manager updates after that! So, don't miss the mark out if you're waiting for those really cool updates! (And the Event page will get a kind of an overhaul, too, for an even richer experience.) > > Happy creating and stay together for the event! 🚀 > > --- > > See the Generator Manager Events here

    1