Greasy Fork

Greasy Fork is available in English.

阿里网盘一次性加载更多项

Violentmonkey Scripts

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         阿里网盘一次性加载更多项
// @name:en      阿里网盘一次性加载更多项
// @namespace   Violentmonkey Scripts
// @match       *://www.aliyundrive.com/s/*
// @grant       none
// @version     XiaoYing_2023.06.02.1
// @grant       GM_info
// @grant       GM_getValue
// @grant       GM_setValue
// @grant       GM_addStyle
// @grant       GM_deleteValue
// @grant       GM_xmlhttpRequest
// @grant       GM_setClipboard
// @grant       GM_registerMenuCommand
// @grant       GM_unregisterMenuCommand
// @grant       GM_getResourceText
// @grant       GM_getResourceURL
// @grant       GM_openInTab
// @grant       unsafeWindow
// @run-at      document-start
// @author      github.com @XiaoYingYo
// @require     http://greasyfork.icu/scripts/465643-ajaxhookerlatest/code/ajaxHookerLatest.js
// @description Violentmonkey Scripts
// ==/UserScript==

function EndsWith(str, match) {
    if (str == null) return false;
    return str.substring(str.length - match.length) === match;
}

// eslint-disable-next-line no-undef
ajaxHooker.filter([{ type: 'xhr', url: 'api.aliyundrive.com', method: 'POST' }]);

// eslint-disable-next-line no-undef
ajaxHooker.hook((request) => {
    let url = request.url;
    if (!EndsWith(url, 'adrive/v2/file/list_by_share')) {
        return;
    }
    let data = JSON.parse(request.data);
    data.limit = 200;
    request.data = JSON.stringify(data);
});