Fix Adweek (premium)

Fix Modern Healthcare (sponsored)
This commit is contained in:
magnolia1234 2023-05-02 12:17:13 +02:00
parent 0e895e6d29
commit 793a723e25
8 changed files with 21 additions and 17 deletions

View file

@ -87,7 +87,7 @@ _* free articles only._
[Time Magazine](https://time.com)
##### Business
[Adweek](https://www.adweek.com)* -
[Adweek](https://www.adweek.com) -
[American Affairs](https://americanaffairsjournal.org) -
[American Banker](https://www.americanbanker.com) -
[Barron's](https://www.barrons.com) -

View file

@ -3,6 +3,8 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Fix Adweek (premium)
Fix Modern Healthcare (sponsored)
* v3.1.6.0 (2023-04-30)
Remove Zeit.de (fix obsolete)

View file

@ -113,7 +113,11 @@ if (bg2csData.ld_google_webcache) {
if (bg2csData.add_ext_link) {
if (bg2csData.add_ext_link.css && bg2csData.add_ext_link.css.includes('|') && bg2csData.add_ext_link.type) {
window.setTimeout(function () {
let url = window.location.href;
let url = window.location.href.split(/[#\?]/)[0];
if (matchUrlDomain('zeit.de', url)) {
if (document.querySelector('link[rel="next"]'))
url += '/komplettansicht';
}
let add_ext_link_split = bg2csData.add_ext_link.css.split('|');
let paywall_sel = add_ext_link_split[0];
let article_sel = add_ext_link_split[1];
@ -2919,16 +2923,6 @@ if (matchDomain(usa_adv_local_domains)) {
}
}
else if (matchDomain('adweek.com')) {
let url = window.location.href;
let body_single = document.querySelector('body.single');
let amphtml = document.querySelector('link[rel="amphtml"]');
if (body_single && amphtml) {
body_single.classList.remove('single');
window.location.href = amphtml.href;
}
}
else if (matchDomain('americanbanker.com')) {
let inline_gate = document.querySelector('.inline-gate');
if (inline_gate) {
@ -4667,6 +4661,9 @@ else if (matchDomain(usa_craincomm_domains)) {
}
let lazy_sources = document.querySelectorAll('source[srcset^="data:image"]');
removeDOMElement(...lazy_sources);
let sponsored_article = document.querySelector('div.sponsored-article');
if (sponsored_article)
sponsored_article.classList.remove('sponsored-article');
}
else if (matchDomain(usa_genomeweb_domains)) {

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.1.6.0"
"version": "3.1.6.1"
}

View file

@ -752,5 +752,5 @@
"*://html.onlineviewer.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.1.6.0"
"version": "3.1.6.1"
}

View file

@ -78,7 +78,7 @@ function showArchiveLinks() {
currentWindow: true
}, function (tabs) {
if (tabs && tabs[0] && /^http/.test(tabs[0].url)) {
let url = tabs[0].url.split('?')[0];
let url = tabs[0].url.split(/[#\?]/)[0];
let url_enc = encodeURIComponent(url);
let hostname = urlHost(url);
let archive_array = {

View file

@ -20,8 +20,9 @@ var defaultSites = {
"syracuse.com"
]
},
"Adweek (free articles only)": {
domain: "adweek.com"
"Adweek": {
domain: "adweek.com",
useragent: "googlebot"
},
"Ärzte Zeitung": {
domain: "aerztezeitung.de",

View file

@ -1,4 +1,8 @@
{
"Adweek (free articles only)": {
"domain": "adweek.com",
"useragent": "googlebot"
},
"Berlingske": {
"domain": "berlingske.dk",
"allow_cookies": 1,