Add Axios

This commit is contained in:
magnolia1234 2022-10-01 12:35:59 +02:00
parent 60c48a68eb
commit a07918fde3
5 changed files with 19 additions and 2 deletions

View file

@ -171,6 +171,7 @@ Grouped in options:\
[Artforum](https://www.artforum.com) -
[Artnet](https://www.artnet.com) -
[Atavist Magazine](https://magazine.atavist.com) -
[Axios](https://www.axios.com) -
[Commentary Magazine](https://www.commentary.org) -
[ESPN USA](https://www.espn.com) -
[First Things](https://www.firstthings.com) -

View file

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Aachener Nachrichten & Zeitung
Add ArcInfo.ch
Add Axios
Add NK News (free articles only)
Add 5 more Gannett sites
Fix NHST Media Group

View file

@ -1428,7 +1428,7 @@ else if (matchDomain('lesechos.fr')) {
} else {
window.setTimeout(function () {
let abo_banner = document.querySelector('div[class*="pgxf3b-2"]');
let ad_blocks = document.querySelectorAll('[class*="jzxvkd"');
let ad_blocks = document.querySelectorAll('[class*="jzxvkd"]');
for (let ad_block of ad_blocks)
ad_block.setAttribute('style', 'display:none');
if (abo_banner && dompurify_loaded) {
@ -2552,6 +2552,15 @@ else if (matchDomain('asiatimes.com')) {
}
}
else if (matchDomain('axios.com')) {
let banners = document.querySelectorAll('div[data-vars-experiment="pro-paywall"], div[class^="Modal_paywallContainer"], .apexAd');
for (let elem of banners)
elem.style = 'display:none;';
let overlay = document.querySelector('html[style]');
if (overlay)
overlay.removeAttribute('style');
}
else if (matchDomain('barrons.com')) {
let url = window.location.href;
if (!url.includes('barrons.com/amp/')) {

View file

@ -91,6 +91,7 @@
"*://*.automobilwoche.de/*",
"*://*.autonews.com/*",
"*://*.autoplus.fr/*",
"*://*.axios.com/*",
"*://*.azcentral.com/*",
"*://*.backpacker.com/*",
"*://*.baltimoresun.com/*",
@ -716,5 +717,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.8.6.4"
"version": "2.8.6.5"
}

View file

@ -196,6 +196,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.qiota\.com\//
},
"Axios": {
domain: "axios.com",
allow_cookies: 1,
block_regex: "\.axios\.com\/api\/v\d\/licenses"
},
"Badische Neueste Nachrichten": {
allow_cookies: 1,
domain: "bnn.de",