https://perchance.org/updateevery

looking in to how plugins work, i took a little javscript, put it in da perchances, and poof ~plugin created. this does the ‘setIntervalling’ to allow easy peasy updating every X milliseconds, either all elements or targeted id.

i tried to use arguments[0] to access arguments sent to the plugin and for some reason it didn’t work. Usually it would in javascript but maybe some weird perchancian interaction.

also started hub for my stuff in style of perchancians. may maek page look nicer

  • VioneT@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    3
    ·
    10 months ago

    Pretty simple. One problem that I saw was that if the plugin is updated by an update(), it would add another interval, which might be not intended. You might want to clear the interval if it has been updated i.e. check if there is an interval already running, then remove that and add a new one.