Add Autocar.co.uk

This commit is contained in:
magnolia1234 2023-08-03 19:04:35 +02:00
parent bde827ec73
commit 8ee8ada8a7
7 changed files with 30 additions and 4 deletions

View file

@ -410,6 +410,7 @@ Grouped in options:\
[Follow the Money (ftm.eu)](https://www.ftm.eu)
##### United Kingdom/Ireland
[Autocar](https://www.autocar.co.uk) -
[Belfast Telegraph](https://www.belfasttelegraph.co.uk) -
[Business Post](https://www.businesspost.ie) -
[Citywire](https://www.citywire.com) -

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Add Autocar.co.uk
Add Crikey.com.au
Fix EUobserver (css)
Fix Grupo Vocento (limit amp-redirect)

View file

@ -2520,7 +2520,18 @@ else
} else if (window.location.hostname.match(/\.(ie|uk)$/) || matchDomain(['citywire.com', 'ft.com', 'scotsman.com', 'tes.com'])) {//united kingdom/ireland
if (matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
if (matchDomain('autocar.co.uk')) {
let url = window.location.href;
let paywall = document.querySelector('div.ms-block, div.register-block');
if (paywall) {
removeDOMElement(paywall);
csDoneOnce = true;
let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0];
replaceDomElementExt(url_cache, true, false, 'div.content-wrapper');
}
}
else if (matchDomain(['belfasttelegraph.co.uk', 'independent.ie'])) {
let flip_pay = document.querySelector('div#flip-pay[style]');
if (flip_pay && dompurify_loaded) {
let content = document.querySelector('script[data-fragment-type="ArticleContent"]');

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.2.7.4"
"version": "3.2.7.5"
}

View file

@ -84,6 +84,7 @@
"*://*.atlantico.fr/*",
"*://*.augsburger-allgemeine.de/*",
"*://*.auto-motor-und-sport.de/*",
"*://*.autocar.co.uk/*",
"*://*.automobilwoche.de/*",
"*://*.autonews.com/*",
"*://*.autoplus.fr/*",
@ -772,5 +773,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.2.7.4"
"version": "3.2.7.5"
}

View file

@ -185,6 +185,11 @@ var defaultSites = {
allow_cookies: 1,
block_regex: /\.auto-motor-und-sport\.de\/thenewsbar\/static\/pw\.js/
},
"Autocar.co.uk": {
domain: "autocar.co.uk",
allow_cookies: 1,
cs_dompurify: 1
},
"Automobilwoche": {
domain: "automobilwoche.de",
allow_cookies: 1,

View file

@ -25,7 +25,14 @@
"Auto Motor und Sport": {
"domain": "auto-motor-und-sport.de",
"allow_cookies": 1,
"block_regex": "\\.auto-motor-und-sport\\.de\\/thenewsbar\\/static\\/pw\\.js"
"block_regex": "\\.auto-motor-und-sport\\.de\\/thenewsbar\\/static\\/pw\\.js",
"new_site": 1
},
"Autocar.co.uk": {
"domain": "autocar.co.uk",
"allow_cookies": 1,
"ld_google_webcache": "div.ms-block,div.register-block|div.content-wrapper",
"new_site": 1
},
"Automobilwoche": {
"domain": "automobilwoche.de",