mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:57:48 +01:00
Add Record.pt
This commit is contained in:
parent
37595386cc
commit
4051764b0e
6 changed files with 21 additions and 5 deletions
|
@ -643,7 +643,8 @@ Grouped in options:\
|
|||
|
||||
##### Portugal
|
||||
[Correio da Manhã](https://www.cmjornal.pt) -
|
||||
[Observador](https://observador.pt)
|
||||
[Observador](https://observador.pt) -
|
||||
[Record](https://www.record.pt)
|
||||
|
||||
##### Slovenia
|
||||
[Finance.si](https://www.finance.si)
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Record.pt
|
||||
Add The New York Post
|
||||
Fix Cmjornal.pt
|
||||
|
||||
|
|
|
@ -984,8 +984,9 @@ if (matchDomain(['ara.cat', 'arabalears.cat'])) {
|
|||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('cmjornal.pt')) {
|
||||
let paywall = document.querySelector('.bloqueio_exclusivos');
|
||||
else if (matchDomain(['cmjornal.pt', 'record.pt'])) {
|
||||
let paywall = document.querySelector('.bloqueio_exclusivos, .container_assinatura');
|
||||
console.log(paywall);
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
let url = window.location.href;
|
||||
if (!url.includes('/amp/')) {
|
||||
|
@ -994,7 +995,7 @@ else if (matchDomain('cmjornal.pt')) {
|
|||
window.location.href = amphtml.href;
|
||||
}
|
||||
} else {
|
||||
amp_unhide_subscr_section('amp-ad, amp-embed');
|
||||
amp_unhide_subscr_section('amp-ad, amp-embed, amp-consent');
|
||||
let amp_links = document.querySelectorAll('a[href^="https://www-cmjornal-pt.cdn.ampproject.org/c/s/"]');
|
||||
for (let amp_link of amp_links)
|
||||
amp_link.href = amp_link.href.replace('www-cmjornal-pt.cdn.ampproject.org/c/s/', '');
|
||||
|
|
|
@ -500,6 +500,7 @@
|
|||
"*://*.quotidianodipuglia.it/*",
|
||||
"*://*.qz.com/*",
|
||||
"*://*.rechargenews.com/*",
|
||||
"*://*.record.pt/*",
|
||||
"*://*.repubblica.it/*",
|
||||
"*://*.republicain-lorrain.fr/*",
|
||||
"*://*.reuters.com/*",
|
||||
|
@ -720,5 +721,5 @@
|
|||
"*://gcm.omerlocdn.com/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.9.2.3"
|
||||
"version": "2.9.2.4"
|
||||
}
|
||||
|
|
5
sites.js
5
sites.js
|
@ -1531,6 +1531,11 @@ var defaultSites = {
|
|||
allow_cookies: 1,
|
||||
block_regex: /(cdn\.cxense\.com\/|\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/
|
||||
},
|
||||
"Record.pt": {
|
||||
domain: "record.pt",
|
||||
allow_cookies: 1,
|
||||
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(subscriptions|consent)-.+\.js/
|
||||
},
|
||||
"Reuters": {
|
||||
domain: "reuters.com",
|
||||
allow_cookies: 1,
|
||||
|
|
|
@ -21,6 +21,13 @@
|
|||
"allow_cookies": 1,
|
||||
"block_regex": "js\\.pelcro\\.com\\/"
|
||||
},
|
||||
"Record.pt": {
|
||||
"domain": "record.pt",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(subscriptions|consent)-.+\\.js",
|
||||
"amp_unhide": 1,
|
||||
"new_site": 1
|
||||
},
|
||||
"Tes Magazine": {
|
||||
"domain": "tes.com",
|
||||
"remove_cookies_select_drop": ["tg_paywall"],
|
||||
|
|
Loading…
Reference in a new issue