document.addEventListener('DOMContentLoaded', function () { var adConfig = [{"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 嫩模直播做爱高潮 喷水\n

\n
\n
", "position": 0}, {"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 注册即送383元 大额无忧\n

\n
\n
", "position": 1}, {"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 色女在线裸聊 风骚万千\n

\n
\n
", "position": 2}, {"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 美女裸聊潮喷\n

\n
\n
", "position": 3}, {"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 少妇模特 自慰潮喷\n

\n
\n
", "position": 4}, {"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 超品质白虎学姐后入美穴\n

\n
\n
", "position": 5}, {"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 点击领取77777礼金\n

\n
\n
", "position": 6}, {"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 下载APP享365天免费红包\n

\n
\n
", "position": 7}, {"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 下载APP领4848红包\n

\n
\n
", "position": 8}, {"id": "vod-list-0", "content": "
\n \n \n 观看次数: 999\n \n \n
\n

\n 狂送888元 首次提现加赠10%\n

\n
\n
", "position": 9}]; adConfig.forEach(function(config) { var list = document.getElementById(config.id); if (!list) { console.warn(`List with id ${config.id} not found.`); return; } var adLi = document.createElement('li'); var cleanContent = config.content.replace(/\n/g, '').trim(); adLi.innerHTML = cleanContent; var items = list.getElementsByTagName('li'); if (items.length > config.position) { list.insertBefore(adLi, items[config.position]); } else { list.appendChild(adLi); } var thumb = adLi.querySelector('.stui-vodlist__thumb'); if (thumb) { var src = thumb.getAttribute('src'); if (src) { thumb.style.backgroundImage = 'url("' + src + '")'; thumb.style.backgroundSize = 'cover'; thumb.style.backgroundPosition = '50% 50%'; thumb.style.paddingTop = '60%'; thumb.style.display = 'block'; if (thumb.classList.contains('lazy')) { thumb.classList.remove('lazy'); } } } else { console.warn('Could not find .stui-vodlist__thumb in inserted item.'); } }); });