Greasy Fork

Greasy Fork is available in English.

Nvidea显驱下载 实用工具

显示更多更老的N卡驱动

当前为 2024-02-22 提交的版本,查看 最新版本

// ==UserScript==
// @name         Nvidea显驱下载 实用工具
// @description  显示更多更老的N卡驱动
// @description  Show more older Nvidia drivers
// @author       皇家养猪场
// @namespace    皇家养猪场
// @note         安装此脚本后前往 https://www.nvidia.cn/geforce/drivers/ 能够看到更多更老的驱动。
// @note         After installing this script, go to https://www.nvidia.cn/geforce/drivers/ to see more older drivers.
// @note         注意: 开启此脚本后 查询驱动所需的时间也会增加!!!
// @note         Note: After turning on this script, the time required to query the driver will also increase!!!
// @note         ===== 2022-02-18 =====
// @note         修复了无法显示5XX版本驱动的问题
// @note         ===== 2023-04-15 =====
// @note         修复了只显示10个Studio驱动的问题
// @note         ===== 2024-02-22 =====
// @note         添加提示
// @version      0.4
// @create       2021-10-22
// @lastmodified 2024-02-22
// @charset      UTF-8
// @match        *://www.nvidia.cn/geforce/drivers/
// @run-at       document-idle
// @grant        unsafeWindow
// @grant        GM_addStyle
// @compatible   chrome
// @license      MIT
// ==/UserScript==

(function () {
    let tips = {
        'zh-cn': '选择 Windows 10 系统以查看更多老版本驱动',
        'zh-hk': '選擇 Windows 10 系統以查看更多舊版本驅動',
        'en-us': 'Select Windows 10 to view more old version drivers'
    };

    GM_addStyle(`
    .body-text.description.color-ui-elements::after {
        content: "${tips[navigator.language.toLowerCase()] ?? tips['en-us']}";
        color: #FF0;
    }
    `);

    const SS_proto = unsafeWindow.SystemScanner.prototype;
    function applyHandler(target, thisArg, argumentsList) {
        /** 请求驱动个数 / Number of requested drivers */
        argumentsList[7] = 500;
        return target.apply(thisArg, argumentsList);
    }
    SS_proto.DriverSearch = new Proxy(SS_proto.DriverSearch, { apply: applyHandler });
})();