Skip to content

Commit 8d315c7

Browse files
authored
Merge pull request #1204 from nfal001/main
add: vebma.com, fix: miuiku.com, sekilastekno.com
2 parents 18d234b + d22aa04 commit 8d315c7

File tree

2 files changed

+98
-2
lines changed

2 files changed

+98
-2
lines changed

docs/Bypassed.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ This is a list of websites bypassed in the MV2 version of the extension.
526526
| https://liveshootv.com | 🛑 |
527527
| https://modebaca.com ||
528528
| https://haipedia.com ||
529-
| https://sekilastekno.com | |
530-
| https://miuiku.com | |
529+
| https://sekilastekno.com | |
530+
| https://miuiku.com | |
531531
| https://shrink.world | 🛑 |
532532
| https://link.mymastah.xyz | 🛑 |
533533
| https://sportif.id ||
@@ -587,3 +587,5 @@ This is a list of websites bypassed in the MV2 version of the extension.
587587
| https://oko.sh ||
588588
| https://bluetechno.net ||
589589
| https://work.click ||
590+
| https://vebma.com ||
591+
| https://adtival.network ||

src/bypasses/adtival.js

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
import BypassDefinition from './BypassDefinition.js';
2+
3+
export default class Adtival extends BypassDefinition {
4+
constructor() {
5+
super();
6+
this.ensure_dom = true;
7+
}
8+
9+
execute() {
10+
console.log('Adtival found!');
11+
12+
const executor = async () => {
13+
const El = window.livewire.components.components()[0];
14+
15+
const payload = {
16+
fingerprint: El.fingerprint,
17+
serverMemo: El.serverMemo,
18+
updates: [
19+
{
20+
payload: {
21+
event: 'getData',
22+
id: 'whathappen',
23+
params: [],
24+
},
25+
type: 'fireEvent',
26+
},
27+
],
28+
};
29+
30+
const response = await fetch(
31+
location.origin + '/livewire/message/pages.show',
32+
{
33+
headers: {
34+
'Content-Type': 'application/json',
35+
'X-Livewire': 'true',
36+
'X-CSRF-TOKEN': window.livewire_token,
37+
},
38+
method: 'POST',
39+
body: JSON.stringify(payload),
40+
}
41+
);
42+
43+
const json = await response.json();
44+
45+
// ensure URL
46+
const url = new URL(json.effects.emits[0].params[0]);
47+
48+
this.helpers.safelyAssign(url.href);
49+
// this.helpers.unsafelyNavigate(url.href, location.href)
50+
};
51+
52+
// special case for sekilastekno. modbaca(?)
53+
if (RegExp(/(modebaca|sekilastekno)\.com/).exec(location.host)) {
54+
this.helpers.ifElement("form[method='post']", (a) => {
55+
console.log('addRecord...');
56+
57+
const input = document.createElement('input');
58+
input.value = window.livewire_token;
59+
input.name = '_token';
60+
input.hidden = true;
61+
a.appendChild(input);
62+
a.submit();
63+
});
64+
65+
// ...same step as miuiku and vebma
66+
this.helpers.ifElement('button[x-text]', async () => {
67+
console.log('getLink..');
68+
executor();
69+
});
70+
71+
return;
72+
}
73+
74+
// adtival getLink on miuiku
75+
this.helpers.ifElement("div[class='max-w-5xl mx-auto']", async () => {
76+
console.log('Executing..');
77+
executor();
78+
});
79+
80+
// adtival b64UrlLastPage
81+
this.helpers.ifElement("button[id='copyVideoURL']", () => {
82+
const shortID = new URLSearchParams(window.location.search).get(
83+
'shortid'
84+
);
85+
86+
this.helpers.safelyAssign(atob(shortID));
87+
});
88+
}
89+
}
90+
91+
export const matches = [
92+
/movienear\.me|lewat\.club|tautan\.pro|(droidtamvan|gubukbisnis|onlinecorp)\.me|(liveshootv|modebaca|haipedia|sekilastekno|miuiku|vebma)\.com|shrink\.world|link\.mymastah\.xyz|(sportif|cararoot)\.id|healthinsider\.online/,
93+
'www.adtival.network',
94+
];

0 commit comments

Comments
 (0)