diff --git a/README.md b/README.md index a40cb26e..66d9cc55 100644 --- a/README.md +++ b/README.md @@ -838,7 +838,6 @@ Grouped in options:\ Grouped in options:\ *Australia News Corp* sites like\ [Cairns Post](https://www.cairnspost.com.au) - -[Code Sports](https://www.codesports.com.au) - [Geelong Advertiser](https://www.geelongadvertiser.com.au) - [Gold Coast Bulletin](https://www.goldcoastbulletin.com.au) - [Herald Sun](https://www.heraldsun.com.au) - diff --git a/background.js b/background.js index a5ee2056..d58940b3 100644 --- a/background.js +++ b/background.js @@ -730,7 +730,7 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) { ); // Australia News Corp redirect subscribe to amp -var au_news_corp_no_amp_fix = ['codesports.com.au']; +var au_news_corp_no_amp_fix = []; var au_news_corp_subscr = au_news_corp_domains.filter(domain => !au_news_corp_no_amp_fix.includes(domain)).map(domain => '*://www.' + domain + '/subscribe/*'); ext_api.webRequest.onBeforeRequest.addListener(function (details) { if (!isSiteEnabled(details) || details.url.includes('/digitalprinteditions') || !(details.url.includes('dest=') && details.url.split('dest=')[1].split('&')[0])) { diff --git a/changelog.txt b/changelog.txt index 96cba7eb..7fd86203 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 +Remove CodeSports.com.au (fix obsolete) Fix Apollo Magazine Fix Barron's (amp-redirect) Fix Harvard Business Review (cookie) diff --git a/contentScript.js b/contentScript.js index ddada35d..9f487111 100644 --- a/contentScript.js +++ b/contentScript.js @@ -424,7 +424,7 @@ else { hideDOMElement(story_generic_iframe, blocker, ...overlays, ...ads); } else if (window.location.hostname.endsWith('.com.au')) { // Australia News Corp - let au_news_corp_domains = ['adelaidenow.com.au', 'cairnspost.com.au', 'codesports.com.au', 'couriermail.com.au', 'dailytelegraph.com.au', 'geelongadvertiser.com.au', 'goldcoastbulletin.com.au', 'heraldsun.com.au', 'ntnews.com.au', 'theaustralian.com.au', 'thechronicle.com.au', 'themercury.com.au', 'townsvillebulletin.com.au', 'weeklytimesnow.com.au']; + let au_news_corp_domains = ['adelaidenow.com.au', 'cairnspost.com.au', 'couriermail.com.au', 'dailytelegraph.com.au', 'geelongadvertiser.com.au', 'goldcoastbulletin.com.au', 'heraldsun.com.au', 'ntnews.com.au', 'theaustralian.com.au', 'thechronicle.com.au', 'themercury.com.au', 'townsvillebulletin.com.au', 'weeklytimesnow.com.au']; if (matchDomain(au_news_corp_domains)) { if (window.location.hostname.startsWith('amp.') || window.location.search.match(/[&\?]amp/)) { let figure_stretch = document.querySelectorAll('figure.stretch'); @@ -443,13 +443,6 @@ else { } removeDOMElement(comments); } else { - if (matchDomain('codesports.com.au')) { - let lazy_images = document.querySelectorAll('img.lazyload[data-src]:not([src])'); - for (let elem of lazy_images) { - elem.src = elem.getAttribute('data-src'); - elem.classList.remove('lazyload'); - } - } let ads = document.querySelectorAll('.header_ads-container, .ad-block, .ad-container'); hideDOMElement(...ads); } diff --git a/custom/manifest.json b/custom/manifest.json index 1161e01f..6c66edd9 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.3.9.4" + "version": "3.3.9.5" } diff --git a/manifest.json b/manifest.json index 4e85ba89..cacc1439 100644 --- a/manifest.json +++ b/manifest.json @@ -158,7 +158,6 @@ "*://*.cmjornal.pt/*", "*://*.cnbc.com/*", "*://*.cntraveler.com/*", - "*://*.codesports.com.au/*", "*://*.columbian.com/*", "*://*.commentary.org/*", "*://*.commercialappeal.com/*", @@ -807,5 +806,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.3.9.4" + "version": "3.3.9.5" } diff --git a/sites.js b/sites.js index 8f207502..306ae54c 100644 --- a/sites.js +++ b/sites.js @@ -115,7 +115,6 @@ var defaultSites = { group: [ "adelaidenow.com.au", "cairnspost.com.au", - "codesports.com.au", "couriermail.com.au", "dailytelegraph.com.au", "geelongadvertiser.com.au", @@ -135,11 +134,6 @@ var defaultSites = { domain: "cairnspost.com.au", allow_cookies: 1, block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/ - }, { - domain: "codesports.com.au", - allow_cookies: 1, - block_js_inline: /\.codesports\.com\.au\/.+\/news-story\//, - block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/ }, { domain: "geelongadvertiser.com.au", allow_cookies: 1, diff --git a/sites_updated.json b/sites_updated.json index 961cebcd..2a55583a 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -8,7 +8,6 @@ "group": [ "adelaidenow.com.au", "cairnspost.com.au", - "codesports.com.au", "couriermail.com.au", "dailytelegraph.com.au", "geelongadvertiser.com.au", @@ -23,14 +22,7 @@ ], "allow_cookies": 1, "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js", - "exception": [{ - "domain": "codesports.com.au", - "allow_cookies": 1, - "block_js_inline": "\\.codesports\\.com\\.au\\/.+\\/news-story\\/", - "block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js" - } - ], - "upd_version": "3.3.8.3" + "upd_version": "3.3.9.5" }, "Bloomberg": { "domain": "bloomberg.com",