PageSourceSearch

https://www.ecomfort.jp/client_info/ECOMFORTHOUSE/view/userweb/js/category.js?timestamp=1749041160201

js ecomfort.jp collected 2026-10-04 13:23:23 UTC 1,895 bytes, 49 lines download raw bytes

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.