-
Notifications
You must be signed in to change notification settings - Fork 0
/
联通光猫超管登陆.user.js
26 lines (25 loc) · 1001 Bytes
/
联通光猫超管登陆.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// ==UserScript==
// @name 联通光猫超管登陆
// @namespace https://github.com/luomoxu/UserScript
// @version 0.1
// @description 目前测试支持光猫 KD-YUN-811E(北京联通)
// @author You
// @match http://192.168.1.1/*
// @match http://192.168.100.1/*
// @require https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js
// @grant unsafeWindow
// ==/UserScript==
(function () {
'use strict';
if ($('title').text() == '中国联通家庭网关') {
$(".wrapper_administrtor_passwordbox").after('<div class="wrapper_administrtor_passwordbox"><input style="width: 323px;" type="button" id="admin_login" value="管理员登陆" class="wrapper_administrtor_but" onclick="submitFrm()"></div>')
$("#admin_login").on("click", function () {
$("#user_name").val('CUAdmin');
$("#loginfrm").submit();
});
console.log(unsafeWindow.authLevel)
if (typeof unsafeWindow.authLevel != "undefined") {
unsafeWindow.authLevel = 10;
}
}
})();