PageSourceSearch

https://irentcarrental.com/partner-logos.js?v=5

js irentcarrental.com collected 2026-10-04 05:11:25 UTC 10,921 bytes, 130 lines download raw bytes

1/* iRent homepage enhancer — injected on the homepage via nginx. Durable across app rebuilds.
2   1) Swaps each partner ✓+name badge for the brand's real logo mark (favicon) + caption.
3   2) Rewrites homepage marketing copy (English + Spanish) to be Miami-specific & benefit-led.
4   Lightweight: a few timed passes that stop once applied — NO continuous MutationObserver,
5   so it cannot loop or freeze low-power mobile devices. Copy changes match exact strings,
6   so switching language is unaffected. */
7(function(){
8  var MAP={
9    "DiscoverCars":"discovercars.com","Rentcars":"rentcars.com","QEEQ":"qeeq.com",
10    "CarJet":"carjet.com","VIP Cars":"vipcars.com","Economy Car Rentals":"economycarrentals.com",
11    "EconomyBookings":"economybookings.com","CarFlexi":"carflexi.com","DoYouSpain":"doyouspain.com",
12    "DoYouItaly":"doyouitaly.com","LocalRent":"localrent.com","ReserveAway":"reserveaway.com",
13    "Carla Car Hire":"carla.co","Trip":"trip.com"
14  };
15  function initials(n){
16    return (n||'').replace(/[^A-Za-z0-9 ]/g,'').split(/\s+/)
17      .filter(Boolean).map(function(w){return w[0];}).join('').slice(0,2).toUpperCase();
18  }
19  function upgradeBadge(li){
20    if(li.getAttribute('data-logo')==='1') return;              // idempotent
21    var nameEl=li.querySelector('.partner-badge-name');
22    var name=((nameEl?nameEl.textContent:li.textContent)||'').trim();
23    if(!name) return;
24    li.setAttribute('data-logo','1'); li.classList.add('has-logo');
25    var dom=MAP[name];
26    while(li.firstChild) li.removeChild(li.firstChild);
27    var badge=document.createElement('span'); badge.className='pl-badge';
28    if(dom){
29      var img=document.createElement('img');
30      img.className='partner-logo'; img.alt=name+' logo'; img.loading='lazy'; img.decoding='async';
31      var sources=['https://icons.duckduckgo.com/ip3/'+dom+'.ico',
32                   'https://www.google.com/s2/favicons?domain='+dom+'&sz=128'];
33      var i=0;
34      img.onerror=function(){
35        i++;
36        if(i<sources.length){ img.src=sources[i]; }
37        else{ if(img.parentNode) img.parentNode.removeChild(img);
38              badge.classList.add('pl-fallback'); badge.setAttribute('data-ini',initials(name)); }
39      };
40      img.src=sources[0]; badge.appendChild(img);
41    } else { badge.classList.add('pl-fallback'); badge.setAttribute('data-ini',initials(name)); }
42    li.appendChild(badge);
43    var nm=document.createElement('span'); nm.className='partner-badge-name'; nm.textContent=name;
44    li.appendChild(nm);
45  }
46  function setText(el,val){ if(el && el.textContent!==val) el.textContent=val; }   // idempotent
47  function partnersCopy(){
48    setText(document.querySelector('.partners h2'),"Book iRent on the World’s Top Travel Platforms");
49    setText(document.querySelector('.partners .partners-intro'),"Millions of travelers find our Miami, Fort Lauderdale and West Palm Beach fleet through the leading car-rental marketplaces below. Wherever you book, you get the same clean, reliable cars — but you’ll always get our lowest rate and free 24/7 airport shuttle when you book direct at irentcarrental.com.");
50    setText(document.querySelector('.partners .partners-note'),"As featured on the world’s leading car-rental marketplaces. Book direct to save more and skip the middleman fees.");
51  }
52
53  var REPL={
54    /* ---- English ---- */
55    "Book your Car today!":"Rent a Car in Miami — Book in Minutes",
56    "What you see is what you pay.":"The price you see is the price you pay — taxes and fees included.",
57    "Distinctive fleet":"Clean, Reliable Fleet",
58    "Choose from a wide selection of premium and reliable vehicles.":"Newer, well-kept cars — from economy to SUVs and vans.",
59    "Explore cities and beyond without limits.":"Drive across Florida with no mileage c
59aps.*",
60    "Service":"24/7 Support",
61    "24-Hour Roadside Assistance for peace of mind.":"24/7 roadside assistance, so you’re never stuck.",
62    "What Makes Us Different?":"Why Travelers Choose iRent",
63    "From compact city cars to luxury SUVs, our distinctive fleet caters to every travel need. Whether it's business or leisure, we have the perfect car for your trip.":"From compact economy cars to spacious SUVs and vans, our fleet covers every trip — business, a family vacation, or a weekend on South Beach.",
64    "We offer competitive rates on all vehicles, ensuring you get top-quality cars at unbeatable prices. No need to compromise - get great value for your money every time.":"Honest, competitive rates with no hidden fees — quality cars at prices that beat the big airport brands, every single time.",
65    "Offering convenient locations and flexible scheduling, we make renting a car hassle-free. Whether you're arriving a city or an International Airport, your vehicle will be ready when you are.":"Convenient locations near MIA, FLL and PBI airports with flexible hours and self-service pickup. Your car is ready the moment you land.",
66    "Skip the lines and book your car rental in minutes through our user-friendly online platform. Compare options, customize your rental, and secure your vehicle effortlessly.":"Skip the counter lines. Compare cars, customize your rental and book online in just a few minutes.",
67    "Whether you're booking a vehicle, need assistance on the road, or have any questions, our dedicated support team is available around the clock.":"Booking a car, need help on the road, or just have a question? Our team is here for you around the clock.",
68    "No waiting around! Once you choose your vehicle and complete your booking, you'll receive an immediate confirmation, ensuring a smooth and hassle-free rental process.":"No waiting around. Choose your car, book, and get instant confirmation — a smooth, hassle-free rental every time.",
69    "Vehicle Selection Guidance":"Help Choosing Your Car",
70    "Inquiries and Modifications":"Easy Booking Changes",
71    "Meet Some of Our Car sizes":"Find the Right Size for Your Trip",
72    "Our vehicles come in three main sizes.":"Our fleet comes in three easy sizes — pick what fits your trip and your budget.",
73    "Browse by Destinations":"Explore Miami & South Florida by Car",
74    "Map of Car Rental Locations":"Our Pickup Locations Across South Florida",
75    /* ---- Spanish (Miami-friendly "auto") ---- */
76    "¡Reserva tu coche hoy!":"Alquila un Auto en Miami — Reserva en Minutos",
77    "Lo que ve es lo que paga.":"El precio que ves es el precio que pagas — impuestos y tarifas incluidos.",
78    "Flota distintiva":"Flota Limpia y Confiable",
79    "Elija entre una amplia selección de vehículos premium y confiables.":"Autos nuevos y bien cuidados — desde económicos hasta SUV y vans.",
80    "Explore ciudades y más allá sin límites.":"Conduce por toda Florida sin límite de millas.*",
81    "Servicio":"Soporte 24/7",
82    "Asistencia en carretera las 24 horas para su tranquilidad.":"Asistencia en carretera 24/7, para que nunca te quedes varado.",
83    "Lo que nos distingue ¿Diferente?":"Por Qué los Viajeros Eligen iRent",
84    "Desde coches urbanos compactos hasta SUV de lujo, nuestra distintiva flota satisface todas las necesidades de viaje. Ya sea por negocios o por placer, tenemos el coche perfecto para su viaje.":"Desde autos económicos compactos hasta SUV y vans espaciosas, nuestra flota cubre cada viaje — negocios, unas vacaciones en familia o un fin de semana en South Beach.",
85    "Ofrecemos tarifas competitivas en todos los vehículos, lo que garantiza que obtendrá automóviles de la mejor calidad a precios inmejorables. No es necesario que haga concesiones: obtenga una excelente relación calidad-precio en todo momento.":"Tarifas honestas y competitivas, sin cargos ocultos — autos de calidad a precios que superan a las grandes marcas del aeropuerto, siempre.",
86    "Ofrecemos ubicaciones convenientes y horarios flexibles, para que alquilar un coche sea una experiencia sin complicaciones. Tanto si llega a una ciudad como a un aeropuerto internacional, su vehículo estará listo cuando usted lo esté.":"Ubicaciones convenientes cerca de los aeropuertos MIA, FLL y PBI, con horarios flexibles y recogida self-service. Tu auto está listo apenas aterrizas.",
87    "Evite las colas y reserve su alquiler de automóvil en minutos a través de nuestra plataforma en línea fácil de usar. Compare opciones, personalice su alquiler y asegure su vehículo sin esfuerzo.":"Evita las filas del mostrador. Compara autos, personaliza tu alquiler y reserva en línea en solo unos minutos.",
88    "Ya sea que estés reservando un vehículo, necesites asistencia en la carretera o tengas alguna pregunta, nuestro equipo de soporte dedicado está disponible las 24 horas.":"¿Reservando un auto, necesitas ayuda en la carretera o tienes una pregunta? Nuestro equipo está disponible las 24 horas.",
89    "¡Sin esperas! Una vez que elijas tu vehículo y completes tu reserva, recibirás una confirmación inmediata, lo que garantiza un proceso de alquiler sin complicaciones y sin complicaciones.":"Sin esperas. Elige tu auto, reserva y recibe confirmación inmediata — un proceso de alquiler simple y sin complicaciones.",
90    "Orientación para la selección de vehículos":"Ayuda para Elegir tu Auto",
91    "Consultas y modificaciones":"Cambios de Reserva Fáciles",
92    "Descubre algunos de nuestros tamaños de coches":"Encuentra el Tamaño Ideal para tu Viaje",
93    "Nuestros vehículos están disponibles en tres tamaños principales.":"Nuestra flota viene en tres tamaños — elige el que se ajuste a tu viaje y a tu presupuesto.",
94    "Buscar por destinos":"Explora Miami y el Sur de Florida en Auto",
95    "Mapa de ubicaciones de alquiler de coches":"Nuestros Puntos de Recogida en el Sur de Florida"
96  };
97  function marketingCopy(){                                     // idempotent: replaced text no longer matches
98    var root=document.querySelector('.home'); if(!root) return;
99    var w=document.createTreeWalker(root,NodeFilter.SHOW_TEXT,null), n;
100    while(n=w.nextNode()){
101      var t=n.nodeValue.trim();
102      if(t && REPL.hasOwnProperty(t)) n.nodeValue=n.nodeValue.replace(t,REPL[t]);
103    }
104  }
105
106  // Apply once; return true when the partners grid has been handled (page rendered).
107  function apply(){
108    try{
109      marketingCopy();
110      var grid=document.querySelector('.partners-grid');
111      if(grid){
112        var b=grid.querySelectorAll('.partner-badge');
113        for(var i=0;i<b.length;i++) upgradeBadge(b[i]);
114        partnersCopy();
115        return true;
116      }
117    }catch(e){}
118    return false;
119  }
120
121  // A few backed-off passes; stop as soon as the partners section is present.
122  var delays=[0,250,600,1200,2500,4500,7000], k=0;
123  function tick(){
124    var done=apply();
125    k++;
126    if(!done && k<delays.length) setTimeout(tick, delays[k]-delays[k-1]||300);
127  }
128  if(document.readyState!=='loading') tick();
129  else document.addEventListener('DOMContentLoaded',tick);
130})();

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.