Skip to content

Commit

Permalink
Merge branch 'FastForwardTeam:main' into testing
Browse files Browse the repository at this point in the history
  • Loading branch information
driedpampas authored Oct 2, 2023
2 parents 4f1ec95 + fb4c7c8 commit 8f8365c
Show file tree
Hide file tree
Showing 36 changed files with 757 additions and 251 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"
- cron: "0 0 14,28 * *"
workflow_dispatch:

jobs:
Expand Down
105 changes: 57 additions & 48 deletions docs/Bypassed.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,66 +90,66 @@ This is a list of websites bypassed in the MV2 version of the extension.
| https://njiirx.com | 🛑 |
| https://healthykk.com | 🛑 |
| https://linkasm.com | 🛑 |
| https://dxdrive.com | |
| https://getwallpapers.com | |
| https://sammobile.com | |
| https://ydfile.com | |
| https://mobilemodsapk.com | |
| https://dlandroid.com | |
| https://download.modsofapk.com | |
| https://dxdrive.com | 🛑 |
| https://getwallpapers.com | |
| https://sammobile.com | |
| https://ydfile.com | |
| https://mobilemodsapk.com | |
| https://dlandroid.com | |
| https://download.modsofapk.com | |
| https://punchsubs.net | 🛑 |
| https://zedge.net | |
| https://fex.net | |
| https://k2s.cc | |
| https://zedge.net | |
| https://fex.net | |
| https://k2s.cc | |
| https://muhammadyoga.me | 🛑 |
| https://u.to | |
| https://u.to | |
| https://skiplink.io | 🛑 |
| https://uploadfree.info | 🛑 |
| https://freeupload.info | 🛑 |
| https://fstore.biz | 🛑 |
| https://thesimsresource.com/ ||
| https://firefaucet.win/ | |
| https://sfirmware.com/ | |
| https://apkily.com/ | |
| https://androidtop.net/ | |
| https://emulator.games/ | |
| https://curseforge.com/ | * |
| https://firefaucet.win/ | |
| https://sfirmware.com/ | |
| https://apkily.com/ | 🛑 |
| https://androidtop.net/ | |
| https://emulator.games/ | |
| https://curseforge.com/ | * |
| https://racaty.com | 🛑 |
| https://longfiles.com | |
| https://filepuma.com | |
| https://portableapps.com | |
| https://indishare.org | |
| https://longfiles.com | 🛑 |
| https://filepuma.com | |
| https://portableapps.com | |
| https://indishare.org | |
| https://datei.to | 🛑 |
| https://keisekai.fun | 🛑 |
| https://solvetube.site | |
| https://lkc21.net | |
| https://solvetube.site | |
| https://lkc21.net | |
| https://layarkacaxxi.org | 🛑 |
| https://fastforward.team ||
| https://acortame.xyz | 🛑 |
| https://linkvertise.com ||
| https://linkvertise.net ||
| https://link-to.net ||
| https://filefactory.com | |
| https://file-upload.com | |
| https://asdfiles.com | |
| https://mega4up.com | |
| https://up-load.io | |
| https://cosmobox.org | |
| https://filefactory.com | |
| https://file-upload.com | |
| https://asdfiles.com | |
| https://mega4up.com | |
| https://up-load.io | |
| https://cosmobox.org | |
| https://rockfile.co | 🛑 |
| https://devdrive.cloud | |
| https://devdrive.cloud | |
| https://srt.am ||
| https://complete2unlock.com ||
| https://won.pe | 🛑 |
| https://gotoo.loncat.in | 🛑 |
| https://idnation.net | |
| https://idnation.net | |
| https://mazika2day.com | 🛑 |
| https://ux9.de | |
| https://softpedia.com | |
| https://ux9.de | |
| https://softpedia.com | |
| https://rapidcrypt.net | 🛑 |
| https://rom.io | 🛑 |
| https://show.co | |
| https://show.co | 🛑 |
| https://vcrypt.net | 🛑 |
| https://1link.club | |
| https://1link.club | |
| https://bomurl.com | 🛑 |
| https://4snip.pw/out/ | 🛑 |
| https://4snip.pw/decode/ | 🛑 |
Expand All @@ -158,7 +158,7 @@ This is a list of websites bypassed in the MV2 version of the extension.
| https://elsfile.org | 🛑 |
| https://goou.in | 🛑 |
| https://manualsbooks.com ||
| https://ryn.cc | |
| https://ryn.cc | |
| https://connect-trojan.net | 🛑 |
| https://binbox.io | 🛑 |
| https://lnk2.cc ||
Expand Down Expand Up @@ -188,8 +188,8 @@ This is a list of websites bypassed in the MV2 version of the extension.
| https://linkerload.com ||
| https://dawnstation.com | 🛑 |
| https://hokiwikiped.net | 🛑 |
| https://spaste.com/s/ | |
| https://spaste.com/site/ | |
| https://spaste.com/s/ | |
| https://spaste.com/site/ | |
| https://get-click2.blogspot.com ||
| https://informations-library.blogspot.com ||
| https://media-blue.blogspot.com ||
Expand Down Expand Up @@ -344,24 +344,33 @@ This is a list of websites bypassed in the MV2 version of the extension.
| https://shorten.sh | 🛑 |
| https://urapk.com ||
| https://expertvn.com ||
| https://mediafile.cloud | |
| https://mediafile.cloud | 🛑 |
| https://mlwbd.pw | 🛑 |
| https://uploadking.net | |
| https://5play.ru | |
| https://daunshorte.kertashitam.com | |
| https://uploadking.net | |
| https://5play.ru | |
| https://daunshorte.kertashitam.com | 🛑 |
| https://swatchseries.to/ | 🛑 |
| https://tl.gd | |
| https://tl.gd | |
| https://apkmodo.com | 🛑 |
| https://multifilemirror.com | 🛑 |
| https://welcome.indihome.co.id | 🛑 |
| https://techrfour.com | |
| https://gaminplay.com | |
| https://techrfour.com | 🛑 |
| https://gaminplay.com | 🛑 |
| https://dl.helow.id | 🛑 |
| https://dl.ocanoke.com | 🛑 |
| https://tudofinanceiro.club | 🛑 |
| https://apkhubs.com ||
| https://favpng.com ||
| https://sh.st ||
| https://apkhubs.com ||
| https://favpng.com ||
| https://sh.st ||
| http://clkmein.com ||
| http://viid.me ||
| http://xiw34.com ||
| http://corneey.com ||
| http://gestyy.com ||
| http://cllkme.com ||
| http://festyy.com ||
| http://destyy.com ||
| http://ceesty.com ||
| https://maukredit.online | 🛑 |
| https://ay.link | 🛑 |
| https://shtms.co | 🛑 |
Expand Down
6 changes: 4 additions & 2 deletions scripts/build_js/injection_script_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ function matchingBypass(bypasses) {
for (const [key] of Object.entries(bypasses)) {
if (key.charAt(0) === '/' && key.charAt(key.length - 1) === '/') {
let pattern = new RegExp(key.substring(1, key.length - 1));
return pattern.test(location.href) ? key : null;
if (pattern.test(location.href)) {
return key;
}
} else if (key === location.host) {
return key;
}
return null;
}
return null;
}

