The parameter I am talking about specifically is the __generatorLastEditTime parameter.

This is a visual example:

The URL: https://perchance.org/vue-router?__generatorLastEditTime=1752040569107#/

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.

The URL: https://perchance.org/vue-router#/about

You can check out the project here.

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 1 point 1 year ago