1// G translate if you're looking at this, I know you're using the Google translation Widget 2// https://developers.google.com/search/blog/2020/05/google-translates-website-translator 3 4 5// I don't actually want the toolbar to show up, don't give it anything to attach to 6 7//const div = document.createElement("div"); 8//div.className = "gtranslate_wrapper"; 9//document.body.appendChild(div); 10 11// Set the language based off the URL 12//language = new URLSearchParams(window.location.search).get('lang'); 13//if (language != null) { 14// // For some reason cookies must be set on domain and subdomain 15// document.cookie = `googtrans=/auto/${language};`; 16// document.cookie = `googtrans=/auto/${language}; domain=koyeb.app`; 17// // Google yaps that performance.measure is negative because we display the page several times due to embeds 18// // The performance measure they use returns a negative this way, so here I just disable performance measure builtin 19// performance.measure = null 20//// document.addEventListener("DOMContentLoaded", () => { 21// const script = document.createElement('script'); 22// script.src = "https://cdn.gtranslate.net/widgets/latest/float.js"; 23// document.body.appendChild(script); 24//// }); 25//}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.