// source --> //songnews.com.tw/wp-content/uploads/custom-css-js/202944.js?v=4458 
/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 11 2026 | 01:49:07 */
<script>
document.addEventListener('DOMContentLoaded', function () {
    function updateAdLong() {
        // 找到那個圖片 widget（整塊 .ad-long）
        var widget = document.querySelector('.elementor-element.ad-long');
        if (!widget) return;

        // 找裡面的 <a> 和 <img>
        var link = widget.querySelector('a');
        var img  = widget.querySelector('img');

        if (!img) return;

        // 如果 Elementor 沒產生 <a>，就自己包一層
        if (!link) {
            link = document.createElement('a');
            link.target = '_blank';
            link.rel = 'noopener';

            img.parentNode.insertBefore(link, img);
            link.appendChild(img);
        }

        // 判斷裝置寬度，決定圖片 & 連結
        if (window.innerWidth < 699) {
            // 手機版
            link.href = 'https://lin.ee/lO7VSlI';
            img.src   = 'https://www.youtube.com/playlist?list=PLxxTaRAQeIoCo1A9gZHMrDgCqHVDgnjZh';
        } else {
            // 桌機版
            link.href = 'https://www.nantouccf.com/';
            img.src   = 'https://songnews.com.tw/wp-content/uploads/2026/06/image-1-scaled.png';
        }

        img.removeAttribute('srcset');
        img.style.cursor = 'pointer'; // 滑鼠變手指，讓人知道可以點
    }

    updateAdLong();
    window.addEventListener('resize', updateAdLong);
});
</script>;
// source --> //songnews.com.tw/wp-content/uploads/custom-css-js/172364.js?v=1408 
/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 26 2025 | 11:16:16 */
document.addEventListener("DOMContentLoaded", function () {
    var targetSpan = document.querySelector("#menu-item-169778 .ct-toggle-dropdown-desktop");

    if (targetSpan) {
        var img = document.createElement("img");
        img.src = "https://songnews.com.tw/wp-content/uploads/2024/11/test-08.png";
        img.alt = "location";
        img.style.display = "inline-block";
        img.style.marginLeft = "5px";
        img.style.verticalAlign = "middle";
		
        targetSpan.parentNode.insertBefore(img, targetSpan);
    }
});