mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:17:46 +01:00
Add Capital.fr
This commit is contained in:
parent
da9fd2340a
commit
cc2d0a140b
6 changed files with 25 additions and 20 deletions
|
@ -511,6 +511,7 @@ Grouped in options:\
|
||||||
[Alternatives Economiques](https://www.alternatives-economiques.fr) -
|
[Alternatives Economiques](https://www.alternatives-economiques.fr) -
|
||||||
[Atlantico](https://atlantico.fr) -
|
[Atlantico](https://atlantico.fr) -
|
||||||
[Auto Plus](https://www.autoplus.fr) -
|
[Auto Plus](https://www.autoplus.fr) -
|
||||||
|
[Capital](https://www.capital.fr) -
|
||||||
[Causeur](https://www.causeur.fr) -
|
[Causeur](https://www.causeur.fr) -
|
||||||
[Challenges](https://www.challenges.fr) -
|
[Challenges](https://www.challenges.fr) -
|
||||||
[Charlie Hebdo](https://charliehebdo.fr) -
|
[Charlie Hebdo](https://charliehebdo.fr) -
|
||||||
|
|
|
@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
Add Bild.de (fetch from archive.is)
|
Add Bild.de (fetch from archive.is)
|
||||||
|
Add Capital.fr
|
||||||
Fix Nzz.ch (css)
|
Fix Nzz.ch (css)
|
||||||
|
|
||||||
* v3.6.2.0 (2024-04-01)
|
* v3.6.2.0 (2024-04-01)
|
||||||
|
|
|
@ -1327,18 +1327,14 @@ else if (matchDomain(['stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 's
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('sueddeutsche.de')) {
|
else if (matchDomain('sueddeutsche.de')) {
|
||||||
let clear_ads = function () {
|
|
||||||
let ads = document.querySelectorAll('er-ad-slot');
|
|
||||||
hideDOMElement(...ads);
|
|
||||||
}
|
|
||||||
func_post = clear_ads;
|
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
if (window.location.pathname.startsWith('/projekte/artikel/')) {
|
if (window.location.pathname.startsWith('/projekte/artikel/')) {
|
||||||
getArchive(url, 'div.offer-page', '', 'main');
|
getArchive(url, 'div.offer-page', '', 'main');
|
||||||
} else {
|
} else {
|
||||||
getArchive(url, 'p.sz-article-body__paragraph--reduced', {rm_attrib: 'class'}, 'div[itemprop="articleBody"]');
|
getArchive(url, 'p.sz-article-body__paragraph--reduced', {rm_attrib: 'class'}, 'div[itemprop="articleBody"]');
|
||||||
}
|
}
|
||||||
clear_ads();
|
let ads = 'er-ad-slot';
|
||||||
|
hideDOMStyle(ads);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('suedkurier.de')) {
|
else if (matchDomain('suedkurier.de')) {
|
||||||
|
@ -1846,6 +1842,11 @@ else if (matchDomain('autoplus.fr')) {
|
||||||
hideDOMElement(...ads);
|
hideDOMElement(...ads);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (matchDomain('capital.fr')) {
|
||||||
|
let ads = 'div.containerAds, div.ads-introText, div.outbrain-ads';
|
||||||
|
hideDOMStyle(ads);
|
||||||
|
}
|
||||||
|
|
||||||
else if (matchDomain(['challenges.fr', 'sciencesetavenir.fr'])) {
|
else if (matchDomain(['challenges.fr', 'sciencesetavenir.fr'])) {
|
||||||
if (window.location.pathname.endsWith('.amp')) {
|
if (window.location.pathname.endsWith('.amp')) {
|
||||||
amp_unhide_access_hide('="paywall.access OR cha.access"', '="NOT (paywall.access OR cha.access)"');
|
amp_unhide_access_hide('="paywall.access OR cha.access"', '="NOT (paywall.access OR cha.access)"');
|
||||||
|
@ -4775,10 +4776,6 @@ else if (matchDomain('newrepublic.com')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('newscientist.com')) {
|
else if (matchDomain('newscientist.com')) {
|
||||||
let clear_ads = function() {
|
|
||||||
let ads = document.querySelectorAll('div[class*="Advert"]');
|
|
||||||
hideDOMElement(...ads);
|
|
||||||
}
|
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
func_post = function () {
|
func_post = function () {
|
||||||
let lazy_images = document.querySelectorAll('img.lazyload[data-src]:not([src])');
|
let lazy_images = document.querySelectorAll('img.lazyload[data-src]:not([src])');
|
||||||
|
@ -4796,10 +4793,10 @@ else if (matchDomain('newscientist.com')) {
|
||||||
removeDOMElement(break_post);
|
removeDOMElement(break_post);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
clear_ads();
|
|
||||||
}
|
}
|
||||||
getGoogleWebcache(url, 'section#subscription-barrier', '', 'div.article-body, article');
|
getGoogleWebcache(url, 'section#subscription-barrier', '', 'div.article-body, article');
|
||||||
clear_ads();
|
let ads = 'div[class*="Advert"]';
|
||||||
|
hideDOMStyle(ads);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('newsday.com')) {
|
else if (matchDomain('newsday.com')) {
|
||||||
|
@ -4994,19 +4991,13 @@ else if (matchDomain(pl_ringier_domains)) {
|
||||||
else if (matchDomain('komputerswiat.pl'))
|
else if (matchDomain('komputerswiat.pl'))
|
||||||
article_sel = 'div[data-run-module="local/main.adult"] > div:nth-last-of-type(1) article';
|
article_sel = 'div[data-run-module="local/main.adult"] > div:nth-last-of-type(1) article';
|
||||||
let url = window.location.href;
|
let url = window.location.href;
|
||||||
func_post = function () {
|
|
||||||
clear_ads();
|
|
||||||
}
|
|
||||||
let url_archive = 'https://' + archiveRandomDomain() + '/' + url.split(/[#\?]/)[0];
|
let url_archive = 'https://' + archiveRandomDomain() + '/' + url.split(/[#\?]/)[0];
|
||||||
replaceDomElementExt(url_archive, true, false, article_sel);
|
replaceDomElementExt(url_archive, true, false, article_sel);
|
||||||
}
|
}
|
||||||
waitDOMElement('div.contentPremium div.tp-container-inner', 'DIV', archive_main);
|
waitDOMElement('div.contentPremium div.tp-container-inner', 'DIV', archive_main);
|
||||||
}
|
}
|
||||||
function clear_ads() {
|
let ads = 'div[class^="AdPlaceholder_"], div[data-placeholder-caption], div[data-run-module$=".floatingAd"], aside[data-ad-container], [class^="pwAds"], .hide-for-paying, div.onet-ad, div.bottomBar';
|
||||||
let ads = document.querySelectorAll('div[class^="AdPlaceholder_"], div[data-placeholder-caption], div[data-run-module$=".floatingAd"], aside[data-ad-container], [class^="pwAds"], .hide-for-paying, div.onet-ad, div.bottomBar');
|
hideDOMStyle(ads);
|
||||||
hideDOMElement(...ads);
|
|
||||||
}
|
|
||||||
clear_ads();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('polityka.pl')) {
|
else if (matchDomain('polityka.pl')) {
|
||||||
|
|
|
@ -141,6 +141,7 @@
|
||||||
"*://*.cambiocolombia.com/*",
|
"*://*.cambiocolombia.com/*",
|
||||||
"*://*.canarias7.es/*",
|
"*://*.canarias7.es/*",
|
||||||
"*://*.canberratimes.com.au/*",
|
"*://*.canberratimes.com.au/*",
|
||||||
|
"*://*.capital.fr/*",
|
||||||
"*://*.capitalgazette.com/*",
|
"*://*.capitalgazette.com/*",
|
||||||
"*://*.cartacapital.com.br/*",
|
"*://*.cartacapital.com.br/*",
|
||||||
"*://*.causeur.fr/*",
|
"*://*.causeur.fr/*",
|
||||||
|
|
5
sites.js
5
sites.js
|
@ -340,6 +340,11 @@ var defaultSites = {
|
||||||
allow_cookies: 1,
|
allow_cookies: 1,
|
||||||
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
|
block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/
|
||||||
},
|
},
|
||||||
|
"Capital.fr": {
|
||||||
|
domain: "capital.fr",
|
||||||
|
allow_cookies: 1,
|
||||||
|
block_regex: /\.poool\.fr\//
|
||||||
|
},
|
||||||
"CartaCapital": {
|
"CartaCapital": {
|
||||||
domain: "cartacapital.com.br",
|
domain: "cartacapital.com.br",
|
||||||
allow_cookies: 1
|
allow_cookies: 1
|
||||||
|
|
|
@ -11,6 +11,12 @@
|
||||||
"ld_json": "div[id*='paywall-banner']|div[class^='paywall-story-']",
|
"ld_json": "div[id*='paywall-banner']|div[class^='paywall-story-']",
|
||||||
"upd_version": "3.6.0.5"
|
"upd_version": "3.6.0.5"
|
||||||
},
|
},
|
||||||
|
"Capital.fr": {
|
||||||
|
"domain": "capital.fr",
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"block_regex": "\\.poool\\.fr",
|
||||||
|
"upd_version": "3.6.2.2"
|
||||||
|
},
|
||||||
"Grupo Clarín": {
|
"Grupo Clarín": {
|
||||||
"domain": "###_ar_grupo_clarin",
|
"domain": "###_ar_grupo_clarin",
|
||||||
"group": [
|
"group": [
|
||||||
|
|
Loading…
Reference in a new issue