-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontent_scripts.js
111 lines (93 loc) · 3.51 KB
/
content_scripts.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
const initiateExt = () => {
const injectElement = document.createElement('div');
injectElement.className = 'sauban';
//injectElement.className = 'sauban2';
// injectElement.innerHTML =
// '<html><head><style> html{ background-color: antiquewhite; border-radius: 20px; } button[type="submit"] { background-color: green; color: white; border-radius: 20px; padding: 10px 20px; border: none; cursor: pointer; margin-top: 10px; } button[type="reset"] { background-color: red; color: white; border-radius: 20px; padding: 10px 20px; border: none; cursor: pointer; margin-top: 10px; } input[type="text"], input[type="password"] { border-radius: 20px; border: 2px solid rgb(43, 103, 233); padding: 10px; } .shrivardan { display: none; } </style> </head><body><form class="shrivardan" ><div><label for="username">Username:</label><input type="text" id="sinwan_username" name="username"></div><div><label for="password">Password:</label><input type="password" id="sinwan_password" name="password"></div><div><button type="submit">Save</button><button type="reset">Cancel</button></div></form>';
// z-index: 9999;
// position: sticky;
injectElement.innerHTML = `<html>
<head>
<style>
.sauban {
padding: 7px;
width: fit-content;
position: fixed;
top: 10px;
right: 10px;
font-family: "Lucida Console", "Courier New", monospace;
background-color: lightgrey;
display: none;
}
.shrivardan {
display: none;
}
.socketpop {
background-color: yellow;
color: black;
animation: blinker 1.2s linear infinite;
display: none;
}
.socketpop p {
margin: 0;
}
.errorpop {
background-color: red;
color: white;
}
@keyframes blinker {
50% {
opacity: 0;
}
}
.shrivardan input {
border-radius: 0;
padding: 5px;
}
.shrivardan div {
display: flex;
justify-content: space-between;
padding-bottom: 2px;
}
.shrivardan button {
color: white;
padding: 10px 20px;
border: none;
margin-top: 10px;
cursor: pointer;
}
.shrivardan button[type="submit"] {
background-color: green;
}
.shrivardan button[type="reset"] {
background-color: red;
}
.shrivardan .inline {
display: inline;
}
</style>
</head>
<body>
<form class="shrivardan">
<div>
<label for="username">Username:</label>
<input type="text" id="username" name="username" class="shriv_inputs">
</div>
<div>
<label for="password">Password:</label>
<input type="password" id="password" name="password" class="shriv_inputs">
</div>
<div class="inline">
<button id="subb" type="submit">Save</button>
<button id="canc" type="reset">Cancel</button>
</div>
</form>
<div class="socketpop">
<p>Check your mobile to authenticate!!!</p>
</div>
<script type="text/javascript" src="biopass.js"></script>
</body>
</html>`;
document.body.appendChild(injectElement);
}
initiateExt();