Fix Crusoe.uol.com.br (js)

This commit is contained in:
magnolia1234 2023-07-09 18:19:21 +02:00
parent 5b83b6deb3
commit 6bf4a1e88d
10 changed files with 32 additions and 16 deletions

View file

@ -19,7 +19,7 @@ Weekly updates are released for fixes and new sites.
### Installation ### Installation
You can install the add-on from [GitLab releases](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases)\ You can install the add-on from [GitLab releases](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases)\
Download the xpi-file (from latest release), go to downloads and install the add-on (or drag it from your file-manager anywhere on a page/tab in Firefox).\ Download the [xpi-file](https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-latest.xpi) (from latest release), go to downloads and install the add-on (or drag it from your file-manager anywhere on a page/tab in Firefox).\
Or go to Tools > Add-ons (about:addons) > Extensions > Settings/Cogwheel - Install Add-on from File\ Or go to Tools > Add-ons (about:addons) > Extensions > Settings/Cogwheel - Install Add-on from File\
You can add/pin the add-on icon to the toolbar with the toolbar extensions menu (jigsaw puzzle shaped icon).\ You can add/pin the add-on icon to the toolbar with the toolbar extensions menu (jigsaw puzzle shaped icon).\
Custom xpi-file has host permissions for all sites.\ Custom xpi-file has host permissions for all sites.\

View file

@ -780,7 +780,7 @@ if (typeof browser !== 'object') {
if (matchUrlDomain(dompurify_sites, url)) if (matchUrlDomain(dompurify_sites, url))
lib_file = 'lib/purify.min.js'; lib_file = 'lib/purify.min.js';
var bg2csData = {}; var bg2csData = {};
if (optin_setcookie && matchUrlDomain(['crusoe.uol.com.br'], url)) if (optin_setcookie && matchUrlDomain(['###'], url))
bg2csData.optin_setcookie = 1; bg2csData.optin_setcookie = 1;
if (matchUrlDomain(amp_unhide, url)) if (matchUrlDomain(amp_unhide, url))
bg2csData.amp_unhide = 1; bg2csData.amp_unhide = 1;

View file

@ -14,6 +14,7 @@ Remove Limburger.nl (fix obsolete)
Remove Quillette (fix obsolete) Remove Quillette (fix obsolete)
Remove Tagesspiegel.de (fix obsolete) Remove Tagesspiegel.de (fix obsolete)
Fix BusinessPost.ie (json) Fix BusinessPost.ie (json)
Fix Crusoe.uol.com.br (js)
Fix Hearst Communications magazines (js) Fix Hearst Communications magazines (js)
Fix Mediahuis Noord (regional) Fix Mediahuis Noord (regional)
Fix Midi-Olympique.fr (new domain Rugbyrama.fr) Fix Midi-Olympique.fr (new domain Rugbyrama.fr)
@ -21,7 +22,7 @@ Fix Midi-Olympique.fr (new domain Rugbyrama.fr)
* v3.2.3.0 (2023-07-02) * v3.2.3.0 (2023-07-02)
Add Groupe ESH Medias (ch) Add Groupe ESH Medias (ch)
Add Hln.be (link to archive.is) Add Hln.be (link to archive.is)
Add MacroBusiness.com.au (ld_nuxt) Add MacroBusiness.com.au (ld_json_nuxt)
Add Puck.news Add Puck.news
Add Zeit.de (link to archive.is) Add Zeit.de (link to archive.is)
Remove AerzteBlatt.de (fix obsolete) Remove AerzteBlatt.de (fix obsolete)
@ -576,7 +577,7 @@ Update block general paywall script (limit Evolok WordPress)
Update custom sites (load text from Google webcache) Update custom sites (load text from Google webcache)
* v2.7.8.0 (2022-07-31) * v2.7.8.0 (2022-07-31)
Add Crusoe (Brazil) Add Crusoe.uol.com.br
Add Golem.de Add Golem.de
Add Groupe Capitales Medias (+ regional/opt-in to custom sites) Add Groupe Capitales Medias (+ regional/opt-in to custom sites)
Grouping GenomeWeb sites Grouping GenomeWeb sites

View file

@ -184,10 +184,7 @@ if (bg2csData.add_ext_link) {
// check for opt-in confirmation (from background.js) // check for opt-in confirmation (from background.js)
if (bg2csData.optin_setcookie) { if (bg2csData.optin_setcookie) {
if (matchDomain(['crusoe.uol.com.br'])) { false;
if (!cookieExists('crs_subscriber'))
setCookie('crs_subscriber', 1, 'crusoe.uol.com.br', '/', 14);
}
} }
// custom/updated sites: try to unhide text on amp-page // custom/updated sites: try to unhide text on amp-page
@ -2904,9 +2901,8 @@ else if (matchDomain(ar_grupo_clarin_domains)) {
} }
else if (matchDomain('crusoe.uol.com.br')) { else if (matchDomain('crusoe.uol.com.br')) {
let paywall = document.querySelector('#wallcontent');
let ads = document.querySelectorAll('#gpt-leaderboard, .ads_desktop, .catchment-box'); let ads = document.querySelectorAll('#gpt-leaderboard, .ads_desktop, .catchment-box');
removeDOMElement(paywall, ...ads); removeDOMElement(...ads);
} }
else if (matchDomain(pe_grupo_elcomercio_domains)) { else if (matchDomain(pe_grupo_elcomercio_domains)) {

View file

@ -51,5 +51,5 @@
"webRequestBlocking", "webRequestBlocking",
"*://*/*" "*://*/*"
], ],
"version": "3.2.3.5" "version": "3.2.3.6"
} }

