mirror of
https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated.git
synced 2024-12-28 07:53:01 +05:00
stop making includes for commented-out lines of JS
This commit is contained in:
parent
c45440fb38
commit
74d6bc83b2
4 changed files with 4 additions and 7 deletions
|
@ -1,18 +1,18 @@
|
|||
import re
|
||||
|
||||
def extract_regex_from_js(js_code):
|
||||
pattern1 = r'BypassedByBloggerPemula\((.*?),'
|
||||
pattern1 = r'(?<!//)BypassedByBloggerPemula\((.*?),'
|
||||
matches1 = re.findall(pattern1, js_code)
|
||||
matches1 = [match.strip('/') for match in matches1]
|
||||
|
||||
pattern2 = r"BloggerPemula\('([^']+)',"
|
||||
pattern2 = r"(?<!//)BloggerPemula\('([^']+)',"
|
||||
matches2 = re.findall(pattern2, js_code)
|
||||
#matches2 = ['/' + s + '/' for s in matches2]
|
||||
|
||||
pattern3 = r"RemoveBp\('([^']+)',"
|
||||
pattern3 = r"(?<!//)RemoveBp\('([^']+)',"
|
||||
matches3 = re.findall(pattern3, js_code)
|
||||
|
||||
pattern4 = r'case \'(.*?)\':'
|
||||
pattern4 = r'(?<!//)case \'(.*?)\':'
|
||||
matches4 = re.findall(pattern4, js_code)
|
||||
|
||||
pattern5 = r"h\.href\.includes\('(.*?)'\)"
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
// @match *://*.olhonagrana.com/*
|
||||
// @match *://*.dutchycorp.space/*
|
||||
// @include /^(https?:\/\/)(.+)?(link.birdurls.com|link.owllink.net|link.illink.net)(\/.*)/
|
||||
// @include /^(https?:\/\/)(.+)?(revcut.net|urlcut.pro|faho.us|bitad.org|cutlink.xyz|c2g.at)(\/.*)/
|
||||
// @include /^(https?:\/\/)(.+)?((teachsansar|technicalatg|foodxor|cdrab|admediaflex).com|ecq.info|datacheap.io)(\/.*)/
|
||||
// @match *://*.facebook.com/*
|
||||
// @match *://*.ouo.io/*
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
// @match *://*.olhonagrana.com/*
|
||||
// @match *://*.dutchycorp.space/*
|
||||
// @include /^(https?:\/\/)(.+)?(link.birdurls.com|link.owllink.net|link.illink.net)(\/.*)/
|
||||
// @include /^(https?:\/\/)(.+)?(revcut.net|urlcut.pro|faho.us|bitad.org|cutlink.xyz|c2g.at)(\/.*)/
|
||||
// @include /^(https?:\/\/)(.+)?((teachsansar|technicalatg|foodxor|cdrab|admediaflex).com|ecq.info|datacheap.io)(\/.*)/
|
||||
// @match *://*.facebook.com/*
|
||||
// @match *://*.ouo.io/*
|
||||
|
|
|
@ -23,7 +23,6 @@ techyinfo.in|techyblogs.in
|
|||
olhonagrana.com
|
||||
dutchycorp.space
|
||||
link.birdurls.com|link.owllink.net|link.illink.net
|
||||
revcut.net|urlcut.pro|faho.us|bitad.org|cutlink.xyz|c2g.at
|
||||
(teachsansar|technicalatg|foodxor|cdrab|admediaflex).com|ecq.info|datacheap.io
|
||||
facebook.com
|
||||
ouo.io
|
||||
|
|
Loading…
Reference in a new issue