Keep CurseForge's "Game Version" filter when searching
Whenever you search for a mod on CurseForge by name, the current "Game Version" filter will be removed, which means you cannot specifically search for e.g. Fabric or Forge Minecraft mods.
This script simply keeps the current filter (though not the current sorting) intact when searching.
Note that the search page does not tell you what the search was filtered by. The only indication that the search was filtered can be seen in the URL (e.g. filter-game-version=2020709689%3A7499
means it is filtered by Fabric mods), so do keep that in mind.