if (matchingBypass(bypasses)) {
Expand Down
44 changes: 34 additions & 10 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,49 @@
"message": "Enable website bypasses."
},
"optionsNavigationDelay": {
"message": "Take me to destinations after % second(s)."
"message": "Bypass Link Shorteners after % second(s)."
},
"optionsTrackerBypass": {
"message": "Bypass trackers (such as bit.ly and goo.gl) using Unshorten.me."
"message": "Bypass trackers"
},
"optionsInstantNavigationTrackers": {
"message": "Instantly take me to destinations of trackers."
"message": "Bypass Trackers immediately."
},
"optionsBlockIPLoggers": {
"message": "Block IP loggers if they can't be bypassed."
"message": "Block IP loggers."
},
"optionsCrowdBypass": {
"message": "Crowd Bypass: Give and take the destinations of unbypassable shorteners."
"message": "Crowd Bypass."
},
"optionsCrowdAutoOpen": {
"message": "Open crowd-sourced destinations in a new tab after % second(s)."
"message": "Open Crowd destinations after % second(s)."
},
"optionsCrowdAutoClose": {
"message": "Close tab containing the crowd-sourced destination after % second(s) of visiting it."
"message": "Close Crowd destination after % second(s)."
},
"optionsNavigationDelayDescription": {
"message": "Automatically bypass link shorteners such as Adf.ly, sub2unlock.com, after a certain amount of seconds. Recommended: On, 0 seconds."
},
"optionsTrackerBypassDescription": {
"message": "Automatically bypass trackers such as t.co and goo.gl using the Unshorten.me API. Recommended: On."
},
"optionsInstantNavigationTrackersDescription": {
"message": "Bypass trackers immediately and automatically, instead of providing a link to the destination. Recommended: On."
},
"optionsBlockIPLoggersDescription": {
"message": "If FastForward can't bypass a link that will log your IP, we will block it instead. Recommended: On."
},
"optionsCrowdBypassDescription": {
"message": "Crowd Bypass: Use FastForward's online database of bypassed links to instantly bypass popular sites. Recommended: On."
},
"optionsCrowdAutoOpenDescription": {
"message": "Open Crowd Bypass destinations in a new tab rather than the current one, so you don't lose your place. Recommended: Off"
},
"optionsCrowdAutoCloseDescription": {
"message": "Close Crowd Bypass destination after a few seconds. Useful if most of the sites you visit have a direct download link. Recommended: Off"
},
"crowdBypassTempDisabledDescription": {
"message": "Crowd bypass has been temporarily disabled when FastForward was updated. Please re-enable it."
},
"privacyPolicy": {
"message": "Privacy Policy"
Expand Down Expand Up @@ -134,8 +158,8 @@
"optionsWhitelist": {
"message": "Whitelist"
},
"optionsWhitelistDescription": {
"message": "A list of sites formatted as domain.tld or subdomain.domain.tld separated with a newline that will not be bypassed by FastForward. You can use * as a wildcard."
"optionsWhitelistDescription": {
"message": "A list of sites formatted as domain.tld or subdomain.domain.tld that won't be bypassed by FastForward. Seperate domains with new lines. Use * as a wildcard."
},
"tempDisableCrowdBypassButton": {
"message": "Temporarily disable crowd bypass"
Expand All @@ -152,5 +176,5 @@
"trackerBypassedError": {
"message": "Oops! Something went wrong. Redirecting to the original link..."
}

}
16 changes: 16 additions & 0 deletions src/bypasses/androidtop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import BypassDefinition from './BypassDefinition.js';

export default class Androidtop extends BypassDefinition {
constructor() {
super();
// custom bypass required bases can be set here
}

execute() {
// If the variable downloadTimer is defined, then use clearInterval to stop the timer.
document.querySelector('.counterhide').setAttribute('style', 'opacity: 0; visibility: hidden; height: 0px;');
document.querySelector('.download-result').setAttribute('style', 'opacity: 1; visibility: visible;');
}
}

export const matches = ['androidtop.net'];
16 changes: 16 additions & 0 deletions src/bypasses/apkhubs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import BypassDefinition from './BypassDefinition.js';

export default class Apkhubs extends BypassDefinition {
constructor() {
super();
// custom bypass required bases can be set here
}

execute() {
this.helpers.ifElement("a#downloadbtn", a => {
this.helpers.safelyNavigate(a.href)
})
}
}

export const matches = ['apkhubs.com'];
2 changes: 1 addition & 1 deletion src/bypasses/clictune.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export default class Clictune extends BypassDefinition {
}
}

export const matches = ['www.dlink2.com']
export const matches = ['www.dlink2.net', 'www.dlink2.com', 'www.clictune.com']
14 changes: 14 additions & 0 deletions src/bypasses/curseforge.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import BypassDefinition from './BypassDefinition.js';

export default class Curseforge extends BypassDefinition {
constructor() {
super();
// custom bypass required bases can be set here
}

execute() {
window.setInterval = f => setInterval(f, 100)
}
}

export const matches = ['curseforge.com'];
22 changes: 22 additions & 0 deletions src/bypasses/favpng.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import BypassDefinition from './BypassDefinition.js';

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

execute() {
const scripts = document.getElementsByTagName('script');
for (let i = 0; i < scripts.length; i++) {
let script = scripts[i];
if (script.textContent.includes('https://download.favpng.com/api_download.php?')) {
let startIndex = script.textContent.indexOf('https://download.favpng.com/api_download.php?');
let endIndex = script.textContent.indexOf('"', startIndex);
this.helpers.safelyNavigate(script.textContent.substring(startIndex, endIndex));
}
}
}
}

