The parameter I am talking about specifically is the __generatorLastEditTime parameter.
This is a visual example:

Is there any problem in removing it?
I was using Vue Router with its createWebHashHistory() API to make hash routes for an application, since Perchance doesn't support actual routes for apps.
I made a simple logic to simply remove it.
const url = new URL(location.href)
url.searchParams.delete('__generatorLastEditTime')
history.replaceState(null, '', url)
Now you get a cleaner URL instead.

You can check out the project here.
2 Comments
Cocell@lemmy.world · 1 pts · 1y
Pinging @Perchance Dev and @VioneT.
Cocell@lemmy.world · 1 pts · 1y
So, I decided to to look into Perchance's internal code myself, since I couldn't get an answer.
And it looks like Both the
__generatorLastEditTimeparameter and the__initWithDataFromParentWindowparameter are needed ONLY during the initial load.And looking at this part of the code, it seems like Perchance dev is already moving away from the
__generatorLastEditTimeparameter.So, I am assuming it is fine to remove these two parameters after the app has loaded. However, I could be wrong, these are just my general understanding after looking into the internal logic.