PageSourceSearch

https://www.paulinky.cz/user/documents/custom96.js

js paulinky.cz collected 2026-09-24 10:11:33 UTC 28,131 bytes, 480 lines download raw bytes

1$(document).ready(function(){
2
3    // pomocna fce pro kosik
4    $.fn.onClassChange = function(cb) {
5      return $(this).each((_, el) => {
6        new MutationObserver(mutations => {
7          mutations.forEach(mutation => cb && cb(mutation.target, mutation.target.className));
8        }).observe(el, {
9          attributes: true,
10          attributeFilter: ['class'] // only listen for class attribute changes 
11        });
12      });
13    }
14    
15    // detail produktu
16    $(".detail-parameters tbody tr.sold-out").remove();
17    if(window.innerWidth > 767){
18        $("ul.menu-level-1 > li:not(.menu-item-1363, .menu-item-1645, .menu-item-1555, .menu-item-1366, .menu-item-1450, .menu-item-5025, .menu-item-919, .menu-item-931, .menu-item-29, .menu-item-5046), #nav-manufacturers").remove();
19    }
20    shoptet.menu.splitMenu();
21    $(".extended-description h3").remove();
22    var ed = $(".extended-description").detach();
23    if($(".p-info-wrapper > p").length){
24        ed.insertBefore(".p-info-wrapper > p");
25    } else {
26    	  ed.insertAfter(".p-info-wrapper > .add-to-cart");
27    }
28    $("#cat-1450").after("<hr class=\"customHR\"><h4>Od Paulínek</h4>");
29    
30    //ecomail target
31    $("#formNewsletterWidget").attr("action","https://paulinky.ecomailapp.cz/public/subscribe/1/43c2cd496486bcc27217c3e790fb4088");
32
33    //odstranit filtry
34    if($("#filters-wrapper").length > 0){
35      	$("#filters-wrapper").remove();
36    }    
37    
38    //presunout hodnoceni obchodu
39    if($("#hodnoceniobchodu").length > 0){
40        var ho = $("#hodnoceniobchodu").detach();
41        ho.removeClass();
42        ho.addClass("box box-bg-default box-sm");
43        ho.insertBefore($(".box-facebook"));    
44    }
45    
46     //presunout clanek misto komentaru
47    if($(".homepage-blog-wrapper").length > 0 && $(".latest-contribution-discussion").length > 0){
48        $(".homepage-blog-wrapper .homepage-group-title").remove();
49        var bw = $(".homepage-blog-wrapper").detach();
50        $(".latest-contribution-discussion").html("<h2>Poslední článek</h2>");
51        $(".latest-contribution-discussion").append(bw);    
52    }
53    
54    //zabrana proti kopirovani
55    $(".p-desc, .p-short-description").on("contextmenu",function(e){
56       return false;
57    });
58    
59    $(".p-desc, .p-short-description").attr('unselectable','on')
60     .css({'-moz-user-select':'-moz-none',
61           '-moz-user-select':'none',
62           '-o-user-select':'none',
63           '-khtml-user-select':'none', /* you could also put this in a class */
64           '-webkit-user-select':'none',/* and add the CSS class here instead */
65           '-ms-user-select':'none',
66           'user-select':'none'
67     }).bind('selectstart', function(){ return false; });
68     
69    // presun omezeni k vyctu dopravy
70    if($(".site-msg-custom.step-1").length){
71        var sm = $(".site-msg-custom.step-1").detach();
72        $(".box.co-delivery-method").append(sm);
73    }
74    
75    // dekovny GIF
76    if($(".recapitulation-wrapper > .summary-thx").length){
77        $("<div class=\"order-summary-item\"><img src=\"https://www.paulinky.cz/user/documents/upload/dekujeme.gif\" style=\"max-width: 50%;\"></div>").insertAfter(".recapitulation-wrapper > .summary-thx");
78    }
79
80    // podporuji Paulinky
81    if($(".removeable").length){
82        if(!$(".removeable[data-micro-sku=40207]").length){
83            $(".cart-summary").append("<h4>Chci podpořit Paulínky</h4><div>Pokud byste si přáli podpořit apoštolát řeholní kongregace Dcer sv. Pavla, můžete k platbě za Váš nákup připočíst libovolnou částku (nepřesahující 999 Kč) jako Váš příspěvek. Tato částka pak bude součástí faktury, která Vám bude sloužit jako potvrzení o daru.</div><table class=\"cart-table\"><tbody><tr><td class=\"cart-p-image\"><img src=\"https://cdn.myshoptet.com/usr/www.paulinky.cz/user/shop/related/40207-1_logo.png?65c9efca\" data-src=\"https://cdn.myshoptet.com/usr/www.paulinky.cz/user/shop/related/40207-1_logo.png?65c9efca\" alt=\"Paulinky logo\"></td><td class=\"p-name\">Chci podpořit Paulínky částkou</td><td class=\"p-quantity p-cell\"><div data-testid=\"tooltip\"><form action=\"/action/Cart/addCartItem/\" method=\"post\" class=\"quantity-form js-quantity-form\"><span class=\"p-label\">Čáskta</span><input type=\"hidden\" value=\"41095\" name=\"priceId\"><span class=\"quantity\"><span class=\"increase-tooltip js-increase-tooltip\" data-trigger=\"manual\" data-container=\"body\" data-original-title=\"Není možné podpořit částkou větší než 999 Kč.\" aria-hidden=\"true\" role=\"tooltip\" data-testid=\"tooltip\"></span><span class=\"decrease-tooltip js-decrease-tooltip\" data-trigger=\"manual\" data-container=\"body\" data-original-title=\"Minimální částka, která lze zadat je 0 Kč.\" aria-hidden=\"true\" role=\"tooltip\" data-testid=\"tooltip\"></span><input type=\"number\" name=\"amount\" value=\"0\" class=\"amount\" autocomplete=\"off\" data-decimals=\"0\" data-max=\"999\" data-min=\"1\" step=\"any\" min=\"0\" max=\"999\" data-testid=\"cartAmount\" aria-label=\"Příspěvek\">
83<span class=\"increase\" aria-label=\"Zvýšit příspěvek\" tabindex=\"0\" role=\"button\" data-testid=\"increase\"></span><span class=\"decrease\" aria-label=\"Snížit příspěvek\" tabindex=\"0\" role=\"button\" data-testid=\"decrease\"></span></form></div></td><td class=\"p-total\"><span class=\"p-label\">Součet</span><strong class=\"price-final\" data-testid=\"cartPrice\">0 Kč</strong></td></tr></tbody></table>");
84        } else {
85            if(parseInt($(".removeable[data-micro-sku=40207] input[type=number]").attr("value")) > 999){
86                shoptet.cartShared.updateQuantityInCart({itemId: $(".removeable[data-micro-sku=40207] input[name=itemId]").attr("value"), priceId: 41095, amount: 999});
87            }
88        }
89        
90        if($(".availability-label").length){
91                var hasPreOrder = false;
92                $(".availability-label").each(function(){
93                    if($(this).html().trim() == "Předobjednávka"){
94                        hasPreOrder = true;
95                    }
96                });
97
98                if($(".availability-label").length > 1 && hasPreOrder == true){
99                    if(!$("#continue-order-button").hasClass("disabled")){
100                        $("#continue-order-button").addClass("disabled");
101                    }
102                    shoptet.modal.open({className: "shoptet-modal-md", closeButton: true, escKey: true, html: "<div class=\"colorbox-html-content\"><div class=\"site-agreement-inner\"><div>&nbsp;</div><div>Předobjednávané zboží je nutné objednávat samostatně. Nepodporujeme kombinaci jakéhokoli dalšího produktu k předobjednávce.</div><div>&nbsp;</div><a href=\"#\" id=\"site-agree-button\" class=\"btn btn-sm btn-primary\">Rozumím</a></div></div>",
103                        opacity: ".95", open: true, overlayClose: true, width: 700});
104                } else {
105                    if($("#continue-order-button").hasClass("disabled")){
106                        $("#continue-order-button").removeClass("disabled");
107                    }
108                }
109           }
110    }
111    
112    // omezeni max. castky pro podporuji Paulinky
113    if($("input[name=amount]").length){
114    	 $("input[name=amount]").each(function(){
115    	    if($(this).parent().parent().find("input[name=priceId][value=41095]").length){
116           		$(this).attr("data-max","999");
117                $(this).attr("max", "999");
118                if($(this).parent().find(".increase-tooltip").length){
119                    $(this).parent().find(".increase-tooltip").attr('data-original-title', $(this).parent().find(".increase-tooltip").attr('data-original-title').replace("9999", "999"));
120                }
121            }
122         });
123    }
124    
125    document.addEventListener('ShoptetDOMCartContentLoaded', function () {
126        if($("input[name=amount]").length){
127        	 $("input[name=amount]").each(function(){
128        	    if($(this).parent().parent().find("input[name=priceId][value=41095]").length){
129               		$(this).attr("data-max","999");
130                    $(this).attr("max", "999");
131                    if($(this).parent().find(".increase-tooltip").length){
132                        $(this).parent().find(".increase-tooltip").attr('data-original-title', $(this).parent().find(".increase-tooltip").attr('data-original-title').replace("9999", "999"));
133                    }
134                }
135             });
136        }
137        
138        if($(".removeable").length){
139            if(!$(".removeable[data-micro-sku=40207]").length){
140                $(".cart-summary").append("<h4>Chci podpořit Paulínky</h4><div>Pokud byste si přáli podpořit apoštolát řeholní kongregace Dcer sv. Pavla, můžete k platbě za Váš nákup připočíst libovolnou částku (nepřesahující 999 Kč) jako Váš příspěvek. Tato částka pak bude součástí faktury, která Vám bude sloužit jako potvrzení o daru.</div><table class=\"cart-table\"><tbody><tr><td class=\"cart-p-image\"><img src=\"https://cdn.myshoptet.com/usr/www.paulinky.cz/user/shop/related/40207-1_logo.png?65c9efca\" data-src=\"https://cdn.myshoptet.com/usr/www.paulinky.cz/user/shop/related/40207-1_logo.png?65c9efca\" alt=\"Paulinky logo\"></td><td class=\"p-name\">Chci podpořit Paulínky částkou</td><td class=\"p-quantity p-cell\"><div data-testid=\"tooltip\"><form action=\"/action/Cart/addCartItem/\" method=\"post\" class=\"quantity-form js-quantity-form\"><span class=\"p-label\">Čáskta</span><input type=\"hidden\" value=\"41095\" name=\"priceId\"><span class=\"quantity\"><span class=\"increase-tooltip js-increase-tooltip\" data-trigger=\"manual\" data-container=\"body\" data-original-title=\"Není možné podpořit částkou větší než 999 Kč.\" aria-hidden=\"true\" role=\"tooltip\" data-testid=\"tooltip\"></span><span class=\"decrease-tooltip js-decrease-tooltip\" data-trigger=\"manual\" data-container=\"body\" data-original-title=\"Minimální částka, která lze zadat je 0 Kč.\" aria-hidden=\"true\" role=\"tooltip\" data-testid=\"tooltip\"></span><input type=\"number\" name=\"amount\" value=\"0\" class=\"amount\" autocomplete=\"off\" data-decimals=\"0\" data-max=\"999\" data-min=\"1\" step=\"any\" min=\"0\" max=\"999\" data-testid=\"cartAmount\" aria-label=\"Příspěvek\">
140<span class=\"increase\" aria-label=\"Zvýšit příspěvek\" tabindex=\"0\" role=\"button\" data-testid=\"increase\"></span><span class=\"decrease\" aria-label=\"Snížit příspěvek\" tabindex=\"0\" role=\"button\" data-testid=\"decrease\"></span></form></div></td><td class=\"p-total\"><span class=\"p-label\">Součet</span><strong class=\"price-final\" data-testid=\"cartPrice\">0 Kč</strong></td></tr></tbody></table>");
141            } else {
142                if(parseInt($(".removeable[data-micro-sku=40207] input[type=number]").attr("value")) > 999){
143                    shoptet.cartShared.updateQuantityInCart({itemId: $(".removeable[data-micro-sku=40207] input[name=itemId]").attr("value"), priceId: 41095, amount: 999});
144                }
145            }
146            
147           if($(".availability-label").length){
148                var hasPreOrder = false;
149                $(".availability-label").each(function(){
150                    if($(this).html().trim() == "Předobjednávka"){
151                        hasPreOrder = true;
152                    }
153                });
154
155                if($(".availability-label").length > 1 && hasPreOrder == true){
156                    if(!$("#continue-order-button").hasClass("disabled")){
157                        $("#continue-order-button").addClass("disabled");
158                    }
159                    shoptet.modal.open({className: "shoptet-modal-md", closeButton: true, escKey: true, html: "<div class=\"colorbox-html-content\"><div class=\"site-agreement-inner\"><div>&nbsp;</div><div>Předobjednávané zboží je nutné objednávat samostatně. Nepodporujeme kombinaci jakéhokoli dalšího produktu k předobjednávce.</div><div>&nbsp;</div><a href=\"#\" id=\"site-agree-button\" class=\"btn btn-sm btn-primary\">Rozumím</a></div></div>",
160                        opacity: ".95", open: true, overlayClose: true, width: 700});
161                } else {
162                    if($("#continue-order-button").hasClass("disabled")){
163                        $("#continue-order-button").removeClass("disabled");
164                    }
165                }
166           }
167        }
168    });
169    
170    if($(".top-products-wrapper h4 span").length){
171    	$(".top-products-wrapper h4 span").html("Bestsellery týdne");
172    }
173    
174    if($("a[href=\"/klient/klient-slevy/\"]").length){
175    	$("a[href=\"/klient/klient-slevy/\"]").parent().remove();    
176    }
177    
178    if($(".p-desc").length){
179        $(".p-desc").each(function(){
180            var dest = $(this).parent().parent().parent().find(".p-in-in > a");
181            var desc = $(this).detach();
182            desc.insertAfter(dest);
183        });    
184        document.addEventListener('ShoptetDOMPageMoreProductsLoaded', function () {
185            $(".p-desc").each(function(){
186                var dest = $(this).parent().parent().parent().find(".p-in-in > a");
187                var desc = $(this).detach();
188                desc.insertAfter(dest);
189            });        
190        });
191        document.addEventListener('ShoptetDOMPageContentLoaded', function () {
192            $(".p-desc").each(function(){
193                var dest = $(this).parent().parent().parent().find(".p-in-in > a");
194                var desc = $(this).detach();
195                desc.insertAfter(dest);
196            });        
197        });
198        document.addEventListener('dbPositonHasBeenRendered', function () {
199            $(".p-desc").each(function(){
200                var dest = $(this).parent().parent().parent().find(".p-in-in > a");
201                var desc = $(this).detach();
202                desc.insertAfter(dest);
203            });        
204        });
205    }
206    
207    // dostupne online
208    if($(".availability-label").length && ($(".availability-label").html().indexOf("Zdarma ke stažení") >= 0)){
209        $("span.price-final-holder, span.price-standard, span.flag.flag-discount, span.price-save, span.price-additional, div.add-to-cart, a.shipping-options").remove();
210        if($("table.detail-parameters").length){
211    		$("table.detail-parameters tr").each(function(){
212        		if($(this).find(".row-header-label").length && $(this).find(".row-header-label").html().indexOf("Google Play") >= 0){
213            		var url = $(this).find("td").html();
214                    $(this).html('<td colspan=2><a href="' + url + '" target="_blank"><img style="width: 50%" src="/user/documents/upload/e-produkty/google-play-badge.png"></a></td>');
215                }
216        
217                if($(this).find(".row-header-label").length && $(this).find(".row-header-label").html().indexOf("App Store") >= 0){
218            		var url = $(this).find("td").html();
219                    $(this).html('<td colspan=2><a href="' + url + '" target="_blank"><img style="width: 50%" src="/user/documents/upload/e-produkty/apple-store-badge.png"></a></td>');
220                }
221                
222                if($(this).find(".row-header-label").length && $(this).find(".row-header-label").html().indexOf("PDF") >= 0){
223            		var url = $(this).find("td").html();
224                    $(this).html('<td colspan=2><a href="' + url + '" target="_blank"><img style="width: 50%" src="/user/documents/upload/e-produkty/pdf-badge.png"></a></td>');
225                }
226                
227                if($(this).find(".row-header-label").length && $(this).find(".row-header-label").html().indexOf("EPUB") >= 0){
228            		var url = $(this).find("td").html();
229                    $(this).html('<td colspan=2><a href="' + url + '" target="_blank"><img style="width: 50%" src="/user/documents/upload/e-produkty/epub-badge.png"></a></td>');
230                }
231            });
232        }
233    }
234        
235    // pripravujeme    
236    if($(".availability-label").length && $(".availability-label").html().indexOf("Připravujeme") >= 0){
237        if($("span.price-final-holder").text().trim() == "1 Kč"){
238            $("span.price-final-holder").html("Cena bude upřesněna");
239        }
240        $("span.price-standard, span.flag.flag-discount, span.price-save, span.price-additional, div.add-to-cart").remove();
241    }
242    
243    if($(".ratings-wrapper").length){
244        $(".ratings-wrapper").each(function(){
245            if($(this).html().indexOf("Připravujeme") >= 0){
246                var prepLink = $(this).parent().parent().find(".p-in-in a").attr("href");
247                $(this).parent().parent().find(".p-bottom .p-tools").html("<a href=\"" + prepLink + "\" class=\"btn btn-primary\">Detail</a>");
248                if($(this).parent().parent().find(".price-final").text().trim() == "1 Kč"){
249                    $(this).parent().parent().html($(this).parent().parent().html().replace("1 Kč", "Cena bude upřesněna"));
250                }
251                
252            }
253            
254            if($(this).html().indexOf("Zdarma ke stažení") >= 0){
255                var prepLink = $(this).parent().parent().find(".p-in-in a").attr("href");
256                $(this).parent().parent().find(".p-bottom .p-tools").html("<a href=\"" + prepLink + "\" class=\"btn btn-primary\">Detail</a>");
257                $(this).parent().parent().find(".price-final").html("");                
258            }
259        });    
260    }
261    
262    document.addEventListener('ShoptetDOMPageMoreProductsLoaded', function () {
263        if($(".ratings-wrapper").length){
264            $(".ratings-wrapper").each(function(){
265                if($(this).html().indexOf("Připravujeme") >= 0){
266                    var prepLink = $(this).parent().parent().find(".p-in-in a").attr("href");
267                    $(this).parent().parent().find(".p-bottom .p-tools").html("<a href=\"" + prepLink + "\" class=\"btn btn-primary\">Detail</a>");
268                    if($(this).parent().parent().find(".price-final").text().trim() == "1 Kč"){
269                        $(this).parent().parent().html($(this).parent().parent().html().replace("1 Kč", "Cena bude upřesněna"));
270                    }
271                    
272                }
273                
274                if($(this).html().indexOf("Zdarma ke stažení") >= 0){
275                    var prepLink = $(this).parent().parent().find(".p-in-in a").attr("href");
276                    $(this).parent().parent().find(".p-bottom .p-tools").html("<a href=\"" + prepLink + "\" class=\"btn btn-primary\">Detail</a>");
277                    $(this).parent().parent().find(".price-final").html("");                
278                }
279            });    
280        }       
281    });
282    document.addEventListener('ShoptetDOMPageContentLoaded', function () {
283        if($(".ratings-wrapper").length){
284            $(".ratings-wrapper").each(function(){
285                if($(this).html().indexOf("Připravujeme") >= 0){
286                    var prepLink = $(this).parent().parent().find(".p-in-in a").attr("href");
287                    $(this).parent().parent().find(".p-bottom .p-tools").html("<a href=\"" + prepLink + "\" class=\"btn btn-primary\">Detail</a>");
288                    if($(this).parent().parent().find(".price-final").text().trim() == "1 Kč"){
289                        $(this).parent().parent().html($(this).parent().parent().html().replace("1 Kč", "Cena bude upřesněna"));
290                    }
291                    
292                }
293                
294                if($(this).html().indexOf("Zdarma ke stažení") >= 0){
295                    var prepLink = $(this).parent().parent().find(".p-in-in a").attr("href");
296                    $(this).parent().parent().find(".p-bottom .p-tools").html("<a href=\"" + prepLink + "\" class=\"btn btn-primary\">Detail</a>");
297                    $(this).parent().parent().find(".price-final").html("");                
298                }
299            });    
300        }       
301    });
302    
303    document.addEventListener('dbPositonHasBeenRendered', function () {
304        if($(".ratings-wrapper").length){
305            $(".ratings-wrapper").each(function(){
306                if($(this).html().indexOf("Připravujeme") >= 0){
307                    var prepLink = $(this).parent().parent().find(".p-in-in a").attr("href");
308                    $(this).parent().parent().find(".p-bottom .p-tools").html("<a href=\"" + prepLink + "\" class=\"btn btn-primary\">Detail</a>");
309                    if($(this).parent().parent().find(".price-final").text().trim() == "1 Kč"){
310                        $(this).parent().parent().html($(this).parent().parent().html().replace("1 Kč", "Cena bude upřesněna"));
311                    }
312                    
313                }
314                
315                if($(this).html().indexOf("Zdarma ke stažení") >= 0){
316                    var prepLink = $(this).parent().parent().find(".p-in-in a").attr("href");
317                    $(this).parent().parent().find(".p-bottom .p-tools").html("<a href=\"" + prepLink + "\" class=\"btn btn-primary\">Detail</a>");
318                    $(this).parent().parent().find(".price-final").html("");                
319                }
320            });    
321        }       
322    });
323    
324    if($("#relatedFiles li").length){
325        var linkToPreview = $("#relatedFiles li a[href*=\".pdf\"]").attr("href");
326        $("#relatedFiles").remove();
327        $("a[href=\"#relatedFiles\"]").remove();//html("Ukázka z knihy");
328
329        var button = "<a rel=\"modal:open\" class=\"btn btn-lg btn-read-book\" href=\"#relatedFiles\">Ukázka z knihy</a>";
330        $("#description").parent().append("<div id=\"relatedFiles\" class=\"modal\"><iframe src=\"" + linkToPreview + "\" style=\"width:100%; height:800px;\" type=\"application/pdf\"><a href=\"" + linkToPreview + "\">PDF ke stažení</a></iframe><a href=\"#\" rel=\"modal:close\" class=\"close-modal\">Zavřít</a></div>");
331        $(button).insertBefore($("div.extended-description"));
332    }    
333    
334    // uprava filtru u nakladatelstvi
335    if($(".breadcrumbs a[href=\"/znacka/\"]").length){
336        $("#order3, #order2").remove();
337        document.addEventListener('ShoptetDOMPageContentLoaded', function () {    
338    		    $("#order3, #order2").remove();
339        });
340    }
341    
342    // uprava filtru u pripravujeme
343    if(window.location.pathname == "/pripravujeme/"){
344        $("#order1").remove();
345        $(".category-top h4, #productsTop").remove();
346        document.addEventListener('ShoptetDOMPageContentLoaded', function () {    
347    		    $("#order1").remove();
348    		    $(".category-top h4, #productsTop").remove();
349        });
350    }
351    
352    // zruseni vychozi dopravy a platby
353    if(window.location.pathname == "/objednavka/krok-1/"){
354        $('input[type=radio]').prop('checked',false);
355        $('.radio-wrapper').removeClass('active');
356        $('.billing-name').removeClass('inactive');
357        $('input[type=radio]').prop('disabled',false);
358        $('.co-payment-method').hide();
359        $('div[data-testid=shippingMethod').onClassChange(function(el, newClass){
360            if(newClass.includes("active")){
361                $('.co-payment-method').show();
362                $('input[name=billingId]').prop('checked',false);
363            }
364        });
365    }
366    
367    document.addEventListener('ShoptetDOMPageContentLoaded', function () {
368        if($("#filters-wrapper").length > 0){
369          	$("#filters-wrapper").remove();
370        } 
371    });
372    
373    // horni uzivatelske menu
374    if($(".top-navigation-menu").length){
375        $(".top-navigation-menu, .project-email").remove();
376        var tel = $(".top-navigation-contacts").detach();
377        $('.header-top .site-name').append(tel);
378        if($(".top-nav-button-account").length){
379            var acc = $(".top-nav-button-account").detach();
380            acc.addClass("cart-count-custom no-content");
381            acc.insertBefore($(".header-top .navigation-buttons > a"));
382        } else {
383            var acc = $(".top-nav-button-login").detach();
384            acc.addClass("cart-count-custom no-content");
385            acc.insertBefore($(".header-top .navigation-buttons > a"));
386        }
387    }
388    
389    // znacka na nakladatelstvi
390    if($("#manufacturer-filter h4 span").length){
391        $("#manufacturer-filter h4 span").html("Nakladatelství");
392    }
393    
394    if($("#cat-manufacturers .topic a").length){
395        $("#cat-manufacturers .topic a").html("Přehled nakladatelství");
396        $("#categories #cat-manufacturers").before("<hr class=\"customHR\">");
397    }
398
399    if($("#nav-manufacturers a b").length){
400        $("#nav-manufacturers a b").html("Přehled nakladatelství");
401    }
402    
403    if($("span[data-title=\"Prodávané značky\"]").length){
404        $("span[data-title=\"Prodávané značky\"]").html("Nakladatelství");
405        $("h1.category-title").html("Najdete u nás knihy z těchto nakladatelství");
406    }
407    
408    if($("div.p-detail-info").length){
409        $("div.p-detail-info a[data-testid=productCardBrandName]").parent().html($("div.p-detail-info a[data-testid=productCardBrandName]").parent().html().replace("Značka", "Nakladatelství"));
410    }
411
412    if($("#navigation-1 a[href=\"/znacka/\"]").length){
413        $("#navigation-1 a[href=\"/znacka/\"]").html($("#navigation-1 a[href=\"/znacka/\"]").html().replace("Prodávané značky", "Nakladatelství"));
414    }
415    
416    if($("#search-group-manufacturers").length){
417        $("#search-group-manufacturers h4").html("Nakladatelství");
418    }
419    
420    if($("#content .category-perex").length){
421        $("#content .category-perex").html($("#content .category-perex").html().replace("značky", "z nakladatelství"));
422    }
423    
424    if($("input.search-input").length){
425        $("input.search-input").attr("placeholder","Hledat podle názvu, autora nebo nakladatele");
426    }
427    
428    // kontakty
429    if($("header[itemprop=headline] h1").length && $("header[itemprop=headline] h1").html().indexOf("Kontakty") >= 0){
430        $("#content .content-inner").addClass("kontakt-page");
431    }
432    
433    // poznamka k telefonu
434    if($(".phone-form-group").length){
435        $(".phone-form-group").append('<div class="validator-msg msg-notice">Pro případ, že bychom vás my nebo kurýr potřeboval kontaktovat kvůli vaší objednávce.</div>');
436    }
437    
438    // welcome banner
439    if($(".homepage-box.welcome-wrapper").length){
440        $(".homepage-box.welcome-wrapper").html("");
441        $(".homepage-box.welcome-wrapper").addClass("h4");
442        $(".homepage-box.welcome-wrapper").removeClass("homepage-box");
443    }
444    
445    // vyhledavani
446    if($(".search-whisperer").length){
447        var observer = new MutationObserver(mutationRecords => {
448            if($(".availability-label").length){
449                $(".availability-label").each(function(){
450                    if($(this).html().indexOf("Připravujeme") >= 0){
451                        var text = $(this).parent().parent().parent().parent().find(".price-final");
452                        if(text.text().trim() == "1 Kč"){
453                        	text.html("Cena bude upřesněna");
454                        }
455                    }
456                    if($(this).html().indexOf("Zdarma ke stažení") >= 0){
457                        var text = $(this).parent().parent().parent().parent().find(".price-final");
458                        text.html("");
459                        
460                    }
461                });
462            }
463            
464            if($(".search-whisperer-documents a").length){
465                $(".search-whisperer-documents a").each(function(){
466                    if($(this).html().indexOf("Značka") >= 0){
467                        $(this).html($(this).html().replace("Značka", "Nakladatelství"));
468                    }
469                });
470            }
471        });
472      
473        // observe everything except attributes
474        observer.observe($(".search-whisperer")[0], {
475            childList: true, // observe direct children
476            subtree: true, // lower descendants too
477            characterDataOldValue: true, // pass old data to callback
478        });
479    }
480});

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.