Commit e1ac4204 authored by Zeyu DONG's avatar Zeyu DONG
Browse files

del console out, make script run after all is loaded

parent ca0cc4d8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
# cas-extention
it contains a script that will auto complete the form and click submit button<br />
it will save your username and password in localstorage without encryption, please don't use the extention if you think it is unsafe.<br />
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@ chrome.runtime.onMessage.addListener(
	}
);
if(localStorage.length!=3){
	console.log('init...');
	localStorage.setItem('autologin', false);
	localStorage.setItem('username', '');
	localStorage.setItem('password', '');
+1 −2
Original line number Diff line number Diff line
@@ -19,8 +19,7 @@
"content_scripts": [
    {
      "matches": ["https://cas.sustc.edu.cn/cas/*", "http://enet.10000.gd.cn:10001/*"],
      "js": ["content.js"], 
	  "run_at": "document_end"
      "js": ["content.js"]
    }
  ]
}
 No newline at end of file
+0 −2
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@ function change(){
	var user = document.getElementById('username').value;
	var pass = document.getElementById('password').value;
	if(user!=''&&pass!=''){
		console.log(user + "\n" + pass);
		localStorage.setItem('username', user);
		localStorage.setItem('password', pass);
	}
@@ -11,7 +10,6 @@ function change(){
	document.getElementById('ok').setAttribute('style', 'color:#00EC00;');
}
function auto(){
	console.log(this.checked);
	localStorage.setItem('autologin', this.checked);
}
function load(){