Skip to content

Commit

Permalink
Merge pull request #1204 from nfal001/main
Browse files Browse the repository at this point in the history
add: vebma.com, fix: miuiku.com, sekilastekno.com
  • Loading branch information
undeadjess authored Nov 26, 2023
2 parents 18d234b + d22aa04 commit 8d315c7
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/Bypassed.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ This is a list of websites bypassed in the MV2 version of the extension.
| https://liveshootv.com | 🛑 |
| https://modebaca.com ||
| https://haipedia.com ||
| https://sekilastekno.com | |
| https://miuiku.com | |
| https://sekilastekno.com | |
| https://miuiku.com | |
| https://shrink.world | 🛑 |
| https://link.mymastah.xyz | 🛑 |
| https://sportif.id ||
Expand Down Expand Up @@ -587,3 +587,5 @@ This is a list of websites bypassed in the MV2 version of the extension.
| https://oko.sh ||
| https://bluetechno.net ||
| https://work.click ||
| https://vebma.com ||
| https://adtival.network ||
94 changes: 94 additions & 0 deletions src/bypasses/adtival.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
import BypassDefinition from './BypassDefinition.js';

export default class Adtival extends BypassDefinition {
constructor() {
super();
this.ensure_dom = true;
}

execute() {
console.log('Adtival found!');

const executor = async () => {
const El = window.livewire.components.components()[0];

const payload = {
fingerprint: El.fingerprint,
serverMemo: El.serverMemo,
updates: [
{
payload: {
event: 'getData',
id: 'whathappen',
params: [],
},
type: 'fireEvent',
},
],
};

const response = await fetch(
location.origin + '/livewire/message/pages.show',
{
headers: {
'Content-Type': 'application/json',
'X-Livewire': 'true',
'X-CSRF-TOKEN': window.livewire_token,
},
method: 'POST',
body: JSON.stringify(payload),
}
);

const json = await response.json();

// ensure URL
const url = new URL(json.effects.emits[0].params[0]);

this.helpers.safelyAssign(url.href);
// this.helpers.unsafelyNavigate(url.href, location.href)
};

// special case for sekilastekno. modbaca(?)
if (RegExp(/(modebaca|sekilastekno)\.com/).exec(location.host)) {
this.helpers.ifElement("form[method='post']", (a) => {
console.log('addRecord...');

const input = document.createElement('input');
input.value = window.livewire_token;
input.name = '_token';
input.hidden = true;
a.appendChild(input);
a.submit();
});

// ...same step as miuiku and vebma
this.helpers.ifElement('button[x-text]', async () => {
console.log('getLink..');
executor();
});

return;
}

// adtival getLink on miuiku
this.helpers.ifElement("div[class='max-w-5xl mx-auto']", async () => {
console.log('Executing..');
executor();
});

// adtival b64UrlLastPage
this.helpers.ifElement("button[id='copyVideoURL']", () => {
const shortID = new URLSearchParams(window.location.search).get(
'shortid'
);

this.helpers.safelyAssign(atob(shortID));
});
}
}

export const matches = [
/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/,
'www.adtival.network',
];

0 comments on commit 8d315c7

Please sign in to comment.