He escrito este script para redirigir todas las URL que no contienen ¶m=param1 a la URL agregando ¶m=param1. Tengo dos preguntas.
chrome.webRequest.onBeforeRequest.addListener( function(details) { return { redirectUrl: details.url + (details.url.indexOf("?") == -1 ? "?" : "") + (details.url.indexOf("¶m=param1") == -1 ? "¶m=param1" : "") }; }, {urls: ['*://*.mysite.it/*'], types: ['main_frame']}, ['blocking'] );