-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
317 lines (292 loc) · 13.4 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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>Manroid โปรแกรมจัดการ Android</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://kit.fontawesome.com/e46a42ada8.js"></script>
<style>
.container-after-titlebar {
overflow: hidden !important; /* Hide scrollbars */
}
/* iframe {
border: 0;
width: 100%;
height: 100%;
margin-top: 0.4%;
} */
</style>
</head>
<body style="margin:0px;padding:0px;overflow:hidden">
<div class="row last">
<webview id="foo" src="https://accounts.google.com/ServiceLogin?service=googleplay&passive=1209600&continue=https://play.google.com/store/apps&followup=https://play.google.com/store/apps" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px" height="100%" width="100%" allowpopups useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko"></webview>
</div>
<!--div class="row">
<nav class="navbar navbar-expand-sm navbar-light bg-light">
<a class="navbar-brand" href="#"><b>Man</b>Phone</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" onclick="foo.goBack()" data-tooltip="tooltip" data-placement="right" title="ย้อนกลับ"><i class="fas fa-chevron-left"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="foo.goForward()" data-tooltip="tooltip" data-placement="right" title="ไปข้างหน้า"><i class="fas fa-chevron-right"></i></a>
</li>
<li class="nav-item dropdown dropup">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-tooltip="tooltip" data-placement="right" title="ดาวน์โหลด">
<i class="fas fa-download"></i>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" onclick="setURL('https://play.google.com/store/apps')" data-tooltip="tooltip" data-placement="right" title="แอป"><i class="fas fa-genderless"></i> แอป</a>
<a class="dropdown-item" onclick="setURL('https://play.google.com/store/movies')" data-tooltip="tooltip" data-placement="right" title="ภาพยนตร์"><i class="fas fa-film"></i> ภาพยนตร์</a>
<a class="dropdown-item" onclick="setURL('https://play.google.com/store/books')" data-tooltip="tooltip" data-placement="right" title="หนังสือ"><i class="fas fa-book"></i> หนังสือ</a>
<a class="dropdown-item" onclick="setURL('https://play.google.com/store')" data-tooltip="tooltip" data-placement="right" title="ความบันเทิงอื่นๆ"><i class="fab fa-android"></i> ความบันเทิงอื่นๆ</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" onclick="setURL('https://play.google.com/wishlist')" data-tooltip="tooltip" data-placement="right" title="สิ่งที่ฉันอยากได้ใน Play Store"><i class="fas fa-heart"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="setURL('https://www.google.com/android/devicemanager?hl=th&u=0')" data-tooltip="tooltip" data-placement="right" title="หาโทรศัพท์"><i class="fas fa-search-location"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="photos('https://photos.google.com/?hl=th')" data-tooltip="tooltip" data-placement="right" title="จัดการรูปภาพที่ซิงค์ใน Google Photos"><i class="fas fa-images"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="keep('https://keep.google.com/')" data-tooltip="tooltip" data-placement="right" title="จัดการโน็ตใน Google Keep"><i class="fas fa-sticky-note"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="setURL('https://calendar.google.com')" data-tooltip="tooltip" data-placement="right" title="จัดการปฏิทิน ใน Google Calendar"><i class="fas fa-calendar-alt"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="setURL('https://www.google.com/contacts')" data-tooltip="tooltip" data-placement="right" title="จัดการรายชื่อ ใน Google Contacts"><i class="fas fa-address-book"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="setURL('https://play.google.com/store/account')" data-tooltip="tooltip" data-placement="right" title="ตั้งค่าบัญชีใน Play Store"><i class="fas fa-user-cog"></i></a>
</li>
<li class="nav-item">
<a class="nav-link" onclick="settings('https://play.google.com/settings/')" data-tooltip="tooltip" data-placement="right" title="การตั้งค่า"><i class="fas fa-cog"></i></a>
</li>
</ul>
</div>
</nav>
</div-->
<script>if (typeof module === 'object'){
window.module = module; module = undefined;
}
</script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script>if (window.module) module = window.module;</script>
<script>
const { remote } = require('electron')
const { Menu, MenuItem } = remote
const customTitlebar = require('custom-electron-titlebar');
let MyTitleBar = new customTitlebar.Titlebar({
backgroundColor: customTitlebar.Color.fromHex('#444'),
shadow: true
});
const isMac = process.platform === 'darwin'
const menu = new Menu();
menu.append(new MenuItem({
label: 'เมนูหลัก',
submenu: [
{ label: 'แอป',
click: async () => {
setURL('https://play.google.com/store/apps')
}
},
{ label: 'ภาพยนตร์',
click: async () => {
setURL('https://play.google.com/store/movies')
}
},
{ label: 'หนังสือ',
click: async () => {
setURL('https://play.google.com/store/books')
}
},
{ label: 'ความบันเทิงอื่นๆ',
click: async () => {
setURL('https://play.google.com/store')
}
},
isMac ? { label: 'ปิด',role: 'close' } : { label: 'ออกจากโปรแกรม',role: 'quit' }
]
}));
menu.append(new MenuItem({
label: 'การนำทาง',
submenu: [
{ label: 'ย้อนกลับ',
click: async () => {
foo.goBack()
}
},
{ label: 'ไปข้างหน้า',
click: async () => {
foo.goForward()
}
},{ type: 'separator' },
{ label: 'รีโหลด',
role: 'reload'
}
]
}));
menu.append(new MenuItem({
label: 'เพลย์สโตร์',
submenu: [
{ label: 'สิ่งที่ฉันอยากได้ใน Play Store',
click: async () => {
setURL('https://play.google.com/wishlist')
}
},
{ label: 'ตั้งค่าบัญชีใน Play Store',
click: async () => {
setURL('https://play.google.com/store/account')
}
},
{ label: 'ตั้งค่าโทรศัพท์และอื่นๆ ใน Play Store',
click: async () => {
settings('https://play.google.com/settings/')
}
}
]
}));
menu.append(new MenuItem({
label: 'จัดการโทรศัพท์',
submenu: [
{ label: 'จัดการรูปภาพที่ซิงค์ใน Google Photos',
click: async () => {
photos('https://photos.google.com/?hl=th')
}
},
{ label: 'จัดการรายชื่อ ใน Google Contacts',
click: async () => {
setURL('https://www.google.com/contacts')
}
},
{ label: 'จัดการปฏิทิน ใน Google Calendar',
click: async () => {
setURL('https://calendar.google.com')
}
},
{ label: 'จัดการโน็ตใน Google Keep',
click: async () => {
keep('https://keep.google.com/')
}
},
{ label: 'หาโทรศัพท์',
click: async () => {
setURL('https://www.google.com/android/devicemanager?hl=th&u=0')
}
}
]
}));
menu.append(new MenuItem({
label: 'อื่นๆ',
submenu: [
{ label: 'ติดตามบน เฟสบุ๊ค',
click: async () => {
const { shell } = require('electron')
await shell.openExternal('https://www.facebook.com/QuadBCoder/')
}
},
{ label: 'สนันสนุน',
click: async () => {
const { shell } = require('electron')
await shell.openExternal('https://ko-fi.com/boyphongsakorn')
}
},{ type: 'separator' },
{ label: 'แจ้ง Bug',
click: async () => {
const { shell } = require('electron')
await shell.openExternal('https://github.com/boyphongsakorn/Manroid/issues')
}
},
{ label: 'เกี่ยวกับ Manroid',
click: async () => {
const { shell } = require('electron')
await shell.openExternal('https://github.com/boyphongsakorn/Manroid/blob/master/README.md')
}
}
]
}));
MyTitleBar.updateMenu(menu);
MyTitleBar.updateTitle('Manroid');
onload = () => {
const webview = document.querySelector('webview')
const indicator = document.querySelector('.indicator')
const loadstart = (e) => {
}
const loadstop = (e) => {
}
webview.addEventListener('did-start-loading', loadstart)
webview.addEventListener('did-stop-loading', loadstop)
webview.addEventListener('new-window', (e) => {
const protocol = require('url').parse(e.url).protocol
if (protocol === 'http:' || protocol === 'https:') {
document.getElementById('foo').src = e.url
}
})
}
</script>
<script type="text/javascript">
var webview = document.getElementById('foo');
webview.addEventListener('dom-ready', function () {
webview.insertCSS('.b7cPmf {display: none !important;}')
});
</script>
<script type="text/javascript">
var webview = document.getElementById('foo');
webview.addEventListener('dom-ready', function () {
webview.insertCSS('#gbwa {display: none !important;}')
});
</script>
<script type="text/javascript">
var webview = document.getElementById('foo');
function setURL(url){
document.getElementById('foo').src = url;
webview.addEventListener('dom-ready', function () {
webview.insertCSS('c-wiz.Knqxbd.tzLNed {display: block;} .WpDbMd {padding-left: 249px !important;padding-right: 49px!important;} .sIIDsc {display: block ;} .wkJZwc.rXI5N.j0qzGf {display: block ;} div.gb_Cb {display: block ;}')
});
}
</script>
<script type="text/javascript">
var webview = document.getElementById('foo');
function settings(url){
document.getElementById('foo').src = url;
webview.addEventListener('dom-ready', function () {
webview.insertCSS('c-wiz.Knqxbd.tzLNed {display: none;} .WpDbMd {padding-left: 50px !important;padding-right: 50px !important;} .sIIDsc {display: none;} .wkJZwc.rXI5N.j0qzGf {display: none;} div.gb_Cb {display: none;}')
});
}
</script>
<!--script type="text/javascript">
var webview = document.getElementById('foo');
function photos(url){
document.getElementById('foo').src = url;
webview.addEventListener('dom-ready', function () {
webview.insertCSS('')
});
}
</script>
<script type="text/javascript">
var webview = document.getElementById('foo');
function keep(url){
document.getElementById('foo').src = url;
webview.addEventListener('dom-ready', function () {
webview.insertCSS('')
});
}
</script-->
<script type="text/javascript">
$(function () {
$('[data-tooltip="tooltip"]').tooltip()
})
</script>
</body>
</html>