(function (w, d) { w.tsUpdateMetaDescription = function () { var existingTitle = document.querySelector('title').innerText; document.querySelector('title').innerText = "***** Rating: 4.7 - 115 Reviews - " + existingTitle; var existingDesc = document.querySelector('meta[name="description"]').getAttribute("content"); document.querySelector('meta[name="description"]').setAttribute("content", "***** Rating: 4.7 - 115 Reviews - " + existingDesc); }; var timestamp = document.createElement("meta"); timestamp.setAttribute("name", "ts-timestamp"); timestamp.setAttribute("content", new Date().toLocaleString()); document.head.appendChild(timestamp); if (d.getElementById("ts-json") === null) { var filter = Array.prototype.filter; var productName = "LockSub Basingstoke"; var title = document.querySelector("title"); if (title === null || title.innerText.match(/^ *$/) !== null) { title = filter.call(d.querySelectorAll('h1'), function (node) { return node.innerText != ""; })[0]; } if (typeof title !== "undefined") { productName = title.innerText; } var json = "[{\"@type\":\"Product\",\"@id\":\"{{url}}#trustist\",\"description\":null,\"logo\":\"https://content.trustist.com/brandlogos/8ec4d4e6-69ca-49e7-9da0-15b741497b9f.png\",\"image\":[\"https://content.trustist.com/brandlogos/8ec4d4e6-69ca-49e7-9da0-15b741497b9f.png\"],\"name\":\"{{productName}}\",\"alternateName\":null,\"hasMap\":null,\"geo\":null,\"telephone\":null,\"url\":\"{{url}}\",\"address\":null,\"branchOf\":null,\"openingHoursSpecification\":null,\"sameAs\":[\"https://www.trustist.com/local-reviews/Review-locksub-basingstoke-Reviews-23239.html\"],\"@context\":\"http://schema.org\",\"brand\":{\"@type\":\"Organization\",\"@id\":null,\"description\":null,\"logo\":\"https://content.trustist.com/brandlogos/8ec4d4e6-69ca-49e7-9da0-15b741497b9f.png\",\"image\":[\"https://content.trustist.com/brandlogos/8ec4d4e6-69ca-49e7-9da0-15b741497b9f.png\"],\"name\":\"LockSub\",\"alternateName\":null,\"hasMap\":null,\"geo\":null,\"telephone\":null,\"url\":\"http://locksub.com/\",\"address\":null,\"branchOf\":null,\"openingHoursSpecification\":null,\"sameAs\":null},\"aggregateRating\":{\"@type\":\"AggregateRating\",\"ratingValue\":4.7,\"bestRating\":5,\"worstRating\":1,\"reviewCount\":115},\"review\":null,\"mpn\":\"{{url}}\",\"sku\":\"{{url}}\"},{\"@type\":\"LocalBusiness\",\"@id\":\"https://www.trustist.com/local-reviews/Review-locksub-basingstoke-Reviews-23239.html\",\"description\":null,\"logo\":\"https://content.trustist.com/brandlogos/8ec4d4e6-69ca-49e7-9da0-15b741497b9f.png\",\"image\":[\"https://content.trustist.com/brandlogos/8ec4d4e6-69ca-49e7-9da0-15b741497b9f.png\"],\"name\":\"LockSub\",\"alternateName\":\"LockSub Basingstoke\",\"hasMap\":\"https://maps.google.com/?cid=16890082149323285458\",\"geo\":{\"@type\":\"GeoCoordinates\",\"latitude\":\"51.261230\",\"longitude\":\"-1.129557\"},\"telephone\":\"01256 278607\",\"url\":\"http://locksub.com/\",\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"\",\"addressLocality\":\"\",\"addressRegion\":null,\"postalCode\":null,\"addressCountry\":null},\"branchOf\":{\"@type\":\"Organization\",\"name\":\"LockSub\",\"sameAs\":\"http://locksub.com/\"},\"openingHoursSpecification\":[{\"@type\":\"OpeningHoursSpecification\",\"closes\":\"00:00:00\",\"dayOfWeek\":\"http://schema.org/Sunday\",\"opens\":\"00:00:00\"}],\"sameAs\":[\"https://maps.google.com/?cid=16890082149323285458\",\"https://www.yell.com/biz/locksub-locksmith-basingstoke-ltd-basingstoke-9655562/\",\"https://www.facebook.com/locksubpage/\"],\"@context\":\"http://schema.org\",\"aggregateRating\":null,\"review\":null,\"paymentAccepted\":null,\"makesOffer\":{\"@type\":\"Offer\",\"@id\":\"#services\",\"itemOffered\":{\"@type\":\"Service\",\"name\":\"Locksmith\",\"url\":\"http://locksub.com/\",\"areaServed\":[{\"@type\":\"City\",\"name\":null}]}}}]"; var a = d; var c = a.createElement("script"); c.type = 'application/ld+json'; c.id = 'ts-json'; c.innerText = json .replace(new RegExp("{{url}}", 'g'), w.location.href) .replace("\"{{productName}}\"", JSON.stringify(productName).replace(/[^ -~]+/g, "")); a = a.getElementsByTagName("head")[0]; a.appendChild(c); } var s = document.createElement('script'); s.type = 'text/javascript'; s.defer = true; s.src = 'https://widget.trustist.com/mVfNK56AZUys7BW3QrCfNQ/ratingsummary.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })(window, document);