修复游侠图片不展示问题

fix img display

// ==UserScript==
// @name         修复游侠图片不展示问题
// @namespace    http://tampermonkey.net/
// @version      0.2.2
// @description  fix img display
// @author       Xuanqing Lu
// @match        https://down.ali213.net/pcgame/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=ali213.net
// @grant        none
// @license      MIT
// @homepage     https://github.com/LuXuanqing/fix-ali213/tree/main
// @supportURL   https://github.com/LuXuanqing/fix-ali213/tree/main
// ==/UserScript==

(function () {
    'use strict';
    // fix pcgame list img src 
    const nodes = document.querySelectorAll('.content-a>img')
    for (const node of nodes) {
        const url = node.getAttribute('data-original')
        if (url) {
            node.src = url
        }
    }

    // scroll to game list smoothly
    const list = document.querySelector('.famous-ul-container')
    if (list) {
        list.scrollIntoView({ behavior: 'smooth' })
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址