mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2025-03-01 21:09:37 +05:00
138 lines
10 KiB
Python
138 lines
10 KiB
Python
import requests
|
|
|
|
def download_file(url, destination):
|
|
try:
|
|
response = requests.get(url)
|
|
response.raise_for_status() # Check if the request was successful
|
|
|
|
with open(destination, 'wb') as file:
|
|
file.write(response.content)
|
|
|
|
print(f"OK: File downloaded successfully as {destination}")
|
|
|
|
except requests.exceptions.RequestException as e:
|
|
print(f"Error downloading file: {e}")
|
|
|
|
def download_file_if_not_exists(url, destination):
|
|
import os
|
|
|
|
if not os.path.exists(destination):
|
|
download_file(url, destination)
|
|
else:
|
|
print(f"File already exists: {destination}")
|
|
|
|
def modify_file_with_my_fixes(input_file, output_file):
|
|
with open(input_file, 'r', encoding='utf-8') as file:
|
|
content = file.read()
|
|
|
|
# Fixes
|
|
#content = content.replace("BloggerPemula('highkeyfinance.com'", "//BloggerPemula('highkeyfinance.com'")
|
|
content = content.replace("BypassedByBloggerPemula(/itscybertech.com", "/*BypassedByBloggerPemula(/itscybertech.com")
|
|
content = content.replace("bp('#gtbtn2'))) {clearInterval(itscyber); window.fngo();}}, 1 * 1000);});", "bp('#gtbtn2'))) {clearInterval(itscyber); window.fngo();}}, 1 * 1000);});*/")
|
|
content = content.replace("BypassedByBloggerPemula(/linkvertise.com/", "//BypassedByBloggerPemula(/linkvertise.com/")
|
|
content = content.replace("/stfly.cc|stfly.xyz|techtrendmakers.com|(blogbux|blogesque|exploreera).net/", "/stfly.(cc|xyz|biz)|(techtrendmakers|gadnest|optimizepics).com|(blogbux|blogesque|exploreera|explorosity|torovalley).net/")
|
|
#content = content.replace("BloggerPemula('financeyogi.net'", "//BloggerPemula('financeyogi.net'")
|
|
content = content.replace("case 'pixeldrain.com'", "//case 'pixeldrain.com'")
|
|
|
|
content = content.replace("BypassedByBloggerPemula(/lootlinks", "//BypassedByBloggerPemula(/lootlinks")
|
|
content = content.replace("let lln = bp('body > script');let lls", "//let lln = bp('body > script');let lls")
|
|
|
|
content = content.replace("BypassedByBloggerPemula(/web1s.asia/", "/*BypassedByBloggerPemula(/web1s.asia/")
|
|
#content = content.replace("bp(inp).value = decodeURIComponent(BpParamd.get('code')); ClickIfExists(btn,2); }}});", "bp(inp).value = decodeURIComponent(BpParamd.get('code')); ClickIfExists(btn,2); }}}); */")
|
|
content = content.replace("window.location.assign(`${decodeURIComponent(BpParamd.get('wsa'))}?code=${tCode}`); clearInterval(gCode);}}, 2000);}});", "window.location.assign(`${decodeURIComponent(BpParamd.get('wsa'))}?code=${tCode}`); clearInterval(gCode);}}, 2000);}});*/")
|
|
|
|
content = content.replace("(howifx|vocalley|financerites|yogablogfit|healthfirstweb|junkyponk).com", "(howifx|vocalley|financerites|yogablogfit|healthfirstweb|junkyponk|mythvista|webhostsec).com")
|
|
|
|
content = content.replace("BypassedByBloggerPemula(/adclicker", "//BypassedByBloggerPemula(/adclicker")
|
|
#content = content.replace("/adclicker\.*/", "/(adclicker.(io|info)|discoveryultrasecure.com)\/url\/\#/")
|
|
content = content.replace("redirect(new URLSearchParams(adc).get('url'));} else {}});", "//redirect(new URLSearchParams(adc).get('url'));} else {}});")
|
|
|
|
#content = content.replace("BypassedByBloggerPemula(/quesignifi.ca|tiktokcounter.net/", "/*BypassedByBloggerPemula(/quesignifi.ca|tiktokcounter.net/")
|
|
#content = content.replace("ClickIfExists('#cbt', 5, 'setInterval');}});", "ClickIfExists('#cbt', 5, 'setInterval');}});*/")
|
|
|
|
content = content.replace("BypassedByBloggerPemula(/djxmaza.in/", "//BypassedByBloggerPemula(/djxmaza.in/")
|
|
content = content.replace("ClickIfExists('#downloadbtnf', 2);ClickIfExists", "//ClickIfExists('#downloadbtnf', 2);ClickIfExists")
|
|
|
|
#content = content.replace("BypassedByBloggerPemula(/newsbawa.com/, function() {ClickIfExists('#Verify-click-btn', 2);ClickIfExists('a#footer-btn.verify-btn', 3);});", "BypassedByBloggerPemula(/newsbawa.com/, function() {ClickIfExists('#Verify-click-btn', 0.3);ClickIfExists('a#footer-btn.verify-btn', 1);});")
|
|
|
|
content = content.replace("/anhdep24.com|nguyenvanbao.com|xemsport.com|byboe.com/", "/(anhdep24|nguyenvanbao|xemsport|byboe|asideway).com/")
|
|
|
|
#content = content.replace("BloggerPemula('veganab.co'", "//BloggerPemula('veganab.co'")
|
|
content = content.replace("atglinks|", "")
|
|
|
|
content = content.replace("|vebma|majalahhewan).com/", "|vebma|majalahhewan).com|crm.cekresi.me|ai.tempatwisata.pro/")
|
|
|
|
content = content.replace("case 'work.ink'", "//case 'work.ink'")
|
|
|
|
content = content.replace("/(starxinvestor|hit-films|sevenjournals).com|(iisfvirtual|bookszone|learnmany).in/", "/(starxinvestor|hit-films|sevenjournals|funkeypagali|viewmyknowledge|wikifilmia|nayisahara|careersides).com|(iisfvirtual|bookszone|learnmany).in/")
|
|
|
|
content = content.replace("azmath.info", "azmath.info|expertvn.com")
|
|
|
|
content = content.replace("(blogscare|blogtechh|host2loan).com", "(blogscare|blogtechh|host2loan|techbixby).com")
|
|
content = content.replace("|lnbz.la/", "|(lnbz|oei).la/")
|
|
|
|
content = content.replace("/(newsbawa|utkarshonlinetest).com/", "/(newsbawa|utkarshonlinetest|techbezzie).com/")
|
|
|
|
content = content.replace("nayisahara|careersides).com", "nayisahara|careersides|edukaroo).com")
|
|
|
|
content = content.replace("/(newsbawa|utkarshonlinetest|techbezzie).com/", "/(newsbawa|utkarshonlinetest|techbezzie|financewada).com/")
|
|
|
|
content = content.replace("blog-myst).com|ss7.info", "blog-myst|webhostsec).com|ss7.info")
|
|
|
|
content = content.replace("/azmath.info/", "/azmath.info|expertvn.com/")
|
|
|
|
content = content.replace("/tii.la|oei.la|iir.la|tvi.la|oii.la|tpi.li/", "/tii.la|oei.la|iir.la|tvi.la|oii.la|tpi.li|lnbz.la/")
|
|
|
|
content = content.replace("/trangchu.news|downfile.site|(techacode|expertvn|ziggame).com|azmath.info|aztravels.net|top10cafe.se|handydecor.com.vn/", "/trangchu.news|downfile.site|(techacode|expertvn|ziggame).com|azmath.info|expertvn.com|aztravels.net|top10cafe.se|handydecor.com.vn/")
|
|
|
|
content = content.replace("/(theconomy|nightfaucet).me|(imagenesderopaparaperros|linclik|up4cash|smoner|atglinks|briceka).com|galaxy-link.space|oke.io|forextrader.site|tinygo.co/", "/(theconomy|nightfaucet).me|(imagenesderopaparaperros|linclik|up4cash|smoner|atglinks).com|happy-living.online|galaxy-link.space|oke.io|forextrader.site|tinygo.co/")
|
|
|
|
content = content.replace("/(blogtechh|host2loan|techbixby|wptohost|hosttbuzz|blog-blend|policiesreview|blogmystt|wp2hostt|advertisingcamps).com|clk.wiki|(oko|aii).sh|clk.kim|dekhe.click/", "/(blogtechh|host2loan|techbixby|wptohost|hosttbuzz|blog-blend|blog-myst|ins-myst|blogmystt|healthmyst|wp2hostt|policiesreview).com|clk.wiki|(oko|aii).sh|clk.kim|dekhe.click/")
|
|
|
|
content = content.replace("/(sekilastekno|miuiku|vebma|majalahhewan).com|tempatwisata.pro/", "/(sekilastekno|miuiku|vebma|majalahhewan).com|crm.cekresi.me|ai.tempatwisata.pro/")
|
|
|
|
content = content.replace("/(starxinvestor|hit-films|sevenjournals).com|(iisfvirtual|bookszone|learnmany).in/", "/(starxinvestor|hit-films|sevenjournals|funkeypagali|viewmyknowledge|wikifilmia|nayisahara|careersides|edukaroo).com|(iisfvirtual|bookszone|learnmany).in/")
|
|
|
|
linestoremove = """ case 'sl1bas.blogspot.com': if (h.pathname === '/' && h.searchParams.has('BypassResults')) {
|
|
result.link = decodeURIComponent(location.href.split('BypassResults=')[1].replace('&m=1', ''));
|
|
result.redirectDelay = cfg.get('SetDelay'); result.isNotifyNeeded = true; return result;} break;
|
|
"""
|
|
content = content.replace(linestoremove, "")
|
|
|
|
content = content.replace("'lopteapi.com', '3link.co', 'web1s.com', 'vuotlink.vip'];let List1 = ['ay.live', 'gitlink.pro'", "'lopteapi.com', '3link.co', 'web1s.com', 'vuotlink.vip'];let List1 = ['ay.live', 'aylink.co', 'gitlink.pro'")
|
|
|
|
linestoremove = """ BypassedByBloggerPemula(/(youtube|youtube-nocookie).com/, function() {if (window.hasOwnProperty('_lact')) {window.setInterval(() => {window._lact = Date.now();}, 5 * 1000);
|
|
} else if (elementExists('#redirect-main-text')) {waitForElm('a#invalid-token-redirect-goto-site-button', yt => redirect(yt.href, false));} else {}});
|
|
"""
|
|
content = content.replace(linestoremove, "")
|
|
|
|
linestoremove = """ BypassedByBloggerPemula(/(lootlinks|onepiecered).co|(loot-links|links-loot|loot-link|mega-guy|utopianleaks|eofmukindwo|realiukzemydre|kmendation|bstlar|tonordersitye|bleleadersto|daughablelea).com|(lootdest|lootlink|best-links).org|lootdest.info|linksloot.net|free-content.pro/, function() {
|
|
if (/^\/([^\/]+)/.test(location.pathname)) {redirect('https://adbypass.org/bypass?bypass=' + location.href, false);}});
|
|
"""
|
|
content = content.replace(linestoremove, "")
|
|
|
|
content = content.replace("BypassedByBloggerPemula(/linegee.net/", "//BypassedByBloggerPemula(/linegee.net/")
|
|
|
|
#linkpays.in
|
|
content = content.replace("BypassedByBloggerPemula('venzoars.com'", "//BypassedByBloggerPemula('venzoars.com'")
|
|
content = content.replace("BypassedByBloggerPemula('(surfsees|travelagancy).com'", "//BypassedByBloggerPemula('(surfsees|travelagancy).com'")
|
|
content = content.replace("BypassedByBloggerPemula('stockinsights.in'", "//BypassedByBloggerPemula('stockinsights.in'")
|
|
|
|
linestoremove = """ BypassedByBloggerPemula(/dutchycorp.ovh|seulink.digital|oii.io|hamody.pro|metasafelink.site|(beingtek|fc-lc|10short).com|(zagl|shrinkforearn).in|wordcounter.icu|pwrpa.cc|flyad.vip|seulink.online|pahe.plus|tfly.link/, function() {
|
|
if (elementExists('.grecaptcha-badge') || elementExists('#captchaShortlink')) {var ticker = setInterval(function() {try {clearInterval(ticker); window.grecaptcha.execute();} catch (e) {}}, 3000);}});
|
|
"""
|
|
content = content.replace(linestoremove, "")
|
|
|
|
content += "\n"
|
|
|
|
with open(output_file, 'w', encoding='utf-8') as file:
|
|
file.write(content)
|
|
|
|
if __name__ == "__main__":
|
|
url1 = "https://update.greasyfork.org/scripts/431691/Bypass%20All%20Shortlinks.user.js"
|
|
url2 = "https://openuserjs.org/install/Bloggerpemula/Bypass_All_Shortlinks_Manual_Captcha.user.js"
|
|
file_0 = "untouched_Bypass_All_Shortlinks_0.user.js"
|
|
file = "untouched_Bypass_All_Shortlinks_patched.user.js"
|
|
|
|
download_file_if_not_exists(url1, file_0)
|
|
modify_file_with_my_fixes(file_0, file)
|