Simple example usage: https://perchance.org/url-params-plugin-example?blah=abc123
It’s really simple:
url = {import:url-params-plugin}
output
[url.blah] // this will output 'abc124' if URL has '?blah=abc123' on the end
This plugin allows you to, for example, have several “different” generators within the same generator page, where each sub-generator has its own URL. Or to just adapt the output of your generators based on the URL. E.g. you might have an English and a French version of your generator with URLs like this:
In that case, within your code you can use [
to determine which language the user is viewing, and adjust your list selection/odds/etc. based on that. ]
You can also use it to e.g. link directly to a particular seed for the seeder plugin, and stuff like that.
(Note for experienced Perchance users: The old document.referrer
hack is no longer required since Perchance now copies all parameters over to the iframe when initializing it)