-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·193 lines (181 loc) · 6.02 KB
/
index.html
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inspect Android</title>
<style>
/* Basic Styles */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 20px;
background: linear-gradient(135deg, #4e54c8, #8f94fb);
color: #fff;
}
h1, h2 {
color: #fff;
}
.code-block {
background-color: rgba(255, 255, 255, 0.1);
padding: 10px;
border-left: 3px solid #ddd;
font-family: monospace;
color: #eee;
margin-top: 10px;
position: relative;
cursor: pointer;
overflow-wrap: break-word;
}
.copy-toast {
display: none;
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background-color: #333;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
font-size: 0.9rem;
z-index: 1000;
opacity: 0.9;
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
td {
padding: 10px;
border: 1px solid #ddd;
text-align: center;
}
img {
max-width: 100%;
height: auto;
max-height: 2809px;
border-radius: 5px;
}
.tutorial {
margin-top: 20px;
text-align: center;
}
.tutorial img {
width: 100%;
max-width: 400px;
height: auto;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* Responsive Styles */
@media (max-width: 768px) {
body {
margin: 10px;
}
h1, h2 {
font-size: 1.2em;
text-align: center;
}
td {
padding: 5px;
}
.code-block {
font-size: 0.9em;
padding: 8px;
}
.tutorial img {
max-width: 90%;
}
.copy-toast {
font-size: 0.8rem;
}
}
@media (max-width: 480px) {
body {
margin: 5px;
}
h1, h2 {
font-size: 1em;
text-align: center;
}
td, .code-block {
font-size: 0.8em;
padding: 5px;
}
}
</style>
</head>
<body>
<h1>Inspect Elements on Mobile Phone Browsers</h1>
<h2>Step 1: Create a New Bookmark</h2>
<ol>
<li>Open your mobile browser (e.g., Chrome, Safari).</li>
<li>Create a new bookmark. You can do this by visiting any web page and adding it to your bookmarks.</li>
</ol>
<h2>Step 2: Edit the Bookmark’s URL</h2>
<ol>
<li>Open the bookmarks manager in your browser.</li>
<li>Find the newly created bookmark and edit it.</li>
<li>Replace the bookmark’s URL with the following JavaScript code.</li>
<li>Save the changes.</li>
</ol>
<div class="code-block" onclick="copyToClipboard()">
<code>
javascript:(function() { <br>
var script = document.createElement('script');<br>
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/eruda/2.4.1/eruda.min.js';<br>
document.body.appendChild(script);<br>
script.onload = function () { eruda.init(); }<br>
})();
</code>
</div>
<div class="copy-toast" id="copyToast">Code copied to clipboard!</div>
<h2>Step 3: Use the Bookmarklet</h2>
<ol>
<li>Navigate to the web page you want to inspect.</li>
<li>Open your bookmarks and tap the “Inspect Element” bookmark.</li>
<li>The Eruda console will appear at the bottom of the screen, allowing you to inspect elements, view console logs, and more.</li>
</ol>
<h2>Step Images</h2>
<table>
<tr>
<td><img src="./images/image1.png" alt="Image 1"></td>
<td><img src="./images/image2.png" alt="Image 2"></td>
</tr>
<tr>
<td><img src="./images/image3.png" alt="Image 3"></td>
<td><img src="./images/image4.png" alt="Image 4"></td>
</tr>
<tr>
<td><img src="./images/image5.png" alt="Image 5"></td>
<td><img src="./images/image6.png" alt="Image 6"></td>
</tr>
<tr>
<td><img src="./images/image7.png" alt="Image 7"></td>
<td><img src="./images/image8.png" alt="Image 8"></td>
</tr>
</table>
<div class="tutorial">
<h2>Tutorial</h2>
<a href="https://youtu.be/O8oa3bwEF-o?si=kCD98KBpCcfCZxlJ" target="_blank">
<img src="https://i.ytimg.com/vi/rCGdIlSVJCA/maxresdefault.jpg?sqp=-oaymwEmCIAKENAF8quKqQMa8AEB-AHcBoACgA-KAgwIABABGGQgZChkMA8=&rs=AOn4CLBztGkyLxbyqIloiQ2JNX9KG1efrQ" alt="Watch the tutorial">
</a>
</div>
<script>
function copyToClipboard() {
const code = `javascript:(function() {var script = document.createElement('script');script.src = 'https://cdnjs.cloudflare.com/ajax/libs/eruda/2.4.1/eruda.min.js';document.body.appendChild(script);script.onload = function () { eruda.init(); }})();`;
navigator.clipboard.writeText(code).then(() => {
const toast = document.getElementById("copyToast");
toast.style.display = "block";
setTimeout(() => {
toast.style.display = "none";
}, 2000);
}).catch(() => {
alert("Failed to copy code. Please try again.");
});
}
</script>
</body>
</html>