From 6c1859c5f6f4d6b0349363a7226d74215980c692 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 1 Aug 2022 21:25:50 +0200 Subject: [PATCH] Add SuomenSotilas.fi --- README.md | 3 ++- changelog.txt | 1 + contentScript.js | 6 ++++++ manifest.json | 1 + sites.js | 5 +++++ sites_updated.json | 10 ++++++++++ 6 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bec3fd19..29a5a011 100644 --- a/README.md +++ b/README.md @@ -381,7 +381,8 @@ Grouped in options:\ Grouped in options:\ *Sanoma Media Finland* sites like (opt-in to custom sites for unlisted/regional sites)\ [Aamulehti](https://www.aamulehti.fi) - -[Helsingin Sanomat](https://www.hs.fi) +[Helsingin Sanomat](https://www.hs.fi) - +[Suomen Sotilas](https://suomensotilas.fi) *Alma Talent* sites like\ [Arvopaperi](https://www.arvopaperi.fi) - diff --git a/changelog.txt b/changelog.txt index 07f5b214..94381428 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add SuomenSotilas.fi Add Tagesspiegel.de Redirect Google AMP cache (opt-in to custom sites) Update block general paywall script (limit Evolok WordPress) diff --git a/contentScript.js b/contentScript.js index 85ad8d1d..90662086 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1060,6 +1060,12 @@ else if (matchDomain('nyteknik.se')) { locked_article.classList.remove('locked-article'); } +else if (matchDomain('suomensotilas.fi')) { + let obscured = document.querySelector('div.epfl-pw-obscured'); + if (obscured) + obscured.classList.remove('epfl-pw-obscured'); +} + else csDone = true; diff --git a/manifest.json b/manifest.json index f79ae18f..cf11c5f7 100644 --- a/manifest.json +++ b/manifest.json @@ -540,6 +540,7 @@ "*://*.sudinfo.be/*", "*://*.sudouest.fr/*", "*://*.sun-sentinel.com/*", + "*://*.suomensotilas.fi/*", "*://*.svz.de/*", "*://*.syracuse.com/*", "*://*.tagesspiegel.de/*", diff --git a/sites.js b/sites.js index cfa9b92b..05bc7c68 100644 --- a/sites.js +++ b/sites.js @@ -1598,6 +1598,11 @@ var defaultSites = { domain: "studocu.com", allow_cookies: 1 }, + "Suomen Sotilas": { + domain: "suomensotilas.fi", + allow_cookies: 1, + block_regex: /\/suomensotilas\.fi\/wp-content\/plugins\/epflpw\/js\/pw\.js/ + }, "Tampa Bay Times": { domain: "tampabay.com", allow_cookies: 1, diff --git a/sites_updated.json b/sites_updated.json index 530e4ddc..7a70f76a 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -72,6 +72,16 @@ "allow_cookies": 1, "block_regex": "\\/loader-cdn\\.azureedge\\.net\\/" }, + "Suomen Sotilas": { + "domain": "suomensotilas.fi", + "allow_cookies": 1, + "block_regex": "\\/suomensotilas\\.fi\\/wp-content\\/plugins\\/epflpw\\/js\\/pw\\.js", + "cs_code": [{ + "cond": "div.epfl-pw-obscured", + "rm_class": "epfl-pw-obscured" + } + ] + }, "Winnipeg Free Press": { "domain": "winnipegfreepress.com", "allow_cookies": 1,