-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvidstream.js
More file actions
37 lines (31 loc) · 1.07 KB
/
Copy pathvidstream.js
File metadata and controls
37 lines (31 loc) · 1.07 KB
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
// window.stop();
// browser.runtime.sendMessage(undefined, {
// removeCookies: location.host
// }, {}, () => {
// fetch(location.href).then((r) => r.text()).then((r) => {
// var f = /function.+?\(\){(.+)}/g.exec(r)[1];
// eval(f);
// var d = /if\(!(_.+?)\).+?}} ?else/g.exec(r);
// var code = d[0].replace(/else/g, '') + '}';
// d = eval(code);
// fetch('/cv.php').then().catch(r => {
// $.ajax({
// 'url': "/cv.php?verify=" + d,
// 'cache': ![],
// 'method': "POST",
// 'data': JSON.parse(/{'_.+?':'.+?'}/g.exec(code)[0].replace(/'/g, '"').replace(/"no"/g, '"ok"'))
// })
// });
// });
if ($('.bigbutton._reload').length)
browser.runtime.sendMessage(undefined, { refreshVidstream: location.host }, undefined);
top.postMessage({
type: 'info_egybetter', host: location.host, activated: !$('.bigbutton._reload').length
}, '*');
if ($('.bigbutton._reload').length)
$('.bigbutton._reload')[0].click();
else {
top.postMessage({ type: 'vidstream_verified', url: location.href, host: location.host }, '*');
console.log('done!');
}
// });