View file

@ -70,6 +70,12 @@
"domain": "christianitytoday.com", "domain": "christianitytoday.com",
"useragent": "googlebot" "useragent": "googlebot"
}, },
"Clareecho.ie": {
"allow_cookies": 1,
"block_regex": "\\.clareecho\\.ie\\/.+\\/flip-pay\\.js",
"cs_code": "[{\"cond\":\"div.td-post-content\", \"rm_class\": \"td-post-content\"}]",
"domain": "clareecho.ie"
},
"Columbian.com": { "Columbian.com": {
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "loader-cdn\\.azureedge\\.net", "block_regex": "loader-cdn\\.azureedge\\.net",
@ -252,6 +258,12 @@
"block_regex": "\\.libraryjournal.com\\.com\\/.+\\/js\\/metering\\.js", "block_regex": "\\.libraryjournal.com\\.com\\/.+\\/js\\/metering\\.js",
"domain": "libraryjournal.com" "domain": "libraryjournal.com"
}, },
"Limerickpost.ie": {
"allow_cookies": 1,
"block_regex": "\\.limerickpost\\.ie\\/.+\\/flip-pay\\.js",
"cs_code": "[{\"cond\":\"div.td-post-content\", \"rm_class\": \"td-post-content\"}]",
"domain": "limerickpost.ie"
},
"Lindipendente.online": { "Lindipendente.online": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "lindipendente.online", "domain": "lindipendente.online",

View file

@ -744,6 +744,7 @@
"*://*.cedscdn.it/*", "*://*.cedscdn.it/*",
"*://*.cedsdigital.it/*", "*://*.cedsdigital.it/*",
"*://*.corriereobjects.it/*", "*://*.corriereobjects.it/*",
"*://*.crusoe.com.br/*",
"*://*.emol.cl/*", "*://*.emol.cl/*",
"*://*.flip-pay.com/*", "*://*.flip-pay.com/*",
"*://*.gitlab.com/magnolia1234/*", "*://*.gitlab.com/magnolia1234/*",
@ -757,5 +758,5 @@
"*://*.wyleex.com/*", "*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "3.2.3.5" "version": "3.2.3.6"
} }

View file

@ -18,7 +18,7 @@
<div id="opt-in-prompt"> <div id="opt-in-prompt">
<p><strong>setCookie opt-in</strong></p> <p><strong>setCookie opt-in</strong></p>
<p>For some sites a necessary cookie has to be set (this cookie doesn't contain any personal information about the user or device):<br><br> <p>For some sites a necessary cookie has to be set (this cookie doesn't contain any personal information about the user or device):<br><br>
Crusoé</p> None</p>
<p>setCookie opt-in enabled: <span id="opt-in-enabled"></span></p> <p>setCookie opt-in enabled: <span id="opt-in-enabled"></span></p>
<div id="optin-container"> <div id="optin-container">
<button id="optin-enable">Enable</button> <button id="optin-enable">Enable</button>

View file

@ -2258,9 +2258,8 @@ var defaultSites = {
}, },
"UOL.com.br": { "UOL.com.br": {
domain: "uol.com.br", domain: "uol.com.br",
allow_cookies: 1, block_regex: /(paywall\.folha\.uol\.com\.br\/|\.crusoe\.com\.br\/assets\/js\/swg-wallcontent-crusoe\.js|\.(tinypass|matheranalytics)\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/,
block_js_inline: /crusoe\.uol\.com\.br\/(diario|edicoes)\/.+/, remove_cookies_select_drop: ["crs_subscriber"],
block_regex: /(paywall\.folha\.uol\.com\.br\/|\.(tinypass|matheranalytics)\.com\/|cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js)/,
useragent: "googlebot" useragent: "googlebot"
}, },
"USA Today": { "USA Today": {

View file

@ -174,5 +174,12 @@
"block_regex": "(\\.nytimes\\.com\\/meter\\.js|mwcm\\.nyt\\.com\\/.+\\.js|cooking\\.nytimes\\.com\\/api\\/.+\\/access)", "block_regex": "(\\.nytimes\\.com\\/meter\\.js|mwcm\\.nyt\\.com\\/.+\\.js|cooking\\.nytimes\\.com\\/api\\/.+\\/access)",
"useragent": "googlebot", "useragent": "googlebot",
"upd_version": "3.1.4.0" "upd_version": "3.1.4.0"
},
"UOL.com.br": {
"domain": "uol.com.br",
"block_regex": "(paywall\\.folha\\.uol\\.com\\.br\\/|\\.crusoe\\.com\\.br\\/assets\\/js\\/swg-wallcontent-crusoe\\.js|\\.(tinypass|matheranalytics)\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js)",
"remove_cookies_select_drop": ["crs_subscriber"],
"useragent": "googlebot",
"upd_version": "3.2.3.6"
} }
} }