您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
劫持 indexOf 返回值 为 ['s0','s1'] 且参数是 UserVipType 强制返回 1
// ==UserScript== // @name 对分易会员绕过 // @namespace http://tampermonkey.net/ // @version 2025-04-14 // @description 劫持 indexOf 返回值 为 ['s0','s1'] 且参数是 UserVipType 强制返回 1 // @author 风前絮 // @match https://www.duifene.com/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const originalIndexOf = Array.prototype.indexOf; Array.prototype.indexOf = function(searchElement, fromIndex) { // 检查是否为 ['s0','s1'] if ( this.length === 2 && this.includes('s0') && this.includes('s1') ) { return 1; // 强制返回 1 } // 其他情况正常返回 return originalIndexOf.call(this, searchElement, fromIndex); }; })();