The Google Labs tweaker targets two separate things: it can rewrite the MusicFX homepage link inside intercepted Next.js JavaScript bundles, and it can convertDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/cloudwaddie/aitweaker/llms.txt
Use this file to discover all available pages before exploring further.
{"notFound":true} JSON responses into {"notFound":false} to bypass errors on labs.google/fx routes that would otherwise render a 404 page.
How it works under the hood
The proxy matches two URL patterns for Google Labs:- JS bundles:
https://labs.google/fx/_next/static/chunks/pages/index-*.js - Data JSON:
https://labs.google/fx/_next/data/*.json
MusicFX link replacement
When a JS bundle matches, the proxy does a direct string substitution:proxy.py
notFound bypass
For JSON responses, the proxy converts the response body and also handles HEAD-to-GET conversion on the request side:proxy.py
HEAD-to-GET conversion happens at the request stage, before the response is received. This is required because Next.js sometimes pre-checks data routes with HEAD requests, and the mitmproxy response hook would never fire for a HEAD that gets a valid reply.
Setting up the Google Labs tab
Enable modifications
Toggle Enable Google Labs Modifications at the top of the tab. This is the master switch for both features on this tab.
Set the MusicFX replacement path
Enter a path into the Replace MusicFX Homepage Link field. The value you enter replaces
/tools/music-fx in the intercepted JS. Do not include a leading slash — the proxy prepends one automatically.The label underneath the field confirms the behaviour: “Replaces the ‘/tools/music-fx’ link with your own path (e.g., /debug).”Enable the notFound bypass
Toggle Bypass ‘notFound’ errors. When on, any
{"notFound":true} data response from labs.google/fx/_next/data/ is replaced with {"notFound":false}, and HEAD requests to those routes are promoted to GET so Next.js actually fetches the page data.Example configurations
- MusicFX debug path
- MusicFX notebook path
- notFound bypass only
Set Replace MusicFX Homepage Link to
debug. The proxy will rewrite 'link':'/tools/music-fx' to 'link':'/debug' in the Next.js bundle.If the replacement path you enter is not present in the current version of the labs.google JS bundle, the proxy will log
Target for MusicFX link replacement not found. and leave the response unmodified. The notFound bypass is independent and will still apply.