diff --git a/background.js b/background.js index 0731f6e..7f9bcb6 100644 --- a/background.js +++ b/background.js @@ -9,99 +9,101 @@ function goSecure(url, tab) { } var matchURL = function(tab) { - var adcb = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)adcb(india|netlink|careers)?\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Abu Dhabi Commercial Bank Ltd. - var american_exp = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)americanexpress\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //American Express Bank Ltd. - var arab_bangladesh = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)abbl\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Arab Bangladesh Bank Limited - var allahabad = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)all(ahabadbank|bankonline|bankcare)\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Allahabad Bank - var andhra= /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(andhrabank|onlineandhrabank\.net)\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Andhra Bank - var axis = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)axisbank\.(com|co\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Axis Bank - var antwerpdiamond = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)antwerpdiamondbank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Antwerp Diamond Bank N.V. - var maybank = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)maybank(\.co\.id|\.com|2u\.com\.my)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Bank Internasional Indonesia - var boa = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)bankofamerica\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Bank of America N.A. - var bbk = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)bbk(online|india)\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Bank of Bahrain & Kuwait BSC - var barclays = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(home\.)?barclays(\.in|\.com|\.co\.uk)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Barclays Bank Plc - var bnpparibas = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)bnpparibas\.co(m|\.in)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //BNP PARIBAS - var ceylon = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(combank\.net|commercialbk\.com|boc(\.web)?\.lk)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Bank of Ceylon - var bob = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(bankofbaroda|bobibanking|barodarewardz)\.co(m|\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Bank of Baroda - var boi = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)bankofindia\.(com|co\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Bank of India - var bom = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(bankofmaharashtra|mahaconnect)\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Bank of Maharashtra - var canara = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)canarabank\.(com|(org\.)?in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Canara Bank - var central = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(centralbankofindia\.co|(cbi|centralbank)\.net)\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Central Bank of India - var calyon = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)ca-(indosuez|cib)\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Calyon Bank - var citi = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)citi(bank\.co\.in|(group)?\.com|\.eu)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Citibank N.A. - var shinhan = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)bank\.shinhan\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Cho Hung Bank - var ctbc = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(ctbcbank(usa)?\.co(m|\.id)|chinatrust(india)?\.com)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Chinatrust Commercial Bank Ltd. - var cityunion = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(cityunionbank\.com|onlinecub\.net)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //City Union Bank Ltd. - var coastalarea = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)coastalareabank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Coastal Local Area Bank Ltd. - var corp = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)corp(bank(\.biz|(net)?\.com)|retail\.com)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Corporation Bank - var csb = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)csb(net)?\.co\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Catholic Syrian Bank Ltd. - var deutsche = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(db\.com|deutsche(bank\.co\.in|-bank.de))([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Deutsche Bank AG - var dcb = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)dcbbank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //DCB Bank Limited. - var dena = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)denabank\.co(m|\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Dena Bank - var indusind = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)indusind\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //IndusInd Bank Limited - var icici = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)icicibank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //ICICI Bank - var indian = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)indian(-bank\.com|bank(\.net)?\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Indian Bank - var iob= /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)iob(net\.co)?\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Indian Overseas Bank - var idbi = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)idbi(\.com|bank\.co\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //IDBI Bank Ltd. - var jpmorgan = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(jpmorgan)?(\.)?(jpmorgan|chase)\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //J P Morgan Chase Bank, NA - var kt = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)ktb(\.co\.th|netbank\.com)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Krung Thai Bank Public Company Ltd. - var kotak = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)kotak\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Kotak Mahindra Bank Ltd. - var karnataka = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)karnatakabank\.(com|co\.in|info)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Karnataka Bank - var kvb = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)kvb(\.co\.in|in\.com)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Karur Vysya Bank Ltd. - var mashreq = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)mashreq(bank|neo)?\.(com|taleo\.net)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Mashreqbank psc - var mizuho = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)mizuhobank\.co(m|\.jp)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Mizuho Corporate Bank Ltd. - var oman = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)oiboman\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Oman International Bank S A O G - var obc = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)obc(india|online)\.co\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Oriental Bank of Commerce - var psb = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)psb(india\.com|online\.co\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Punjab & Sind Bank - var pnb = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(pnbindia\.in|netpnb\.com)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Punjab National Bank - var societegenerale = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)soc(ietegenerale\.(com|asia)|gensolutions\.com)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Societe Generale - var sonali = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)sonalibank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Sonali Bank - var sc = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)s(c|tandardchartered(trade)?)\.co(m|\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Standard Chartered Bank - var sbm = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)sb(mgroup\.mu|imauritius\.com)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //State Bank of Mauritius Ltd. - var sbici = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)sbici\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //SBI Commercial and International Bank Ltd. - var sbi = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)sbi\.co\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //State Bank of India - var sbi_bj = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)sbbjbank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //State Bank of Bikaner and Jaipur - var sbi_hyd = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(sbhyd|onlinesbi(global)?)\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //State Bank of Hyderabad - var sbi_mysore = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)bank\.sbi([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //State Bank of Mysore - var sbi_patiala = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)sbp\.co\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //State Bank of Patiala - var sbi_travan = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)statebankoftravancore\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //State Bank of Travancore - var syndicate = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)(synd(icatebank|online)\.in|ventureinfotek\.com)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Syndicate Bank - var scotia = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)scotiabank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Bank of Nova Scotia - var tokyo_mitsubishi = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)bk\.mufg\.jp([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Bank of Tokyo-Mitsubishi, Ltd. - var dbs = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)dbs(\.com|bank\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Development Bank of Singapore Ltd. - var hsbc = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)hsbc\.co(\.in|m)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Hongkong & Shanghai Banking Corporation Ltd. - var tmb = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)tmb(net)?\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Tamilnad Mercantile Bank Ltd. - var dhan = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)dhanbank\.(com|in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Dhanalakshmi Bank Limited. - var federal = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)fed(eralbank\.co\.in|netbank\.com)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Federal Bank Ltd. - var hdfc = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)hdfcbank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The HDFC Bank Ltd. - var jkbank = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)jkbank(online)?\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Jammu & Kashmir Bank Ltd. - var nainital = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)nainitalbank\.co\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Nainital Bank Ltd. - var sangliurban = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)sangliurbanbank\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Sangli Bank Ltd. - var southindian = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)southindianbank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The South Indian Bank Ltd. - var rbl = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)rblbank\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Ratnakar Bank Ltd. - var rbs = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)rbs(\.in|(digital|international)?\.com|\.co\.uk)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Royal Bank of Scotland N.V. - var lv = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)lvbank(\.com|online\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //The Lakshmi Vilas Bank Ltd - var uco = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)uco((bank|ebanking)\.com|online(\.co)?\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //UCO Bank - var union = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)unionbank(ofindia|online)\.co\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/;// Union Bank of India - var united = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)unitedbankofindia\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //United Bank Of India - var vijaya = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)vijayabank(\.com|(online)?\.in)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Vijaya Bank - var yesbank = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)yesbank(\.co)?\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Yes Bank - var nabard = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)nabard\.org([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //National Bank for Agriculture and Rural Development(NABARD) - var exim = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)exim(bankindia|mitra)\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Export-Import Bank of India - var nhb = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)nhb(online)?\.org\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //National Housing Bank - var sidbi = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)sidbi(startupmitra)?\.in([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Small Industries Development Bank of India - var iibi = /^https:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)iibiltd\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Industrial Investment Bank of India Ltd. : has been shutdown in 2012 - var nedfi = /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)nedfi\.com([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //North Eastern Development Finance Corporation + var adcb = "adcb(india|netlink|careers)?"; //Abu Dhabi Commercial Bank Ltd. + var american_exp = "americanexpress.com"; //American Express Bank Ltd. + var arab_bangladesh = "abbl.com"; //Arab Bangladesh Bank Limited + var allahabad = "all(ahabadbank|bankonline|bankcare).in"; //Allahabad Bank + var andhra = "(andhrabank|onlineandhrabank.net).in"; //Andhra Bank + var axis = "axisbank.(com|co.in)"; //Axis Bank + var antwerpdiamond = "antwerpdiamondbank.com"; //Antwerp Diamond Bank N.V. + var maybank = "maybank(.co.id|.com|2u.com.my)"; //Bank Internasional Indonesia + var boa = "bankofamerica.com"; //Bank of America N.A. + var bbk = "bbk(online|india).com"; //Bank of Bahrain & Kuwait BSC + var barclays = "(home.)?barclays(.in|.com|.co.uk)?"; //Barclays Bank Plc + var bnpparibas = "bnpparibas.co(m|.in)?"; //BNP PARIBAS + var ceylon = "(combank.net|commercialbk.com|boc(.web)?.lk)"; //Bank of Ceylon + var bob = "(bankofbaroda|bobibanking|barodarewardz).co(m|.in)"; //Bank of Baroda + var boi = "bankofindia.(com|co.in)"; //Bank of India + var bom = "(bankofmaharashtra|mahaconnect).in"; //Bank of Maharashtra + var canara = "canarabank.(com|(org.)?in)"; //Canara Bank + var central = "(centralbankofindia.co|(cbi|centralbank).net).in"; //Central Bank of India + var calyon = "ca-(indosuez|cib).com"; //Calyon Bank + var citi = "citi(bank.co.in|(group)?.com|.eu)"; //Citibank N.A. + var shinhan = "bank.shinhan.com"; //Cho Hung Bank + var ctbc = "(ctbcbank(usa)?.co(m|.id)|chinatrust(india)?.com)"; //Chinatrust Commercial Bank Ltd. + var cityunion = "(cityunionbank.com|onlinecub.net)"; //City Union Bank Ltd. + var coastalarea = "coastalareabank.com"; //Coastal Local Area Bank Ltd. + var corp = "corp(bank(.biz|(net)?.com)|retail.com)"; //Corporation Bank + var csb = "csb(net)?.co.in"; //Catholic Syrian Bank Ltd. + var deutsche = "(db.com|deutsche(bank.co.in|-bank.de))"; //Deutsche Bank AG + var dcb = "dcbbank.com"; //DCB Bank Limited. + var dena = "denabank.co(m|.in)"; //Dena Bank + var indusind = "indusind.com"; //IndusInd Bank Limited + var icici = "icicibank.com"; //ICICI Bank + var indian = "indian(-bank.com|bank(.net)?.in)"; //Indian Bank + var iob = "iob(net.co)?.in"; //Indian Overseas Bank + var idbi = "idbi(.com|bank.co.in)"; //IDBI Bank Ltd. + var jpmorgan = "(jpmorgan)?(.)?(jpmorgan|chase).com"; //J P Morgan Chase Bank, NA + var kt = "ktb(.co.th|netbank.com)"; //Krung Thai Bank Public Company Ltd. + var kotak = "kotak.com"; //Kotak Mahindra Bank Ltd. + var karnataka = "karnatakabank.(com|co.in|info)"; //Karnataka Bank + var kvb = "kvb(.co.in|in.com)"; //Karur Vysya Bank Ltd. + var mashreq = "mashreq(bank|neo)?.(com|taleo.net)"; //Mashreqbank psc + var mizuho = "mizuhobank.co(m|.jp)"; //Mizuho Corporate Bank Ltd. + var oman = "oiboman.com"; //Oman International Bank S A O G + var obc = "obc(india|online).co.in"; //Oriental Bank of Commerce + var psb = "psb(india.com|online.co.in)"; //Punjab & Sind Bank + var pnb = "(pnbindia.in|netpnb.com)"; //Punjab National Bank + var societegenerale = "soc(ietegenerale.(com|asia)|gensolutions.com)"; //Societe Generale + var sonali = "sonalibank.com"; //Sonali Bank + var sc = "s(c|tandardchartered(trade)?).co(m|.in)"; //Standard Chartered Bank + var sbm = "sb(mgroup.mu|imauritius.com)"; //State Bank of Mauritius Ltd. + var sbici = "sbici.com"; //SBI Commercial and International Bank Ltd. + var sbi = "sbi.co.in"; //State Bank of India + var sbi_bj = "sbbjbank.com"; //State Bank of Bikaner and Jaipur + var sbi_hyd = "(sbhyd|onlinesbi(global)?).com"; //State Bank of Hyderabad + var sbi_mysore = "bank.sbi"; //State Bank of Mysore + var sbi_patiala = "sbp.co.in"; //State Bank of Patiala + var sbi_travan = "statebankoftravancore.com"; //State Bank of Travancore + var syndicate = "(synd(icatebank|online).in|ventureinfotek.com)"; //Syndicate Bank + var scotia = "scotiabank.com"; //The Bank of Nova Scotia + var tokyo_mitsubishi = "bk.mufg.jp"; //The Bank of Tokyo-Mitsubishi, Ltd. + var dbs = "dbs(.com|bank.in)"; //The Development Bank of Singapore Ltd. + var hsbc = "hsbc.co(.in|m)"; //The Hongkong & Shanghai Banking Corporation Ltd. + var tmb = "tmb(net)?.in"; //Tamilnad Mercantile Bank Ltd. + var dhan = "dhanbank.(com|in)"; //The Dhanalakshmi Bank Limited. + var federal = "fed(eralbank.co.in|netbank.com)"; //The Federal Bank Ltd. + var hdfc = "hdfcbank.com"; //The HDFC Bank Ltd. + var jkbank = "jkbank(online)?.com"; //The Jammu & Kashmir Bank Ltd. + var nainital = "nainitalbank.co.in"; //The Nainital Bank Ltd. + var sangliurban = "sangliurbanbank.in"; //The Sangli Bank Ltd. + var southindian = "southindianbank.com"; //The South Indian Bank Ltd. + var rbl = "rblbank.com"; //The Ratnakar Bank Ltd. + var rbs = "rbs(.in|(digital|international)?.com|.co.uk)"; //The Royal Bank of Scotland N.V. + var lv = "lvbank(.com|online.in)"; //The akshmi Vilas Bank Ltd + var uco = "uco((bank|ebanking).com|online(.co)?.in)"; //UCO Bank + var union = "unionbank(ofindia|online).co.in";// Union Bank of India + var united = "unitedbankofindia.com"; //United Bank Of India + var vijaya = "vijayabank(.com|(online)?.in)"; //Vijaya Bank + var yesbank = "yesbank(.co)?.in"; //Yes Bank + var nabard = "nabard.org"; //National Bank for Agriculture and Rural Development(NABARD) + var exim = "exim(bankindia|mitra).in"; //Export-Import Bank of India + var nhb = "nhb(online)?.org.in"; //National Housing Bank + var sidbi = "sidbi(startupmitra)?.in"; //Small Industries Development Bank of India + var iibi = "iibiltd.com"; //Industrial Investment Bank of India Ltd. : has been shutdown in 2012 + var nedfi = "nedfi.com"; //North Eastern Development Finance Corporation //ING Vysya Bank: Merged with Kotak Mahindra Bank Ltd. //The Bank of Rajasthan Limited : Merged with ICICI //Lord Krishna Bank Ltd.: We don't trust this bank's site at all - var travel_hotel= /^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)((9flats|exp(edia(inc)?|atarrivals)|amtrak|accesrail|airbnb|(asia|bargain|roomer|one|mbe|trazee|whole|smarter|broadway|wesaidgo)travel|(word|myfamily)travels|atlasobscura|bedforest|bravofly|budgetplaces|bumblehood|bus(bud|junction)|canadastays|cheap((o)?air|tickets(canada|city-discovery))|citypass|cofman|collegeweekends|(concert|think)hotels|cruise(critic|planners|shipcenters)|dealbase|discover(tnt|greece|ingireland)|dayuse|dohop|dwellable|fare(compare|portal|buzz|makers)|flight(aware|fox)|fly(aow|ertalk)|get(yourguide|there|aroom)|gadventures|glo(balhotelreview|betrooper|veler)|go(lfscape|seek|euro|transit)|(go)?(ibibo|trump)|groupleader|headforpoints|hip(munk|traveler)|holidaywatchdog|(in\.hotels)|hotel(s(-scanner)?|sbyday|tonight|scombined|urbano)|hotwire|inyourpocket|inspirock|justorbit|(travel\.jumia)|jacksonharries|(lastminute|priceline)(group)?|(late|oyo)rooms|loco2|lonelyplanet|seat61|mapquest|maritimematters|geemedia|(momon|opo)do|misterbandb|morehotels4less|(msn\.com\/en-in\/travel)|mus(afir|ement)|my(cityvenueescapes|driver|localpitch)|(ne(t|p)|scottscheap)flights|masflight|notesfromtheroad|otalo|pitchup|prontohotel|roadtrippers|roughguides|routofy|seatguru|secretescapes|sfstation|skift|sleepout|stay(uncle|ful)|spot(tedbylocals|ahome)|studentuniverse|the(suitest|trainline)|summerplaybook|tangareef|plumguide|ticketclever|tour(million|radar|sbylocals)|trav((buddy|ix)|el(port|worm|guru|lerspoint|lady|genio|muse|pod|yaari|zoo))|janbala|trekiz|tri(pping|ppy|vago|poso|pcombi)|ve(eve|gas|nere)|via|visitscotland|virtualtourist|wayn|wander(u|ingearl)|wikicity|whereivebeen|webjetlimited|world(hum|nomads)|wimdu|yamsafer|wotif|orbitz|rome2rio|(ixi|lili|hutch)go|jet(cost|radar)|kiwi|mobissimo|fromatob|edreams(odigeo)?|(voyager|billet)moinscher|scoutgps|lagisatu|walkit|roomstonite|ytbpulse|opentable|booking(buddy)?|rentalcars|swisscom|yatra|(clear|easemy|makemy|c|house)trip|agoda|goomo|travel(mob|guru|companionexchange)|(hostel|1degree)world|wego|abhibus|wizzair|diviac|liveaboard|padi|skyauction|schmap)\.com|(tri(padvisor|vago)|sotc|thomascook|hotelscombined|redbus)\.in|(airbnb|expedia|homeaway|hotelscompare|kayak|raileurope|wego)\.co\.in|(cheapflights|cruise(1st|compare)|dealchecker|directferries|goeuro|jactravel|knowhere|momondo|travelizer)\.co\.uk|(elong|findacrew|skyscanner)\.net|(entur|hitchwiki|travelblog|visit|wheelmap|wiki(voyage|travel))\.org|(sportsandtravel)\.com\.hk|(travelstart)\.co\.za|(hotel|transport(direct|nsw))\.info|(chinaknowledge|go(euro|pili)|hotel|)\.de|(momondo|cruise1st)\.com\.au|gopili\.(it|ru|es|co\.uk)|hotels\.n(l|g)|(goeuro)\.es|(jasons)\.co\.nz|(triip)\.me|(viva)\.gr|(oui)\.sncf|(momondo)\.ca|(en-tur)\.no|(yahoo\.com\/lifestyle\/tagged\/travel)|(google|paytm)\.com\/flights)([-a-zA-Z0-9@:%_\+.~#?&//=]*)/; //Travel & Hotel-Booking Sites + var travel_hotel= "((9flats|exp(edia(inc)?|atarrivals)|amtrak|accesrail|airbnb|(asia|bargain|roomer|one|mbe|trazee|whole|smarter|broadway|wesaidgo)travel|(word|myfamily)travels|atlasobscura|bedforest|bravofly|budgetplaces|bumblehood|bus(bud|junction)|canadastays|cheap((o)?air|tickets(canada|city-discovery))|citypass|cofman|collegeweekends|(concert|think)hotels|cruise(critic|planners|shipcenters)|dealbase|discover(tnt|greece|ingireland)|dayuse|dohop|dwellable|fare(compare|portal|buzz|makers)|flight(aware|fox)|fly(aow|ertalk)|get(yourguide|there|aroom)|gadventures|glo(balhotelreview|betrooper|veler)|go(lfscape|seek|euro|transit)|(go)?(ibibo|trump)|groupleader|headforpoints|hip(munk|traveler)|holidaywatchdog|(in\.hotels)|hotel(s(-scanner)?|sbyday|tonight|scombined|urbano)|hotwire|inyourpocket|inspirock|justorbit|(travel\.jumia)|jacksonharries|(lastminute|priceline)(group)?|(late|oyo)rooms|loco2|lonelyplanet|seat61|mapquest|maritimematters|geemedia|(momon|opo)do|misterbandb|morehotels4less|(msn\.com\/en-in\/travel)|mus(afir|ement)|my(cityvenueescapes|driver|localpitch)|(ne(t|p)|scottscheap)flights|masflight|notesfromtheroad|otalo|pitchup|prontohotel|roadtrippers|roughguides|routofy|seatguru|secretescapes|sfstation|skift|sleepout|stay(uncle|ful)|spot(tedbylocals|ahome)|studentuniverse|the(suitest|trainline)|summerplaybook|tangareef|plumguide|ticketclever|tour(million|radar|sbylocals)|trav((buddy|ix)|el(port|worm|guru|lerspoint|lady|genio|muse|pod|yaari|zoo))|janbala|trekiz|tri(pping|ppy|vago|poso|pcombi)|ve(eve|gas|nere)|via|visitscotland|virtualtourist|wayn|wander(u|ingearl)|wikicity|whereivebeen|webjetlimited|world(hum|nomads)|wimdu|yamsafer|wotif|orbitz|rome2rio|(ixi|lili|hutch)go|jet(cost|radar)|kiwi|mobissimo|fromatob|edreams(odigeo)?|(voyager|billet)moinscher|scoutgps|lagisatu|walkit|roomstonite|ytbpulse|opentable|booking(buddy)?|rentalcars|swisscom|yatra|(clear|easemy|makemy|c|house)trip|agoda|goomo|travel(mob|guru|companionexchange)|(hostel|1degree)world|wego|abhibus|wizzair|diviac|liveaboard|padi|skyauction|schmap)\.com|(tri(padvisor|vago)|sotc|thomascook|hotelscombined|redbus)\.in|(airbnb|expedia|homeaway|hotelscompare|kayak|raileurope|wego)\.co\.in|(cheapflights|cruise(1st|compare)|dealchecker|directferries|goeuro|jactravel|knowhere|momondo|travelizer)\.co\.uk|(elong|findacrew|skyscanner)\.net|(entur|hitchwiki|travelblog|visit|wheelmap|wiki(voyage|travel))\.org|(sportsandtravel)\.com\.hk|(travelstart)\.co\.za|(hotel|transport(direct|nsw))\.info|(chinaknowledge|go(euro|pili)|hotel|)\.de|(momondo|cruise1st)\.com\.au|gopili\.(it|ru|es|co\.uk)|hotels\.n(l|g)|(goeuro)\.es|(jasons)\.co\.nz|(triip)\.me|(viva)\.gr|(oui)\.sncf|(momondo)\.ca|(en-tur)\.no|(yahoo\.com\/lifestyle\/tagged\/travel)|(google|paytm)\.com\/flights)"; //Travel & Hotel-Booking Sites var URLs = [adcb, american_exp, arab_bangladesh, allahabad, andhra, axis, antwerpdiamond, maybank, boa, bbk, barclays, bnpparibas, ceylon, bob, boi, bom, canara, central, calyon, citi, shinhan, ctbc, cityunion, coastalarea, corp, csb, deutsche, dcb, dena, indusind, icici, indian, iob, idbi, jpmorgan, kt, kotak, karnataka, kvb, mashreq, mizuho, oman, obc, psb, pnb, societegenerale, sonali, sc, sbm, sbici, sbi, sbi_bj, sbi_hyd, sbi_mysore, sbi_patiala, sbi_travan, syndicate, scotia, tokyo_mitsubishi, dbs, hsbc, tmb, dhan, federal, hdfc, jkbank, nainital, sangliurban, southindian, rbl, rbs, lv, uco, union, united, vijaya, yesbank, nabard, exim, nhb, sidbi, iibi, nedfi, travel_hotel]; for (var i = 0; i < URLs.length; i += 1) { - if (URLs[i].test(tab.url)) { + var url = `^http(s)?:\/\/(www\.)?([-a-zA-Z0-9@:%_\+.~#?&//=]*)${URLs[i]}\([-a-zA-Z0-9@:%_\+.~#?&//=]*)`; + var re = new RegExp(url); + if (re.test(tab.url)) { console.log(URLs[i]); return true; } diff --git a/manifest.json b/manifest.json index bf01cbe..1f4bede 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "PrivateX", - "version": "2.1", + "version": "2.2", "description": "This add-on lets the user open websites with critical user information [Like banking, travel sites, etc] in a private window, without the hassle of copying the URL. In-case an URL doesn't work, mail us at jyotsna17gupta [AT] gmail [DOT] com.", "homepage_url": "https://github.com/jyotsna17gupta/PrivateX", "icons": {