export const matches = ['favpng.com'];
14 changes: 14 additions & 0 deletions src/bypasses/filefactory.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import BypassDefinition from './BypassDefinition.js';

export default class Filefactory extends BypassDefinition {
constructor() {
super();
// custom bypass required bases can be set here
}

execute() {
this.helpers.insertInfoBox("Unfortunately, the download server will ensure that you have waited before allowing you to download the file.")
}
}

export const matches = ['https://filefactory.com', 'https://file-upload.com', 'https://asdfiles.com', 'https://mega4up.com', ' https://up-load.io', 'https://cosmobox.org', 'https://devdrive.cloud'];
22 changes: 22 additions & 0 deletions src/bypasses/filepuma.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import BypassDefinition from './BypassDefinition.js';

export default class Filepuma extends BypassDefinition {
constructor() {
super();
// custom bypass required bases can be set here
}

execute() {
// Find the last script in the page
let scripts = document.getElementsByTagName('script');
let lastScript = scripts[scripts.length - 1];
// Get the script's source
let scriptSrc = lastScript.innerHTML;
// Find the first location.href in the script and get the value of location.href
let url = scriptSrc.split('location.href = "')[1].split('"')[0];
alert(url)

}
}

export const matches = ['filepuma.com'];
Loading

0 comments on commit 8f8365c

Please sign in to comment.