From 2ac31f0498aa9d8a899b3866432151602e3026eb Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 15 Aug 2023 18:54:25 +0200 Subject: [PATCH] Fix The Press-Enterprise (new domain) --- README.md | 4 ++-- changelog.txt | 1 + contentScript.js | 4 ++-- custom/manifest.json | 2 +- manifest.json | 4 ++-- sites.js | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 5eec2de..543662c 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Specifically for the add-on you can also use Firefox Beta or a Firefox clone lik * download add-on's xpi-file (custom version if you want to use custom sites) from [releases](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases) and install/open in Firefox * now you can update Firefox to the latest version * add-on will stay active & automatically updates to the latest version -* in add-ons it will be labeled as not yet available and also has no more option to enable the add-on in private browsing +* in add-ons it will be labeled as not yet available and also has no more option to enable the add-on in private browsing (in Firefox 116+ it may only show the option on automatic update of the add-on) The experimental Mozac/GeckoView-based browser [SmartCookieWeb-Preview](https://github.com/CookieJarApps/SmartCookieWeb-Preview/releases) can also install/sideload a xpi-file by url (Settings > Advanced settings > Sideload XPI).\ No option to enable the add-on in private browsing though. @@ -367,7 +367,7 @@ Grouped in options:\ [St. Paul Pioneer Press](https://www.twincities.com) - [The Denver Post](https://www.denverpost.com) - [The Mercury News](https://www.mercurynews.com) - -[The Press-Enterprise](https://www.pe.com)\ +[The Press-Enterprise](https://www.pressenterprise.com)\ *[The Atlanta Journal-Constitution](https://www.ajc.com) + Cox First Media* (opt-in to custom sites)\ *TownNews sites (Blox CMS)* sites (opt-in to custom sites)\ *Tribune Publishing Company* sites like\ diff --git a/changelog.txt b/changelog.txt index 18c033a..7ccb5c9 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 +Fix The Press-Enterprise (new domain) * v3.2.9.0 (2023-08-13) Add 4 more Lee Enterprises Group sites diff --git a/contentScript.js b/contentScript.js index bc4cef1..7d2a9a7 100644 --- a/contentScript.js +++ b/contentScript.js @@ -46,7 +46,7 @@ var usa_genomeweb_domains = ['360dx.com', 'genomeweb.com', 'precisiononcologynew var usa_hearst_comm_domains = ['expressnews.com', 'houstonchronicle.com', 'sfchronicle.com']; var usa_lee_ent_domains = ['buffalonews.com', 'journalnow.com', 'journalstar.com', 'madison.com', 'nwitimes.com', 'omaha.com', 'richmond.com', 'stltoday.com', 'tucson.com', 'tulsaworld.com']; var usa_mcc_domains = ['bnd.com', 'charlotteobserver.com', 'fresnobee.com', 'kansas.com', 'kansascity.com', 'kentucky.com', 'mcclatchydc.com', 'miamiherald.com', 'newsobserver.com', 'sacbee.com', 'star-telegram.com', 'thestate.com', 'tri-cityherald.com']; -var usa_mng_domains = ['denverpost.com', 'eastbaytimes.com', 'mercurynews.com', 'ocregister.com', 'pe.com', 'twincities.com']; +var usa_mng_domains = ['denverpost.com', 'eastbaytimes.com', 'mercurynews.com', 'ocregister.com', 'pressenterprise.com', 'twincities.com']; var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition.com", "cleaneatingmag.com", "climbing.com", "cyclingtips.com", "gymclimber.com", "outsideonline.com", "oxygenmag.com", "pelotonmagazine.com", "podiumrunner.com", "rockandice.com", "skimag.com", "trailrunnermag.com", "triathlete.com", "vegetariantimes.com", "velonews.com", "womensrunning.com", "yogajournal.com"]; var usa_tribune_domains = ['baltimoresun.com', 'chicagotribune.com', 'courant.com', 'dailypress.com', 'mcall.com', 'nydailynews.com', 'orlandosentinel.com', 'pilotonline.com', 'sun-sentinel.com']; @@ -2525,7 +2525,7 @@ else if (matchDomain('telegraaf.nl')) { if (json) { let json_text = json.articleBody; if (json_text) { - let intro = document.querySelector('span[id^="articleIntro"], p.Article__intro > span'); + let intro = document.querySelector('span[id^="articleIntro"], p.Article__intro > span:not([class])'); if (intro) json_text = json_text.replace(intro.innerText + '\n\n', ''); let text_array = json_text.split('\\n'); diff --git a/custom/manifest.json b/custom/manifest.json index 6701620..51a4368 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.2.9.0" + "version": "3.2.9.1" } diff --git a/manifest.json b/manifest.json index 53a2d9e..3bb58fc 100644 --- a/manifest.json +++ b/manifest.json @@ -517,7 +517,6 @@ "*://*.paris-normandie.fr/*", "*://*.parismatch.com/*", "*://*.parool.nl/*", - "*://*.pe.com/*", "*://*.pelotonmagazine.com/*", "*://*.penews.com/*", "*://*.pennlive.com/*", @@ -534,6 +533,7 @@ "*://*.popularmechanics.com/*", "*://*.post-gazette.com/*", "*://*.precisiononcologynews.com/*", + "*://*.pressenterprise.com/*", "*://*.prevention.com/*", "*://*.profi.de/*", "*://*.project-syndicate.org/*", @@ -783,5 +783,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.2.9.0" + "version": "3.2.9.1" } diff --git a/sites.js b/sites.js index 5a61750..35616d8 100644 --- a/sites.js +++ b/sites.js @@ -1424,7 +1424,7 @@ var defaultSites = { "eastbaytimes.com", "mercurynews.com", "ocregister.com", - "pe.com", + "pressenterprise.com", "twincities.com" ], allow_cookies: 1,