Since KML has been added by the Google Maps API as images in the DOM, you can change its opacity using CSS by searching for <img> elements containing "kml" in your src attribute:
#map img[src*='kml'] { opacity: .5; }
Alternatively, you can achieve this with jQuery:
jQuery("#map").find("img[src*='kml']").css("opacity","0.5");
But keep in mind that when the user zooms out or moves the map, new KML images will be loaded, so you will have to call this jQuery function again.
source share