Last active
March 1, 2017 16:34
-
-
Save geekdadley/572eb5a493554755026ee382d2b96084 to your computer and use it in GitHub Desktop.
中行偷渡的油猴脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name 中行偷渡 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description 自行阅读、自行修改、后果自负 | |
| // @author duduzhu | |
| // @match https://apply.mcard.boc.cn/* | |
| // @grant none | |
| // ==/UserScript== | |
| //2017.3.1 使用方法 随便点一个什么普通卡开始申请,无论页面出现什么空白,都继续下一步即可 | |
| //2007.3.2 允许自定义卡片代码并自动选择合适的申请表格 | |
| (function() { | |
| 'use strict'; | |
| var carcode=prompt('输入你想偷渡的卡片代码'); | |
| var form = "GPB1A"; | |
| if(carcode == '0202' ||carcode == '0201' ||carcode == '0203' ||carcode == '0206' ) | |
| { | |
| form = "OPP5A"; | |
| } | |
| function replace(name,value) | |
| { | |
| var a = document.getElementsByName(name); | |
| if(a[0]!==undefined) | |
| { | |
| a[0].value = value; | |
| alert(name+'更改为'+value); | |
| } | |
| } | |
| replace("masterOrSubFlag","1");//主卡、附属卡 | |
| replace("appiType","1"); | |
| replace("newInTypeCode",carcode);//卡片代码 | |
| replace("appiTypeCode",carcode); | |
| replace("formVersion",form);//表格 | |
| replace("appiMcVersion",form); | |
| replace("proFee","3");//年费 | |
| replace("appiBankinfoFeeType","3"); | |
| replace("appiCardName","中行顶级卡");//这个名字无所谓,只是留空的话页面会报错 | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment