1/** 2 * 3 */ 4 5(function () { 6 var styles = ` 7 .mk801_select-panel .mk801_item__price, 8 .mk804_list__item_card .mk804_card .mk804_card__price, 9 .mk804_list__item_card .mk804_card .mk804_card__credit, 10 .m245 .m245_item__price, 11 .mk613 .mk613_price_credit, 12 .mk200.mk200_singlefloat_reversed { 13 display: none; 14 } 15 `; 16 17 function addStyle(styles) { 18 var css = document.createElement('style'); 19 css.appendChild(document.createTextNode(styles)); 20 document.getElementsByTagName("head")[0].appendChild(css); 21 } 22 23 addStyle(styles); 24 25})() 26 27function hideCredit() { 28 const main = () => { 29 const $priceBlocks = document.querySelectorAll('.mk811__item'); 30 const $btns = document.querySelectorAll('.mk811__controls'); 31 32 const hideElement = ($elements, selector, textContent) => { 33 $elements.forEach(e => { 34 if (e.querySelector(selector).textContent === textContent) { 35 e.style.display = 'none' 36 } 37 }) 38 } 39 40 hideElement($priceBlocks, '.mk811__label', 'РкÑÐµÐ´Ð¸Ñ Ð¾Ñ'); 41 hideElement($btns, '.btn__text', 'РаÑÑÑиÑаÑÑ ÐºÑедиÑ'); 42 } 43 44 const scriptName = 'jspla_vw_00-00'; 45 const maxCheckComponentCount = 10; 46 let checkedCount = 0; 47 48 function waitForComponentLoad() { 49 if (checkedCount > maxCheckComponentCount) return error('custom js not load on site'); 50 if (document.readyState !== 'loading') { 51 try { 52 main(); 53 } catch (e) { 54 error(e); 55 } 56 } else { 57 checkedCount++; 58 setTimeout(waitForComponentLoad, 300); 59 } 60 } 61 62 function error(e) { 63 console.warn(e, scriptName); 64 } 65 66 waitForComponentLoad(); 67 68} 69 70hideCredit();
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.