bbc[i].style.display = 'none';
}
- //try to login
+ //try to login
+ console.log(document.location.pathname);
if(document.location.pathname == '/login.php'){
// fills in the user name and password
var els = document.querySelectorAll('input[node-type]');
-
+ console.log(els.length);
+
for (i = 0; i < els.length; i++) {
+
+ console.log(els[i].name);
if (els[i].hasAttribute('node-type')) {
if(els[i].getAttribute('node-type') == 'username'){
els[i].value = u;
for (i = 0; i < elss.length; i++) {
if (elss[i].hasAttribute('node-type')) {
+
if(elss[i].getAttribute('node-type') == 'submitBtn'){
elss[i].click();
console.log("press submit");