1// ç¹å®ã®ãã¼ã¸ã§ããã°ãããã£ã¨è¦ãããã¿ã³ãèªåã§ã¯ãªãã¯ãã 2const REFERRER_URLS = [ 3 'https://www.ecomfort.jp/item/YMK0101.html', 4 'https://www.ecomfort.jp/item/YMK0201.html', 5 'https://www.ecomfort.jp/item/YMK0202.html', 6 'https://www.ecomfort.jp/category/STYLEJAPAN/YMK0101.html', 7 'https://www.ecomfort.jp/category/STYLEJAPAN/YMK0201.html', 8 'https://www.ecomfort.jp/category/STYLEJAPAN/YMK0202.html', 9 'https://www.ecomfort.jp/category/H_INCENSE/YMK0101.html', 10 'https://www.ecomfort.jp/category/H_INCENSE/YMK0201.html', 11 'https://www.ecomfort.jp/category/H_INCENSE/YMK0202.html', 12 'https://www.ecomfort.jp/category/Z_INCENSE/YMK0101.html', 13 'https://www.ecomfort.jp/category/Z_INCENSE/YMK0201.html', 14 'https://www.ecomfort.jp/category/Z_INCENSE/YMK0202.html', 15]; 16const SCROLL_TARGET_ID = 'SJBRAND_OKO'; 17 18function onItemListUpdated(mutations) { 19 mutations.forEach(function (mutation) { 20 if (mutation.target.id !== 'itemList') { 21 return; 22 } 23 24 const offsetTop = document.getElementById(SCROLL_TARGET_ID).offsetTop - 70; 25 window.scrollTo(0, offsetTop); 26 observer.disconnect(); 27 }); 28} 29 30const observer = new MutationObserver(onItemListUpdated); 31 32window.addEventListener('load', function onLoad() { 33 if (!REFERRER_URLS.some((url) => document.referrer.indexOf(url) !== -1)) { 34 return; 35 } 36 37 observer.observe(document.body, { childList: true, subtree: true }); 38 39 const moreLink = document.querySelector('.js-categoryMore'); 40 moreLink.click(); 41}); 42 43function loadMoreItems() { 44 // ã¢ã¤ãã ãªã¹ãã追å ã§èªã¿è¾¼ãã§è¡¨ç¤ºããå¦çãå®è£ ãã 45 console.log('æ°ããã¢ã¤ãã ãèªã¿è¾¼ãã§è¡¨ç¤ºãã¾ã'); 46} 47 48const moreLink = document.querySelector('.js-categoryMore'); 49moreLink.addEventListener('click', loadMoreItems);
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.