让英伟达显示更多的历史驱动*100条*

主要是用在英伟达驱动查询中,默认只能查看最近几个,而这个脚本能获取到最近100个。

// ==UserScript==
// @name        让英伟达显示更多的历史驱动*100条*
// @namespace   作者:72EU https://www.bilibili.com/read/cv9550283 出处:bilibili
// @match       *://*.nvidia.cn/geforce/drivers/
// @grant       none
// @version     1.3
// @description 主要是用在英伟达驱动查询中,默认只能查看最近几个,而这个脚本能获取到最近100个。
// @author      -
// @description 2021/10/11 上午1:27:19
// ==/UserScript==
SystemScanner.prototype.DriverSearch = function (psid, pfid, osID, langCode, whql, beta, dltype, numresults) {
    numresults = 100
    this.scannerStatusUpdate(GFE_SERVER_CONNECTING)
    theScanner.scannedDevice.downloadInfo = {}
    const requestUrl = this.driverManualLookupUrl + new URLSearchParams({
        psid: psid,
        pfid: pfid,
        osID: osID,
        languageCode: langCode,
        beta: beta,
        isWHQL: whql,
        dltype: dltype,
        sort1: 0,
        numberOfResults: numresults,
    }).toString()
    this.driversLogUIEvent('warn', `SUID:${this.tracker.scanID} BEGIN DriverSearch requestUrl:${requestUrl}`)
    this.debugTrace(requestUrl)
    jQuery.ajax({
        url: requestUrl,
        async: false,
        type: 'GET',
        success: function (response) {
            try {
                theScanner.debugTrace(`The Driver Lookup Service Returned:\n\n(${response})`)
                if (response.length > 0) {
                    theScanner.resetResults()
                    theScanner.resultsList = {}
                    theScanner.resultsList = eval(`(${response})`)
                }
                theScanner.scannerStatus = theScanner.resultsList.Success === 0 ? 'No driver available' : 'Results Ready'
            } catch (e) {
                this.driversLogUIEvent('error', ' FAIL catch DriverSearch')
                theScanner.resetResults()
                theScanner.scannerStatus = 'No driver available'
            }
        },
        error: function (response) {
            theScanner.resetResults()
            theScanner.scannerStatus = 'AJAX Call failed'
        }
    })
    this.driversLogUIEvent('warn', `SUID:${this.tracker.scanID} END DriverSearch requestUrl:${requestUrl}`)
}