mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:17:46 +01:00
Remove Business Standard
This commit is contained in:
parent
91e40a9ac6
commit
9cf83d434e
5 changed files with 2 additions and 57 deletions
|
@ -816,7 +816,6 @@ Grouped in options:\
|
|||
|
||||
##### India
|
||||
[BQ Prime](https://www.bqprime.com) -
|
||||
[Business Standard](https://www.business-standard.com) -
|
||||
[Hindustan Times](https://www.hindustantimes.com) -
|
||||
[Inc42](https://inc42.com) -
|
||||
[India Today](https://www.indiatoday.in) -
|
||||
|
|
|
@ -618,26 +618,6 @@ if ((typeof browser !== 'object') && navigator_ua_mobile) {
|
|||
["blocking", "requestHeaders"]);
|
||||
}
|
||||
|
||||
// wap.business-standard.com/article-amp/ set user-agent to mobile
|
||||
ext_api.webRequest.onBeforeSendHeaders.addListener(function (details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
return;
|
||||
}
|
||||
let headers = details.requestHeaders;
|
||||
headers = headers.map(function (header) {
|
||||
if (header.name.toLowerCase() === 'user-agent')
|
||||
header.value = userAgentMobile;
|
||||
return header;
|
||||
});
|
||||
return {
|
||||
requestHeaders: headers
|
||||
};
|
||||
}, {
|
||||
urls: ["*://wap.business-standard.com/article-amp/*"],
|
||||
types: ["main_frame"]
|
||||
},
|
||||
["blocking", "requestHeaders"]);
|
||||
|
||||
// economictimes redirect
|
||||
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
if (!isSiteEnabled(details) || details.url.includes('.com/epaper/')) {
|
||||
|
|
|
@ -4,6 +4,7 @@ Updates: https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/release
|
|||
|
||||
Post-release
|
||||
Add TagesAnzeiger.ch (link to archive.is)
|
||||
Remove Business Standard (fix obsolete)
|
||||
Fix BusinessPost.ie (json)
|
||||
Fix DHnet.be, L'Avenir & LaLibre.be (Add Groupe IPM)
|
||||
Fix The Spectator World (new domain)
|
||||
|
|
|
@ -2985,36 +2985,6 @@ else if (matchDomain('bqprime.com')) {
|
|||
removeDOMElement(...ads);
|
||||
}
|
||||
|
||||
else if (matchDomain('business-standard.com')) {
|
||||
let skip_button = document.querySelector('a.btn_skip');
|
||||
if (skip_button)
|
||||
skip_button.click();
|
||||
if (!window.location.pathname.startsWith('/article-amp/')) {
|
||||
let paywall = document.querySelector('span.p-content.paywall, main, p.read-txt');
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if (paywall && amphtml) {
|
||||
removeDOMElement(paywall);
|
||||
window.location.href = amphtml.href;
|
||||
}
|
||||
let story_content = document.querySelector('div.story-content');
|
||||
if (story_content)
|
||||
story_content.classList.remove('story-content');
|
||||
let ads = document.querySelectorAll('div[class*="adv-"]');
|
||||
removeDOMElement(...ads);
|
||||
} else {
|
||||
amp_unhide_subscr_section('amp-ad, amp-embed, .block-cont-amp, #divnonpaidcontent, section > div.article_image, div[subscriptions-actions], .reader');
|
||||
let hidden_images = document.querySelectorAll('p > amp-img[src][width]');
|
||||
for (let elem of hidden_images) {
|
||||
let img = document.createElement('img');
|
||||
img.src = elem.getAttribute('src');
|
||||
elem.parentNode.replaceChild(img, elem);
|
||||
}
|
||||
let author_image = document.querySelector('amp-img > img[src*="/bs/img/author/"]');
|
||||
if (author_image)
|
||||
author_image.removeAttribute('class');
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('businessinsider.com')) {
|
||||
let ads = document.querySelectorAll('div.l-ad, div.in-post-sticky, aside.has-video-ad');
|
||||
hideDOMElement(...ads);
|
||||
|
|
7
sites.js
7
sites.js
|
@ -259,11 +259,6 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
block_regex: /\.piano\.io\//
|
||||
},
|
||||
"Business Standard": {
|
||||
domain: "business-standard.com",
|
||||
allow_cookies: 1,
|
||||
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
|
||||
},
|
||||
"California Business Journals": {
|
||||
domain: "###_usa_cbj",
|
||||
group: [
|
||||
|
@ -2486,4 +2481,4 @@ var au_news_corp_nofix_domains = ['cairnspost.com.au', 'geelongadvertiser.com.au
|
|||
var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be'];
|
||||
var de_rp_medien_nofix_domains = ['ga.de', 'rp-online.de', 'saarbruecker-zeitung.de', 'volksfreund.de'];
|
||||
var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com', 'repubblica.it'];
|
||||
var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lemonde.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'rheinpfalz.de', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'thedispatch.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, de_rp_medien_nofix_domains, it_gedi_nofix_domains);
|
||||
var nofix_sites = ['aamulehti.fi', 'africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'asiatimes.com', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'business-standard.com', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'courrierinternational.com', 'diepresse.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'finance.si', 'ftchinese.com', 'golem.de', 'handelsblatt.com', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'investors.com', 'iltalehti.fi', 'jacobinmag.com', 'jeuneafrique.com', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lemonde.fr', 'lequipe.fr', 'letemps.ch', 'liberation.fr', 'lopinion.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'mondediplo.com', 'moneycontrol.com', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'nwzonline.de', 'ouest-france.fr', 'philonomist.com', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'rheinpfalz.de', 'ruhrnachrichten.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'thedispatch.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'weser-kurier.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, de_rp_medien_nofix_domains, it_gedi_nofix_domains);
|
||||
|
|
Loading…
Reference in a new issue