Skip to content

Commit

Permalink
Merge pull request #1208 from mrcyclo/feature/bluemediafile
Browse files Browse the repository at this point in the history
Add bluemediafile bypass
  • Loading branch information
undeadjess authored Nov 26, 2023
2 parents 8d315c7 + abda320 commit 45d4136
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/Bypassed.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ This is a list of websites bypassed in the MV2 version of the extension.
| https://playhindi.com | 🛑 |
| https://daominhha.com/ ||
| https://bluemediafiles.com/ | 🛑 |
| https://bluemediafile.site/ ||
| https://pcgamestorrents.org/ ||
| https://retrosping.net/ | 🛑 |
| https://mydramalist.com/ ||
Expand Down
23 changes: 23 additions & 0 deletions src/bypasses/bluemediafile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import BypassDefinition from './BypassDefinition.js';

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

execute() {
if (location.href.match(/\/url-generator(-\d+)?\.php\?url=/) === null)
return;

window.Time_Start -= 5000;
window.i = 0;
this.helpers.awaitElement('input#nut[src]', (i) => i.parentNode.submit());
}
}

export const matches = [
'bluemediafiles.com',
'bluemediafile.sbs',
'bluemediafile.site',
];

0 comments on commit 45d4136

Please sign in to comment.