China Telecom South wisdom digital network to automatically log Grease Monkey scripts

Each landing campus network must enter the account password to sign-on, so want to write a script myself Grease Monkey automatic login. Today took half an hour to make out a script, write a tutorial to help you.
Grease Monkey First install the browser plug-in, we recommend using Chrome or FireFox browser. Edge but recently have begun to support plug-ins, but Microsoft store experience is not very good, we needed it. However, the browser should Grease Monkey with a plug-in as the default, that is, each time you connect the browser pop up when the WiFi interface.
During the installation Grease Monkey I will not go into details, there are a lot of online tutorials. After installing the Grease Monkey, logo Grease Monkey will appear next to the browser top bar. After opening the option to add a new script, copy the following code into it, follow the instructions to modify and then save it to use.

UserScript == == //
// @name New UserScript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description the try to the Take over at The world!
// @author by You
// @match https://www.tampermonkey.net/scripts.php
// @match http://61.137.86.87:8080/portalNat444/index.jsp
// @grant none
// == / == UserScript
var username = "account "; // into account their own telecommunications networks
var password =" password "; // change passwords own telecommunications network
(function () {
'use strict';
document.getElementById (." the account ") value = username;
document.getElementById ( "the userPassword") = value password;.
. document.getElementById ( "login_button") the Click ();
}) ();

If you can not use is probably because you and I are not the same URL telecommunications network, the following line in the URL into your web site landing telecommunications network should be just fine.

// @match http://61.137.86.87:8080/portalNat444/index.jsp

The future will automatically log in to write a tutorial WiFi Library.

Guess you like

Origin www.cnblogs.com/lxy764139720/p/11894802.html