-
Notifications
You must be signed in to change notification settings - Fork 0
/
blogs-login-script.js
40 lines (32 loc) · 1.07 KB
/
blogs-login-script.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* FRONT END: https://www.website-with-login.com
* LOGIN URL: https://www.website-with-login.com/wp-login.php
* ADMIN URL: https://www.website-with-login.com/wp-admin/index.php
*/
//============================
// CURRENT PAGE VARIABLES
//============================
// [VARIABLE]
var thisPage = document.location.host;
// [LOG]
console.log(thisPage);
// [LOGIC]
if (thisPage == "www.website.com") {
// [LOG] - "We are currently on ATTORNEY's blog."
console.log("We are currently on ATTORNEY's blog.");
// Setup child variable.
var thisPage
// [CHILD] - thisPage
console.log(thisPage);
} else {
console.log("We are currently on XYZ blog.");
}
//===========================================================
// BLOG LOGIN LOGIC
//
// https://scripts.joeyprettyman.com/js/blogs-login.js
// *://www.website-with-login.com/*
//===========================================================
document.getElementById("user_login").value = "UserNameHere";
document.getElementById("user_pass").value = "PasswordHere";
document.getElementById("loginform").submit();